Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Vimeo tracking plugin (close #1156) #1212

Merged
merged 1 commit into from
Aug 7, 2023

Conversation

greg-el
Copy link
Contributor

@greg-el greg-el commented Jun 22, 2023

This PR adds a plugin to automatically track Vimeo videos, utilising the Snowplow Media plugin.

@snowplowcla snowplowcla added the cla:yes [Auto generated] Snowplow Contributor License Agreement has been signed. label Jun 22, 2023
videoTitle: await player.getVideoTitle(),
videoWidth: await player.getVideoWidth(),
videoHeight: await player.getVideoHeight(),
// 'getVideoUrl' can fail due to privacy settings
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

All Vimeo getters return a Promise, but it's very difficult to tell if they all can actually fail. The getters all internally run this method but it's hard to track it through to where a failure could occur. Anecdotally, the only method I've had fail is getVideoUrl, but it might be worth wrapping more of these getters in the tryVimeoPromise so we can soft fail on missing data for optional properties.

@greg-el greg-el force-pushed the issue/1156-vimeo_plugin branch 2 times, most recently from 2603701 to d94e865 Compare June 27, 2023 11:39
@bundlemon
Copy link

bundlemon bot commented Jun 27, 2023

BundleMon

Files added (6)
Status Path Size Limits
libraries/browser-tracker-core/dist/index.mod
ule.js
+25.07KB 26KB / +10%
trackers/javascript-tracker/dist/sp.js
+24.03KB 25KB / +10%
trackers/javascript-tracker/dist/sp.lite.js
+14.7KB 15KB / +10%
trackers/browser-tracker/dist/index.umd.min.j
s
+14.55KB 15KB / +10%
libraries/tracker-core/dist/index.module.js
+13.35KB 15KB / +10%
trackers/browser-tracker/dist/index.module.js
+3.46KB 5KB / +10%

Total files change +95.15KB 0%

Final result: ✅

View report in BundleMon website ➡️


Current branch size history

@greg-el greg-el force-pushed the issue/1156-vimeo_plugin branch 13 times, most recently from 3c3a83c to 0cd4d94 Compare June 28, 2023 16:08
@greg-el greg-el marked this pull request as ready for review June 28, 2023 16:18
Copy link
Contributor

@matus-tomlein matus-tomlein left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks great! Is there an example coming to the React app in snowplow-javascript-tracker-examples? Would be great to demo this and inspect the events.

Copy link
Contributor

@matus-tomlein matus-tomlein left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, great work! 👍

I think we should wait for the implementation of aggregating seek start and end events in the media plugin to prevent the flood of events when the user scrubs the video.

@greg-el greg-el changed the base branch from master to release/3.14.0 August 1, 2023 14:19
@greg-el greg-el force-pushed the issue/1156-vimeo_plugin branch 2 times, most recently from 6dd2a8a to 7be7fae Compare August 1, 2023 14:56
@greg-el greg-el force-pushed the issue/1156-vimeo_plugin branch 3 times, most recently from 40b6ee6 to 63cd3f0 Compare August 3, 2023 15:45
@greg-el greg-el merged commit 881cfa4 into release/3.14.0 Aug 7, 2023
2 checks passed
greg-el added a commit that referenced this pull request Aug 10, 2023
PR: #1212

This commit adds a plugin to automatically track Vimeo videos, utilising the Snowplow Media plugin.
greg-el added a commit that referenced this pull request Aug 10, 2023
PR: #1212

This commit adds a plugin to automatically track Vimeo videos, utilising the Snowplow Media plugin.
@greg-el greg-el deleted the issue/1156-vimeo_plugin branch August 9, 2024 12:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cla:yes [Auto generated] Snowplow Contributor License Agreement has been signed.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants