Articles in this category

Setting up Google Analytics

Google Analytics allows for detailed tracking of your site visits and conversions on your website. If you want to add Google Analytics to both the website and to the checkout, it's really easy with our Google Analytics app, available in the Integrations.


Setting up Google Analytics 4

Head over to the Integrations section of your Subbly admin and find the Google Analytics app card.

Click on Install & Configure. You will be presented with the sidebar contextual menu where you need to provide values for your Google Analytics 4 Measurement ID and Measurement Protocol API Secret.

Measurement ID is unique ID associated with your Google Analytics 4 account. You will easily recognize it as it starts with G- succeeded by random string of numbers. You can check the article here for more help on how you can extract this from your GA admin.

You can get the Measurement Protocol ID from your Google account's Settings section by following the steps displayed in the picture below.

From the subsequent screen make sure to create the API Secret and to generate the key by following the steps displayed below.

Once created, make sure to paste the Measurement Protocol Secret API and save the settings. You're all done now!

Sometimes the events won't start flowing instantly into your Google Analytics account, even if it's integrated correctly. Please allow up to 48 hours for the events to start populating in your GA account.

What events are being passed through Google Analytics?

Integration will pass all available cart and checkout events over to Google Analytics admin. You can find the list of events which are currently being passed below.

  • init
  • Click
  • addedToCart
  • surveyStarted
  • showPlanSelectionStep
  • surveyCompleted
  • planSelected
  • prePurchaseOffered
  • prePurchaseAccepted
  • getToLogin
  • registered
  • loggedin
  • addShippingMethod
  • getToBillingStep
  • exPaymentMethodChosen
  • addPaymentMethod
  • midPurchaseOffered
  • midPurchaseAccepted
  • purchase
  • postPurchaseOffered
  • postPurchaseAccepted

Setting additional conversion tracking at the checkouts

If the integration is not feeding the Google Analytics with all relevant information you need, or if you simply want to have more robust information when making business decisions, you are free to include additional conversion tracking either via Google Tag Manager, or by adding the custom conversion tracking code to the Conversion Tracking section of the admin.

Please be careful when doing this and make sure not to add the conversion tracking code which will send Purchase event 2x or even 3x, causing the inflation of the metrics on the Google Analytics.

FAQ

Why am I seeing duplicate Purchase event tracked on my Google?

Most probably you have Google tracking code added somewhere via Google Tag Manager or pasted in the Conversion Tracking panel. If two instances of Purchase event are recorded from the checkouts for the same order, this is the indication that two instances of conversion tracking javascript are being fired at the checkout (one from the regular integration and another one coming from inside the Google Tag Manager or through manually added code).

Did you find this resource helpful?
Return to top
Ready to get started
with Subbly?
Try for free