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
@WIP
typescripted gtag wrapper
install
npm i @deptno/gtagapi
- config
configmakes state and causes breaking type system.(not recommend) - set
setmakes state and causes breaking type system.(not recommend) - event
eventsupport default event types. - action
actionis user customevent
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
- @deptno/gtag
typescripted gtag wrapper - @deptno/gtag-react
gtag component
license
MIT