Google Analytics integration not working

Tourist
44 0 1

I have triued to integrate Google Analystics into my store but I have no evidence that it's working. To configure I visited...

Sales Channels -> Online Store -> Preferences

and then entered my tracking code from my analytics account (the account had been around for a while and works just fine on my main web site). When I save the tracking code I see my UA--- number listed as I would expect.

Yet if I go to the Google Analytics site I see no record of any activity on my shopify store. Google Tag Manager seems to find the analytics code on my Shopify pages.

By the way, my store uses the form https://store,<domain>.com - not sure of that's a factor here.

Any suggestions on how I can troubleshoot this?

I did fing a YouTube video from a third party that suggested NOT to use the UI I mentioned above and instead to edit a .liquid file in my theme. He didn't say why this was preferred though. Any particular reason the UI in the path above is not the right way to do this?

Thanks.

Mark

0 Likes
Highlighted

Hi Mark,

Don't edit your liquid theme. It's unnecessary, and unless you're an advanced coder, you'll only create more headaches for yourself in getting analytics to work. It also means you miss any updates in Shopify's integration with G Analytics.

There are some things you need to do inside analytics like referral exclusions.

For the bare minimum to get yours working, follow steps 2 and 3: https://www.digitaldarts.com.au/google-analytics-and-shopify-for-splendid-data

I also suggest you change your Shopify settings so yourstore.myshopify.com redirects to your domain. It doesn't affect your analytics IF you have the myshopify.com domain in your analytics referral exclusion list, but it's just better for your business and SEO to have a single, custom domain.

Run Google Shopping ads? Get the free definitive guide to Google Shopping for Shopify (no optin required): https://www.digitaldarts.com.au/google-shopping
0 Likes
Shopify Staff (Retired)
Shopify Staff (Retired)
409 0 60

Hi Mark,

Britton here with the Shopify support team.

You are definitely correct that the regular Google Analytics snippet should get added to your site via the path online store > preferences in the designated box. Just remember that the main code snippet should go in the aforementioned place, not in the custom javascript section.

If you have set it up that way then it should be working fine! It's hard to troubleshoot exactly why without looking at your store though, so I am going to reach out to you via email to help you get it fixed.

-Britton

Britton Shopify Guru
0 Likes