0.2.1 • Published 5 years ago

@deptno/gtag v0.2.1

Weekly downloads
4
License
MIT
Repository
github
Last release
5 years ago

@deptno/gtag

npm

@WIP

typescripted gtag wrapper

install

npm i @deptno/gtag

api

  • config
    config makes state and causes breaking type system.(not recommend)
  • set
    set makes state and causes breaking type system.(not recommend)
  • event
    event support default event types.
  • action
    action is user custom event

usage

import {config, js, set, event, action} from '@deptno/gtag'

js(new Date())
set('user_ga_id', {
  send_page_view: false
})
config('user_ga_id', {
  send_page_view: false
})
event('add_payment_info')
event('login', {
  value: 1000,
  currency: 'KRW',
  items: []
})
action('user_custom_action_name', {
  event_category: 'user_category'
})

package

license

MIT

0.2.1

5 years ago

0.2.0

5 years ago

0.1.12

5 years ago

0.1.13

5 years ago

0.1.11

5 years ago

0.1.10

5 years ago

0.1.7

5 years ago

0.1.9

5 years ago

0.1.6

5 years ago

0.1.5

5 years ago

0.1.4

5 years ago

0.1.3

5 years ago

0.1.2

5 years ago

0.1.1

5 years ago

0.1.0

5 years ago