Difference between revisions of "YouTube Video Tracking"

From Market Ruler Help
Jump to: navigation, search
m
Line 5: Line 5:
 
Tracking [[YouTube]] Videos requires the following:
 
Tracking [[YouTube]] Videos requires the following:
  
- Your site must use the [[jQuery]] library on the pages in question
+
* 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)
+
* ConversionRuler currently supports tracking of [[iframe]] YouTube videos only (this is the modern version)
- To track old-style YouTube videos, employ the technique [[Can ConversionRuler track Flash advertisements?|for tracking Flash]]
+
* To track old-style YouTube videos, employ the technique [[Can ConversionRuler track Flash advertisements?|for tracking Flash]]
  
 
== How to implement ==
 
== How to implement ==
  
# 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:
 +
 
 +
<nowiki><script type="text/javascript" src="http://www.conversionruler.com/bin/youtube.js"></script></nowiki>
 +
 
 +
# 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
 +
# YouTube videos will now be tracked using the named actions as described below

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>
  1. 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