Install via Google tag manager


Google Tag Manager is a tag management utility enabling teams to dynamically control which tracking tags are included within their application. Once installed, you can control all your tracking code via the Google Tag Manager interface. If you have Google Tag Manager installed within your application, adding Pendo takes just a few minutes.

Installation Process

  1. Open Google Tag Manager in your web browser. Click on Tags and then click New.

  2. Choose Custom HTML Tag and paste in the block from the Pendo Site Settings in the Configure Tag area.

  3. Within the Pendo snippet, there are blocks to specify information from the logged in user (visitor) and customer (account). Populating this information depends on your Google Tag Manager installation, but would generally require the use of Google Tag Manager Variables. Once your Variables are set-up, you can specify them in your Pendo installation as {{variable_name}}.

    Note: Pendo expects the Visitor and Account ID’s to be globally unique.


  4. Next, you will want to set the Triggering settings for this tag by selecting the "Choose a trigger to make this tag fire…" pane. Once this opens, note that Page View trigger type for All Pages is the default trigger. This trigger will effectively load the Pendo snippet every time that a page is viewed by your users - this is desirable behavior. However, due to the fact that Pendo records users’ interactions with the elements of your application in between page loads, you will need to add an additional trigger: add a Clicktrigger type for All Elements.


Does Google Tag Manager support conditional logic in the Pendo snippet?

Yes, Google Tag Manager executes the Pendo snippet as JavaScript.