Skip to content

Commit 125bcb2

Browse files
Add cookie banner to tracking integraitons (#941)
* Move check for cookies into the tracking function * Add cookie banner to tracking integrations
1 parent c306d26 commit 125bcb2

File tree

9 files changed

+48
-25
lines changed

9 files changed

+48
-25
lines changed

.changeset/funny-pumas-change.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
---
2+
'@gitbook/integration-salesviewer': minor
3+
'@gitbook/integration-mixpanel': minor
4+
'@gitbook/integration-posthog': minor
5+
'@gitbook/integration-fathom': minor
6+
'@gitbook/integration-hotjar': minor
7+
'@gitbook/integration-heap': minor
8+
'@gitbook/integration-reo.dev': minor
9+
---
10+
11+
Add cookie banner to tracking integrations

.changeset/rude-pigs-fix.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@gitbook/integration-plausible': minor
3+
---
4+
5+
Move check for cookies into the tracking function

integrations/fathom/gitbook-manifest.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ script: ./src/index.ts
1414
# See https://developer.gitbook.com/integrations/configurations#scopes
1515
scopes:
1616
- site:script:inject
17+
- site:script:cookies
1718
contentSecurityPolicy:
1819
script-src: |
1920
https://cdn.usefathom.com;

integrations/heap/gitbook-manifest.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ script: ./src/index.ts
1313
# See https://developer.gitbook.com/integrations/configurations#scopes
1414
scopes:
1515
- site:script:inject
16+
- site:script:cookies
1617
organization: gitbook
1718
contentSecurityPolicy:
1819
script-src: https://heapanalytics.com https://cdn.heapanalytics.com 'unsafe-inline';

integrations/hotjar/gitbook-manifest.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ script: ./src/index.ts
1313
# See https://developer.gitbook.com/integrations/configurations#scopes
1414
scopes:
1515
- site:script:inject
16+
- site:script:cookies
1617
organization: gitbook
1718
contentSecurityPolicy:
1819
script-src: static.hotjar.com script.hotjar.com;

integrations/mixpanel/gitbook-manifest.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ script: ./src/index.ts
1010
# See https://developer.gitbook.com/integrations/configurations#scopes
1111
scopes:
1212
- site:script:inject
13+
- site:script:cookies
1314
organization: gitbook
1415
contentSecurityPolicy:
1516
script-src: cdn.mxpnl.com;

integrations/posthog/gitbook-manifest.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ script: ./src/index.ts
1313
# See https://developer.gitbook.com/integrations/configurations#scopes
1414
scopes:
1515
- site:script:inject
16+
- site:script:cookies
1617
organization: gitbook
1718
contentSecurityPolicy:
1819
script-src: https://eu.posthog.com https://app.posthog.com;

integrations/reo/gitbook-manifest.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ script: ./src/index.ts
1313
# See https://developer.gitbook.com/integrations/configurations#scopes
1414
scopes:
1515
- site:script:inject
16+
- site:script:cookies
1617
organization: gitbook
1718
contentSecurityPolicy:
1819
script-src: static.reo.dev www.ipapi.co;

integrations/salesviewer/gitbook-manifest.yaml

Lines changed: 26 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -3,43 +3,44 @@ title: SalesViewer
33
icon: ./assets/icon.png
44
description: Track and identify GitBook page visitors with Salesviewer analytics.
55
previewImages:
6-
- ./assets/salesviewer-preview.png
6+
- ./assets/salesviewer-preview.png
77
externalLinks:
8-
- label: Documentation
9-
url: https://www.salesviewer.com/en/help/
8+
- label: Documentation
9+
url: https://www.salesviewer.com/en/help/
1010
visibility: public
1111
organization: ebg2KXDsLAQnw4pxgpm6
1212
script: ./src/index.ts
1313
scopes:
14-
- site:script:inject
14+
- site:script:inject
15+
- site:script:cookies
1516
contentSecurityPolicy:
16-
script-src: |
17-
https://slsnlytcs.com;
18-
connect-src: |
19-
slsnlytcs.com;
17+
script-src: |
18+
https://slsnlytcs.com;
19+
connect-src: |
20+
slsnlytcs.com;
2021
summary: |
21-
# Overview
22+
# Overview
2223
23-
SalesViewer® is a powerful analytics and visitor identification platform that helps you understand who visits your pages and track their behavior.
24+
SalesViewer® is a powerful analytics and visitor identification platform that helps you understand who visits your pages and track their behavior.
2425
25-
# How it works
26+
# How it works
2627
27-
The GitBook SalesViewer® integration allows you to track traffic in your published sites from your SalesViewer® dashboard.
28+
The GitBook SalesViewer® integration allows you to track traffic in your published sites from your SalesViewer® dashboard.
2829
29-
Each of your connected GitBook sites will fetch the SalesViewer® tracking script and inject it in your public content, enabling visitor tracking and identification.
30+
Each of your connected GitBook sites will fetch the SalesViewer® tracking script and inject it in your public content, enabling visitor tracking and identification.
3031
31-
# Configure
32-
Install the integration on the GitBook site of your choice.
33-
Locate the Account ID you want to use, which is available in SalesViewer® dashboard under "Profile > Project & Tracking code":
32+
# Configure
33+
Install the integration on the GitBook site of your choice.
34+
Locate the Account ID you want to use, which is available in SalesViewer® dashboard under "Profile > Project & Tracking code":
3435
categories:
35-
- analytics
36+
- analytics
3637
configurations:
37-
site:
38-
properties:
39-
tracking_id:
40-
type: string
41-
title: Tracking ID
42-
description: Your SalesViewer® Account ID
43-
required:
44-
- tracking_id
38+
site:
39+
properties:
40+
tracking_id:
41+
type: string
42+
title: Tracking ID
43+
description: Your SalesViewer® Account ID
44+
required:
45+
- tracking_id
4546
target: site

0 commit comments

Comments
 (0)