|
ronaldheft
Plugin Developer
Joined: March 13th, 2009, 3:17 pm Posts: 518 Location: Allentown, PA
|
 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
|