Keyword

How to enable Javascript API for Google Tag Manager to liste

  • Irene Sutherland
  • Irene Sutherland's Avatar Topic Author
  • Offline
  • New Member
More
8 years 9 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
8 years 9 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
8 years 9 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
8 years 9 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.


Powered by Kunena Forum