| 开发者 |
agstudioai
levskipg |
|---|---|
| 更新时间 | 2026年6月19日 03:07 |
| PHP版本: | 7.4 及以上 |
| WordPress版本: | 7.0 |
| 版权: | GPLv2 or later |
| 版权网址: | 版权信息 |
posthog.identify() for logged-in users$identify with $anon_distinct_id merges anonymous and known profilestotal_orders, lifetime_value, avg_order_value, last_order_date updated on every purchasefirst_order_date, acquisition_source, acquisition_medium, acquisition_campaign set once via $set_onceaphaOptIn() / aphaOptOut() JavaScript functionsag-data-for-posthog folder to /wp-content/plugins/phc_)Log in to PostHog, go to Project Settings, and copy the Project API Key. It starts with phc_.
Yes. Select US or EU for PostHog Cloud, or enter your self-hosted URL in the Custom Proxy URL field.
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.
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.
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.
Yes. Both classic (shortcode) and block-based checkout flows are fully supported for identity persistence and event tracking.
apha-track-view to any element (works with Elementor, Block Editor, raw HTML)data-apha-event attributedata-apha-threshold attribute (default 50%)