Google Analytics

  • Author
    Posts
  • #27229
    Dave

    I need to know where I add the google analytics script so that it will work and google will fuction. Google says add a file called:
    Create a PHP file named “analyticstracking.php” with the script for GA include it on each PHP template page.

    Then, add the following line to each template page immediately after the opening<body> tag:
    <?php include_once(“analyticstracking.php”) ?>

    I have not clue how to do this and is there more than one template page – I really need the google analytics to work and you all need to add a point and click way to drop code into the pages

    #27341
    walt

    You can download any analytics plugin and plug your code into that.

    Or…

    Just put it in your header.php or footer.php and don’t update your theme.

    #27343
    Dave

    I tried just putting in the header but didnt work and google is suggesting the creation of a PHP file but no idea how to do that or what directy it would then live in

    #27366
    Walt

    The only thing the creation of a .php file does is puts the code into that .php file. You then add more code to your sites header to call (include) that file.

    For the sake of your sanity, just download an analytics plugin because you’re turning a molehill into a mountain.

    #27418
    Dave

    OK Walt do you have a suggestion for the one to download and how it integrates to a managed wordpress site?

    #27497
    Walt

    Google Analytics Dashboard for WP is good

Viewing 6 posts - 1 through 6 (of 6 total)

The topic ‘Google Analytics’ is closed to new replies.