Skip to content

🐸 Rybbit - open-source and privacy-friendly alternative to Google Analytics that is 10x more intuitive.

Add Framer integration (#220)

Edward Cui338d99d7eb18
diff --git a/docs/src/content/_meta.js b/docs/src/content/_meta.js
index 52ed4b039..edc27425e 100644
--- a/docs/src/content/_meta.js
+++ b/docs/src/content/_meta.js
@@ -20,7 +20,7 @@ export default {
title: "SDKs",
},
web: "",
- _7: {
+ _6: {
type: "separator",
title: "Settings",
},
@@ -29,7 +29,7 @@ export default {
"enhanced-privacy": "",
"changing-domains": "",
"deleting-sites": "",
- _8: {
+ _7: {
type: "separator",
title: "Other",
},
diff --git a/docs/src/content/integrations/framer.mdx b/docs/src/content/integrations/framer.mdx
new file mode 100644
index 000000000..9a5ea8af2
--- /dev/null
+++ b/docs/src/content/integrations/framer.mdx
@@ -0,0 +1,28 @@
+import { Steps } from "nextra/components"
+
+# Framer
+
+Rybbit enables you to gather analytics on user behavior, capture custom events, record sessions, and more within your Framer site.
+
+## How to Add Rybbit to Framer
+
+<Steps>
+### 1. Retrieve Your Tracking Script
+
+Navigate to your Rybbit dashboard to obtain your code snippet.
+
+```html
+<script
+ src="https://app.rybbit.io/api/script.js"
+ data-site-id="YOUR_SITE_ID"
+ async
+></script>
+```
+
+### 2. Add the Snippet to Your Framer Project
+
+- Open your Framer project.
+- Go to **Site Settings > General** and scroll down to **Custom Code**.
+- Paste your snippet into the `<head>` tag section (start or end).
+- Publish your changes.
+</Steps>
diff --git a/docs/src/content/integrations/google-tag-manager.mdx b/docs/src/content/integrations/google-tag-manager.mdx
index 4aaae2d09..ab49c98b0 100644
--- a/docs/src/content/integrations/google-tag-manager.mdx
+++ b/docs/src/content/integrations/google-tag-manager.mdx
@@ -9,11 +9,11 @@ Google Tag Manager (GTM) allows you to add code snippets or tracking pixels to y
<Steps>
### 1. Retrieve Your Tracking Script
-Navigate to your Rybbit instance to obtain your JavaScript snippet.
+Navigate to your Rybbit dashboard to obtain your code snippet.
Normally, the script would look like:
-```javascript
+```html
<script
src="https://app.rybbit.io/api/script.js"
data-site-id="YOUR_SITE_ID"
@@ -41,15 +41,15 @@ Assuming GTM is already set up, go to your GTM dashboard and select the appropri
### 3. Create a New Tag
-Click on "Add a new tag" to initiate the creation process.
+Click on **Add a new tag** to initiate the creation process.
### 4. Configure the Tag
-Under "Tag Configuration," choose "Custom HTML" and paste your Rybbit snippet into the provided field.
+Under **Tag Configuration**, choose **Custom HTML** and paste your Rybbit snippet into the provided field.
### 5. Set Up Triggers
-Assign a trigger to determine when the tag should fire. For instance, to load Rybbit on all pages, select the "All Pages" trigger.
+Assign a trigger to determine when the tag should fire. For instance, to load Rybbit on all pages, select the **All Pages** trigger.
### 6. Save and Publish
diff --git a/docs/src/content/track-events.mdx b/docs/src/content/track-events.mdx
index c3cc5d186..1b6285582 100644
--- a/docs/src/content/track-events.mdx
+++ b/docs/src/content/track-events.mdx
@@ -45,9 +45,9 @@ Manually tracks outbound link clicks. Useful for programmatic navigation or cust
window.rybbit.trackOutbound("https://example.com", "Example Site", "_blank");
``` */}
-## Typescript Support
+## TypeScript Support
-Put this as file `rybbit.d.ts` anywhere in your project to avoid having to do `(window as any).rybbit.event()` everywhere.
+Put this as `rybbit.d.ts` anywhere in your project to avoid having to do `(window as any).rybbit.event()` everywhere.
```typescript
interface Rybbit {