Socket
Socket
Sign inDemoInstall

@norvikit/utm-aska

Package Overview
Dependencies
1
Maintainers
2
Versions
12
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @norvikit/utm-aska

![Size](https://img.shields.io/bundlephobia/minzip/@norvikit/utm-aska) ![Version](https://img.shields.io/npm/v/@norvikit/utm-aska) ![Downloads](https://img.shields.io/npm/dt/@norvikit/utm-aska)


Version published
Weekly downloads
364
decreased by-9%
Maintainers
2
Install size
54.8 kB
Created
Weekly downloads
 

Readme

Source

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

Keywords

FAQs

Last updated on 11 Aug 2022

Did you know?

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc