Appearance
Google Tag Manager - Advanced Options
Suppression Tag
Use this tag if you would like to suppress activity on specific pages of the website.
- Suppression Trigger
- Choose Triggers from left menu > New > Name trigger ‘Suppression Trigger’
- Choose DOM Ready trigger type from list > Some DOM Ready Events
- 1st dropdown: Page Path > 2nd dropdown: Contains > Insert URL path that you would like to suppress
- Suppression Tag
- Choose Tags from left menu > New > Name tag ‘Suppression Tag’
- Choose Custom HTML from list
- Insert the following code snippet into the HTML box
javascript<script defer async> MGX = typeof MGX === 'undefined' ? [] : MGX; MGX.push({ AccessKey: 'Your_Access_key', Info: 'suppress' }); </script>
- Update access key placeholder (Your_Access_Key), leaving single quotes intact.
Ex.) AccessKey: ‘000000000000’ - Set trigger to the suppression trigger you created above (suppression trigger)