All Collections
Getting Started
Web Push Integration
How to integrate Batch's snippet using Google Tag Manager?
How to integrate Batch's snippet using Google Tag Manager?

You can integrate Batch web push using GTM.

Selma avatar
Written by Selma
Updated over a week ago

You can integrate Batch's snippet via Google Tag Manager by following the steps below:

1. Create a tag

Click on "New tag" and select "Custom HTML" as your tag configuration:

Paste your Batch snippet in the HTML textbox:

2. Define a trigger

The snippet should be triggered on all your website's pages (Select "All pages" as a firing trigger) unless there are subdomains you want to exclude, in which case you should add exceptions. 

To add an exception to your tag triggers, you should create a new trigger that will be used as an exclusion trigger. 

If you want to exclude all subdomains, use the following condition:

If you want to exclude a list of subdomains, use the following conditions: 

Once your exclusion trigger has been created, add it to your tag's trigger settings as an exception:

That’s it, when you are all set, release the new tag in staging or in production. Make sure you test your integration correctly by following the steps described here: Testing my web push integration.

This article belongs to Batch's FAQ. Need more help? Find insightful articles, documentation, case & market studies, guides, and even more in our website's Resources section on and our blog.

Did this answer your question?