SALESmanago Live Product Demo

Wednesday, 10:00 am CEST

SALESmanago Live Product Demo

Wednesday, 10:00 am CEST

REGISTER

How to Integrate SALESmanago with Youtube Player? [Free Template]

abstract vector illustration in a vintage style

We love moving pictures – whether we watch them on TV, laptop, tablet or smartphone. Making instructional, advertising, and product showcasing videos became common thing for both global, big brands, but also smaller local ones. It’s much easier for us, recipients of content, to engage in something colorful and moving, than with static picture or wall of text. Dr. James McQuivey from Forrester says, that one minute of video may equal up to 1.8 million words. It happens because our mirror neurons are not differentiating a video from reality, and when they see paint commercial in which a happy couple is painting walls of their new home, by empathy we also become happy. Another advantage of this medium is much faster processing of content provided in video clip than written down, as much as 60 000 times faster.

 

Everyone is watching videos. 75% of executives are watching at least one brand video per week, and of those who did enter the webiste of given company, 39% initiated the contact after seeing the video.

Users generally trust videos they see, and marketers know it. Video commercials are responsible for more than 35% of all online spendings! Popularity of videos in mobile channel is also rising – expenses were doubled in years 2013-2014 ($720 millions to $1.5 billion USD) and it’s estimated that in 2018 they will reach as much as $6 billions USD.

 

You already have the scenario of a hit video in your mind? Great! According to Unbounce putting video on a landing page increases the conversion up to 80%. For most of users (90%), it is incredibly important in decisive process. Is it possible to want more?

 

I have great news for everyone wanting to efficiently use their worktime! Thanks to the pinch of marketing automation magic and appropriate placing of the video on your website, you can use the interaction to fill in user’s behavioral profile, start the automation rule, and create dynamic content.

 

SALESmanago platform is able to intercept events related to Youtube player such us:

  • loading of the player
  • starting the video
  • pausing the video
  • stopping the video altogether

 

Here’s an instruction on how to integrate our platfrom with Youtube player!

On website you want to embed your video there must be SALESmanago monitoring code.

You also need to embed Youtube video using following parametres:

 

<iframe id=”player” width=”560″ height=”315″ src=”https://www.youtube.com/embed/0z5qByhbJKw?enablejsapi=1” frameborder=”0″ allowfullscreen></iframe>

 

Remember of the parameter enablejsapi=1!

 

Next you initiate appropriate objects in tag <script>:

 

var tag = document.createElement(‘script’);

tag.src = “https://www.youtube.com/player_api“;

var firstScriptTag = document.getElementsByTagName(‘script’)[0];

firstScriptTag.parentNode.insertBefore(tag, firstScriptTag);

var player;

     function onYouTubeIframeAPIReady() {

       player = new YT.Player(‘player’, {

       

         events: {

           ‘onReady’: onPlayerReady,

           ‘onStateChange’: onPlayerStateChange

         }

       });

     }’

 

Function description:

  1. Function responsible for loading the player:

function onPlayerReady(event) {

smEvent(“video_player_ready”);

     }

 

  1. Function responsible for sending events – player status changes:

    var firstPlay = false;

     function onPlayerStateChange(event) {

       if (event.data == YT.PlayerState.PLAYING) {

if (!firstPlay)

smEvent(“video_started”);     

firstPlay = true;

       }

if (event.data = YT.PlayerState.PAUSED) {

smEvent(“video_paused”);

}

if (event.data = YT.PlayerState.ENDED) {

smEvent(“video_ended”);

}

     }

 

How does it look in the real life? Here’s how such an integration should look like:

<html>

<head>

<body>

<iframe id=”player” width=”560″ height=”315″ src=”https://www.youtube.com/embed/0z5qByhbJKw?enablejsapi=1″ frameborder=”0″ allowfullscreen></iframe>

<script>

var tag = document.createElement(‘script’);

tag.src = “https://www.youtube.com/player_api”;

var firstScriptTag = document.getElementsByTagName(‘script’)[0];

firstScriptTag.parentNode.insertBefore(tag, firstScriptTag);

