Skip to content

Track skill install copy button with X conversions - #83

Merged
GabrielePicco merged 1 commit into
magicblock-labs:mainfrom
pierredotsol:track-skill-install-copy
Sep 22, 2026
Merged

GabrielePicco merged 1 commit into
magicblock-labs:mainfrom
pierredotsol:track-skill-install-copy

Conversation

@pierredotsol

Copy link
Copy Markdown
Contributor

What

The X conversion event tw-p9ilu-rfmj4 (Install AI Skill) so far fired only for the nav CTA. This PR also fires it when a visitor clicks the copy button of the npx skills add https://github.com/magicblock-labs/magicblock-dev-skill code block in the AI Dev Skill callout (used on 9 pages, incl. the VRF quickstart linked from the X ad).

How

  • x-pixel.js: matcher split into isNavigationCta and isInstallCommandCopy. The copy match requires button[data-testid="copy-code-button"] inside a .code-block whose pre code text equals the install command, so other code blocks do not fire.
  • Same action name ai_skill_cta_clicked and same payload, so the Worker (workers/x-conversions) is unchanged.
  • New browser test: skill-block copy sends one event with matching pixel conversion_id, other-block copy sends nothing.
  • README updated.

Checks

npm run check and npm test pass (13 tests). Markup selectors verified against the live Mintlify quickstart page.

🤖 Generated with Claude Code

Fire the existing tw-p9ilu-rfmj4 event when a visitor copies the
npx skills add command in the AI Dev Skill callout, in addition to
the nav CTA. Worker unchanged, same action name.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
@coderabbitai

coderabbitai Bot commented Sep 22, 2026

Copy link
Copy Markdown
Contributor

Important

  • 🔍 Trigger review

This repository does not receive automatic reviews because it has fewer than 10 stars.

⚙️ Run configuration

Configuration used: Organization UI

Review profile: ASSERTIVE

Plan: Advanced

Run ID: f457e32d-b195-4de1-8e2f-34bccfbd3326


Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@GabrielePicco
GabrielePicco merged commit 74b5519 into magicblock-labs:main Sep 22, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants