JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 49
  • Score
    100M100P100Q69387F
  • License MIT

Generate a Google Analytics tracking snippet with any 'isogrammic' parameters you like.

Package Exports

  • isogram

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (isogram) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

isogram

Generate a Google Analytics tracking snippet with any isogrammic parameters you like.

Installation

CLI executable

npm install -g isogram

Usage

isogram [characters] [options]

The available options are:

-h, --help              output usage information
-V, --version           output the version number
-i, --id <tracking ID>  change tracking-ID
-d, --domain-name <domain>   change domain
-m, --minify            minify source

Example

isogram qwerty --id UA-12345678-9 --domain-name example.com

This command outputs the following Universal Analytics snippet:

!function(q,w,e,r,t,y){q.GoogleAnalyticsObject=r,q[r]||(q[r]=function(){(q[r].q=q[r].q||[]).push(arguments)}),q[r].l=+new Date,t=w.createElement(e),y=w.getElementsByTagName(e)[0],t.src="//www.google-analytics.com/analytics.js",y.parentNode.insertBefore(t,y)}(window,document,"script","ga");

ga('create', 'UA-UA-12345678-9', 'example.com');
ga('send', 'pageview');

License

Copyright (c) 2013 Shinnosuke Watanabe All rights reserved.

Unless otherwise stated, all source code in this repository is licensed under the MIT license.