The AT Internet plugin sends events to AT Internet using the PianoAnalytics SDK.
Create the plugin as follows:
The newATInternetPlugin
method supports the following configuration options:
collectDomain: string
: The collection domain for ATInternet events. Defaults to https://atconnect.npo.nl.// Accept all defaults
const atInternetPlugin = newATInternetPlugin();
// Modify configuration
const atInternetPlugin = newATInternetPlugin({
collectDomain: 'https://my.custom.domain.com',
});
The newATInternetPlugin
method supports the following configuration options:
collectDomain: string
: The collection domain for ATInternet events. Defaults to https://atconnect.npo.nl.// Accept all defaults
const atInternetPlugin = newATInternetPlugin();
// Modify configuration
const atInternetPlugin = newATInternetPlugin({
collectDomain: 'https://my.custom.domain.com',
});
The AT Internet
plugin should be included within the plugins
when creating the shared NPOTag instance. You do not need to specify any parameters when initialising it.
let atInternetPlugin = ATInternetPlugin()
NPOTag.configure(
withSharedContext: sharedContext,
plugins: [
atInternetPlugin
]
)
ATInternetPlugin
should be created by PluginsFactory
(see example below)
pluginContext
: Object provided by PluginsFactory
NpoTag.builder()
//...
.withPluginsFactory { pluginContext ->
setOf(ATInternetPlugin(pluginContext))
}
Piano documentation about stored values (Client Side Cookies): https://developers.atinternet-solutions.com/piano-analytics/data-collection/general/cookie-storage
The following fields are inferred by the sdk and only used by the ATInternetPlugin.
A boolean value indicating whether or not this page is the home page. The value is inferred as true if the value of page
in the PageContext
is home
.
The NMO DAM (Nederlands Media Onderzoek - Digital Audience Measurements) requires a unique identifier for each session (in this context, a browser session) which is in the form:
<currentDateTimeInMillisec>_<random_integer_8_digits>
This value is stored and regenerated after 90 days of inactivity.
Note: This will not be used if upon instantiation of the NPO Tag, the NMO DAM measurements are disabled.