Analytics
3K members online now
Understand information in your reports and troubleshoot reporting issues such as self-referrals, (not set) data, and inaccurate information
 
Guide Me
star_border
Reply

Google Analytics stopped

Visitor ✭ ✭ ✭
# 1
Visitor ✭ ✭ ✭

My client (virtual host) sent me a graph (attached) of how his analytics stopped 12/29. His url is http://www.ruthgalerealestate.comssGGraph.jpg. There is no visible answer from what I can see in the source code. Can anyone give me any insight as to why this is happening? When he was getting stats, they were much lower than the server's hit counter with the code at the bottom of the page. Thanks for any help on this problem.

1 Expert replyverified_user
1 ACCEPTED SOLUTION

Accepted Solutions
Marked as Best Answer.
Solution
Accepted by topic author Pat B
January 2017

Re: Google Analytics stopped

Top Contributor
# 2
Top Contributor

Hi :-)
Seems to  be a couple of issues.. 

there is a line break in the first section of code that is causing an error with the script when the page is rendering
Should read as:

  (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
  (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
  m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
  })(window,document,'script','https://www.google-analytics.com/analytics.js','ga');

is currently reading as instead:

(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
  (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new
Date();a=s.createElement(o),

m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
  })(window,document,'script','https://www.google-analytics.com/analytics.js
','ga');

It is also showing an error of no http response detected.
Currently the site is accessible via both the www and non-www version of the domain name
Usually one would be chosen as the preferred one for use and indexing and then the non-preferred one

would be 301 perm. redirected to the chosen one.
Then in GA the Property and View settings should also be setup with website url to match the chosen version

of the domain

 

 

 

 

Bronwyn Vourtis, Google Analytics Top Contributor
Was my response helpful? If yes, please mark it as the ‘Best Answer.’ Learn how here

View solution in original post

Marked as Best Answer.
Solution
Accepted by topic author Pat B
January 2017

Re: Google Analytics stopped

Top Contributor
# 2
Top Contributor

Hi :-)
Seems to  be a couple of issues.. 

there is a line break in the first section of code that is causing an error with the script when the page is rendering
Should read as:

  (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
  (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
  m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
  })(window,document,'script','https://www.google-analytics.com/analytics.js','ga');

is currently reading as instead:

(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
  (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new
Date();a=s.createElement(o),

m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
  })(window,document,'script','https://www.google-analytics.com/analytics.js
','ga');

It is also showing an error of no http response detected.
Currently the site is accessible via both the www and non-www version of the domain name
Usually one would be chosen as the preferred one for use and indexing and then the non-preferred one

would be 301 perm. redirected to the chosen one.
Then in GA the Property and View settings should also be setup with website url to match the chosen version

of the domain

 

 

 

 

Bronwyn Vourtis, Google Analytics Top Contributor
Was my response helpful? If yes, please mark it as the ‘Best Answer.’ Learn how here

Google Analytics stopped

Visitor ✭ ✭ ✭
# 3
Visitor ✭ ✭ ✭

Thank you so very much. I will have both issues corrected. Your fast response is greatly appreciated.

Google Analytics stopped

Top Contributor
# 4
Top Contributor

You're welcome, pls post back if there continues to be an issue

 

Thanks :-)

Bronwyn Vourtis, Google Analytics Top Contributor
Was my response helpful? If yes, please mark it as the ‘Best Answer.’ Learn how here