Linux 软件免费装
Banner图

AG Data for PostHog

开发者 agstudioai
levskipg
更新时间 2026年6月19日 03:07
PHP版本: 7.4 及以上
WordPress版本: 7.0
版权: GPLv2 or later
版权网址: 版权信息

标签

woocommerce ecommerce analytics attribution posthog

下载

1.5.3

详情介绍:

AG Data for PostHog connects your WooCommerce store to PostHog — the open-source product analytics platform. Track the complete customer journey from first click to lifetime value, all within PostHog. Why AG Data? Most WooCommerce analytics plugins give you pageviews and basic events. AG Data gives you a full marketing attribution engine — first-touch/last-touch UTM tracking, ad click ID capture (Google, Meta, TikTok, Microsoft, LinkedIn), server-side first-party cookies that survive Safari ITP, and automatic LTV enrichment on every person profile. Key Features Server-Side Event Tracking Frontend Event Tracking Marketing Attribution Engine Identity Stitching LTV Person Enrichment GDPR / Consent Management WooCommerce Compatibility Requirements

安装:

  1. Upload the ag-data-for-posthog folder to /wp-content/plugins/
  2. Activate the plugin through the Plugins menu in WordPress
  3. Go to WooCommerce > Settings > AG Data
  4. Enter your PostHog project API key (starts with phc_)
  5. Select your PostHog region (US or EU)
  6. Optionally configure a reverse proxy URL for first-party tracking
  7. Done! Events will start flowing to PostHog immediately.

升级注意事项:

1.4.0 Plugin renamed to AG Data for PostHog. All functionality and settings are preserved — no reconfiguration needed. 1.3.1 Fixes identity stitching — form identify now fires on submit (not just blur), Order Completed events use email as distinct_id, and upsell orders are properly attributed. 1.3.0 New element visibility tracking lets you know who actually saw key content on your landing pages — not just who triggered a pageview. Add apha-track-view class to any element. 1.2.0 New form identification feature links anonymous visitors to PostHog profiles when they enter their email in any form. Works with all form builders and WooCommerce checkout flows. 1.1.0 Major update: marketing attribution engine, identity stitching fix for PostHog funnels, LTV enrichment, and consent management. Recommended for all users.

常见问题:

Where do I find my PostHog API key?

Log in to PostHog, go to Project Settings, and copy the Project API Key. It starts with phc_.

Does AG Data work with PostHog Cloud and self-hosted?

Yes. Select US or EU for PostHog Cloud, or enter your self-hosted URL in the Custom Proxy URL field.

Will this slow down my site?

No. Server-side events use non-blocking HTTP calls. The frontend tracker is a lightweight script (~5KB) with no jQuery dependency. Attribution cookies are set server-side with minimal overhead.

Does AG Data work with Safari ITP?

Yes. Unlike JavaScript-set cookies (which Safari caps at 24 hours for URLs with tracking parameters), AG Data uses server-side setcookie() calls. These are treated as first-party cookies and persist for the full configured duration.

How does attribution work?

AG Data captures UTM parameters and ad click IDs (gclid, fbclid, ttclid, msclkid, li_fat_id) using server-side first-party cookies. First-touch and last-touch attribution data is persisted to every order and sent to PostHog, so you can analyze your full marketing funnel.

Does AG Data support WooCommerce Blocks checkout?

Yes. Both classic (shortcode) and block-based checkout flows are fully supported for identity persistence and event tracking.

更新日志:

1.5.3 1.5.2 1.5.1 1.4.0 1.3.1 1.3.0 1.2.0 1.1.0 1.0.0