Comments (11)
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.
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.
Did you configure GTM by following all steps described in issue #8 ?
from vimeo.ga.js.
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.
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.
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.
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.
Could you share the source or URL of the page? And which version of jQuery do you use?
from vimeo.ga.js.
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.
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.
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)
- Not Working. HOT 1
- Uncaught TypeError: Cannot read property 'videoPlayed' of undefined HOT 7
- Tracker is Missing HOT 1
- Not working
- Multiple videos on a single page HOT 1
- Not working HOT 1
- Cannot read property of 'split' of undefined HOT 3
- All four data layer calls fire as soon as the page loads
- Issue with events showing up... HOT 2
- No events firings
- Is it possible to re-initialize on an ajax page load?
- TypeError: undefined is not an object (evaluating 'vimeoGAJS.eventMarker[iframeId].videoPlayed')
- TIP: If your main tracking script uses a custom global object name
- Following error: undefined is not an object (evaluating 'e.attr("src").split') HOT 1
- Dynamically add the special parameters into the iframe embed code HOT 1
- vimeo.ga.js:111 Uncaught TypeError: Cannot read property 'split' of undefined
- Only Tracks First Video On A Page?
- How To Get Title Instead of ID HOT 1
- IE11 events not working / Google Tag Manager integration
- events not being tracked in Google Analytics.
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from vimeo.ga.js.