Pirsch Docs>Integrations>Google Tag Manager

Google Tag Manager

23. Aug, 2021

You can use the Google Tag Manager (GTM) to add the Pirsch snippet to your website.

  1. in your Google Tag Manager account, click on Tags and New
  2. enter a name for the Tag and click on Choose a tag type to begin setup
  3. select Custom HTML and paste the Pirsch snippet (from the domain setup or settings) into the HTML field and activate document.write
  4. next click on Choose a trigger to make this tag fire and select All Pages (or filter the pages you would like to use the script on)
  5. to finish the setup, click Save, Submit (top right corner), and Publish

After you have finished the setup, you can test the integration as described here.

Considerations When Using the Tag Manager

There are a few things to consider when using the Google Tag Manager: