Skip to content

Commit c3a30e3

Browse files
authored
Merge pull request #38 from phantomstudios/feat/GTM-preview-support
Update build
2 parents 7552cd5 + cfffe53 commit c3a30e3

3 files changed

Lines changed: 3727 additions & 2404 deletions

File tree

README.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -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

3333
To initialize GTM, add `TrackingHeadScript` to the `head` of the page.
3434

0 commit comments

Comments
 (0)