The Google Tag Manager integration allows you to send purchase events to Google Tag Manager.
There are 2 ways to integrate Google Analytics with your checkouts:
Server Side Integration - CheckoutJoy sends events via the backend to Google Analytics. This is the easiest method
as it don't require any tracking scripts and is guaranteed to fire only once with a conversion.
Thank-you Page Integration - you install the tracking script on your thank-you pages where the customer lands after
making a purchase.
Do the server side integration if you're not sure which option to use.
The identifier for a Data Stream. Found in the Google Analytics UI under: Admin > Data Streams > choose your stream > Measurement ID
API Secret
An API Secret that is generated through the Google Analytics UI. To create a new secret, navigate in the Google Analytics UI to: Admin > Data Streams > choose your stream > Measurement Protocol > Create
With this integration, you add the GA tracking script to the Thank-you page set up for your checkout. Since your customers
will only ever see the thank-you page after a successful purchase, this is where your conversion, or purchase
tracking will happen.
The required transaction information like totals, taxes, products etc. are passed to the thank-you page as query parameters.
There is a risk of duplicate events using this method, e.g. if the customer refreshes the thank-you page, however it is unlikely.
If you need pinpoint accuracy with GA events, then use the Server Side Integration instead.