vimeo gtm4wp.mediaPlaybackPercentage is “undefined” for 0%
-
Hi!
First off, thanks for this amazing plug-in. You have made my job 100000% easier!
I just implemented vimeo video tracking. Works like a charm except for 1 thing.I created a custom variable {{vimeoPercentage}} based on mediaPercentage.
I have a GA Event tag which uses {{vimeoPercentage}} as the event action when it’s triggered by gtm4wp.mediaPlaybackPercentage.
It all works fine, except the tag fires with the event action value of “undefined” for {{vimeoPercentage}} instead of “0” when the video starts.
When the mediaPlayerState becomes “play”, I see {{vimeoPercentage}} changes from “undefined” -> 0 -> 10 -> … as the video plays.
I only see the trigger fire for “undefined” and “10”. Shouldn’t it fire for “0” instead of “undefined”?
Also, it doesn’t fire for 100. So I have to try to combine my data in reports to get the mediaPlayerState of ended to represent 100% complete.Many thanks,
JannetteThe page I need help with: [log in to see the link]
- The topic ‘vimeo gtm4wp.mediaPlaybackPercentage is “undefined” for 0%’ is closed to new replies.