Search

just show me the code

Friday, October 31, 2008

Omniture Tracking with Flash

/* START: Omniture ActionSource Configuration*/
import com.omniture.AS2.ActionSource;
var s;
function configActionSource() {
    s = new ActionSource();
    /* Specify the Report Suite ID(s) to track here */
    s.account = "XXXX";
    /*You may add or alter any code config here: see documentation for more variables
    */
    s.pageName = "Sample App d1.2: State 1";
    s.pageURL = "";
    s.charSet = "ISO-8859-1";
    s.currencyCode = "USD";
    /* Turn on and configure ClickMap tracking here */ 
    s.trackClickMap = true;
    s.movieID = "sample_dynamic_object_1_2";
    /* Turn on and configure debugging here */
    s.debugTracking = true;
    s.trackLocal = true;
    /* WARNING: Changing any of the below variables will cause drastic changes
    to how your visitor data is collected. Changes should only be made
    when instructed to do so by your account manager.*/
    s.dc = 112;
    /* onLoad Transaction*/
    s.delayTracking = 500;
    // half second delay for tracking after load
    s.track();
}
configActionSource();
/* END: Omniture ActionSource Configuration*/

open up fiddler and watch your tracking


No comments:

Post a Comment

Contributors