@deptno/gtag-react
TypeScript icon, indicating that this package has built-in type declarations

0.2.0 • Public • Published

@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

Package Sidebar

Install

npm i @deptno/gtag-react

Weekly Downloads

4

Version

0.2.0

License

MIT

Unpacked Size

4 kB

Total Files

6

Last publish

Collaborators

  • deptno