Webflow events not triggering to posthog

Description

We have PostHog auto-capture events on our webflow site.

We also have Cookie consent installed on our webflow site.

We are finding that if the user ignores or rejects cookie consent, no posthog events are generated.

We will like to fix that so that we can capture page views and taps on webflow at all times.

Please assist.

Site URL

Required: Please provide a staging/production URL where we can see the issue

Steps to Reproduce

  1. Go to URL
  2. Inspect, see network
  3. Do not accept cookie consent
  4. Click on a “Get Unlimited for …” button
  5. No posthog events are generated for page view or click

Expected Behavior

Posthog events for page view

Posthog events for click

Actual Behavior

  1. No posthog events are generated for page view or click

Video/Screenshots

Required: Please provide a short screen recording showing the issue

  • Video link: NA
  • Screenshots (if applicable): NA

Additional Context

  • Browser: Tried on Mac OS Chrome browser

NDA Notice: If you’re under an NDA, please feel free to send us a Direct Message/Email with the above information.

Hey @avi!

The issue you’re experiencing is standard behavior for cookie consent tools - when users reject or ignore consent, third-party analytics scripts like PostHog are properly blocked to maintain GDPR compliance.

Here’s how to fix this while still capturing essential page view data:

GTM Integration (Recommended)

  1. Set up GTM with Consent Pro integration

    • Create the “Consent Mode Init” tag
    • Set up the “Analytics Cookies” trigger with event analytics-activated
  2. Configure PostHog in GTM

    • Add PostHog as a tag in GTM (not directly in Webflow)
    • Set the trigger to “Analytics Cookies”
    • Add consent check: analytics_storage = granted

Direct Script Management Alternative
You could also try a simpler approach by moving the PostHog script to your site settings and adding consent attributes: :thinking:

  1. Add PostHog script to Site Settings → Custom Code → Footer
  2. Add these attributes to the script tag:
    <script type="fs-consent" fs-consent-categories="analytics">
    // PostHog code here
    </script>
    

This way, PostHog will only load when users consent to “Analytics” while essential page functionality remains unaffected.

Could you share your staging URL once implemented so we can verify the setup? If you need more specific help with implementation, @Support-Luis or @Support-Pedro can assist further. :flexed_biceps:

We want to capture ‘Page views’ and ‘Clicks’ at all times, irrespective of ignore or reject on cookie consent. How do we structure Posthog script to do that?