Skip to content

Commit

Permalink
fix: capture repo page share as unique event with repo name as metada…
Browse files Browse the repository at this point in the history
…ta (#3284)
  • Loading branch information
brandonroberts committed Apr 30, 2024
1 parent 4c6ee52 commit 83cb0de
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion pages/s/[org]/[repo]/index.tsx
Expand Up @@ -86,7 +86,9 @@ export default function RepoPage({ repoData, image, ogImageUrl }: RepoPageProps)

const copyUrlToClipboard = async () => {
const url = new URL(window.location.href).toString();
posthog!.capture(`clicked: ${repoData.full_name} repo page share`);
posthog!.capture("clicked: repo page share button", {
repo_name: repoData.full_name,
});

try {
const shortUrl = await shortenUrl(url);
Expand Down

0 comments on commit 83cb0de

Please sign in to comment.