New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@ubilabs/ubilabs-tracking

Package Overview
Dependencies
Maintainers
8
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@ubilabs/ubilabs-tracking

A cookie banner for Ubilabs demos

  • 1.1.1
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
8
Created
Source

Ubilabs Tracking

Description

This is a JavaScript library to easily implement a Cookie Banner into your Demo.

Table of contents
  • Installation
  • Usage
  • Publish
  • Examples
  • Hints

Installation

npm install @ubilabs/ubilabs-tracking

Usage

Default import from @ubilabs/ubilabs-tracking and call the function with the Google Tag Manager ID:

import tracking from '@ubilabs/ubilabs-tracking';

tracking('TAG_MANAGER_ID');

Publish

A publish happens automatically when a new version tag is being pushed:

npm version major|minor|patch
git push && git push --tags

Examples

There is a simple example page that imports the cookie-banner directly. Create examples/.env with:

TAG_MANAGER_ID=<TAG_MANAGER_ID>

To serve the test page run:

npm install
npm start

Hints

  • In case you cannot see the cookie banner, try disabling your AD Blocker.
  • If you accepted/declined the cookie banner and want it to reappear, you need to delete your cookies. To do that on Chrome, press F12 to open Developer Tools. Go to Application --> Storage --> Cookies, rightclick on the site you want to delete the cookies on and click clear.

Keywords

FAQs

Package last updated on 18 Mar 2022

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