I have my Google Analytics tracking code held in my header.php include file. How can I remove this from certain pages? There are a couple of pages I don’t wish to track for various reasons.
I’ve tried a regex filter in GA but to no avail.
Thanks
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
If it’s inserted in your own server side code, why don’t you just add some
if()around it to only embed it if some regex doesn’t match (check current request) or some flag isn’t set? Filtering on GA sounds a bit like a not so optimal solution as the dataset will be created already.