Skip to content

Unified CTA tracking partials, matching Nuxt's PostHog data - #5749

Open
Yndira-E wants to merge 3 commits into
mainfrom
11ty/cta-partial-followup
Open

Unified CTA tracking partials, matching Nuxt's PostHog data#5749
Yndira-E wants to merge 3 commits into
mainfrom
11ty/cta-partial-followup

Conversation

@Yndira-E

@Yndira-E Yndira-E commented Sep 7, 2026

Copy link
Copy Markdown
Contributor

Description

This is a continuation of #5626, and extends the same CTA tracking unification to Nuxt:

  • Genuine single source of truth: nuxt/lib/cta-destinations.ts now imports src/_data/ctaDestinations.json and site.json instead of hand-duplicating the values.
  • Build-time validation: cta-button.njk validates variant/color and fails with a descriptive error on an invalid value, instead of silently emitting a nonexistent CSS class.
  • Remaining hand-written CTAs migrated to the shared macros: dashboard.njk, plc.njk, the deployment cards in node-red/index.njk (which also replaces a fragile URL-string comparison dispatch with an explicit cta field).
  • Dead frontmatter cleanup: removed buttonText/buttonLink/primaryCta/secondaryCta fields left unused after those migrations.
  • Consistent position naming site-wide, in both frameworks: fixed values that duplicated the page name/slug (opcua-hero, customer-story, etc.) or used meaningless placeholders (primary/secondary) so they describe actual on-page placement instead (hero, bottom-cta-card, right-column-summary, deployment-cards, certification).
  • Documented in CLAUDE.md, as a gotcha, the temptation to prefix position with the page that embeds a component shared across routes (known, left-as-is case: AgentSetupTabs.vue).

Related Issue(s)

Checklist

  • I have read the contribution guidelines
  • I have considered the performance impact of these changes
  • Suitable unit/system level tests have been added and they pass
  • Documentation has been updated
  • For blog PRs, an Art Request has been created (instructions)

@netlify

netlify Bot commented Sep 7, 2026

Copy link
Copy Markdown

Deploy Preview for flowforge-website ready!

Name Link
🔨 Latest commit 6bcf956
🔍 Latest deploy log https://app.netlify.com/projects/flowforge-website/deploys/6a9ed2489cdec6000824a993
😎 Deploy Preview https://deploy-preview-5749--flowforge-website.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
Lighthouse
Lighthouse
1 paths audited
Performance: 79 (🟢 up 30 from production)
Accessibility: 96 (no change from production)
Best Practices: 100 (no change from production)
SEO: 92 (no change from production)
PWA: -
View the detailed breakdown and full score reports

To edit notification comments on pull requests, go to your Netlify project configuration.

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.

1 participant