Skip to content

Commit e23a383

Browse files
committed
cleanup
1 parent eb13e2c commit e23a383

File tree

2 files changed

+22
-12
lines changed

2 files changed

+22
-12
lines changed

apps/docs/content/docs/Integrations/shopify.mdx

Lines changed: 14 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@ title: Shopify
33
description: Add privacy-first analytics to your Shopify store
44
---
55

6+
import { CodeBlock } from "@/components/docs";
7+
68
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.
79

810
## Installation Methods
@@ -16,16 +18,18 @@ Add Databuddy directly to your Shopify theme:
1618
3. Open `theme.liquid` in the Layout folder
1719
4. Add your Databuddy script before the closing `</head>` tag:
1820

19-
```html
20-
<script
21+
<CodeBlock
22+
language="html"
23+
filename="theme.liquid"
24+
code={`<script
2125
src="https://cdn.databuddy.cc/databuddy.js"
2226
data-client-id="YOUR_SITE_ID"
2327
data-track-screen-views="true"
2428
data-track-attributes="true"
2529
data-track-outgoing-links="true"
2630
async
27-
></script>
28-
```
31+
></script>`}
32+
/>
2933

3034
### Method 2: Google Tag Manager
3135

@@ -34,8 +38,10 @@ If you're using Google Tag Manager:
3438
1. In GTM, create a new **Custom HTML** tag
3539
2. Add the Databuddy script:
3640

37-
```html
38-
<script>
41+
<CodeBlock
42+
language="html"
43+
filename="GTM Custom HTML Tag"
44+
code={`<script>
3945
(function() {
4046
var script = document.createElement('script');
4147
script.src = 'https://cdn.databuddy.cc/databuddy.js';
@@ -45,8 +51,8 @@ If you're using Google Tag Manager:
4551
script.async = true;
4652
document.head.appendChild(script);
4753
})();
48-
</script>
49-
```
54+
</script>`}
55+
/>
5056

5157
3. Set trigger to **All Pages**
5258
4. Publish the container

apps/docs/content/docs/Integrations/wordpress.mdx

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@ title: WordPress
33
description: Add privacy-first analytics to your WordPress site
44
---
55

6+
import { CodeBlock } from "@/components/docs";
7+
68
Add Databuddy's privacy-first analytics to your WordPress site without slowing it down. No cookies, fully GDPR compliant, and 247x smaller than Google Analytics.
79

810
## Installation Methods
@@ -28,14 +30,16 @@ If you prefer manual installation:
2830
3. Select **header.php**
2931
4. Add your script before the closing `</head>` tag:
3032

31-
```html
32-
<script
33+
<CodeBlock
34+
language="html"
35+
filename="header.php"
36+
code={`<script
3337
src="https://cdn.databuddy.cc/databuddy.js"
3438
data-site-id="YOUR_SITE_ID"
3539
async
3640
></script>
37-
</head>
38-
```
41+
</head>`}
42+
/>
3943

4044
### Method 3: Using a Plugin (Insert Headers and Footers)
4145

0 commit comments

Comments
 (0)