Skip to content

11ty: Add unified CTA partials with PostHog tracking matching Nuxt - #5626

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

11ty: Add unified CTA partials with PostHog tracking matching Nuxt#5626
Yndira-E wants to merge 2 commits into
mainfrom
11ty/cta-partial

Conversation

@Yndira-E

@Yndira-E Yndira-E commented Aug 18, 2026

Copy link
Copy Markdown
Contributor

Description

Follow-up to #5517. Adds five Nunjucks macros in src/_includes/components/cta/ (ctaSignUp, ctaSignIn, ctaContactUs, ctaBookDemo, ctaPricing) mirroring the Nuxt Cta* components — same fixed copy/href, same PostHog event, same {position, variant} payload. Migrated every hand-written CTA link across src/ to use them, and unified ~10 fragmented event names (cta-join, cta-talk-us, try-it-out, etc.) into the ones Nuxt already uses, so PostHog can group clicks site-wide under one event name regardless of framework.

Each destination's event/href/label now lives in src/_data/ctaDestinations.json, imported by both Vue and Nunjucks — copy can't drift between frameworks silently. Also added CtaPricing as a fifth destination (/pricing/) after finding 5 hand-written instances repeating the same pattern in both frameworks (BlogPostCta.vue, product/index.vue, product/[tier].vue, automotive.njk).

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 Aug 18, 2026

Copy link
Copy Markdown

Deploy Preview for flowforge-website ready!

Name Link
🔨 Latest commit 1459e32
🔍 Latest deploy log https://app.netlify.com/projects/flowforge-website/deploys/6a841b311af43f0008d4b0c5
😎 Deploy Preview https://deploy-preview-5626--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: 62 (🟢 up 2 from production)
Accessibility: 96 (no change from production)
Best Practices: 100 (no change from production)
SEO: 85 (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