Let mash understand user behaviour in YouTube videos to trigger rewards
User rewards are triggered when they do certain actions. For user behaviour in YouTube videos on your site to be understandable by Mash, there is a small change that needs to be made.
Update your URLs in embedded YouTube widgets or code on your site
When adding YouTube embedded videos to your site, you can do so with
- YT specific embedded code & player to your site that you add directly
- Website-builder provided widgets where you provide them the YT video URL and they insert the code for you
Video widgets in website builders
You’ll need to add the parameter ?enablejsapi=1
to the end of your URL. That’s it.
Original URL | |
Updated URL |
Embedded YouTube Player code
You’ll need to add the parameter ?enablejsapi=1
to the end of your URL in the embedded code snippet provided by YouTube. That’s it.
Original YT Embed | <iframe
...
src="https://www.youtube.com/embed/dQw4w9WgXcQ"
... >
</iframe> |
Updated Mash YT Embed | <iframe ...
src="https://www.youtube.com/embed/dQw4w9WgXcQ?enablejsapi=1"
... >
</iframe> |
YouTube also has lots of documentation available to customize the embedded player experience on your site at https://developers.google.com/youtube/player_parameters
Running into any issues, have requests or feedback?
Please do get in touch. We want to help and hear it all!
- Email: support@mash.com
- Discord: https://discord.com/invite/KKBTDDw4cN
- Telegram: https://t.me/mashpartners