Socket
Book a DemoInstallSign in
Socket

factorial-pixel

Package Overview
Dependencies
Maintainers
2
Versions
20
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

factorial-pixel

Factorial marketing pixel

latest
Source
npmnpm
Version
0.7.9
Version published
Weekly downloads
37
311.11%
Maintainers
2
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 24 Mar 2025

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

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.