Google analytics tracking - domain.com & www.domain.com

Angel83
New Member
1 0 0

We launched a new website on Shopify one month ago and our traffic has been dropping ever since across all channels. 

 

I am wondering if it is due to Google Analytics tracking as I cannot find any other reason for it.

 

Our old website was https://www.domain.com  while our new website is just https://domain.com (if you type in the www. version, it redirects to this). I'm not sure if the www. now counts as a subdomain?

 

We added the Google tracking to shopify, but in the property settings, the default URL is the www. version. 

 

Do I need to update this to just domain.com; or should I create a new Google Analytics property for that? Should I add code for both options, or is there a way to tell Google to track both and combine results?

 

Thanks in advance for any help anyone can offer here!

0 Likes
Ajay_kumar_dev
Shopify Partner
74 9 9

Hi @Angel83 

You have to generate the Google analytics code for your new domain:-   https://domain.com  and add to your theme. It will get fixed. 

Thanks 

Expert Shopify Developer & Theme customizer
- If the problem is solved remember to click ✅ to Accept Solution
- Press Like ?? if the answer was helpful
- Still, Facing issue, Reach out to me Email :- kmajay8888@gmail.com | Skype :- kmajay888
0 Likes