August 18th, 2013, 09:17 PM
Google analytics PHP Implementation
My index file is in the root and all supporting files are in a sub directory named HTML. The code I have in my index page is...
and it works fine. But I cannot get it to work on any of the supporting pages. The pages are in the same HTML directory as the analyticstracking.php file. I am using the following code..
<?php include_once("HTML/analyticstracking.php") ?>
I have tried including this line in the header and the body without success. I originally thought something was wrong with my PHP code. But now i'm starting to wonder if I have google analytics setup correctly. On the main page code page, I have all 4 addirional tracking settings off. But it should still be tracking all pages with tracking code under my main domain. Can anyone help me with this. Thanks.
<?php include_once("analyticstracking.php") ?>
August 6th, 2014, 11:42 AM
Your supporting pages are in .html please conver that pages to .php
August 6th, 2014, 12:01 PM
Why are you replying to year old threads?
There are 10 kinds of people in the world. Those that understand binary and those that don't.
August 6th, 2014, 12:18 PM
Because he's a spammer who is very bad at his job. I'm watching him.
HEY! YOU! Read the New User Guide and Forum Rules
"They that can give up essential liberty to obtain a little temporary safety deserve neither liberty nor safety." -Benjamin Franklin
"The greatest tragedy of this changing society is that people who never knew what it was like before will simply assume that this is the way things are supposed to be." -2600 Magazine, Fall 2002
Think we're being rude? Maybe you asked a bad question
or you're a Help Vampire.
Trying to argue intelligently? Please read this.