Integrate google analytics into wordpress with wpanalytics

In order to integrate google analytics into wordpress, but there is no existing way. If you modify the code directly, the modifications will most likely be overwritten by the future update. So the best is to create a plugin for that.

WpAnalytics is a plugin enable you to setup analytics on wordpress.

Here are the steps to setup on your wordpress:

1. Download plugin files here: wpanalytics.zip

2. Extract and your will have a wpanalytics folder

3. Upload the wpanalytics folder to the `/wp-content/plugins/` directory on your server

4. Activate the plugin in your admin panel

5. You will see a WpAnalytics menu appear in the settings, go in and paste the google analytics code there.

wp analytics settings page

wp analytics settings page

That’s it, not rocket science.

5 thoughts on “Integrate google analytics into wordpress with wpanalytics

  1. // FIX-ME : main.php:108~110 // blank lines/spaces may cause php header error.
    // THE-FIX : delete lines after the close tag “?>”
    (WordPress:v3.x,Analytics For WordPress:v3.0.0)

  2. Hi – your cool plug in is not generating any info on the google analytic site.
    It tells me that there is a java script error and that teh snipit is not being seen on the site
    “Access denied. Please try relaunching In-Page Analytics from the report.[Error: 20006] ” up top and in a box over the insite analytic it tells me this

    We’ve identified problems in your setup. These may cause problems loading In-Page Analytics.

    ” Your site doesn’t load ga.js from Google. If you host the Google tracking code on your own servers, it isn’t updated automatically and can miss important changes.
    We didn’t find a tracking snippet on your site. In-Page Analytics cannot load. Please make sure you have tracking installed correctly. If your snippet is included in a separate JavaScript file, you’ll have to manually check it is being loaded correctly.”

    can you help please – thank you.

    • thanks using my “cool” plugin.
      what is your site having problem? from what you are saying, I bet you might not paste the ga tracking code into my plugin correctly. Please be sure you have the correct tracking code.

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>