Thank you for supporting the Cloud Customer Connect Community in 2024. It's a gift to work with you!

Look back
You're almost there! Please answer a few more questions for access to the Applications content. Complete registration
Interested in joining? Complete your registration by providing Areas of Interest here. Register

Is there a suggested way to implement data layer scripts for Google Tag Manager with OSF?

Summary:

We need to implement data layer scripts when the page loads and in certain parts of our site.

Content (required):

What is the best way to go about this using OSF? I have seen the react-gtm-module library as an option but I was wondering if there were any other recommended approaches that have already have been done?

Any documentation or suggestions are welcome.

Thank you!

Version (include the version you are using, if applicable):


Code Snippet (add any code snippets that support your topic, if applicable):

Example snippet:

dataLayer.push({

'User_Id':'{{dynamic_variable}}',

'User_Status':'{{dynamic_variable}}'

Howdy, Stranger!

Log In

To view full details, sign in.

Register

Don't have an account? Click here to get started!