1.5.0 • Published 2 years ago

utm-params-saver v1.5.0

Weekly downloads
421
License
MIT
Repository
github
Last release
2 years ago

UTM params saver

npm npm bundle size

Since 1.4.0 IE 11 is not supported

This is a library that allows you to save UTM params of website visitor to local storage.

Installation

Just simply run:

yarn add utm-params-saver

or

yarn add utm-params-saver

Parameters that will be tracked

  • utm_source
  • utm_medium
  • utm_campaign
  • utm_content
  • utm_name
  • utm_term
  • initial_utm_source
  • initial_utm_medium
  • initial_utm_campaign
  • initial_utm_content
  • initial_utm_name
  • initial_utm_term

Usage

Simple use case how to use this library

import UTM from 'utm-params-saver';

UTM.parse(); // this will return all params based on location

UTM.save(UTM.parse()); // this will save all params to localStorage

UTM.get() // this will return all params from localStorage
...

Running the tests

Just simply run

yarn test

Author

1.5.0

2 years ago

1.4.2

3 years ago

1.4.1

3 years ago

1.3.3

3 years ago

1.4.0

3 years ago

1.3.2

3 years ago

1.3.1

3 years ago

1.3.0

4 years ago

1.2.1

5 years ago

1.2.0

5 years ago

1.1.2

5 years ago

1.1.1

5 years ago

1.0.19

5 years ago

1.1.0

5 years ago

1.0.18

5 years ago

1.0.17

5 years ago

1.0.16

5 years ago

1.0.15

5 years ago

1.0.14

5 years ago

1.0.11

5 years ago

1.0.10

5 years ago

1.0.13

5 years ago

1.0.12

5 years ago

1.0.9

5 years ago

1.0.8

5 years ago

1.0.7

5 years ago

1.0.6

5 years ago

1.0.5

5 years ago

1.0.4

5 years ago

1.0.3

5 years ago

1.0.2

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago