DEV Community

Discussion on: HTML5 Video Tracking by User ID Using Google Tag Manager

Collapse
steveadamsfixedit profile image
steveadamsfixedit

Im a newbie to GTM...please forgive me! I'm trying to implement this with the video.js player and I'm having some difficulty since I followed another GTM recipe here:wcg.de/fileadmin/masterTemplate/Re...

Might you be able to provide integration advise? Specifically, where to join in the cme Data Layer Variable to the custom java script?

Collapse
marklchaves profile image
mark l chaves Author • Edited on

Hello @steveadamsfixedit ,

If I understand your question, you should be able to follow the instructions in The Glue section of the article above (as an example) to send your user ID variable to GA.

I assume you would add it to the WCG code where they call dataLayer.push() in their eventToDataLayer() function.

Does that make sense?

Thanks!