Skip to content

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

Add new platform integrations to NoData component and documentation

Bill Yang5f5473d11768
diff --git a/client/src/app/[site]/components/Header/NoData.tsx b/client/src/app/[site]/components/Header/NoData.tsx
index de0be9dc5..cd60372b0 100644
--- a/client/src/app/[site]/components/Header/NoData.tsx
+++ b/client/src/app/[site]/components/Header/NoData.tsx
@@ -1,27 +1,37 @@
import {
SiAngular,
SiAstro,
+ SiBigcommerce,
+ SiCarrd,
+ SiContentful,
SiDocusaurus,
SiDrupal,
SiFramer,
SiGatsby,
+ SiGhost,
+ SiGitbook,
SiGoogletagmanager,
SiHugo,
SiJekyll,
+ SiJoomla,
SiLaravel,
+ SiMintlify,
SiNextdotjs,
SiNuxt,
+ SiPrestashop,
SiReact,
SiRemix,
+ SiSanity,
SiShopify,
SiSquarespace,
+ SiStrapi,
SiSvelte,
+ SiVitepress,
SiVuedotjs,
SiWebflow,
SiWix,
SiWoocommerce,
SiWordpress,
- SiMintlify,
} from "@icons-pack/react-simple-icons";
import React from "react";
import { useGetSite, useSiteHasData } from "../../../../api/admin/hooks/useSites";
@@ -150,12 +160,42 @@ export function NoData() {
description=""
href="https://rybbit.com/docs/guides/astro"
/>
+ <Card
+ icon={<SiBigcommerce className="w-5 h-5" />}
+ title="BigCommerce"
+ description=""
+ href="https://rybbit.com/docs/guides/bigcommerce"
+ />
+ <Card
+ icon={<SiCarrd className="w-5 h-5" />}
+ title="Carrd"
+ description=""
+ href="https://rybbit.com/docs/guides/carrd"
+ />
+ <Card
+ icon={<SiContentful className="w-5 h-5" />}
+ title="Contentful"
+ description=""
+ href="https://rybbit.com/docs/guides/contentful"
+ />
<Card
icon={<SiGatsby className="w-5 h-5" />}
title="Gatsby"
description=""
href="https://rybbit.com/docs/guides/react/gatsby"
/>
+ <Card
+ icon={<SiGhost className="w-5 h-5" />}
+ title="Ghost"
+ description=""
+ href="https://rybbit.com/docs/guides/ghost"
+ />
+ <Card
+ icon={<SiGitbook className="w-5 h-5" />}
+ title="GitBook"
+ description=""
+ href="https://rybbit.com/docs/guides/gitbook"
+ />
<Card
icon={<SiRemix className="w-5 h-5" />}
title="Remix"
@@ -193,6 +233,12 @@ export function NoData() {
description=""
href="https://rybbit.com/docs/guides/jekyll"
/>
+ <Card
+ icon={<SiJoomla className="w-5 h-5" />}
+ title="Joomla"
+ description=""
+ href="https://rybbit.com/docs/guides/joomla"
+ />
<Card
icon={<SiLaravel className="w-5 h-5" />}
title="Laravel"
@@ -205,6 +251,18 @@ export function NoData() {
description=""
href="https://rybbit.com/docs/guides/mintlify"
/>
+ <Card
+ icon={<SiPrestashop className="w-5 h-5" />}
+ title="PrestaShop"
+ description=""
+ href="https://rybbit.com/docs/guides/prestashop"
+ />
+ <Card
+ icon={<SiSanity className="w-5 h-5" />}
+ title="Sanity"
+ description=""
+ href="https://rybbit.com/docs/guides/sanity"
+ />
<Card
icon={<SiShopify className="w-5 h-5" />}
title="Shopify"
@@ -217,6 +275,18 @@ export function NoData() {
description=""
href="https://rybbit.com/docs/guides/squarespace"
/>
+ <Card
+ icon={<SiStrapi className="w-5 h-5" />}
+ title="Strapi"
+ description=""
+ href="https://rybbit.com/docs/guides/strapi"
+ />
+ <Card
+ icon={<SiVitepress className="w-5 h-5" />}
+ title="VitePress"
+ description=""
+ href="https://rybbit.com/docs/guides/vitepress"
+ />
<Card
icon={<SiWordpress className="w-5 h-5" />}
title="WordPress"
diff --git a/docs/content/docs/guides/bigcommerce.mdx b/docs/content/docs/guides/bigcommerce.mdx
new file mode 100644
index 000000000..27e388479
--- /dev/null
+++ b/docs/content/docs/guides/bigcommerce.mdx
@@ -0,0 +1,169 @@
+---
+title: BigCommerce
+description: Integrate Rybbit Analytics with your BigCommerce store
+---
+
+import { Steps, Step } from 'fumadocs-ui/components/steps';
+import { Tabs, Tab } from 'fumadocs-ui/components/tabs';
+import { Callout } from 'fumadocs-ui/components/callout';
+
+BigCommerce is a leading e-commerce platform for online stores. You can integrate Rybbit Analytics to track visitor behavior and conversions.
+
+## How to Add Rybbit to BigCommerce
+
+<Tabs items={['Script Manager (Recommended)', 'Theme Files']}>
+<Tab>
+### Using Script Manager
+
+The easiest way to add Rybbit to BigCommerce is through the Script Manager.
+
+<Steps>
+<Step>
+### Access Script Manager
+
+1. Log in to your BigCommerce admin panel
+2. Go to **Storefront** > **Script Manager**
+3. Click **Create a Script**
+</Step>
+
+<Step>
+### Configure the Script
+
+Fill in the following settings:
+
+- **Name**: Rybbit Analytics
+- **Description**: Rybbit Analytics tracking script
+- **Placement**: Head
+- **Location**: All pages
+- **Script category**: Analytics
+- **Script type**: Script
+
+In the **Script contents** box, paste:
+
+```html
+<script>
+(function() {
+ var s = document.createElement('script');
+ s.src = 'https://app.rybbit.io/api/script.js';
+ s.defer = true;
+ s.setAttribute('data-site-id', 'YOUR_SITE_ID');
+ document.head.appendChild(s);
+})();
+</script>
+```
+
+Replace `YOUR_SITE_ID` with your actual Site ID.
+</Step>
+
+<Step>
+### Save the Script
+
+Click **Save** to activate the script on your store.
+</Step>
+</Steps>
+</Tab>
+
+<Tab>
+### Editing Theme Files
+
+You can also add the script directly to your theme files for more control.
+
+<Callout type="warn">
+Editing theme files requires some technical knowledge. Make a backup of your theme before making changes.
+</Callout>
+
+<Steps>
+<Step>
+### Access Theme Files
+
+1. Go to **Storefront** > **Themes**
+2. Click **Advanced** on your current theme
+3. Select **Edit Theme Files**
+</Step>
+
+<Step>
+### Edit the Header Template
+
+1. Navigate to **templates** > **components** > **common**
+2. Open `head.html`
+3. Add the following code before the closing `</head>` or at the end of the file:
+
+```html
+<script>
+(function() {
+ var s = document.createElement('script');
+ s.src = 'https://app.rybbit.io/api/script.js';
+ s.defer = true;
+ s.setAttribute('data-site-id', 'YOUR_SITE_ID');
+ document.head.appendChild(s);
+})();
+</script>
+```
+</Step>
+
+<Step>
+### Save and Apply
+
+Click **Save** to apply the changes to your live store.
+</Step>
+</Steps>
+</Tab>
+</Tabs>
+
+## Tracking E-commerce Events
+
+To get the most out of Rybbit with BigCommerce, you can track key e-commerce events like product views and purchases.
+
+### Track Purchases
+
+To track completed purchases, create another script in Script Manager with these settings:
+
+- **Placement**: Footer
+- **Location**: Order Confirmation
+- **Script type**: Script
+
+```html
+<script>
+(function() {
+ function waitForRybbit(callback, timeout) {
+ var start = Date.now();
+ (function check() {
+ if (window.rybbit && typeof window.rybbit.event === 'function') {
+ callback();
+ } else if (Date.now() - start < timeout) {
+ setTimeout(check, 100);
+ }
+ })();
+ }
+
+ waitForRybbit(function() {
+ // BigCommerce provides order data via Handlebars
+ {{#if checkout.order}}
+ window.rybbit.event('purchase', {
+ transaction_id: '{{checkout.order.id}}',
+ value: {{checkout.subtotal.value}},
+ currency: '{{checkout.currency.code}}'
+ });
+ {{/if}}
+ }, 5000);
+})();
+</script>
+```
+
+<Callout type="info">
+BigCommerce uses Handlebars templating. The `{{}}` syntax is processed by BigCommerce to inject order data.
+</Callout>
+
+## Troubleshooting
+
+### Script not loading
+
+1. Check Script Manager to ensure the script is enabled
+2. Clear your store's cache: **Server Settings** > **Store-level caching** > **Purge cache**
+3. Check the browser console for any errors
+
+### E-commerce events not tracking
+
+1. Make sure the purchase tracking script is set to **Order Confirmation** location
+2. Verify the Handlebars variables match your BigCommerce version
+3. Test by completing a test order
diff --git a/docs/content/docs/guides/carrd.mdx b/docs/content/docs/guides/carrd.mdx
new file mode 100644
index 000000000..fac7bdc15
--- /dev/null
+++ b/docs/content/docs/guides/carrd.mdx
@@ -0,0 +1,72 @@
+---
+title: Carrd
+description: Integrate Rybbit Analytics with your Carrd site
+---
+
+import { Steps, Step } from 'fumadocs-ui/components/steps';
+import { Callout } from 'fumadocs-ui/components/callout';
+
+Carrd is a popular platform for building simple, responsive one-page sites. You can add Rybbit Analytics to track visitors on your Carrd site.
+
+<Callout type="warn">
+Adding custom code requires a **Carrd Pro** subscription (Pro Standard, Pro Plus, or Pro Max).
+</Callout>
+
+## How to Add Rybbit to Carrd
+
+<Steps>
+<Step>
+### Open Your Site Settings
+
+1. Log in to Carrd and open your site in the editor
+2. Click on the **Settings** icon (gear) in the top right
+3. Select the **Settings** tab
+</Step>
+
+<Step>
+### Add Head Code
+
+1. Scroll down to the **Head** section under "Embed Code"
+2. Paste the following code:
+
+```html
+<script>
+(function() {
+ var s = document.createElement('script');
+ s.src = 'https://app.rybbit.io/api/script.js';
+ s.defer = true;
+ s.setAttribute('data-site-id', 'YOUR_SITE_ID');
+ document.head.appendChild(s);
+})();
+</script>
+```
+
+Replace `YOUR_SITE_ID` with your actual Site ID from your Rybbit dashboard.
+</Step>
+
+<Step>
+### Publish Your Site
+
+Click **Save** then **Publish** to apply the changes to your live site.
+</Step>
+</Steps>
+
+<Callout type="info">
+We use the JavaScript approach instead of a plain script tag because some site builders may strip `data-*` attributes during processing.
+</Callout>
+
+## Using Multiple Pages
+
+If your Carrd site has multiple pages (Pro Plus or Pro Max feature), the tracking script in the head code will automatically load on all pages.
+
+## Troubleshooting
+
+### Script not working
+
+1. Make sure you have a Carrd Pro subscription
+2. Ensure you published the site after adding the code
+3. Check "View Page Source" on your live site and search for `rybbit`
+
+### Form submissions
+
+To track form submissions as events, you can add a custom event using Carrd's form settings or by adding additional JavaScript in the embed code section.
diff --git a/docs/content/docs/guides/contentful.mdx b/docs/content/docs/guides/contentful.mdx
new file mode 100644
index 000000000..3ee246f05
--- /dev/null
+++ b/docs/content/docs/guides/contentful.mdx
@@ -0,0 +1,80 @@
+---
+title: Contentful
+description: Integrate Rybbit Analytics with your Contentful-powered website
+---
+
+import { Callout } from 'fumadocs-ui/components/callout';
+
+Contentful is an enterprise headless CMS that delivers content via API. Since Contentful is headless, you'll add Rybbit Analytics to your frontend application rather than to Contentful itself.
+
+<Callout type="info">
+Contentful only manages and delivers your content - it doesn't serve your website. The tracking script goes in your frontend framework (Next.js, Gatsby, Nuxt, etc.).
+</Callout>
+
+## How to Add Rybbit with Contentful
+
+Choose the guide that matches your frontend framework:
+
+### React-based Frontends
+- **[Next.js](/docs/guides/react/next-js)** - Most common choice with Contentful
+- **[Gatsby](/docs/guides/react/gatsby)** - Has official Contentful plugin
+- **[Remix](/docs/guides/react/remix)**
+- **[Vite + React](/docs/guides/react/vite-cra)**
+
+### Vue-based Frontends
+- **[Nuxt](/docs/guides/vue/nuxt)**
+- **[Vite + Vue](/docs/guides/vue/vite)**
+
+### Other Frontends
+- **[Astro](/docs/guides/astro)**
+- **[SvelteKit](/docs/guides/svelte/sveltekit)**
+- **[Angular](/docs/guides/angular)**
+
+## Quick Example: Next.js with Contentful
+
+If you're using Next.js (the most common Contentful frontend), add the tracking script to your root layout:
+
+```tsx
+// app/layout.tsx
+import Script from 'next/script'
+
+export default function RootLayout({
+ children,
+}: {
+ children: React.ReactNode
+}) {
+ return (
+ <html lang="en">
+ <head>
+ <Script
+ src="https://app.rybbit.io/api/script.js"
+ data-site-id="YOUR_SITE_ID"
+ strategy="afterInteractive"
+ />
+ </head>
+ <body>{children}</body>
+ </html>
+ )
+}
+```
+
+Replace `YOUR_SITE_ID` with your actual Site ID from your Rybbit dashboard.
+
+## Quick Example: Gatsby with Contentful
+
+If you're using Gatsby, add to your `gatsby-ssr.js`:
+
+```javascript
+import React from 'react'
+
+export const onRenderBody = ({ setHeadComponents }) => {
+ setHeadComponents([
+ <script
+ key="rybbit"
+ src="https://app.rybbit.io/api/script.js"
+ data-site-id="YOUR_SITE_ID"
+ defer
+ />
+ ])
+}
+```
diff --git a/docs/content/docs/guides/ghost.mdx b/docs/content/docs/guides/ghost.mdx
new file mode 100644
index 000000000..cd5c115cf
--- /dev/null
+++ b/docs/content/docs/guides/ghost.mdx
@@ -0,0 +1,59 @@
+---
+title: Ghost
+description: Integrate Rybbit Analytics with your Ghost blog or publication
+---
+
+import { Steps, Step } from 'fumadocs-ui/components/steps';
+import { Callout } from 'fumadocs-ui/components/callout';
+
+Ghost is a powerful publishing platform for blogs and publications. You can easily add Rybbit Analytics using Ghost's built-in code injection feature.
+
+## How to Add Rybbit to Ghost
+
+<Steps>
+<Step>
+### Access Code Injection Settings
+
+1. Log in to your Ghost Admin panel
+2. Go to **Settings** (gear icon in the bottom left)
+3. Scroll down and click on **Code injection**
+</Step>
+
+<Step>
+### Add the Tracking Script
+
+In the **Site Header** section, paste the following code:
+
+```html
+<script
+ src="https://app.rybbit.io/api/script.js"
+ data-site-id="YOUR_SITE_ID"
+ defer
+></script>
+```
+
+Replace `YOUR_SITE_ID` with your actual Site ID from your Rybbit dashboard.
+</Step>
+
+<Step>
+### Save Changes
+
+Click **Save** in the top right corner. The script will now be loaded on all pages of your Ghost site.
+</Step>
+</Steps>
+
+## Troubleshooting
+
+### Script not appearing
+
+1. Make sure you clicked **Save** after adding the code
+2. Clear your browser cache and refresh the page
+3. Check "View Page Source" and search for `rybbit` to verify the script is present
+
+### Using a Ghost theme with custom code
+
+If your theme has its own code injection or you're modifying theme files directly, you can add the script to your theme's `default.hbs` file, just before the closing `</head>` tag.
+
+### Membership/Subscriber tracking
+
+Ghost's membership features work normally with Rybbit. All page views, including member-only content, will be tracked (for visitors who have access to view the content).
diff --git a/docs/content/docs/guides/gitbook.mdx b/docs/content/docs/guides/gitbook.mdx
new file mode 100644
index 000000000..f2037e416
--- /dev/null
+++ b/docs/content/docs/guides/gitbook.mdx
@@ -0,0 +1,74 @@
+---
+title: GitBook
+description: Integrate Rybbit Analytics with your GitBook documentation
+---
+
+import { Steps, Step } from 'fumadocs-ui/components/steps';
+import { Callout } from 'fumadocs-ui/components/callout';
+
+GitBook is a popular platform for creating documentation and knowledge bases. You can add Rybbit Analytics to track how visitors use your documentation.
+
+<Callout type="warn">
+Custom scripts require a **Pro plan or higher** and a **custom domain** configured for your GitBook space.
+</Callout>
+
+## How to Add Rybbit to GitBook
+
+<Steps>
+<Step>
+### Open Space Settings
+
+1. Navigate to your GitBook space
+2. Click on the **Settings** icon (gear) in the top right
+3. Go to **Integrations** in the sidebar
+</Step>
+
+<Step>
+### Add Custom Script
+
+1. Scroll to the **Custom scripts** section
+2. In the **Head** section, add the following code:
+
+```html
+<script
+ src="https://app.rybbit.io/api/script.js"
+ data-site-id="YOUR_SITE_ID"
+ defer
+></script>
+```
+
+Replace `YOUR_SITE_ID` with your actual Site ID from your Rybbit dashboard.
+</Step>
+
+<Step>
+### Save Changes
+
+Click **Save** to apply the script to your documentation site.
+</Step>
+</Steps>
+
+## Requirements
+
+For custom scripts to work on GitBook, you need:
+
+1. **Pro, Team, or Enterprise plan** - Custom scripts are not available on the free plan
+2. **Custom domain** - Scripts only load on custom domains, not on `*.gitbook.io` URLs
+
+## Troubleshooting
+
+### Script not appearing
+
+1. Ensure you have a Pro plan or higher
+2. Verify your custom domain is properly configured
+3. Check that you're viewing the site through your custom domain, not `*.gitbook.io`
+
+### Changes not reflecting
+
+GitBook may cache pages. Try:
+- Hard refresh (Ctrl+Shift+R or Cmd+Shift+R)
+- Viewing in an incognito/private window
+- Waiting a few minutes for cache to update
+
+### Tracking internal vs public docs
+
+The tracking script will work for both public documentation and internal/private spaces (when accessed by authenticated users through your custom domain).
diff --git a/docs/content/docs/guides/joomla.mdx b/docs/content/docs/guides/joomla.mdx
new file mode 100644
index 000000000..5a42e4bdb
--- /dev/null
+++ b/docs/content/docs/guides/joomla.mdx
@@ -0,0 +1,139 @@
+---
+title: Joomla
+description: Integrate Rybbit Analytics with your Joomla website
+---
+
+import { Tabs, Tab } from 'fumadocs-ui/components/tabs';
+import { Steps, Step } from 'fumadocs-ui/components/steps';
+import { Callout } from 'fumadocs-ui/components/callout';
+
+Joomla is a popular open-source content management system. Here's how to add Rybbit Analytics to your Joomla site.
+
+## How to Add Rybbit to Joomla
+
+<Tabs items={['Custom HTML Module', 'Template Override']}>
+<Tab>
+### Using a Custom HTML Module
+
+This is the easiest method and doesn't require editing any files.
+
+<Steps>
+<Step>
+### Create a New Module
+
+1. Log in to your Joomla Administrator panel
+2. Go to **Extensions** > **Modules**
+3. Click **New** and select **Custom**
+</Step>
+
+<Step>
+### Configure the Module
+
+Set the following options:
+
+- **Title**: Rybbit Analytics (or any name you prefer)
+- **Show Title**: No
+- **Position**: Select a position that appears in the `<head>` section, often called `head`, `debug`, or similar depending on your template
+
+In the **Editor** tab, switch to **Code** view (or disable the editor) and paste:
+
+```html
+<script>
+(function() {
+ var s = document.createElement('script');
+ s.src = 'https://app.rybbit.io/api/script.js';
+ s.defer = true;
+ s.setAttribute('data-site-id', 'YOUR_SITE_ID');
+ document.head.appendChild(s);
+})();
+</script>
+```
+
+Replace `YOUR_SITE_ID` with your actual Site ID.
+</Step>
+
+<Step>
+### Publish the Module
+
+1. Set **Status** to **Published**
+2. Under **Menu Assignment**, select **On all pages**
+3. Click **Save & Close**
+</Step>
+</Steps>
+
+<Callout type="info">
+If your template doesn't have a head position, you can use any position - the JavaScript will still add the script to the document head.
+</Callout>
+</Tab>
+
+<Tab>
+### Editing Template Files
+
+For more control, you can add the script directly to your template.
+
+<Callout type="warn">
+Create a child template or template override to avoid losing changes when the template updates.
+</Callout>
+
+<Steps>
+<Step>
+### Access Template Files
+
+1. Go to **System** > **Site Templates**
+2. Click on your active template
+3. Click on the **index.php** file (or create an override)
+</Step>
+
+<Step>
+### Add the Script
+
+Find the closing `</head>` tag and add the script just before it:
+
+```php
+<script>
+(function() {
+ var s = document.createElement('script');
+ s.src = 'https://app.rybbit.io/api/script.js';
+ s.defer = true;
+ s.setAttribute('data-site-id', 'YOUR_SITE_ID');
+ document.head.appendChild(s);
+})();
+</script>
+</head>
+```
+
+Replace `YOUR_SITE_ID` with your actual Site ID.
+</Step>
+
+<Step>
+### Save the File
+
+Click **Save** or **Save & Close** to apply the changes.
+</Step>
+</Steps>
+</Tab>
+</Tabs>
+
+## Troubleshooting
+
+### Script not appearing on the site
+
+1. Check that the module is published and assigned to all pages
+2. Clear Joomla's cache: **System** > **Clear Cache**
+3. Verify the module position exists in your template
+
+### Editor stripping the script
+
+Joomla's default editor (TinyMCE) may strip script tags. To fix this:
+
+1. Go to **Extensions** > **Plugins**
+2. Find and open **Editor - TinyMCE**
+3. Under **Extended Valid Elements**, add: `script[src|defer|data-site-id]`
+4. Or simply use the **Code** view when editing the module
+
+### Caching issues
+
+If you're using a caching plugin or extension:
+
+1. Clear all caches after adding the script
+2. The script should work with page caching since it loads client-side
diff --git a/docs/content/docs/guides/meta.json b/docs/content/docs/guides/meta.json
index 7a3af5550..ea1085349 100644
--- a/docs/content/docs/guides/meta.json
+++ b/docs/content/docs/guides/meta.json
@@ -3,24 +3,34 @@
"pages": [
"angular",
"astro",
+ "bigcommerce",
"bubble",
+ "carrd",
+ "contentful",
"docusaurus",
"drupal",
"framer",
+ "ghost",
+ "gitbook",
"google-tag-manager",
"hugo",
"jekyll",
+ "joomla",
"laravel",
"mintlify",
+ "prestashop",
"react",
+ "sanity",
"shopify",
"squarespace",
+ "strapi",
"svelte",
"thrivecart",
+ "vitepress",
"vue",
"webflow",
"wix",
"woocommerce",
"wordpress"
]
-}
\ No newline at end of file
+}
diff --git a/docs/content/docs/guides/prestashop.mdx b/docs/content/docs/guides/prestashop.mdx
new file mode 100644
index 000000000..281ce8338
--- /dev/null
+++ b/docs/content/docs/guides/prestashop.mdx
@@ -0,0 +1,170 @@
+---
+title: PrestaShop
+description: Integrate Rybbit Analytics with your PrestaShop store
+---
+
+import { Tabs, Tab } from 'fumadocs-ui/components/tabs';
+import { Steps, Step } from 'fumadocs-ui/components/steps';
+import { Callout } from 'fumadocs-ui/components/callout';
+
+PrestaShop is a popular open-source e-commerce platform. Here's how to add Rybbit Analytics to track visitors and conversions on your PrestaShop store.
+
+## How to Add Rybbit to PrestaShop
+
+<Tabs items={['Back Office Settings', 'Theme Files']}>
+<Tab>
+### Using Back Office Settings
+
+PrestaShop allows adding custom code through the back office.
+
+<Steps>
+<Step>
+### Access Theme Settings
+
+1. Log in to your PrestaShop Back Office
+2. Go to **Design** > **Theme & Logo**
+3. Scroll down to **Advanced customization** or click on **Pages Configuration**
+</Step>
+
+<Step>
+### Add Custom Code
+
+Depending on your PrestaShop version:
+
+**PrestaShop 1.7+:**
+1. Go to **Design** > **Theme & Logo** > **Advanced customization**
+2. Click on **Add a new HTML element**
+3. Select position: `head` or `displayHeader`
+4. Add the following code:
+
+```html
+<script>
+(function() {
+ var s = document.createElement('script');
+ s.src = 'https://app.rybbit.io/api/script.js';
+ s.defer = true;
+ s.setAttribute('data-site-id', 'YOUR_SITE_ID');
+ document.head.appendChild(s);
+})();
+</script>
+```
+
+**PrestaShop 8.x:**
+1. Go to **Design** > **Theme & Logo** > **Pages Configuration**
+2. Select **displayHead** hook
+3. Add a custom HTML module with the script above
+
+Replace `YOUR_SITE_ID` with your actual Site ID.
+</Step>
+
+<Step>
+### Save Changes
+
+Click **Save** to apply the tracking code to your store.
+</Step>
+</Steps>
+</Tab>
+
+<Tab>
+### Editing Theme Files
+
+For direct control, you can edit your theme's template files.
+
+<Callout type="warn">
+Create a child theme before editing files to preserve changes during updates.
+</Callout>
+
+<Steps>
+<Step>
+### Access Theme Files
+
+Navigate to your theme folder via FTP/SFTP or file manager:
+```
+/themes/your-theme-name/templates/_partials/
+```
+</Step>
+
+<Step>
+### Edit the Header Template
+
+Open `head.tpl` and add the following before the closing `</head>` tag (or at the end of the file):
+
+```html
+<script>
+(function() {
+ var s = document.createElement('script');
+ s.src = 'https://app.rybbit.io/api/script.js';
+ s.defer = true;
+ s.setAttribute('data-site-id', 'YOUR_SITE_ID');
+ document.head.appendChild(s);
+})();
+</script>
+```
+
+Replace `YOUR_SITE_ID` with your actual Site ID.
+</Step>
+
+<Step>
+### Clear Cache
+
+1. Go to **Advanced Parameters** > **Performance**
+2. Click **Clear cache**
+</Step>
+</Steps>
+</Tab>
+</Tabs>
+
+## Tracking E-commerce Events
+
+### Track Purchases
+
+To track completed purchases, add a script to the order confirmation page. Create a module or add to your theme's `order-confirmation.tpl`:
+
+```html
+{if isset($order)}
+<script>
+(function() {
+ function waitForRybbit(callback, timeout) {
+ var start = Date.now();
+ (function check() {
+ if (window.rybbit && typeof window.rybbit.event === 'function') {
+ callback();
+ } else if (Date.now() - start < timeout) {
+ setTimeout(check, 100);
+ }
+ })();
+ }
+
+ waitForRybbit(function() {
+ window.rybbit.event('purchase', {
+ transaction_id: '{$order.details.reference}',
+ value: {$order.totals.total.amount},
+ currency: '{$order.totals.total.currency}'
+ });
+ }, 5000);
+})();
+</script>
+{/if}
+```
+
+<Callout type="info">
+PrestaShop uses Smarty templating. The `{$variable}` syntax is processed by PrestaShop to inject order data.
+</Callout>
+
+## Troubleshooting
+
+### Script not loading
+
+1. Clear PrestaShop cache: **Advanced Parameters** > **Performance** > **Clear cache**
+2. Disable any JavaScript optimization modules temporarily
+3. Check the page source to verify the script is present
+
+### Theme updates overwriting changes
+
+Always use a child theme when editing template files. Changes to the parent theme will be lost on updates.
+
+### E-commerce events not tracking
+
+1. Verify the Smarty variables match your PrestaShop version
+2. Check the browser console for JavaScript errors
+3. Test by completing a test order
diff --git a/docs/content/docs/guides/sanity.mdx b/docs/content/docs/guides/sanity.mdx
new file mode 100644
index 000000000..f55a4e3f8
--- /dev/null
+++ b/docs/content/docs/guides/sanity.mdx
@@ -0,0 +1,78 @@
+---
+title: Sanity
+description: Integrate Rybbit Analytics with your Sanity-powered website
+---
+
+import { Callout } from 'fumadocs-ui/components/callout';
+
+Sanity is a headless CMS that provides content management for your applications. Since Sanity is headless, you'll add Rybbit Analytics to your frontend application rather than to Sanity itself.
+
+<Callout type="info">
+Sanity only manages your content - it doesn't serve your website directly. The tracking script goes in your frontend framework (Next.js, Gatsby, Nuxt, etc.).
+</Callout>
+
+## How to Add Rybbit with Sanity
+
+Choose the guide that matches your frontend framework:
+
+### React-based Frontends
+- **[Next.js](/docs/guides/react/next-js)** - Most common choice with Sanity
+- **[Gatsby](/docs/guides/react/gatsby)** - Popular for static sites
+- **[Remix](/docs/guides/react/remix)**
+- **[Vite + React](/docs/guides/react/vite-cra)**
+
+### Vue-based Frontends
+- **[Nuxt](/docs/guides/vue/nuxt)**
+- **[Vite + Vue](/docs/guides/vue/vite)**
+
+### Other Frontends
+- **[Astro](/docs/guides/astro)** - Great for content-heavy sites
+- **[SvelteKit](/docs/guides/svelte/sveltekit)**
+
+## Quick Example: Next.js with Sanity
+
+If you're using Next.js (the most common Sanity frontend), add the tracking script to your root layout:
+
+```tsx
+// app/layout.tsx
+import Script from 'next/script'
+
+export default function RootLayout({
+ children,
+}: {
+ children: React.ReactNode
+}) {
+ return (
+ <html lang="en">
+ <head>
+ <Script
+ src="https://app.rybbit.io/api/script.js"
+ data-site-id="YOUR_SITE_ID"
+ strategy="afterInteractive"
+ />
+ </head>
+ <body>{children}</body>
+ </html>
+ )
+}
+```
+
+Replace `YOUR_SITE_ID` with your actual Site ID from your Rybbit dashboard.
+
+## Sanity Studio
+
+If you want to track usage of Sanity Studio itself (your content editing interface), you can add the script to your studio's root:
+
+```tsx
+// sanity.config.ts
+import { defineConfig } from 'sanity'
+
+export default defineConfig({
+ // ... your config
+ document: {
+ // Add custom studio plugins if needed
+ }
+})
+```
+
+However, most users only want to track their public-facing website, not their internal Studio usage.
diff --git a/docs/content/docs/guides/strapi.mdx b/docs/content/docs/guides/strapi.mdx
new file mode 100644
index 000000000..c89e237e5
--- /dev/null
+++ b/docs/content/docs/guides/strapi.mdx
@@ -0,0 +1,85 @@
+---
+title: Strapi
+description: Integrate Rybbit Analytics with your Strapi-powered website
+---
+
+import { Callout } from 'fumadocs-ui/components/callout';
+
+Strapi is an open-source headless CMS that provides an API for your content. Since Strapi is headless, you'll add Rybbit Analytics to your frontend application rather than to Strapi itself.
+
+<Callout type="info">
+Strapi only serves your content via API - it doesn't render your website. The tracking script goes in your frontend framework (Next.js, Nuxt, Astro, etc.).
+</Callout>
+
+## How to Add Rybbit with Strapi
+
+Choose the guide that matches your frontend framework:
+
+### React-based Frontends
+- **[Next.js](/docs/guides/react/next-js)** - Most common choice with Strapi
+- **[Gatsby](/docs/guides/react/gatsby)**
+- **[Remix](/docs/guides/react/remix)**
+- **[Vite + React](/docs/guides/react/vite-cra)**
+
+### Vue-based Frontends
+- **[Nuxt](/docs/guides/vue/nuxt)** - Popular with Strapi
+- **[Vite + Vue](/docs/guides/vue/vite)**
+
+### Other Frontends
+- **[Astro](/docs/guides/astro)**
+- **[SvelteKit](/docs/guides/svelte/sveltekit)**
+- **[Angular](/docs/guides/angular)**
+
+## Quick Example: Next.js with Strapi
+
+If you're using Next.js (a common Strapi frontend), add the tracking script to your root layout:
+
+```tsx
+// app/layout.tsx
+import Script from 'next/script'
+
+export default function RootLayout({
+ children,
+}: {
+ children: React.ReactNode
+}) {
+ return (
+ <html lang="en">
+ <head>
+ <Script
+ src="https://app.rybbit.io/api/script.js"
+ data-site-id="YOUR_SITE_ID"
+ strategy="afterInteractive"
+ />
+ </head>
+ <body>{children}</body>
+ </html>
+ )
+}
+```
+
+Replace `YOUR_SITE_ID` with your actual Site ID from your Rybbit dashboard.
+
+## Quick Example: Nuxt with Strapi
+
+If you're using Nuxt, add to your `nuxt.config.ts`:
+
+```typescript
+export default defineNuxtConfig({
+ app: {
+ head: {
+ script: [
+ {
+ src: 'https://app.rybbit.io/api/script.js',
+ 'data-site-id': 'YOUR_SITE_ID',
+ defer: true
+ }
+ ]
+ }
+ }
+})
+```
+
+## Strapi Admin Panel
+
+The Strapi admin panel is typically only accessed by content editors and administrators. Most users don't need to track admin panel usage. If you do want to track it, you would need to customize the Strapi admin, which is an advanced configuration.
diff --git a/docs/content/docs/guides/vitepress.mdx b/docs/content/docs/guides/vitepress.mdx
new file mode 100644
index 000000000..cfd92b25f
--- /dev/null
+++ b/docs/content/docs/guides/vitepress.mdx
@@ -0,0 +1,116 @@
+---
+title: VitePress
+description: Integrate Rybbit Analytics with your VitePress documentation site
+---
+
+import { Tabs, Tab } from 'fumadocs-ui/components/tabs';
+import { Callout } from 'fumadocs-ui/components/callout';
+
+VitePress is a static site generator powered by Vite and Vue, commonly used for documentation. Here's how to add Rybbit Analytics to your VitePress site.
+
+## How to Add Rybbit to VitePress
+
+<Tabs items={['Config File (Recommended)', 'Custom Theme']}>
+<Tab>
+### Using VitePress Config
+
+The simplest way to add Rybbit is through your VitePress configuration file.
+
+Edit your `.vitepress/config.ts` (or `.js`/`.mts`):
+
+```typescript
+import { defineConfig } from 'vitepress'
+
+export default defineConfig({
+ // ... your other config
+ head: [
+ [
+ 'script',
+ {
+ src: 'https://app.rybbit.io/api/script.js',
+ 'data-site-id': 'YOUR_SITE_ID',
+ defer: ''
+ }
+ ]
+ ]
+})
+```
+
+Replace `YOUR_SITE_ID` with your actual Site ID from your Rybbit dashboard.
+
+<Callout type="info">
+The empty string for `defer` is intentional - VitePress will render it as a boolean attribute.
+</Callout>
+</Tab>
+
+<Tab>
+### Using Custom Theme
+
+If you need more control, you can add the script through a custom theme.
+
+Create or edit `.vitepress/theme/index.ts`:
+
+```typescript
+import { type Theme } from 'vitepress'
+import DefaultTheme from 'vitepress/theme'
+import { onMounted } from 'vue'
+
+export default {
+ extends: DefaultTheme,
+ enhanceApp({ app }) {
+ // Only run in browser
+ if (typeof window !== 'undefined') {
+ onMounted(() => {
+ const script = document.createElement('script')
+ script.src = 'https://app.rybbit.io/api/script.js'
+ script.defer = true
+ script.setAttribute('data-site-id', 'YOUR_SITE_ID')
+ document.head.appendChild(script)
+ })
+ }
+ }
+} satisfies Theme
+```
+
+Replace `YOUR_SITE_ID` with your actual Site ID.
+</Tab>
+</Tabs>
+
+## SPA Navigation
+
+VitePress uses client-side navigation between pages. The Rybbit script automatically tracks page views during SPA navigation, so no additional configuration is needed.
+
+## Development vs Production
+
+The script will load in both development and production environments. If you only want to track production:
+
+```typescript
+import { defineConfig } from 'vitepress'
+
+const isProd = process.env.NODE_ENV === 'production'
+
+export default defineConfig({
+ head: isProd ? [
+ [
+ 'script',
+ {
+ src: 'https://app.rybbit.io/api/script.js',
+ 'data-site-id': 'YOUR_SITE_ID',
+ defer: ''
+ }
+ ]
+ ] : []
+})
+```
+
+## Troubleshooting
+
+### Script not loading in development
+
+By default, the script loads on all environments. Check your browser's developer tools Network tab to see if the script is being requested.
+
+### Page views not tracking on navigation
+
+VitePress handles this automatically through the History API. If you're experiencing issues:
+1. Ensure you're using a recent version of VitePress
+2. Check the browser console for any JavaScript errors
diff --git a/docs/content/docs/index.mdx b/docs/content/docs/index.mdx
index e4e4717d2..e4e2b2897 100644
--- a/docs/content/docs/index.mdx
+++ b/docs/content/docs/index.mdx
@@ -9,23 +9,33 @@ import { Check, X, AlertTriangle } from 'lucide-react';
import {
SiAngular,
SiAstro,
+ SiBigcommerce,
+ SiCarrd,
+ SiContentful,
SiDocusaurus,
SiDrupal,
SiFramer,
+ SiGatsby,
+ SiGhost,
+ SiGitbook,
SiGoogletagmanager,
SiHugo,
SiJekyll,
+ SiJoomla,
SiLaravel,
SiMintlify,
- SiReact,
SiNextdotjs,
- SiGatsby,
+ SiNuxt,
+ SiPrestashop,
+ SiReact,
SiRemix,
+ SiSanity,
SiShopify,
SiSquarespace,
+ SiStrapi,
SiSvelte,
+ SiVitepress,
SiVuedotjs,
- SiNuxt,
SiWebflow,
SiWix,
SiWoocommerce,
@@ -63,15 +73,33 @@ And then learn how to add the [tracking script](/docs/script) to your website to
href="/docs/guides/angular"
className="flex items-center gap-2"
/>
- <Card
+ <Card
icon={<SiAstro />}
- title="Astro"
- href="/docs/guides/astro"
+ title="Astro"
+ href="/docs/guides/astro"
className="flex items-center gap-2"
/>
- <Card
- title="Bubble"
- href="/docs/guides/bubble"
+ <Card
+ icon={<SiBigcommerce />}
+ title="BigCommerce"
+ href="/docs/guides/bigcommerce"
+ className="flex items-center gap-2"
+ />
+ <Card
+ title="Bubble"
+ href="/docs/guides/bubble"
+ className="flex items-center gap-2"
+ />
+ <Card
+ icon={<SiCarrd />}
+ title="Carrd"
+ href="/docs/guides/carrd"
+ className="flex items-center gap-2"
+ />
+ <Card
+ icon={<SiContentful />}
+ title="Contentful"
+ href="/docs/guides/contentful"
className="flex items-center gap-2"
/>
<Card
@@ -98,6 +126,18 @@ And then learn how to add the [tracking script](/docs/script) to your website to
href="/docs/guides/react/gatsby"
className="flex items-center gap-2"
/>
+ <Card
+ icon={<SiGhost />}
+ title="Ghost"
+ href="/docs/guides/ghost"
+ className="flex items-center gap-2"
+ />
+ <Card
+ icon={<SiGitbook />}
+ title="GitBook"
+ href="/docs/guides/gitbook"
+ className="flex items-center gap-2"
+ />
<Card
icon={<SiGoogletagmanager />}
title="Google Tag Manager"
@@ -110,16 +150,22 @@ And then learn how to add the [tracking script](/docs/script) to your website to
href="/docs/guides/hugo"
className="flex items-center gap-2"
/>
- <Card
+ <Card
icon={<SiJekyll />}
- title="Jekyll"
- href="/docs/guides/jekyll"
+ title="Jekyll"
+ href="/docs/guides/jekyll"
className="flex items-center gap-2"
/>
- <Card
+ <Card
+ icon={<SiJoomla />}
+ title="Joomla"
+ href="/docs/guides/joomla"
+ className="flex items-center gap-2"
+ />
+ <Card
icon={<SiLaravel />}
- title="Laravel"
- href="/docs/guides/laravel"
+ title="Laravel"
+ href="/docs/guides/laravel"
className="flex items-center gap-2"
/>
<Card
@@ -140,28 +186,46 @@ And then learn how to add the [tracking script](/docs/script) to your website to
href="/docs/guides/vue/nuxt"
className="flex items-center gap-2"
/>
+ <Card
+ icon={<SiPrestashop />}
+ title="PrestaShop"
+ href="/docs/guides/prestashop"
+ className="flex items-center gap-2"
+ />
<Card
icon={<SiReact />}
title="React"
href="/docs/guides/react/vite-cra"
className="flex items-center gap-2"
/>
- <Card
+ <Card
icon={<SiRemix />}
- title="Remix"
- href="/docs/guides/react/remix"
+ title="Remix"
+ href="/docs/guides/react/remix"
className="flex items-center gap-2"
/>
- <Card
+ <Card
+ icon={<SiSanity />}
+ title="Sanity"
+ href="/docs/guides/sanity"
+ className="flex items-center gap-2"
+ />
+ <Card
icon={<SiShopify />}
- title="Shopify"
- href="/docs/guides/shopify"
+ title="Shopify"
+ href="/docs/guides/shopify"
className="flex items-center gap-2"
/>
- <Card
+ <Card
icon={<SiSquarespace />}
- title="Squarespace"
- href="/docs/guides/squarespace"
+ title="Squarespace"
+ href="/docs/guides/squarespace"
+ className="flex items-center gap-2"
+ />
+ <Card
+ icon={<SiStrapi />}
+ title="Strapi"
+ href="/docs/guides/strapi"
className="flex items-center gap-2"
/>
<Card
@@ -170,16 +234,22 @@ And then learn how to add the [tracking script](/docs/script) to your website to
href="/docs/guides/svelte/vite"
className="flex items-center gap-2"
/>
+ <Card
+ icon={<SiSvelte />}
+ title="SvelteKit"
+ href="/docs/guides/svelte/sveltekit"
+ className="flex items-center gap-2"
+ />
<Card
icon={<Image src="/platforms/thrivecart.svg" alt="ThriveCart" width={16} height={16} className="grayscale" />}
title="ThriveCart"
href="/docs/guides/thrivecart"
className="flex items-center gap-2"
/>
- <Card
- icon={<SiSvelte />}
- title="SvelteKit"
- href="/docs/guides/svelte/sveltekit"
+ <Card
+ icon={<SiVitepress />}
+ title="VitePress"
+ href="/docs/guides/vitepress"
className="flex items-center gap-2"
/>
<Card