feat: Track outbound links in plausible

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.
This commit is contained in:
Sidharth Vinod 2023-12-06 11:47:15 +05:30
parent 542fc19862
commit 770fc412ca
No known key found for this signature in database
GPG Key ID: FB5CCD378D3907CD
2 changed files with 2 additions and 2 deletions

View File

@ -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"

View File

@ -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',
},
],
],