React implementation for Google Tag Manager
usegtm - v1.0.0
▸ GTM(options
: GTMArgs & { children?
: ReactNode ; events?
: GTMEvents }): Element
Name | Type |
---|---|
options |
GTMArgs & { children? : ReactNode ; events? : GTMEvents } |
Returns: Element
Defined in: index.tsx:79
▸ useGTM(options
: Partial<GTMArgs> & { events?
: GTMEvents }): object
Name | Type |
---|---|
options |
Partial<GTMArgs> & { events? : GTMEvents } |
Returns: object
Name | Type |
---|---|
auth? |
string |
dataLayerName |
string |
events? |
GTMEvents |
id |
string |
preview? |
boolean |
sendEvent |
(key : string, value : string) => void |
sendEvents |
(events : GTMEvents) => void |
Defined in: index.tsx:92