Git Product home page Git Product logo

Comments (11)

sanderheilbron avatar sanderheilbron commented on September 24, 2024

You have to create a custom HTML tag and include the complete script inside this tag. Then trigger this tag so that the script fires on gtm.dom.

from vimeo.ga.js.

ycohain avatar ycohain commented on September 24, 2024

Thanks for the reply. That's what I had tried and it didn't work - do I need to add something like <script> and </script> to the beginning and end? (not very technical person here...) Or should copy/pasting what you have be all I need to do? I know the rule part of it is setup properly.

from vimeo.ga.js.

sanderheilbron avatar sanderheilbron commented on September 24, 2024

Did you configure GTM by following all steps described in issue #8 ?

from vimeo.ga.js.

ycohain avatar ycohain commented on September 24, 2024

I did. I just tried again and checked in debug mode and the tags don't work and I actually see the text of the HTML tag all the way at the bottom of the web page. Am I supposed to add something to the HTML tag like <script> and </script> at the beginning and end? Thanks again!

from vimeo.ga.js.

sanderheilbron avatar sanderheilbron commented on September 24, 2024

You have to add a <script> open and </script> closing tag if that is what you mean with a beginning and end.

<script>
 /*!
 * vimeo.ga.js | v0.4
 * Copyright (c) 2014 Sander Heilbron (http://www.sanderheilbron.nl)
 * MIT licensed
 */

$(function() {
  // Check for iframe

...

</script>

from vimeo.ga.js.

ycohain avatar ycohain commented on September 24, 2024

That's what I figured and tried it like that before and again just now but still no luck. Any other guesses? I'll keep playing with this tomorrow...thank you again for your help!

from vimeo.ga.js.

ycohain avatar ycohain commented on September 24, 2024

Hi again. I'm still having issues with getting this to work. I copy/pasted your vimeo.ga.js code into a custom HTML tag, set to fire when event equals gtm.dom, created the macros as datalayer variables, created an analytics event tag that pulls in the macro values and fires when event equals Vimeo. I'm fairly certain I'm following the steps properly - I've done this for similar types of tags (youtube tracking, scroll tracking) and have gone through your steps multiple times, but still no luck.

Any suggestions? Thanks again so much - I'm setting this up for a great non profit organization and they're very excited about getting this data, so your help is very appreciated.

from vimeo.ga.js.

sanderheilbron avatar sanderheilbron commented on September 24, 2024

Could you share the source or URL of the page? And which version of jQuery do you use?

from vimeo.ga.js.

ycohain avatar ycohain commented on September 24, 2024

If you don't mind taking a look that would be amazing, thank you so much! I believe they're using version 1.7.1, and here's one page that has video - http://www.newvictory.org/Show-Detail?ProductionId=6021

from vimeo.ga.js.

sanderheilbron avatar sanderheilbron commented on September 24, 2024

The page has several iframes requesting different Vimeo videos. Unfortunately the script does not support multiple videos per page. The script is limited in tracking video player events of just one Vimeo video per page.

from vimeo.ga.js.

ycohain avatar ycohain commented on September 24, 2024

Ah, ok - thank you so much for the clarification and for looking into this. I'll see if we can figure something out. Thanks again!

from vimeo.ga.js.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.