Difference between revisions of "YouTube Video Tracking"

From Market Ruler Help
Jump to: navigation, search
m
m
Line 12: Line 12:
  
 
# [[Install_the_tracking_snippet|Install ConversionRuler Tracking] normally on your site.
 
# [[Install_the_tracking_snippet|Install ConversionRuler Tracking] normally on your site.
# If [[jQuery]] is already being used, add the following script after jQuery is loaded:
+
# If [[jQuery]] is already being used, add the following script after jQuery is loaded: <pre><nowiki><script type="text/javascript" src="http://www.conversionruler.com/bin/youtube.js"></script></nowiki></pre>
 
 
<nowiki><script type="text/javascript" src="http://www.conversionruler.com/bin/youtube.js"></script></nowiki>
 
 
 
 
# Edit your sites actions to add the following actions:
 
# Edit your sites actions to add the following actions:
 
  * "play" - When a video is played by the user
 
  * "play" - When a video is played by the user

Revision as of 17:26, 19 August 2013

Tracking YouTube videos is now handled seamlessly with an add-on library from ConversionRuler.

Requirements

Tracking YouTube Videos requires the following:

  • Your site must use the jQuery library on the pages in question
  • ConversionRuler currently supports tracking of iframe YouTube videos only (this is the modern version)
  • To track old-style YouTube videos, employ the technique for tracking Flash

How to implement

  1. [[Install_the_tracking_snippet|Install ConversionRuler Tracking] normally on your site.
  2. If jQuery is already being used, add the following script after jQuery is loaded:
    <script type="text/javascript" src="http://www.conversionruler.com/bin/youtube.js"></script>
  3. Edit your sites actions to add the following actions:
* "play" - When a video is played by the user
* "pause" - When a video is paused by the user
* "seek" - When a video is seeked by the user
* "end" -> When a video reaches the end
  1. YouTube videos will now be tracked using the named actions as described below