Solved

Google Analytics not tracking anylonger

Posted on 2009-07-03
5
210 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Read about why website design really matters in today's demanding market.
This code takes an Excel list of URL’s and adds a header titled “URL List”. It then searches through all URL’s in column “A”, looking for duplicates. When a duplicate is found, it is moved to the top of the list. The duplicate URL’s are then highlig…
The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.
Use Wufoo, an online form creation tool, to make powerful forms. Learn how to selectively show certain fields based on user input using rules to gather relevant information and data from your forms. The rules feature provides you with an opportunity…

911 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

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now