How to use Google Analytics on Wordpress?

12 replies
  • WEB DESIGN
  • |
I want to use Google Analytics so I signed up and it gave me a code to paste to the specific sites I want to track. I don't know where to paste it. Where in wordpress do I go to add Google Analytics?

Thanks
#analytics #google #wordpress
  • Profile picture of the author leppozdrav
    I need the same to be done in Joomla too.
    {{ DiscussionBoard.errors[4425606].message }}
  • Profile picture of the author Tomos Wyn
    In a standard WordPress theme, open up footer.php and just before the </body> tag paste the analytics code.
    {{ DiscussionBoard.errors[4425635].message }}
    • Profile picture of the author danilolee
      The new asynchronous Google Analytics code should be placed on the header.

      Originally Posted by Tomos Wyn View Post

      In a standard WordPress theme, open up footer.php and just before the </body> tag paste the analytics code.
      {{ DiscussionBoard.errors[4427496].message }}
  • Profile picture of the author Ryan Butz
    You can also just install the Google Analytics Plugin here: WordPress › Google Analytics « WordPress Plugins

    I find this the better solution so you don't have to leave your dashboard to get your statistics.
    {{ DiscussionBoard.errors[4426472].message }}
    • Profile picture of the author alhemicar
      Originally Posted by Ryan Butz View Post

      You can also just install the Google Analytics Plugin here: WordPress › Google Analytics « WordPress Plugins

      I find this the better solution so you don't have to leave your dashboard to get your statistics.
      Yes I prefer plugins also.Just browse plugins database you can find almost anything.
      Signature

      ****************************

      Read the rules -- no affiliate links allowed.

      ***************************

      {{ DiscussionBoard.errors[4426522].message }}
  • Profile picture of the author sup3r86
    thats right, use analytics plugin. Its much better than adding the code to header/footer of the them.
    {{ DiscussionBoard.errors[4427517].message }}
  • Profile picture of the author bwiemers
    First have a look at the theme you are using, if it is a premium theme it may already have google analytics functionality built in.

    Second, I would go for a good Google Analytics plugin. Go to plugins and do a search for Google analytics.

    Here are some that I've found:

    Google Analyticator
    Web Ninja Google Analytics
    Google Analytics for WordPress
    The Google Analytics for WordPress
    Google Analytics Dashboard
    Simple Google Analytics
    {{ DiscussionBoard.errors[4429681].message }}
  • Profile picture of the author addyj672
    I think it is better to install wordpress plugin for google analytic, As forum member suggested it is good option to work on. Try this it will help you in setting up google analytic for your wordpress....
    {{ DiscussionBoard.errors[4429750].message }}
  • Profile picture of the author mijagi
    You could use a plugin to do that. But why would you when it's very easy to do it manually..

    Dashboard -> appearance ->> Editor->>> Choose "Header.php" ->>>> Put GA code right before the "</head>" tag.

    Thats it! No plugins eating up your server resources..
    Signature

    {{ DiscussionBoard.errors[4437416].message }}
    • Profile picture of the author luisserrano
      Originally Posted by mijagi View Post

      You could use a plugin to do that. But why would you when it's very easy to do it manually..

      Dashboard -> appearance ->> Editor->>> Choose "Header.php" ->>>> Put GA code right before the "</head>" tag.

      Thats it! No plugins eating up your server resources..
      Yes that's right, it's on header.php file!
      Signature

      Check my video service here on WF - Video Service
      Also, find me on Social Networks!
      Facebook | Twitter | LinkedIn| VideoHive | Revostock

      {{ DiscussionBoard.errors[4460604].message }}
  • Profile picture of the author brianman
    Yeah, just install the plugin that others have posted on here. You'll install it and activate it. Then, you need to enter the unique analytics ID in the plugin and you're done. Don't mess with header/footer files.
    {{ DiscussionBoard.errors[4465096].message }}

Trending Topics