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

@builder.io/forum-tracking

Package Overview
Dependencies
Maintainers
5
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

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.

  • 0.0.9
  • latest
  • npm
  • Socket score

Version published
Maintainers
5
Created
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

Package last updated on 13 Oct 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