Keyword

How to enable Javascript API for Google Tag Manager to liste

  • Irene Sutherland
  • Irene Sutherland's Avatar Topic Author
  • Offline
  • New Member
More
9 years 10 months ago #158366 by Irene Sutherland
Hi there,

I'm trying to set up a tag in Google Tag Manager so I can track the playing of YouTube videos.

I am using AllVideos plugin (which is great by the way - thank you!).

This YouTube video explains how to set up such a tag, but it relies on using the YouTube embed code. The method requires adding the following code at the end of the YouTube URL:

?enablejsapi=1

Is it possible to set this up with your AllVideos plugin??

Thanks in advance for your your help

Rene

Please Log in or Create an account to join the conversation.

  • Krikor Boghossian
  • Krikor Boghossian's Avatar
  • Offline
  • Platinum Member
More
9 years 10 months ago #158371 by Krikor Boghossian
Replied by Krikor Boghossian on topic How to enable Javascript API for Google Tag Manager to liste
You need to enter the entire URL instead of just the ID so you can pass these arguments.

Please Log in or Create an account to join the conversation.

  • Irene Sutherland
  • Irene Sutherland's Avatar Topic Author
  • Offline
  • New Member
More
9 years 10 months ago #158388 by Irene Sutherland
Thanks Krikor,

That worked a treat!

I realised that was the solution after I submitted my post.

I've got the data now reading nicely to my Google Analytics account.

Best regards,

Rene

Please Log in or Create an account to join the conversation.

  • Krikor Boghossian
  • Krikor Boghossian's Avatar
  • Offline
  • Platinum Member
More
9 years 10 months ago #158392 by Krikor Boghossian
Replied by Krikor Boghossian on topic How to enable Javascript API for Google Tag Manager to liste
You 're welcome Rene :)

Please Log in or Create an account to join the conversation.

More
1 year 3 days ago #186756 by Billy B. Edwards
I know this thread is a bit older, but since then server-side GTM has become a thing. I’m wondering if that could be another way to handle listening for these events. I found this write-up: — do you think something like that could work with AllVideos, or would it still run into the same limitations?

Please Log in or Create an account to join the conversation.


Powered by Kunena Forum