Skip to content

Commit 1a9adaa

Browse files
committed
Added plausible event tracking to copy for AI and open with ChatGPT buttons
1 parent 517d597 commit 1a9adaa

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/components/ContributionGuides.astro

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,15 +37,15 @@ try {
3737
href={chatGptUrl}
3838
target="_blank"
3939
rel="noopener noreferrer"
40-
class="flex items-center justify-start gap-1 mt-4 text-kinde-grey-900 hover:opacity-90 dark:text-white"
40+
class={`flex items-center justify-start gap-1 mt-4 text-kinde-grey-900 hover:opacity-90 dark:text-white plausible-event-name=Open+with+ChatGPT plausible-event-url=${currentPath}`}
4141
>
4242
<Icon name="talk-1" size={16} />
4343
<h3 class="text-sm font-medium dark:!font-normal">Open with ChatGPT</h3>
4444
</a>
4545

4646
<button
4747
id="copy-markdown-button"
48-
class="flex items-center justify-start gap-1 mt-4 text-kinde-grey-900 hover:opacity-90 dark:text-white bg-transparent border-none cursor-pointer w-full text-left p-0"
48+
class={`flex items-center justify-start gap-1 mt-4 text-kinde-grey-900 hover:opacity-90 dark:text-white bg-transparent border-none cursor-pointer w-full text-left p-0 plausible-event-name=Copy+for+AI plausible-event-url=${currentPath}`}
4949
data-markdown={rawMarkdown}
5050
>
5151
<Icon name="sparkle" size={16} />

0 commit comments

Comments
 (0)