WordPress.org

Ready to get started?Download WordPress

Forums

Google Analytics (4 posts)

  1. recharger
    Member
    Posted 7 years ago #

    I've signed up for Google Analytics, to track readers of my blog. It gave me code and the following instructions:

    "Click in the box below to select all code. Copy and paste the code segment into the bottom of your content, immediately before the </body> tag of each page you are planning to track. If you use a common include or template, you can enter it there."

    Where do I paste in the code? I looked in my themes CSS editor, but couldn't find "content" or the </body> tag.
    I also looked in my FTP, but couldn't find anything there.
    Can someone tell me precisely where to paste this code (and please, keep the techie jargon to a minimum. I'm not a techie)
    Thanks.

  2. febwa1976
    Member
    Posted 7 years ago #

    I put it in header.php of my theme folder

  3. kitkaplan
    Member
    Posted 7 years ago #

    febwa1976. Can you be a bit more specific about where?

  4. jimshorts
    Member
    Posted 7 years ago #

    Hello.

    Open header.php depending on which theme you use, some themes may be different.

    Now, you should see something like this.
    <title><?php bloginfo('name'); ?><?php wp_title(); ?></title>

    Paste your Google Analytics code just above this code.
    I always make a backup of each file before I edit it in case there is a problem.

    Now upload the file, go to your website and right click
    somewhere on the site, View Source Code.
    You should see you code. You can also see if the site connect to Google Analytics by watching the status bar of your browser.

Topic Closed

This topic has been closed to new replies.

About this Topic