Solved

Suppress Page View on one specific page

  • 26 February 2024
  • 3 replies
  • 63 views

Hi,

Is there a way to prevent page view tracking on one specific page of our application? We want to track them in most places, but there are a couple of pages we’d like to avoid. Is that possible?

 

Thanks!

icon

Best answer by Saish Redkar 27 February 2024, 19:23

View original

3 replies

Userlevel 7
Badge +10

Hi @Jorge Mir Alvarez 

Are you using the Browser SDK for instrumenting page view events?

@Saish Redkar yes, we are.

Userlevel 7
Badge +10

If you are tracking the default page view events, then there are couple of configuration options in the SDK which can enable some control on what to track and omit - https://www.docs.developers.amplitude.com/data/sdks/browser-2/#advanced-configuration-for-tracking-page-views

I haven’t used this option, but you can give it a shot. If not, then you would need to write the blocking condition yourself on your client instrumentation code.

Amplitude gives the ability of blocking certain events on their side, but currently that is limited to only the entire event and not on a given event property value.

 

 

Reply