Rich Media & Video |
|||
| Components > Interaction Tracker | |||
The interaction tracker filters 'Accidental Interactions' ensuring only true dwell times are recorded in the Media Console. The component checks the 'Accidental Interaction Time' has past and then fires the function _root.interactionStarted();. By placing your code inside this function you can ensure that the functionality only occurs for intentional interactions.
Explore the interaction tracker's settings
| Settings |
Descriptions |
|---|---|
| Accidental interaction time | The number of seconds to wait before registering a intentional interaction. |
| Register accidental interaction with an event | Fires an event every time the user accidentally interacts with the creative. You must manually assign the event description in the links and descriptions layer of the FLA. |
| Interaction time and accidental interaction | This option tracks both the amount of time spent interacting with the creative as well as firing the accidental interactions as defined above. |
| Accidental interaction | Selecting this option will track only the accidental interactions made by the user. |
The component sets a boolean variable ‘_root.bIsAccidental' to true (if the interaction is within the 'Accidental interaction time'), or false and fires the function‘_root.interactionStarted()’when the 'Accidental interaction time' has past.
function interactionStarted():Void{
// Place the code here...
}
The Interaction Tracker broadcasts two events to a _root level function called MRM_component_events.
| Event Type |
Description |
|---|---|
onIntentionalInteraction |
Fires when the interaction is intentional |
onAccidentalInteraction |
Fires when the interaction is accidental |
To setup the timeline function you can use the action hints panel and select MRM_component_events

function MRM_component_events(evtObj:Object)
{
if(evtObj.type == "onIntentionalInteraction")
{
trace("The interaction was intentional");
}
}
How to setup the interaction tracker component
(show details)

(show details)|
Interaction Tracker v 2.0.2
|
Interaction Tracker v 2.0.2 |
The command script reposition's the component to a new layer called Interaction Tracker and amends / writes the mouseRolledOff(); function. Two lines of code are added as shown below.
//Interaction Tracker
//Interaction tracking functionality has been added
function mouseRolledOff()
{
_level0.conduit.banner(); //method added by Interaction Tracker
InteractionTracker.check(); //method added by Interaction Tracker
}
If you want to track accidental interactions only in the Media Console
If you want to track the interaction time only in the Media Console
If you wish to track both the interaction time and the accidental interaction time in the Media Console
Help Files
The component help files are available offline if no internet connection is available.
Video Tutorials
When there is a video tutorial available for the component an extra button is revealed which will load the demo into the components inspector panel. (Please note - This will not appear when working offline.)
See also |
|||