The magnews code initializes Web Tracking through the mna('init', {...}) function, which contains the parameters described in this article.
Normally, magnews generates these values automatically based on the web property configuration. Refer to this page only if you have chosen to install and manage the extended version of the magnews code manually and want to modify one or more initialization parameters.
apikey
Contains the web property ID generated by magnews.
This parameter is required.
trackerhostname
Specifies the name of the server that receives Web Tracking data.
The proposed value corresponds to the web domain configured automatically in the web property based on the specified primary domain.
This parameter is required.
name
Specifies the tracker scope name and is used when multiple web properties are configured on the same website (multi-scope).
nocssjqueryui
When set to true, adds the ncjui = 1 parameter to the request and prevents the server from including the jquery-ui.css file in on site messages and signup forms.
Default value: false
cookiedomain
Specifies the domain used by cookies.
If the website uses one domain with multiple subdomains, this parameter keeps the same cookies while visitors browse across those subdomains.
enableLocalStorage
When set to true, uses the browser's Web Storage instead of cookies, when supported.
Default value: false
conversionAttributionTimeout
Specifies how long conversion attribution associated with the ref cookie is retained, expressed in minutes.
Default value: 7200 minutes (5 days).
trackcontacts
Enables contact recognition through the uid cookie and the mnuid URL parameter.
Default value: true.
If contact recognition is enabled in the web property but the parameter in the code actually installed on the website is set to false, events are recorded as anonymous because the client does not send the contact information.
If contact recognition is disabled in the web property but the parameter in the code actually installed on the website is set to true, events are still recorded as anonymous because the server ignores the contact information.
uid
Lets you specify an initial contact ID and is used only when trackcontacts is set to true.
importscripts
Imports scripts included in on site messages and signup forms.
Default value: true
webdisplayDelay
Specifies the delay, in milliseconds, before the request that displays on site messages and signup forms on the website.
A value of 0 is interpreted as 500.
Default value: 500.
enableWebdisplay
When set to true, enables on site messages and signup forms to be displayed on the website.
Default value: false.
If the web property enables on site messages and signup forms but the parameter in the code actually installed on the website is set to false, the content is not requested and is not displayed.
If the web property disables on site messages and signup forms but the parameter in the code actually installed on the website is set to true, the content is still not displayed because the server does not return it.
firePageEvent
When set to true and on site messages and signup forms are available in the account, automatically generates a page event together with the request used to display them on the website.
Default value: false.
If the web property enables automatic page event sending but the parameter in the code actually installed on the website is set to false, the client does not send the page events, so they are not tracked.
If the web property disables automatic page event sending but the parameter in the code actually installed on the website is set to true, the page events are still sent by the client and processed correctly by the server.
pageEventParams
Contains the parameters sent with the page event generated by firePageEvent.
Default value: {}
userIdentityTimeout
Specifies the lifetime of the visitor or contact cookie, expressed in minutes.
Default value: 1051200 minutes (730 days, or 2 years)
This parameter is available only if your plan includes Advanced Web Tracking. To enable it, contact the Help desk.
sessionTimeout
Specifies the session cookie lifetime, expressed in minutes.
Default value: 1440 minutes (1 day)
This parameter is available only if your plan includes Advanced Web Tracking. To enable it, contact the Help desk.
trackanonymous
When set to true, enables tracking for anonymous visitors, meaning visitors who are not present in magnews databases.
Default value: false
This parameter is available only if your plan includes Advanced Web Tracking. To enable it, contact the Help desk.
If anonymous visitor tracking is enabled in the web property but the parameter in the code actually installed on the website is set to false, anonymous visitor events are not generated because the client does not send them.
If anonymous visitor tracking is disabled in the web property but the parameter in the code actually installed on the website is set to true, anonymous visitor events are still discarded by the server.