6.0.2 • Published 11 months ago
@ima/plugin-analytic v6.0.2
@ima/plugin-analytic
This is the abstract analytic plugin for the IMA.js application. You can visit our site imajs.io.
Installation
npm install @ima/plugin-analytic --save// /app/build.js
var vendors = {
common: [
'@ima/plugin-analytic'
]
};
/*
Now is the analytic plugin available as:
import { events as AnalyticEvents, AbstractAnalytic } from '@ima/plugin-analytic';
*/Implementing analytics in v2.0
The createGlobalDefinition method is renamed to _createGlobalDefinition and set as protected. LOAD event is fired only once.
Implementing analytics in v1.0
Since version 1.0 all analytics implement deferred loading of analytic scripts. Initialization was splitted into 2 methods.
init()- initializes global variables that mock analytic before it's loaded. This method should be called as soon as possible in your loading sequace.- optionally takes
initConfigobject with these settings:initConfig.purposeConsentssets user's consents in format{ '1': true, '2': false }, see: https://iabeurope.eu/iab-europe-transparency-consent-framework-policies/#A_Purposes
- optionally takes
load()- actually loads the analytic script and executes every hit that has been made until this method call. This method should be called at the end of your loading sequence.
6.0.1
1 year ago
6.0.2
11 months ago
6.0.0
2 years ago
5.0.6
2 years ago
5.0.7
2 years ago
5.0.5
2 years ago
5.0.4
2 years ago
5.0.3
3 years ago
5.0.2
3 years ago
5.0.2-rc.1
3 years ago
5.0.2-rc.2
3 years ago
5.0.2-rc.5
3 years ago
5.0.2-rc.3
3 years ago
5.0.2-rc.4
3 years ago
5.0.2-rc.0
3 years ago
5.0.0-rc.9
3 years ago
5.0.1
3 years ago
5.0.0
3 years ago
5.0.0-rc.10
3 years ago
5.0.0-rc.7
3 years ago
5.0.0-rc.8
3 years ago
5.0.0-rc.3
3 years ago
5.0.0-rc.4
3 years ago
5.0.0-rc.5
3 years ago
5.0.0-rc.6
3 years ago
5.0.0-rc.2
3 years ago
5.0.0-rc.0
3 years ago
5.0.0-rc.1
3 years ago
4.1.2
4 years ago
4.1.1
4 years ago
4.1.0
4 years ago
4.0.2
4 years ago
4.0.1
6 years ago
4.0.0
6 years ago
3.0.0
6 years ago