var player;

     function onYouTubeIframeAPIReady() {

       player = new YT.Player(‘player’, {

       

         events: {

           ‘onReady’: onPlayerReady,

           ‘onStateChange’: onPlayerStateChange

         }

       });

     }

 

 function onPlayerReady(event) {

smEvent(“video_player_ready”);

     }

 

 var firstPlay = false;

     function onPlayerStateChange(event) {

       if (event.data == YT.PlayerState.PLAYING) {

if (!firstPlay)

smEvent(“video_started”);     

firstPlay = true;

       }

if (event.data = YT.PlayerState.PAUSED) {

smEvent(“video_paused”);

}

if (event.data = YT.PlayerState.ENDED) {

smEvent(“video_ended”);

}

     }

 

     

 

</script>

 

<script type=”text/javascript”>

//please insert SALESmanago tracking code

   var _smid = “*********”;  

   (function() {

     var sm = document.createElement(‘script’); sm.type = ‘text/javascript’; sm.async = true;

     sm.src = (‘https:’ == document.location.protocol ? ‘https://’ : ‘http://’) + ‘www.salesmanago.pl/static/sm.js’;

     var s = document.getElementsByTagName(‘script’)[0]; s.parentNode.insertBefore(sm, s);

   })();

 

</script>

</body>

</head>

</html>

 

What’s next?

User-video interaction is the same event for the platform as website visits are. Thanks to this, you are able to use this data to create education cycles about the particular group of products, send dynamic emails recommending further instructions, or… similar or complementary products. If you dream of developed campaign, which includes multiple factors, conditions and scenarios, you must use of our Workflow creator (You’ll find it here). Additionally you can use this information to segment the databases. Use tags system (you can add tags by creating the Workflow process, or by setting up an automation rule).

 

It is worth to find a place for commercial video in your marketing budget. 64% of users are more willing to making a purchase after seeing a video, and as much as 46% of them is making an action after seeing such commercial! We hope that thanks to our guide you’ll start conquering new territory with newly found enthusiasm.

 

What are the other guides you’d like to see on our blog?

Statistics source: Insivia

 

SALESmanago is a Customer Engagement Platform for impact-hungry eCommerce marketing teams who want to be lean yet powerful, trusted revenue growth partners for CEOs. Our AI-driven solutions have already been adopted by 2000+ mid-size businesses in 50 countries, as well as many well-known global brands such as Starbucks, Vodafone, Lacoste, KFC, New Balance and Victoria’s Secret.

SALESmanago delivers on its promise of maximizing revenue growth and improving eCommerce KPIs by leveraging three principles: (1) Customer Intimacy to create authentic customer relationships based on Zero and First Party Data; (2) Precision Execution to provide superior Omnichannel customer experience thanks to Hyperpersonalization; and (3) Growth Intelligence merging human and AI-based guidance enabling pragmatic and faster decision making for maximum impact.

More information: www.salesmanago.com

[New Feature] Shine the light on your hidden visitors with Spotlight
[New Feature] Shine the light on your hidden visitors with Spotlight

    The data noise can keep you in the dark – that’s why Spotlight shines the light on the hidden visitors and helps convert them into loyal Customers. Understand your anonymous shoppers and tailor personalized website campaigns based on their behavior.   With approximately 85% of website visitors remaining anonymous, it’s crucial to understand […]

The Essential Role of Product Catalogs in Marketing Evolution
The Essential Role of Product Catalogs in Marketing Evolution

    In the dynamic realm of digital marketing, Product Catalogs act as the vital link between your eCommerce platform and SALESmanago. They aren’t just useful but essential for maximizing your marketing potential.    You might be wondering, ‘I’ve already integrated XML Product Feeds, why consider another integration to Product Catalogs?’ While XML Product Feeds […]

Getting in Bed with AI? Remember, Safety First!
Getting in Bed with AI? Remember, Safety First!

    In the dance between technology and commerce, eCommerce companies find themselves at a crossroads as they consider cuddling up with the tempting world of generative AI. A recent Gartner report, titled “4 Ways Generative AI Will Impact CISOs and Their Teams,” provides a backstage pass to the glitzy show that is the future […]

Marketers lose the right to choose their tools. Do you have to let it go?
Marketers lose the right to choose their tools. Do you have to let it go?

    by Aleksander Skałka, Director of Solutions Consulting & Sales Enablement   Observing trends among the greatest eCommerce players, marketers from small and medium companies must wonder, how did this happen, that their daily challenges differ so much from the problems that bother the biggest industry’s players? Latest observation: marketers lose the influence to […]