Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@aller/blink-labrador

Package Overview
Dependencies
Maintainers
11
Versions
287
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@aller/blink-labrador

Library for using blink on Labrador

  • 8.24.15-alpha.0
  • Source
  • npm
  • Socket score

Version published
Maintainers
11
Created
Source

A package that uses blink for analytics on Labrador pages

Installation

npm install @aller/blink-labrador

Usage

import BlinkLabrador from './blink-labrador';

function initTracking() {
  const tracker = new BlinkLabrador();
  tracker.trackPageload();
  tracker.trackPerformance();
  tracker.trackAdInscreen0('.adunit');
  tracker.trackAdInscreen('.adunit');
  tracker.trackActiveTime();
  tracker.trackLinkClicks();
  tracker.trackArticleImpressions('article.preview,.article-list>li');
  tracker.trackAdDFP();
  tracker.trackVideos();
  tracker.trackConsent({
    uuid: '4f842ac4-50a1-40c7-bc8f-23a4373122f3_25',
    tcfV2:
      'CP00b0AP00b0AAGABBENAYEgAAAAAEPAACgAAAANXgLgAIAAqAB4AEAAMgAaABzAD8AM0AfoBEQCLAEiAJSAXUA6QB5gD7QJkAmUBSYC8wGCANXADCgAQA5jwAQAcwDzFQAQAcwEygAA.YAAAAAAAAAAA',
    kind: 'gdpr',
    consentGranted: true, // Aller Media consent
    consentedToAll: false,
    applies: false,
  });
  // Expose blink functions to other modules
  window.trackAdLoad = tracker.trackAdLoad;
  window.trackCustom = tracker.trackCustom;
  window.trackConsent = tracker.trackConsent;
}

initTracking();

Keywords

FAQs

Package last updated on 13 Mar 2024

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc