Namespace

stat_settings

stat_settings

Settings object: compute statistics settings from a given page path

Methods

static Collect(sp, p_xtpage, sl, isGlobal) → {string}

Collect ATI and GA parameters from a map
Parameters:
Name Type Description
sp string Standard path (Initial or Custom or Final) to match
p_xtpage string Imposed page name, including chapters (optional)
sl array array of array of strings. First position of each array contais path root (without wildcard)
isGlobal boolean true if match is done from global map
Rest of mapped path
string

static getFieldValue(f, parentNode, evt) → {string}

Get value set in configuration field
Parameters:
Name Type Description
f string Field content (started by # => URL parameter, ! => Cookie, " => constant, or Selector )
parentNode object (optional) parent node, document if not specified. Ignored when not a selector or selector is an id.
evt object Current event
Corresponding value
string

static getLoadTime()

Load time measurement

static preComputeName()

Scan Pattern to expand variables and values indicators

static Prepare(p_xtpage)

Settings preparation
Parameters:
Name Type Description
p_xtpage string Imposed page name, including chapters (optional)

static reInit()

Clean all status

static SetClickzone(fp)

Activate clickzone for configured map
Parameters:
Name Type Description
fp string Final

static setPageVariable(n, pv) → {boolean}

Set Page Custom Variable
Parameters:
Name Type Description
n integer Index of custom variable
pv string Parameter value to add
true if parameter set, false otherwise
boolean

static setParam(pn, pv, noZero) → {boolean}

Set ATI parameter when provided value is not null nor empty.
Parameters:
Name Type Description
pn string Parameter name to add
pv string Parameter value to add
noZero boolean true if zero is not allowed
true if parameter set, false otherwise
boolean

static setVariable(n, pv) → {boolean}

Set Site Custom Variable
Parameters:
Name Type Description
n integer Index of custom variable
pv string Parameter value to add
true if parameter set, false otherwise
boolean

static tagManagerCampaign()

Force campaign when comes from tag manager redirection