🐸 Rybbit - open-source and privacy-friendly alternative to Google Analytics that is 10x more intuitive.
Update tracking documentation and remove outbound link tracking option
Bill Yang2028d282460e
diff --git a/docs/src/content/track-events.mdx b/docs/src/content/track-events.mdxindex ced1a3545..40d354ecd 100644--- a/docs/src/content/track-events.mdx+++ b/docs/src/content/track-events.mdx@@ -32,7 +32,7 @@ Tracks a pageview. Useful when `data-track-spa` is set to `"false"` or when youwindow.rybbit.pageview();```-### `window.rybbit.trackOutbound(url, text, target)`+{/* ### `window.rybbit.trackOutbound(url, text, target)`Manually tracks outbound link clicks. Useful for programmatic navigation or custom link handling.@@ -42,7 +42,7 @@ Manually tracks outbound link clicks. Useful for programmatic navigation or cust```javascript// Track a programmatic navigation to an external site-window.rybbit.trackOutbound("https://example.com", "Example Site", "_blank");+window.rybbit.trackOutbound("https://example.com", "Example Site", "_blank"); */}```## Typescript Support@@ -62,14 +62,6 @@ interface Rybbit {* @param properties Optional properties for the event*/event: (name: string, properties?: Record<string, any>) => void;-- /**- * Tracks an outbound link click- * @param url The URL of the outbound link- * @param text The link text- * @param target The link target- */- trackOutbound: (url: string, text?: string, target?: string) => void;}declare global {@@ -78,4 +70,4 @@ declare global {}}-export {};\ No newline at end of file+export {};diff --git a/docs/src/content/tracker.mdx b/docs/src/content/tracker.mdxindex 0b2d29b0c..f6b4624b0 100644--- a/docs/src/content/tracker.mdx+++ b/docs/src/content/tracker.mdx@@ -92,7 +92,6 @@ The delay (in milliseconds) before tracking a pageview after URL changes via thedata-skip-patterns='["/admin/**", "/preview/*"]'data-mask-patterns='["/users/*/profile", "/orders/**"]'data-track-query="false"- data-track-outbound="true"data-debounce="300"></script>```diff --git a/docs/src/content/web.mdx b/docs/src/content/web.mdxindex 679859639..07e5481e8 100644--- a/docs/src/content/web.mdx+++ b/docs/src/content/web.mdx@@ -139,7 +139,7 @@ function addToCart(item) {}```-## Tracking Outbound Links+{/* ## Tracking Outbound LinksOutbound links (links to external domains) are tracked automatically by default if `trackOutboundLinks` is enabled. The SDK attaches a global click listener to capture clicks on `<a>` tags with external `href` attributes.@@ -171,7 +171,7 @@ document.getElementById("external-service-button")?.addEventListener("click", ()// Optionally navigate after trackingwindow.open(url, "_blank");});-```+``` */}## Path Matching