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

factorial-pixel

Package Overview
Dependencies
Maintainers
5
Versions
19
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

factorial-pixel

Factorial marketing pixel

  • 0.7.8
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
1.2K
increased by13.08%
Maintainers
5
Weekly downloads
 
Created
Source

Factorial pixel

Snippet to track attribution on Factorial.

What is this sorcery?

Factorial pixel will make a request to /api/internal/pixel and send params about the current request such as the referrer or the marketing code.

The endpoint will save the attribution cookies in *.factorialhr.com (so they work cross-domain) and then set them on the current domain.

This allows us to track attribution even across multiple domains as long as they include this pixel.

Installation

npm install factorial-pixel --save
yarn add factorial-pixel

Example

import factorialPixel from 'factorial-pixel'

factorialPixel(document, 'https://staging.factorialhr.com')

Where is it used?

Developed and battle tested in production in Factorial

FAQs

Package last updated on 18 Jun 2024

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