0.2.0 • Published 4 years ago

@deptno/gtag-react v0.2.0

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

@deptno/gtag-teact

npm

@WIP

gtag component

install

npm i @deptno/gtag-react

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

/* GlobalLayoutComponent */
import {config, set, event, action} from '@deptno/gtag'
import {GTag} from '@deptno/gtag-react'

export const GlobalLayoutComponent = _ => {
  return (
    <>
      <!-- ... -->
      <GTag id={YOUR_GA_ID} />
    </>
  )
}

package

license

MIT

0.2.0

4 years ago

0.1.10

4 years ago

0.1.8

4 years ago

0.1.5

4 years ago

0.1.4

4 years ago

0.1.3

4 years ago

0.1.2

4 years ago