Support » Fixing WordPress » installing google analytics

  • I’m still learning and have a blog on here, I recently signed up for Google Analytics but don’t know how to install it on my blog. One set of instructions told me to activate the plug-in which I’m pretty sure I did. But Google Analytics gave me a password (UA-xxxxx) and a piece of code to past into my blog. I don’t know where to enter this password or where to paste this code. Any help will be greatly appreciated, thanks.


Viewing 9 replies - 1 through 9 (of 9 total)
  • the first, u have to register 1 account in
    then you submit that that website is your website, you can search with keyword ” register google analytics

    Thanks. But I went to the website / link you sent me and it looks like it’s in Vietnamese and I can’t read it but thanks anyway.

    Youv’e already got the Alanytics account so it’s just setting it up now. How you do that will depend on the plugin that you are using. There’s a lot of differnt plugins that offer this sort of functionality, so it’s hard to say one thing that will work with them all.

    As a general rule, there should be a settings page in your admin area for that. There’s a few places that it coudl be in, so you’ll have to do some looking around. When you find it, you will enter either your account code (the UA-XXXX number) or the full script. It should be all done in your admin area.

    You can insert the Google Analytics code between <head> and </head> and click verify so that Google will immediately verify it. See here:

    Krishna That’s verification for Google Webmaster tools by using the Analytics code. That’s got nothing to do with the situation here. lylede is aksing how to get the Analytics code into his pages in the first place.

    Sorry, place the code just before the closing </head> tag. See here:

    I have placed like that and it works fine. In some themes like the ones by Genesis, they have sections in their framework to place the code, and they actually go within the head tag. If your theme does not have a place for that, open the header.php (appearance> editor) and locate the tag </head> and paste the code just above that.

    As is said a lot of times on here, over and over, do not add any code to a themes template file. When the them is updated, you will loose your changes.

    If you are going to use a child theme, then it’s OK to do it that way.

    BUT, as the OP has stated right back at the start, they’ve installed a plugin for this, so the plugin is responsible for adding the Analytics code into the sites code. It would be pretty useless to paste the code into the template files when thats what the plugin is for.

    OK, that is fine.

    Ok great, thanks. As soon as I have the time I will try again. Thanks again.

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘installing google analytics’ is closed to new replies.