Skip to main content

We can get the Amplitude GTM tag to fire in one environment, but can’t seem to get it to fire in another.  The only thing I can really see between the two is that on the environment where it works, we don’t use DataLayer gtm whitelisting.  On the environment where it doesn’t fire, we do.

 

On the non working environment - we have the following settings in our DataLayer gtm.whitelist:

  1. gtm.whitelist: Array(6)
    1. 0: "google"
    2. 1: "nonGooglePixels"
    3. 2: "nonGoogleScripts"
    4. 3: "nonGoogleIframes"
    5. 4: "customScripts"
    6. 5: "customPixels"
    7.  
      length: 6

Might this be the source of our difficulty?  And if so, what ought we include in there?  I would’ve thought that nonGoogleScripts would encompass it.

When I turn off the whitelisting - the tag fires properly.  So apparently that must be it.

I’d prefer not to disable the whitelisting. What value ought go there in order to cover Amplitude?


Reply