Get hands-on experience with 20+ free Google Cloud products and $300 in free credit for new customers.

Blocking mobile app events via Google Tag Manager

Hi there, 

Hope someone will be able to help me.

What i'm trying to do is to block certain events to be sent to google.  I used a Google Analytics (Firebase) tag, chose a Block event action, and set custom events as the trigger.    (when swipe backward or swipe forward occur, block them from sending to Google Analytics) 

The issue i got is blocking mobile app events via Google Tag Manager seems not stopping the events sending to Google Analytics.   

Am i using the correct tag type? Is it the correct way to block events to be sent to Google Analytics?

Any help will be appreciated

sysph_0-1720790821321.png

 

1 1 350
1 REPLY 1

Hello,

Thank you for contacting Google Cloud Community!

You're on the right track with using Google Tag Manager (GTM) to block specific events from reaching Google Analytics. However, the "Block Event Action" tag type isn't the ideal solution for your scenario. Here's how you can do it:

Filter Events in GA:

  • In your Google Analytics property settings, create a filter that excludes events based on a specific parameter or custom dimension associated with your swipe events.
  • Configure the filter to exclude events where the "swipe_direction" custom dimension (or similar parameter) equals "backward" or "forward."

Regards,
Jai Ade