Analytics
6.4K members online now
6.4K members online now
Dive into multiple domain (Cross/Sub) tracking, implementing Ecommerce and Enhanced Ecommerce, setting up Event tracking, and Universal Analytics code.
 
Guide Me
star_border
Reply

Sudden dropped of visitors

Visitor ✭ ✭ ✭
# 1
Visitor ✭ ✭ ✭

Hi All,

 

A few days ago, everything on analytics was running smoothly, until I changed my preferred domain on GWT to the non-www version of my site. I also added another property to analytics (the non-www version of the site). The website is coolster.com. I don't know if I was supposed to add both versions onto my analytics; I have 2 tracking codes now and have traffic coming from both sources. Can this be disrupting the flow of traffic? Thanks.

1 ACCEPTED SOLUTION

Accepted Solutions
Marked as Best Answer.
Solution
Accepted by topic author Jason M
July 2016

Re: Sudden dropped of visitors

[ Edited ]
Participant ✭ ✭ ✭
# 4
Participant ✭ ✭ ✭

Hi Jason,

 

If you see both of them, it's not an issue because both URL-s are active (people can use both of them):
1) http://www.coolster.com
2) http://coolster.com

If you decide to redirect traffic from http://www.coolster.com to http://coolster.com in the future then http://www.coolster.com will disappear from the reports as well. It's not needed in terms of Google Analytics, I just mention that. Smiley Happy

Your GA seems to work properly. You should only add your tracking code before the closing </head> tag on every web page on your site you wish to track. Right now, it's not there.

If the code is toward the end of the page and the page takes a significant amount of time to load, it's possible that the user could navigate away (click a link or close the browser window) before the tracking code has loaded, meaning you would miss capturing data about that pageview.

Hope this helps.

Taavi

View solution in original post

Re: Sudden dropped of visitors

[ Edited ]
Participant ✭ ✭ ✭
# 2
Participant ✭ ✭ ✭

Hi Jason,

You don't need another tracking code for that. You can simply use the same tracking code. Only the hostname of your page will change in the Google Analytics reports.

If you go to Audience > Technology > Network report and select Hostname as the primary dimension, you will see now coolster.com instead of www.coolster.com.

If the hostname of the page (http://<this is the hostname>/home/) starts with www., the “www” is stripped, and the cookie is written on what remains. So, in the case of coolster.com or www.coolster.com, the cookie is still written on .coolster.com. Just make sure you haven't implemented any hostname filters that now may screw up your data.

I checked you Google Analytics implementation I noticed that the same web property ID (UA-80968994-1) is being tracked twice so right now it screws up your data (view-source:http://coolster.com/). You should remove the duplicated code - http://prntscr.com/bx3zqt and another property as well, if it's not needed.


One more tip:

You should copy-paste one of your tracking snippets that you decide to use before the closing </head> tag on every web page on your site you wish to track. Right now, it's not there. The GA tracking code is asynchronous, meaning that the browser doesn't need to wait for the code to finish loading to continue rendering elements that come after it on the page. It means that you can safely put the code at or near the top of your page.

If the code is toward the end of the page and the page takes a significant amount of time to load, it's possible that the user could navigate away (click a link or close the browser window) before the tracking code has loaded, meaning you would miss capturing data about that pageview.

Let me know if you need some additional guidance. Smiley Happy


Taavi



Re: Sudden dropped of visitors

Visitor ✭ ✭ ✭
# 3
Visitor ✭ ✭ ✭

Thanks for your response, Taavi. I didn't know there was a repeat of the code on my site and I have since taken it down. Also, can you elaborate on the hostname as primary dimension? I see both coolster.com and www.coolster.com. Much appreciated!

Marked as Best Answer.
Solution
Accepted by topic author Jason M
July 2016

Re: Sudden dropped of visitors

[ Edited ]
Participant ✭ ✭ ✭
# 4
Participant ✭ ✭ ✭

Hi Jason,

 

If you see both of them, it's not an issue because both URL-s are active (people can use both of them):
1) http://www.coolster.com
2) http://coolster.com

If you decide to redirect traffic from http://www.coolster.com to http://coolster.com in the future then http://www.coolster.com will disappear from the reports as well. It's not needed in terms of Google Analytics, I just mention that. Smiley Happy

Your GA seems to work properly. You should only add your tracking code before the closing </head> tag on every web page on your site you wish to track. Right now, it's not there.

If the code is toward the end of the page and the page takes a significant amount of time to load, it's possible that the user could navigate away (click a link or close the browser window) before the tracking code has loaded, meaning you would miss capturing data about that pageview.

Hope this helps.

Taavi

Re: Sudden dropped of visitors

Visitor ✭ ✭ ✭
# 5
Visitor ✭ ✭ ✭

Ok I got it. I'll look into the placement of the code snippet. Thanks a lot for your help!

Re: Sudden dropped of visitors

Participant ✭ ✭ ✭
# 6
Participant ✭ ✭ ✭
If you have any further questions regarding the Google Analytics, just let us know. Smiley Happy

All the best,
Taavi