@@ -22,13 +22,13 @@ npm i @phntms/next-gtm
2222
2323### < ; TrackingHeadScript />
2424
25- | Property | Type | Default | Notes |
26- | -------------- | --------- | --------- | --------------------------------------------------------------------------------------------------------- |
27- | ** id** | ` string ` | undefined | ID that uniquely identifies GTM Container. Example format: ` GTM-xxxxxx ` . |
28- | ** disable** | ` boolean ` | false | Used to disable tracking events. Use if you want user to consent to being tracked before tracking events. |
29- | ** isGTM** | ` boolean ` | false | Loads the gtag.js script by default (legacy behaviour - compatible with UA/GA4/GTM), else, loads gtm.js. |
30- | ** GTMAuth** | ` string ` | undefined | (isGTM = true required) Optional parameter to load a non-default GTM environment, e.g. for testing GTM. |
31- | ** GTMPreview** | ` string ` | undefined | (isGTM = true required) Optional parameter to load a non-default GTM environment, e.g. for testing GTM. |
25+ | Property | Type | Default | Notes |
26+ | -------------- | --------- | --------- | -------------------------------------------------------------------------------------------------------- |
27+ | ** id** | ` string ` | undefined | ID that uniquely identifies GTM Container. Example format: ` GTM-xxxxxx ` . |
28+ | ** disable** | ` boolean ` | false | Used to disable tracking events (isGTM=false only) . Use if you want user to consent to cookies first |
29+ | ** isGTM** | ` boolean ` | false | Loads the gtag.js script by default (legacy behaviour - compatible with UA/GA4/GTM), else, loads gtm.js. |
30+ | ** GTMAuth** | ` string ` | undefined | (isGTM = true required) Optional parameter to load a non-default GTM environment, e.g. for testing GTM. |
31+ | ** GTMPreview** | ` string ` | undefined | (isGTM = true required) Optional parameter to load a non-default GTM environment, e.g. for testing GTM. |
3232
3333To initialize GTM, add ` TrackingHeadScript ` to the ` head ` of the page.
3434
0 commit comments