-
AuthorPosts
-
September 17th, 2014 at 06:35 #27229Dave
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
September 22nd, 2014 at 22:54 #27341waltYou 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.
September 22nd, 2014 at 23:47 #27343DaveI 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
September 24th, 2014 at 13:01 #27366WaltThe 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.
September 26th, 2014 at 00:24 #27418DaveOK Walt do you have a suggestion for the one to download and how it integrates to a managed wordpress site?
October 1st, 2014 at 13:57 #27497WaltGoogle Analytics Dashboard for WP is good
-
AuthorPosts
The topic ‘Google Analytics’ is closed to new replies.