New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

ima-plugin-analytic

Package Overview
Dependencies
Maintainers
2
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ima-plugin-analytic

Seznam IMA.js abstract analytic plugin

latest
Source
npmnpm
Version
2.0.0
Version published
Weekly downloads
9
-30.77%
Maintainers
2
Weekly downloads
 
Created
Source

ima-plugin-analytic

This is the abstract analytic plugin for the IMA.js application. You can find the IMA.js skeleton application at https://github.com/seznam/IMA.js-skeleton or 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.
  • 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.

Keywords

IMA.js

FAQs

Package last updated on 22 Aug 2019

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts