Tracking Shopify Transactions In Universal Analytics and Google Analytics 4

Tracking Shopify Conversions In Google Analytics can be easy, however, Shopify does restrict custom code on certain pages used in the checkout process which makes it difficult to accurately track transactions and revenue. When using implementation tools like Google Tag Manager most tracking is done via a series of tags and triggers, but this won’t work for Shopify as you are unable to add any custom JavaScript to your Shopify checkout page. The best way to configure google analytics with Shopify is by installing the Google Analytics tracking script directly through Shopify to ensure that no data is lost.

This will also cover the process for capturing the same data within Google Analytics 4

1. Login to your shopify store

2. Click on “Online store” from the bottom left of the screen

edited image 213d2fc8 059f 4460 90f2 0fa383d1ae77 scaled 1

 

3. Click on Preferences

edited image 11fcb18b 8a0c 4ecf bdc1 8e6ee3e20753 scaled 1

4. Find the “Google Analytics” section in the middle of the page

Click on Google Analytics account (how do I set this up?)

 

5. To get your google analytics tracking script go to analytics.google.com

Click on All accounts…

 

6. Click on your universal analytics property from the middle of the page (the tag that begins with UA-)

Click on your universal analytics property (the tag that begins with UA-)

 

7. Click on the view that you are currently using for tracking in Google Analytics

Click on link the view

8. Now that you are in the correct view Click on the Admin button on the bottom left of the screen

Click on Admin

 

9. Select “tracking info” from the middle column

Click on Tracking Info

 

10. Then choose the option for “tracking code”

Click on Tracking Code

 

11. Copy the javascript snippet within the “Global site tag”

Copy the tracking code

 

12. Paste the tracking script from google analytics into the section google analytics section of Shopify

Paste the tracking script from google analytics into the section in Shopify

 

13. Don’t forget to save 

Click on Save

Now that the google analytics tracking code is installed within Shopify, we need to make sure that google analytics is set up to receive e-commerce-specific data. To do this we need to head back to Google Analytics and navigate to the admin section again. 

 

14. From the admin menu select “Ecommerce settings” from the right-hand column

Click on Ecommerce Settings

 

15. Change to option to “On”

Click on ON OFF

 

16. Enable enhanced e-commerce if you would like (it’s not necessary but if you take the time to configure this it can be helpful) 

Click on Save

Now that our Universal analytics property is setup to track conversion data from our Shopify store we need to connect our Universal Analytics property to our Google Analytics 4 property. To do this: 

17. Navigate Back To The GA4 Property

Navigate Back To The GA4 Property

 

18. Click on Data Streams from the middle column

Click on Data Streams

 

19. Click on the data stream for your website and Copy the Measurement ID

Click on the data stream for your website and Copy the Measurement ID

 

20. Exit the admin screen

Exit the admin screen

 

21. Navigate back to the Universal Analytics Property

Navigate back to the Universal Analytics Property

 

22. Click on Admin

Click on Admin

 

23. Click on Tracking Info

Click on Tracking Info

 

24. Click on Tracking Code

Click on Tracking Code

 

25. Click on Connected Site Tags

Click on Connected Site Tags

 

26. Paste your measurement ID for Google Analytics 4

Paste your measurement ID for Google Analytics 4

27. Click on Connect

Click on Connect

  Now you are ready to track transactions and revenue from your Shopify store in Google Analytics 4 and Universal Analytics. Need help setting this up? contact AKWMS to get assistance with setting up your tracking.

Relative Posts