1.0.11 • Published 2 years ago

@norvikit/utm-aska v1.0.11

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

UTM Aska

Size Version Downloads

📃 Description

Library to get UTM params from url and cookies

📦 Installation

NPM

npm install --save @norvikit/utm-aska

Yarn

yarn add @norvikit/utm-aska

🚀 Usage

Using a <script> tag:

<html>
  <head>
    <script src="dist/utm-aska.min.js"></script>
  </head>
  <body>
    <div id="app" />
    <script>
      const utmParams = utmAska.getUtmParams()
      console.log(utmParams)
    </script>
  </body>
</html>

In a web application using a bundler such as webpack:

import { getUtmParams } from "@norvikit/utm-aska"
const utmParams = getUtmParams()
console.log(utmParams)

In a node application:

const utmAska = require("utm-aska");
utmAska.getUtmParams();
// or
const { getUtmParams } = require("utm-aska");
getUtmParams();

📚 Functions

utmAska.getUtmParams(arrayOfUtmTags)

Get utm tags from current page url or cookies

utmAska.getUtmFromUrl(arrayOfUtmTags)

Get utm tags from current page url

utmAska.getUtmFromCookies(arrayOfUtmTags)

Get utm tags from cookies

utmAska.getCookieByName(cookieName)

Get value of single cookie record by name

1.0.9

2 years ago

1.0.8

2 years ago

1.0.7

2 years ago

1.0.6

2 years ago

1.0.5

2 years ago

1.0.11

2 years ago

1.0.10

2 years ago

1.0.4

2 years ago

1.0.3

2 years ago

1.0.2

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago