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}}'
Tagged:
1