Skip to content

Commit

Permalink
feat: Track outbound links in plausible
Browse files Browse the repository at this point in the history
Unlike mermaid.live, there is no user provided links in mermaid.js.org.
So we can track the outbound link clicks without leaking any user data.
  • Loading branch information
sidharthv96 committed Dec 6, 2023
1 parent 542fc19 commit 770fc41
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/mermaid/src/docs/.vitepress/components/TopBar.vue
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<a
href="https://www.mermaidchart.com/app/user/billing/checkout?coupon=HOLIDAYS2023"
target="_blank"
class="unstyled text-white"
class="unstyled text-white plausible-event-name=bannerClick"
>
Get AI, team collaboration, storage, and more with
<span class="font-bold underline"
Expand Down
2 changes: 1 addition & 1 deletion packages/mermaid/src/docs/.vitepress/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ export default defineConfig({
defer: 'true',
'data-domain': 'mermaid.js.org',
// All tracked stats are public and available at https://p.mermaid.live/mermaid.js.org
src: 'https://p.mermaid.live/js/script.js',
src: 'https://p.mermaid.live/js/script.tagged-events.outbound-links.js',
},
],
],
Expand Down

0 comments on commit 770fc41

Please sign in to comment.