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

@gorillabot-labs/sticky-query-params

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@gorillabot-labs/sticky-query-params

A tiny javascript module that saves marketing query params across page loads to better track conversions

  • 1.1.0
  • latest
  • Source
  • npm
  • Socket score

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

Sticky Query Params

A tiny javascript module that saves marketing query params across page loads to better track conversions

Usage

Usage

<script src="https://cdn.jsdelivr.net/npm/@gorillabot-labs/sticky-query-params@latest/dist/index.js"></script>
<script>
  var sqpConfig = {};
  sqpConfig.conversionDomain = "app.awesomeproduct.com";

  window.addEventListener('load', (event) => {
    try {
      sqp.stickParams(sqpConfig);
    } catch (e) {
      console.log(e);
    }
  });
</script>

Note: Some build tools make explicit use of Node features which have been introduced in version 8.9.0. Please make sure you're using the correct Node version (>8.9.0) before you proceed to create your own build using the commands listed below.

Development

Keep this module light-weight. Consumers will be uploading this onto their marketing websites and we don't want to slow them down.

3 Rules to keep in mind:

  1. Keep it simple
  2. Keep it fast
  3. Keep it tested

Examples

  1. Check examples directory or run yarn examples

Testing

  1. Run test suite: yarn test

Deployment

  1. Run test suite: yarn test
  2. Create build: yarn build
  3. Bump package.json version
  4. Commit new version git add . && git commit
  5. Publish to npm npm publish --access public

FAQs

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