0.0.3 • Published 7 years ago

tag-google-lib v0.0.3

Weekly downloads
13
License
-
Repository
-
Last release
7 years ago

Library Tag Google Analytics

github proyect: https://github.com/devjaime/tagGoogle

Description:

send hit sequence for google analytic tag through a function with the same parameters of the construction of a hit

Get started

npm install tag-google-lib import tag as follows in your Angular project

1 import { TagGoogleLibService } from 'tag-google-lib'; 2 @NgModule({ imports: TagGoogleLibModule , })

Function Tag(): String // returns debug response

import { TagGoogleLibService } from 'tag-google-lib' constructor( private tag: TagGoogleLibService ) { console.log('pasa por constructor'); let respuesta: string; respuesta = tag.tag('label',
'category', 'action', //label del tag 'eventtype', // Event hit type 'tid', // UA-XXXXX-XX unique identifier of google analytic 'an', // domain name 'av', // version exemple 5.2.6 'aid', // exemple cl.devjaime 'cs', platform requeried exemple 'Android' debug); //true when you need to debug false to send the hit to production console.log(respuesta); }

0.0.3

7 years ago

0.0.2

7 years ago

0.0.1

7 years ago