Ti.Omniture.Session

Description

An omniture module object which represents a tracking session.

Functions

Ti.Omniture.Session.track({...})

Tracks an event. Takes one argument, a dictionary which specifies the tracking information.

Ti.Omniture.Session.trackLink({...})

Tracks the specified link. Takes one argument, a dictionary with the properties:

You can optionally override tracking properties for this function call by specifying additional arguments in one of two ways:

Example:

session.trackLink({url:_URL_,type:session.CUSTOM_LINK,name:_NAME_,overrides:{ prop1:_VALUE_ }});

or by appending the properties to the trackLink properties

Example:

session.trackLink({url:_URL_,type:session.CUSTOM_LINK,name:_NAME_,prop1:_VALUE_,prop2:_VALUE_ });

Ti.Omniture.Session.CUSTOM_LINK

A type constant for a custom link

Ti.Omniture.Session.FILE_DOWNLOAD

A type constant for a file download

Ti.Omniture.Session.EXIT_LINK

A type constant for an exit link