@distributed/custodi
v0.0.3
Published
Small library to save utm parameters into a session cookie.
Downloads
10
Maintainers
Readme
Small library to save utm parameters into a session cookie.
Install
With yarn:
yarn add @distributed/custodi
With npm:
npm install @distributed/custodi
Usage
import { custodi } from '@distributed/custodi';
// location.search => ?utm_source=google&utm_campaign=campaignName&utm_medium=medium&utm_content=content&utm_term=term
custodi({ timeout: 30, query: location.search });
Coming soon
- [ ] Support SSR
- [ ] Add more options for cookies, name, etc.
Development
- Install dependencies using
yarn install
ornpm install
- Start development server using
yarn watch