Solved

Google Analytics not tracking anylonger

Posted on 2009-07-03
5
212 Views
Last Modified: 2013-12-07
My analytics was working fine until a week ago and now it isn't tracking at all.  I do know that amount of people who have visited so it shouldn't be saying zero.

Any thoughts,
Kel
0
Comment
Question by:kellyputty
  • 3
  • 2
5 Comments
 
LVL 10

Expert Comment

by:Tyler Laczko
ID: 24772853
log into your account on analytics and verify the code matches on you website pages.

also right click one of your website pages and VIEW SOURCE

make sure the google code is in there and appears correctly.
0
 

Author Comment

by:kellyputty
ID: 24773055
In analytics I see "UA-9093249-1.  When I did afind on my home in source I didn't see "UA-9093249-1".  It must have been there a week ago, not sure why it got deleted.  Where in analytics can I acquire the code again with the same Id.  Also where do I copy and paste it in my home page?

Thanks for the help,
Kel
0
 
LVL 10

Expert Comment

by:Tyler Laczko
ID: 24773228
You can just add it inside the <body> tag at the end.


<script type="text/javascript">
var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
</script>
<script type="text/javascript">
var pageTracker = _gat._getTracker("UA-********");
pageTracker._initData();
pageTracker._trackPageview();
</script>

Open in new window

0
 
LVL 10

Accepted Solution

by:
Tyler Laczko earned 500 total points
ID: 24773247

<script type="text/javascript">
var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
</script>
<script type="text/javascript">
try {
var pageTracker = _gat._getTracker("UA-**********");
pageTracker._trackPageview();
} catch(err) {}</script>

Open in new window

0
 

Author Closing Comment

by:kellyputty
ID: 31599593
Thanks.
0

Featured Post

Master Your Team's Linux and Cloud Stack!

The average business loses $13.5M per year to ineffective training (per 1,000 employees). Keep ahead of the competition and combine in-person quality with online cost and flexibility by training with Linux Academy.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Boost your ability to deliver ambitious and competitive web apps by choosing the right JavaScript framework to best suit your project’s needs.
FAQ pages provide a simple way for you to supply and for customers to find answers to the most common questions about your company. Here are six reasons why your company website should have a FAQ page
This video teaches users how to migrate an existing Wordpress website to a new domain.
This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.

773 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question