Skip to content

Instantly share code, notes, and snippets.

@sitefinitySDK
Last active August 4, 2023 14:23
document.addEventListener("DOMContentLoaded", function () {
if (window.DataIntelligenceSubmitScript) {
trackVimeoVideosInInsight();
} else {
if (window.addEventListener) {
window.addEventListener('decclientready', trackVimeoVideosInInsight, true);
} else if (window.attachEvent) {
window.attachEvent('decclientready', trackVimeoVideosInInsight);
}
}
});
function trackVimeoVideosInInsight() {
var vimeoTracker = new sfDataIntell.VimeoVideoTracker(window.DataIntelligenceSubmitScript._client.sentenceClient);
vimeoTracker.startTracking();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment