What is my Video ID?
Erika Lehmann avatar
Written by Erika Lehmann
Updated over a week ago

Your video ID is a unique identifier inside your embed code for an individual video.

The rest of your embed code stays pretty much the same for all videos, so if you want to edit an embed code and change the video it displays, without changing the entire code, you can simply change your video ID within it.

If you ever want to edit your embed code manually and place a new video ID in the same code, you'd need to replace it from these 3 spots in your original embed code (look for [VIDEO_ID] in this example):

<div id="vidalytics_embed_[VIDEO_ID]" style="width: 100%; position:relative; padding-top: 56.25%;"></div>
<script type="text/javascript">
(function (v, i, d, a, l, y, t, c, s) {
y='_'+d.toLowerCase();c=d+'L';if(!v[d]){v[d]={};}if(!v[c]){v[c]={};}if(!v[y]){v[y]={};}var vl='Loader',vli=v[y][vl],vsl=v[c][vl + 'Script'],vlf=v[c][vl + 'Loaded'],ve='Embed';
if (!vsl){vsl=function(u,cb){
if(t){cb();return;}s=i.createElement("script");s.type="text/javascript";s.async=1;s.src=u;
if(s.readyState){s.onreadystatechange=function(){if(s.readyState==="loaded"||s.readyState=="complete"){s.onreadystatechange=null;vlf=1;cb();}};}else{s.onload=function(){vlf=1;cb();};}
i.getElementsByTagName("head")[0].appendChild(s);
};}
vsl(l+'loader.min.js',function(){if(!vli){var vlc=v[c][vl];vli=new vlc();}vli.loadScript(l+'player.min.js',function(){var vec=v[d][ve];t=new vec();t.run(a);});});
})(window, document, 'Vidalytics', 'vidalytics_embed_[VIDEO_ID]', 'https://quick.vidalytics.com/embeds/USER_ID/[VIDEO_ID]/');
</script>

This will work for any video inside your account.

However, if you need to change this to a video in a different account, like for a client or something similar, you'd also need to change the code for USER_ID to the correct one in this section of the embed:

https://quick.vidalytics.com/embeds/USER_ID/[CODE_3]/

You can find your user ID by grabbing any embed code from your Vidalytics account.


Did this answer your question?