
I see code at the top of my page.
There are two common reasons for code appearing at the top of a page:
1. wp_head tag is placed wrong in the theme.For whatever reason, some theme authors place WordPress' <?php wp_head(); ?> tag in the wrong location, usually below the </head> HTML tag. If you just installed Google Analyticator, this is most likely your problem. To resolve this issue:
- Open up your theme's header.php file (theme files are typically found in /wp-content/themes/THEMENAME/).
- Look for the <?php wp_head(); ?> tag. This will most likely be near the bottom.
- Move this tag to the last line before </head>. After moving the tag, the two lines should look like:
2. Broken or incorrect code placed in additional tracking code sections.On occasion, broken or incorrectly placed additional tracking code will mess up the Analytics script. To check if this is your problem, open up Analyticator's settings page at Settings > Google Analytics. Scroll down in the Advanced section to the "Additional tracking code" section (there are two of them).
If you don't know what additional tracking code is, it is recommended to complete empty out both of those fields so nothing is in them. If you placed your tracking code here thinking Google Analyticator was not displaying code, be rest assured, tracking will occur. See
this FAQ for more information.
If you know you need custom tracking code, verify code placed in the box is only Javascript (no HTML tags) and uses
the latest async tracking methods.