Enable Datalayers for Hubspot with GTM

211 Views Asked by At

Is there any way to enable Data layers in a website (built-in Hubspot) with GTM? Is there any article or tool?

1

There are 1 best solutions below

0
On

If you already deployed GTM on the site, then you have it. GTM deploys dataLayer automatically. You can check it in the dev console.

If you need to push certain things into it, Hubspot lists its globally accessible variables to be used here but you can as well just use them without dataLayer since GTM has all the JS presence needed to grab those variables from the global scope.

And here is an example of pushing the data from hubspot to the dataLayer.