Tagbridge 0.9.2
New in 0.9.2
Server-side events now carry the visitor's user agent and IP. Every server-side event is stamped with $raw_user_agent and $ip, centralised in the dispatcher, so PostHog can attribute approximate location and run its bot detection (isLikelyBot / getBotName) on them — letting bot traffic be filtered at ingestion. This is what makes the inflated add-to-cart / view counts (mostly bots) cleanable.
The IP is resolved for sites behind a CDN or reverse proxy and supports both Cloudflare (CF-Connecting-IP) and Google Cloud / nginx fronts (X-Real-IP, then the trustworthy hop of X-Forwarded-For that a Google Cloud load balancer leaves), falling back to REMOTE_ADDR only when it is itself public — so a load balancer's private IP is never stamped on an event. A new tagbridge_server_event_ip filter overrides detection for an unusual proxy chain.
Events that fire without a browser request (payment-gateway or admin order callbacks) intentionally carry no user agent. Pair this with PostHog's Filter Bot Events transformation set to keep events where the user agent is not set, so real browserless orders are not dropped along with the bots.
Install
Download tagbridge.zip below and upload via Plugins, Add New, Upload Plugin.