Mobile app version of vmapp.org
Login or Join
Ogunnowo487

: How to not monitor traffic on a single page but the rest of the domain is covered? I am using Google Analytics app from cloudflare which is awesome and they manage it to cover everything

@Ogunnowo487

Posted in: #GoogleAnalytics

I am using Google Analytics app from cloudflare which is awesome and they manage it to cover everything even the error pages and I like that but there is one page and one page only that I don't want it to be covered. How can i stop the Google Analytics from monitoring it?

10.02% popularity Vote Up Vote Down


Login to follow query

More posts by @Ogunnowo487

2 Comments

Sorted by latest first Latest Oldest Best

 

@LarsenBagley505

You can also wrap your Google analytics code in a conditional statement pseudo php code using a page ID from a dynamic website. You may also use the current URL path in place of a page ID for static pages. This will prevent tracking code from firing on the page you do not want to track

<?php

$dt = 123; // The page ID if available of the page to NOT track

if($current_page_id != $dt){
...show analytics code
}
?>

10% popularity Vote Up Vote Down


 

@Jessie594

Login to Google Analytics and select the view in question.

Top right click admin > filters > new filter > custom filter

You could use page title if it's a unique title - just enter the title in the filter text box.

Or you could filter the URL by typing in all or part of the URL.

Screen shot attached.

10% popularity Vote Up Vote Down


Back to top | Use Dark Theme