JSPM

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

gtag, typescript

Package Exports

  • @deptno/gtag

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 (@deptno/gtag) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

@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