Vous êtes sur la page 1sur 3

Hulu Click Tracking System

As of: 3.02.2015

Standard Video Ad Package


Introduction

Welcome to Hulu. This guide will serve as your reference for implementing click thrus in you flash builds for
tracking purpose. Please keep in mind that these instructions have been created in order to offer the best
experience to your consumers and ensure optimal performance for your brand.

There are two processes to track clicks:

1. Fonzi Administration Tracking


2. Hard coded Tracking

Note: Attempting to combine hard coded tracking with Fonzi tracking will result in tracking failures within Fonzi.
Standard Video Ad Package
Hulu Tracking System

Fonzi Administration Tracking

Your AS3 code should be set up as follows:

Security.allowDomain("*");

var _root:Object = (root as Object);


_root.fireClickEvent = function()
{
_root.dispatchEvent( new Event( "HuluBannerMouseClickEvent", true ));
}

click_btn.addEventListener(MouseEvent.CLICK, clickThru);

function clickThru(event:MouseEvent):void
{
_root.fireClickEvent();
//add any additional required actions here
}

Attention:
The click-thru button in your FLA should be labeled click_btn or the above code needs to be changed
to match the instance name of your button.

Any additional actions that you wish to happen upon button click can be added to the clickThru
function.

Hulu 2012 Confidential 2


Hulu Tracking System

Hard Coded

Your AS3 code should be set up as follows:

Security.allowDomain("*");

var _root:Object = (root as Object);


_root.fireClickEvent = function()
{
_root.dispatchEvent( new Event( "HuluBannerMouseClickEvent", true ));
}

click_btn.addEventListener(MouseEvent.CLICK, clickThru);

function clickThru(event:MouseEvent):void
{
navigateToURL(new URLRequest("http://www.YourLandingURL.com"), "_blank");

//add any additional required actions here


}

Attention:
The click-thru button in your FLA should be labeled click_btn or the above code needs to be changed
to match the instance name of your button.

Any additional actions that you wish to happen upon button click can be added to the clickThru
function.

Replace the URL (http://www.YourLandingURL.com) in the above example code with your own target
URL. This path should be absolute ("http://www.nasa.gov/home/index.html") and not relative
("/home/index.html").

Note: Only one clickout is allowed using the hard coded method.

Hulu 2012 Confidential 3

Vous aimerez peut-être aussi