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

analitiks

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

analitiks

A 650b Google Analytics client for performance maniacs

  • 0.1.7
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
0
decreased by-100%
Maintainers
1
Weekly downloads
 
Created
Source

analitiks

A 650b Google Analytics client for performance maniacs

This project is a non-official implementation of a Google Analytics JS client.

It does not uses cookies so is intendend only for projects that doesn't have strict requirements on user-tracking on Anlytics.

Installation

$ npm install analitiks

Usage

import { setup, trackPageView, trackEvent } from "https://cdn.skypack.dev/analitiks";

setup('UA-123456-1');
trackPageView();

document.getElementById('mybutton').addEventListener('click', () => {
    trackEvent('category', 'action', 'label', 1);
});

Anonymous mode!

This client supports also an anonymous mode where:

  • The flag "anonymize ip" is on
  • the user id is randomized at each request
  • No credentials are sent

Example:

import { setup, trackPageView, trackEvent } from "https://cdn.skypack.dev/analitiks";

setup('UA-123456-1', true /* enables anonymous mode */);
trackPageView();

document.getElementById('mybutton').addEventListener('click', () => {
    trackEvent('category', 'action', 'label', 1);
});

FAQs

Package last updated on 11 Sep 2020

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