GoogleChromeLabs / third-party-capital

A library that provides best practices for loading popular third-parties
Apache License 2.0
117 stars 8 forks source link

fix: assign dataLayer from gtag to the datalayers object #56

Closed huang-julien closed 3 months ago

huang-julien commented 3 months ago

Hey :wave:

This PR fix #55 . The issue is that we were creating our own dataLayers object to store the arrays from gtm. One thing was missing which is the l query parameter in the external script : https://developers.google.com/tag-platform/tag-manager/datalayer

huang-julien commented 3 months ago

probably needs to wait https://github.com/GoogleChromeLabs/third-party-capital/pull/54 to be merged first

huang-julien commented 3 months ago

closing since we're going to rollback