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

@deldico/tracking-client

Package Overview
Dependencies
Maintainers
3
Versions
14
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@deldico/tracking-client

## Usage ### React apps ```typescript import * as React from "react"; import DeldicoTrackingClient from "tracking-client";

Source
npmnpm
Version
0.2.3
Version published
Weekly downloads
0
-100%
Maintainers
3
Weekly downloads
 
Created
Source

Tracking client

Usage

React apps

import * as React from "react";
import DeldicoTrackingClient from "tracking-client";

export default function App() {
  const trackingClient = new DeldicoTrackingClient({
    token: "<your-client-token>",
    gtmURL: "https://<gtm-server-url>",
  });

  // Initialize the client on mount
  React.useEffect(() => {
    (async () => {
      await trackingClient.init();
      console.log(trackingClient.fingerprint);
    })();
  }, []);

  return (
    <div className="prose font-body">
      <h1 className="underline decoration-green-400">Hello world!</h1>
    </div>
  );
}

Angular apps

import { Component, OnInit } from '@angular/core';
// @ts-ignore
import DeldicoTrackingClient from 'tracking-client';

const trackingClient = new DeldicoTrackingClient({
  token: "<your-client-token>",
  gtmURL: 'https://tracking-gtm.fly.dev',
});

@Component({
  selector: 'app-xyz',
  templateUrl: './xyz.component.html',
  styleUrls: ['./xyz.component.scss'],
})
export class XyzComponent implements OnInit {
  constructor() {}

  ngOnInit(): void {
    trackingClient.init().then(() => {
      console.log(trackingClient.fingerprint);
    });
  }
}

FAQs

Package last updated on 09 Dec 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