Init
The Init initialization function currently manages the following initialization parameters:
| Parameter | Description |
|---|---|
| apikey | Contains the ID of the Web Property generated in the general configuration page. This parameter is mandatory. |
| trackerhostname | Name of the server that should receive the data. The proposed value is the one chosen in the Web Domain menu. If you selected the Default Domain option, this data will depend on the geographic location of your account. |
| https | Can take the following values:
|
| enableLocalStorage | Can take the values true or false; if true, it enables the use of Webstorage technology, instead of cookies, for browsers that support it. |
| sendbeacon | Can take the values true or false. If false, it forces the sendbeacon function not to be used, even if the browser supports this feature. |
| userIdentityTimeout | Indicates the lifetime, in minutes, of the cookie containing the contact's identity; The default is 525600 (1 year). |
| sessionTimeout | Indicates the duration of the user's session in minutes; the default is 240 minutes. |
| name | Indicates the prefix for using multiple Web Properties within the same website. |
| cookiedomain | If you have configured a domain and its subdomains, cookies will be retained when navigating to the subdomains. |
| trackanonymous | Can take the values true or false. If true, Anonymous Visitors, those not present in your databases, will also be tracked. Please note: This parameter can only be used if the advanced web tracking feature is available. To activate this feature, please contact the Help Desk. |
| enableWebdisplay | Can take the values true or false. If false, on-site messages will not be displayed to visitors. Please note: This parameter can only be used if the advanced web tracking feature is available. To activate this feature, please contact the Help Desk. |
| firePageEvent | This parameter is automatically added to the tracking script if the optional on-site messages feature is enabled in your account. Adds a page event to the on-site message request event. |
| pageEventParams | This parameter contains the description of the parameters sent with the firePageEvent. |