• I hope there are some people here who have installed Google Analytics in their WordPress sites because the information at Google Help is about as scanty as it can get. I have posted a question at their forum but nothing so far.

    I successfully installed the code in my header.php file and the report is coming in loud and strong. Then I realized I am a large part of the statistics.

    So I followed their directions, on how to Exclude traffic. The easiest first step is creating a filter for an IP address. Did that for my laptop and desktop at my office which has static IP addresses. That did work.

    It gets a bit more complicated when you need to establish a cookie on your computer to insure that you are filtered in a dynamically assigned IP network. They state, “1. Create a new page on your domain, containing the following code:” and the code:
    <body onLoad="javascript:pageTracker._setVar('test_value');">

    As you can see I placed this line of code right after the other Google code in my header.php but this is not working. I am getting an error in my browser’s debug,”ReferenceError: Can’t find variable: pageTracker”

    Their statement suggests that I need to create a page and visit it but this sounds like they mean a static page and of course, WordPress is dynamic.

    Any thoughts? Boy, I need help on this.

    Thanks

Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Google Analytics and WordPress’ is closed to new replies.