MarktetingHub provides tracking code for website and web app. How do we modify that code to accept information from GTM dataLayer?
eg. This web application code:
- <script>var w=window;var p = w.location.protocol;if(p.indexOf("http") < 0){p = "http"+":";}var d = document;var f = d.getElementsByTagName('script')[0],s = d.createElement('script');s.type = 'text/javascript'; s.async = false; if (s.readyState){s.onreadystatechange = function(){if (s.readyState=="loaded"||s.readyState == "complete"){s.onreadystatechange = null;try{loadwaprops("x9x9x9x9x9x9x","x9x9x9x9x9x9x","x9x9x9x9x9x9x","x9x9x9x9x9x9x","0.0");}catch(e){}}};}else {s.onload = function(){try{loadwaprops("x9x9x9x9x9x9x","x9x9x9x9x9x9x","x9x9x9x9x9x9x","x9x9x9x9x9x9x","0.0");}catch(e){}};};s.src =p+"//marketinghub.zoho.eu/hub/js/WebsiteAutomation.js";f.parentNode.insertBefore(s, f);</script>
How/where would I input to send info from GTM dataLayer?
Below is example code (from another web app we have used) for tracking and to send identity/login data using GTM dataLayer.
- <script src = "https://ZOHOMH.js"></script>
- <script>
- ZOHOMH.identify(
- "{{userID}}", // Used to identify users - does ZOHOMH USE SOMETHING LIKE THIS?
- {
- first_name: "{{firstName}}", // First name
- last_name: "{{lastName}}", // Last name
- emailid: "{{email}}", // Email address
- created_at: "{{createdAt}}" // Signup date as a Unix timestamp
- }
- );
- </script>
Any help/advice appreciated. I have the basic tracking working, but would like to connect identity/login information to the user.
Google Tag Manager is preferred method as dataLayer is already configured and so would not require input from dev team.
Thanks