Socket
Socket
Sign inDemoInstall

@builder.io/forum-tracking

Package Overview
Dependencies
10
Maintainers
5
Versions
9
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

@builder.io/forum-tracking

This is an extremely simple NPM package that is meant primarily to be used with Unpkg's CDN to add quick tracking to our [forum](https://forum.builder.io/) pages.


Version published
Maintainers
5
Weekly downloads
321
decreased by-8.55%

Weekly downloads

Readme

Source

Builder.io Forum Tracking

This is an extremely simple NPM package that is meant primarily to be used with Unpkg's CDN to add quick tracking to our forum pages.

Building

First we need to create a keys.json file with this shape:

{
  "MIXPANEL_PUBLIC_KEY": "some-random-api-key-here-for-mixpanel",
  "AMPLITUDE_PUBLIC_KEY": "some-random-api-key-here-for-amplitude",
  "SOMESERVICE_PUBLIC_KEY" "you-get-the-idea"
}

(Right now only MIXPANEL_PUBLIC_KEY and AMPLITUDE_PUBLIC_KEY are required).

Then run:

$ npm install
$ npm run build

Publishing

Once you are properly authenticated with the npm CLI tool, increment the version field in package.json and then just run:

$ npm publish

The version number has to change every time we publish; NPM won't let us overwrite existing versions.

Then, go to the forum's theme settings, edit its HTML/CSS, and add/replace this in the </body> section:

<script src="//unpkg.com/@builder.io/forum-tracking@<VERSION>/dist/index.browser.js" async defer></script>

where <VERSION> is the version number in package.json.

FAQs

Last updated on 13 Oct 2020

Did you know?

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc