Skip to content

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

Refactor NoData component and update tracking script URL in documentation

Bill Yang240668a1ac60
diff --git a/client/src/app/[site]/components/Header/NoData.tsx b/client/src/app/[site]/components/Header/NoData.tsx
index b7a9c7f5c..2bd0df0c1 100644
--- a/client/src/app/[site]/components/Header/NoData.tsx
+++ b/client/src/app/[site]/components/Header/NoData.tsx
@@ -32,6 +32,16 @@ export function NoData() {
code={`<script\n src="${globalThis.location.origin}/api/script.js"\n data-site-id="${siteMetadata?.siteId}"\n defer\n></script>`}
className="text-xs"
/>
+ <span className="text-xs text-muted-foreground">
+ See our{" "}
+ <a
+ href="https://rybbit.io/docs"
+ className="text-blue-500 hover:underline"
+ >
+ docs
+ </a>{" "}
+ for more information.
+ </span>
</div>
</Alert>
</div>
diff --git a/docs/src/content/tracker.mdx b/docs/src/content/tracker.mdx
index f6b4624b0..41c0f1077 100644
--- a/docs/src/content/tracker.mdx
+++ b/docs/src/content/tracker.mdx
@@ -6,10 +6,10 @@ To start tracking user activity on your website, add the Rybbit tracking script
The webpage should give you this script tag like this when you first add a website. Place it within the `<head>` section of your website. Include it on every page you wish to track.
```html
-<script src="https://api.ribbit.io/api/script.js" async data-site-id="YOUR_SITE_ID"></script>
+<script src="https://app.rybbit.io/api/script.js" async data-site-id="YOUR_SITE_ID"></script>
```
-If you are self-hosting Rybbit `api.ribbit.io` will be instead the base URL of your Rybbit instance.
+If you are self-hosting Rybbit `app.rybbit.io` will be domain of your Rybbit instance.
## Configuration Options