Skip to main content

Google Tag Manager

Do you want to add the Video Donut JavaScript code in your website using Google Tag Manager? You may want to add it to your entire website or into specific pages. We will show you how to easily add JavaScript using Google Tag Manager.

  1. Open your Google Tag Manager.
  2. Choose the account where your site is connected to.
  3. Go to Tags in the left-side menu and click New in the top right corner.
  4. Name the tag Video Donut Script.
  5. Choose Custom HTML for the tag type.
  6. Copy and paste our Javascript code snippet tag. Find it in the video you want to embed, it looks like this:
!(function (w, d, s, o, f, js, fjs) {
w[o] = w[o] || function () { (w[o].q = w[o].q || []).push(arguments) };
js = d.createElement(s); js.id = o; js.src = f; js.async = 1;
fjs = d.getElementsByTagName(s)[0]; fjs.parentNode.insertBefore(js, fjs);
}(window, document, 'script', 'videodonut', 'https://js.videodonut.com/widget.js'));
videodonut('init', 'YOUR-VIDEO-ID');
</script>
  1. Choose All Pages for the Trigger if you like to display your video in all pages.
  2. Click Save.
  3. Submit your changes by clicking on Submit in the top right corner.
  4. Done. Your website is now connected.

Ready to Grow Your Business?Start using Video Donut today.

Add a stories-style video to your website to boost engagement and conversions.

Sign up for Free