marklchaves / cme-ga4html5vid

WordPress plugin for tracking HTML5 video events in Google Analytics.
GNU General Public License v3.0
0 stars 1 forks source link

video.js tracking #2

Open steveadamsfixedit opened 3 years ago

steveadamsfixedit commented 3 years ago

I'm attempting to incorporate another GTM recipie for recording user interaction with video.js rather than HTML5 Video. https://www.wcg.de/blog/detail/how-to-tracking-videojs-with-google-tag-manager/

I could use some further guidance on setting up the custom javascript injection or more detailed instructions on where and how to install the custom dimension (in GA or GTM?)

here's my test page: https://dev.ceavco.live/mux-analytics/

I'd be more than delighted to discuss compensation for development as a feature request or further integration

marklchaves commented 3 years ago

Hi!

Thanks so much for writing.

I’ll have a look this weekend and get back to you 🙏🏽

mark

On 7 Jul 2021, at 05.59, steveadamsfixedit @.***> wrote:

 I'm attempting to incorporate another GTM recipie for recording user interaction with video.js rather than HTML5 Video. https://www.wcg.de/blog/detail/how-to-tracking-videojs-with-google-tag-manager/

I could use some further guidance on setting up the custom javascript injection or more detailed instructions on where and how to install the custom dimension (in GA or GTM?)

here's my test page: https://dev.ceavco.live/mux-analytics/

I'd be more than delighted to discuss compensation for development as a feature request or further integration

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or unsubscribe.

marklchaves commented 3 years ago

Hello @steveadamsfixedit,

So if you're using the WCG Custom HTML tag they have to track the WordPress user ID, I think you would add it in their evenToDataLayer() function. See the screen capture I've attached.

How_to__Tracking_VideoJS_with_Google_Tag_Manager___WCG

I think it should be similar to what I'm doing here (from my DEV.to article).

https://dev-to-uploads.s3.amazonaws.com/i/y6pc76gpbju2hi2so0e3.png

Does that make sense?

If you have any more questions, please let me know exactly what you've tried so far and where you are stuck.

Thanks!

steveadamsfixedit commented 3 years ago

Thanks so much for getting back to me. Yes, I have some further questions...I went ahead and implemented Vallejo's GTM4 recipe (https://www.analyticsmania.com/google-tag-manager-recipes/html5-video-ga4/) and updated my Google Analytics to the latest version. The Google Settings Variable no longer contains the "add dimension" option since the update to GTM4. Furthermore, the 'field to set' no longer browses to a blank cmeUserID variable even after I create one...rather it allows selection of {{cmeUserID}} in both value boxes. Could I convince you to update your original post for Vallejo's GTM4 recipe?

I contemplated making another post all together, but I didn't know if my original post was so far off topic already. Thinking ahead, I'm going to ask next on how to make the custom report visible in my analytics dashboard that shows user video engagement by User ID. :-)

marklchaves commented 3 years ago

Hello @steveadamsfixedit,

Thanks for the feedback. Correct. GA4 handles custom dimensions differently from UA.

I'd like to try upgrading my plugin to support GA4 :-) I'll let you know when I get an ETA.

Cheers!