I need to know how many times the video in my website is played and track it with universal analytics event tracker. I have set the code like this:
<center><video width="100%" height="auto" controls><source src="http://ift.tt/1FbvnM2" type="video/mp4" onClick="ga('send', 'event', 'video', 'view', 'reto-trailer');"></video></center>
But I don't see it triggering the event in Real Time inside Google Analytics. Could you please tell me if I am doing something wrong with the code, and how to do it right??
Thanks!
Aucun commentaire:
Enregistrer un commentaire