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

@trezor/analytics

Package Overview
Dependencies
Maintainers
6
Versions
24
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@trezor/analytics

  • 1.0.8
  • npm
  • Socket score

Version published
Weekly downloads
41K
decreased by-19.91%
Maintainers
6
Weekly downloads
 
Created
Source

@trezor/analytics

This is a generic analytics package. To use analytics in a specific environment, please use one of the following packages or create a new one inspired by existing ones.

  • Suite Analytics

Keep in mind that global fetch and URLSearchParams methods must be available. Node and React Native use polyfills as a substitute.

Tracking process

Data about interactions are transferred in GET HTTPS requests encoded in URI.

List of available configured endpoints:

https://data.trezor.io    /suite    /log    /desktop   /develop     .log
https://data.trezor.io    /suite    /log    /desktop   /stable      .log
https://data.trezor.io    /suite    /log    /web       /develop     .log
https://data.trezor.io    /suite    /log    /web       /stable      .log

Example URI:

https://data.trezor.io/suite/log/web/stable.log?c_v=1.8&c_type=transport-type&c_commit=4d09d88476dab2e6b2fbfb833b749e9ac62251c2&c_instance_id=qlT0xL2XKV&c_session_id=FZjilOYQic&c_timestamp=1624893047903&type=bridge&version=22.10.1

Which tracks:

{
  c_v: '22.10.1',
  c_type: 'transport-type',
  c_commit: '4d09d88476dab2e6b2fbfb833b749e9ac62251c2',
  c_instance_id: 'qlT0xL2XKV',
  c_session_id: 'FZjilOYQic',
  c_timestamp: 1624893047903,
  type: 'BridgeTransport',
  version: '2.0.30'
}

Attributes which are always tracked:

  • c_v: version of analytics
  • c_type: type of tracked event
  • c_commit: current revision of app
  • c_instance_id: until user wipes storage, the ID does not change
  • c_session_id: ID changing on every launch of app
  • c_timestamp: time in ms when event is created (added in 1.11)

Other attributes are connected to a specific event type.

FAQs

Package last updated on 19 Sep 2023

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