Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Posthog to Site #160

Merged
merged 20 commits into from
Aug 9, 2024
Merged

Add Posthog to Site #160

merged 20 commits into from
Aug 9, 2024

Conversation

bryantgillespie
Copy link
Contributor

@bryantgillespie bryantgillespie commented Jul 25, 2024

This adds PostHog A/B testing and event capture for the site.

A/B Tests

  • Page (redirect) tests - for testing totally separate pages
  • Block tests - for testing different headers or calls to action on the same page (currently on work on Pages collection)

For block level tests - the site will need to be redeployed. But for page level tests - these are entirely handled within Posthog using the payloads

Event Capture

  • Captures all pageviews automatically
  • Hubspot form submissions
  • Dyanmic button click events from CMS

Breaking Changes

  • Moves from build process from nuxt generate to nuxt build so we can easily proxy the Posthog API.
    • All content is still pre-rendered though as we currently fetch data from within each individual block.

Before Publishing

  • Uncomment the GTM Nuxt Module
  • Remove Posthog script from GTM
  • Merge separate PH projects into one

Copy link

netlify bot commented Jul 25, 2024

Deploy Preview for directus-website ready!

Name Link
🔨 Latest commit 33d3d6e
🔍 Latest deploy log https://app.netlify.com/sites/directus-website/deploys/66b66450539cf20008e80626
😎 Deploy Preview https://deploy-preview-160--directus-website.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

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

Copy link
Contributor

@alexchopin alexchopin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me with a really fast review. I would like to have @connorwinston approval too.

@MattatDirectus MattatDirectus merged commit 6f5c22c into main Aug 9, 2024
6 checks passed
@MattatDirectus MattatDirectus deleted the add-posthog branch August 9, 2024 18:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants