View unanswered posts | View active topics It is currently September 6th, 2010, 11:00 am



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 
My tracking code is not displaying correctly. What's wrong? 
Author Message
Plugin Developer
User avatar

Joined: March 13th, 2009, 3:17 pm
Posts: 518
Location: Allentown, PA
Post My tracking code is not displaying correctly. What's wrong?
If you believe your tracking code is not working, or just want to verify the code is present, follow these steps.

View the Source of Your Page for the Tracking Code

To see if your tracking code is present, right click your page and select View Source (this may be named something different depending on your browser). When the code is open, do a search (Command + F or Control + F) for the words "Google Analyticator". If the search should find the code. If it does, congratulations, your code is displaying correctly. If it doesn't display, try the following steps.

1. Verify you're not logged into WordPress.

Google Analyticator by default removes the tracking code when logged in as an administrator. To check for your tracking code, log out of WordPress, and view the page source again.

If you would like tracking code visible when logged in (thus tracking your visits as well), enable the "WordPress admin logging" setting found on the Settings > Google Analytics settings page in WordPress.

2. Verify Your Theme Has the Correct Code

Google Analyticator relies on two WordPress tags, <?php wp_head(); ?> and <?php wp_footer(); ?>. Sometimes theme developers forget to put these tags in their theme. To make sure the tags are present, open up your theme's header.php and look for <?php wp_head(); ?>. If that line is not there, add it before the </head> tag. For the footer, open up footer.php. If that tag is not there, add it before </body>. Check again, and hopefully your tracking code will now be displayed.

Note: As of Google Analyticator 6.0, wp_footer no longer matters. However, if your wp_footer is missing or in the wrong place, I'd still advise adding it or fixing it.

_________________
Ronald Heft
Plugin Developer


March 13th, 2009, 4:28 pm
Profile WWW
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by ST Software for PTF.
Localized by MaĆ«l Soucaze © 2010 phpBB.fr