0.1.4 • Published 6 years ago

@gastrofy/init-gtag v0.1.4

Weekly downloads
8
License
ISC
Repository
github
Last release
6 years ago

About

It is used to initialize the gtag.js. According to the official default installation, it is much easier to combine the gtag snippet code to any javascript modules.

Notice

  1. It will returns a push tag function instead of exposing the gtag function to the window.
  2. It is required to name the dataLayer.

How to use

import { initGtag } from "@gastrofy/init-gtag";

var pushTag = initGtag( PRODUCT_ID, DATA_LAYER_NAME, ADDITIONAL? );
0.1.4

6 years ago

0.1.3

6 years ago

0.1.2

6 years ago

0.1.1

6 years ago

0.1.0

6 years ago

0.0.3

6 years ago

0.0.2

6 years ago

0.0.1

6 years ago