You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: apps/docs/content/docs/Integrations/framer.mdx
+12-20Lines changed: 12 additions & 20 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -3,8 +3,6 @@ title: Framer
3
3
description: Add privacy-first analytics to your Framer site
4
4
---
5
5
6
-
import { CodeBlock } from"@/components/docs";
7
-
8
6
Databuddy enables you to gather privacy-first analytics on user behavior, capture custom events, track performance metrics, and more within your Framer site - all while maintaining GDPR compliance without cookies.
9
7
10
8
> TL;DR: Paste the inline loader below into Framer → Site Settings → General → Custom Code (Start of <head> tag). Replace `YOUR_CLIENT_ID` with your client ID. Publish, then check the dashboard.
@@ -15,10 +13,8 @@ Databuddy enables you to gather privacy-first analytics on user behavior, captur
15
13
16
14
Navigate to your [Databuddy dashboard](https://app.databuddy.cc) and copy your tracking code snippet:
17
15
18
-
<CodeBlock
19
-
language="html"
20
-
filename="Databuddy Tracking Script"
21
-
code={`<script>
16
+
```html
17
+
<script>
22
18
(function () {
23
19
var script =document.createElement("script");
24
20
script.async=true;
@@ -29,8 +25,8 @@ Navigate to your [Databuddy dashboard](https://app.databuddy.cc) and copy your t
29
25
script.setAttribute("data-track-errors", "true");
30
26
document.head.appendChild(script);
31
27
})();
32
-
</script>`}
33
-
/>
28
+
</script>
29
+
```
34
30
35
31
### 2. Add the Script to Your Framer Project
36
32
@@ -55,26 +51,22 @@ Once published, you can verify that Databuddy is working by:
55
51
56
52
Track custom interactions in your Framer components using data attributes:
Copy file name to clipboardExpand all lines: apps/docs/content/docs/Integrations/gtm.mdx
+4-8Lines changed: 4 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -3,8 +3,6 @@ title: Google Tag Manager
3
3
description: Add Databuddy analytics through Google Tag Manager
4
4
---
5
5
6
-
import { CodeBlock } from"@/components/docs";
7
-
8
6
Integrate Databuddy with Google Tag Manager for centralized tag management while maintaining privacy-first analytics. Perfect for teams managing multiple tracking tools.
9
7
10
8
> TL;DR: In GTM, create a Custom HTML tag with an inline loader that appends `https://cdn.databuddy.cc/databuddy.js` and sets `data-client-id`. Enable desired flags (e.g., `data-track-screen-views`, `data-track-attributes`, `data-track-errors`). Trigger on All Pages and publish.
@@ -27,10 +25,8 @@ Integrate Databuddy with Google Tag Manager for centralized tag management while
27
25
28
26
> **Important**: GTM sanitizes HTML and removes non-standard attributes like `data-client-id`. Always use `createElement()` and `setAttribute()` as shown below:
29
27
30
-
<CodeBlock
31
-
language="html"
32
-
filename="GTM Custom HTML Tag"
33
-
code={`<script>
28
+
```html
29
+
<script>
34
30
(function () {
35
31
var el =document.createElement("script");
36
32
el.src="https://cdn.databuddy.cc/databuddy.js";
@@ -41,8 +37,8 @@ Integrate Databuddy with Google Tag Manager for centralized tag management while
Copy file name to clipboardExpand all lines: apps/docs/content/docs/Integrations/shopify.mdx
+8-14Lines changed: 8 additions & 14 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -3,8 +3,6 @@ title: Shopify
3
3
description: Add privacy-first analytics to your Shopify store
4
4
---
5
5
6
-
import { CodeBlock } from"@/components/docs";
7
-
8
6
Add Databuddy's privacy-first analytics to your Shopify store to track customer behavior, e-commerce events, and improve conversion rates while maintaining GDPR compliance.
9
7
10
8
## Installation Methods
@@ -18,18 +16,16 @@ Add Databuddy directly to your Shopify theme:
18
16
3. Open `theme.liquid` in the Layout folder
19
17
4. Add your Databuddy script before the closing `</head>` tag:
20
18
21
-
<CodeBlock
22
-
language="html"
23
-
filename="theme.liquid"
24
-
code={`<script
19
+
```html
20
+
<script
25
21
src="https://cdn.databuddy.cc/databuddy.js"
26
22
data-client-id="YOUR_SITE_ID"
27
23
data-track-screen-views="true"
28
24
data-track-attributes="true"
29
25
data-track-outgoing-links="true"
30
26
async
31
-
></script>`}
32
-
/>
27
+
></script>
28
+
```
33
29
34
30
### Method 2: Google Tag Manager
35
31
@@ -38,10 +34,8 @@ If you're using Google Tag Manager:
0 commit comments