video analytics tracking

This commit is contained in:
tim
2025-04-08 14:07:37 -04:00
parent c243b4afc3
commit 1bcce4eedc

View File

@@ -1,7 +1,10 @@
<template>
<div style="margin-top: 1.5em; margin-bottom: 1.5em;">
<!-- NOTE: add ?autoplay=1 to the src query string-->
<iframe style="display: inline-block" width="560" height="315" :src="`https://www.youtube.com/embed/${idAndSi}&autoplay=${autoplay?'1':'0'}`" title="Dexorder on YouTube" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share" referrerpolicy="strict-origin-when-cross-origin" allowfullscreen></iframe>
<!-- NOTE:
add ?autoplay=1 to the src query string
add enablejsapi=1 to query to allow video play tracking in the page's Google Analytics
-->
<iframe style="display: inline-block" width="560" height="315" :src="`https://www.youtube.com/embed/${idAndSi}&enablejsapi=1&autoplay=${autoplay?'1':'0'}`" title="Dexorder on YouTube" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share" referrerpolicy="strict-origin-when-cross-origin" allowfullscreen></iframe>
</div>
</template>