discourse/lib/middleware
Krzysztof Kotlarek a036aacbed
DEV: Add country code to browser pageview payloads (#39681)
This adds country_code to the browser pageview event payload emitted by
RequestTracker.

The value is resolved in core using
DiscourseIpInfo.get(data[:request_remote_ip])[:country_code], so both
normal browser pageview events and beacon pageview events can persist
the visitor country when the browser pageview events plugin handles
them.
2026-05-01 12:21:58 +08:00
..
anonymous_cache.rb DEV: Fix AnonymousCache for pitchfork in dev/test modes (#37852) 2026-02-17 09:12:02 +00:00
crawler_hooks.rb PERF: Skip locale param rewriting for upload paths in CrawlerHooks (#39611) 2026-04-28 13:31:52 -03:00
csp_script_nonce_injector.rb
default_headers.rb
discourse_public_exceptions.rb
enforce_hostname.rb
missing_avatars.rb
omniauth_bypass_middleware.rb
overload_protections.rb
processing_request.rb
request_tracker.rb DEV: Add country code to browser pageview payloads (#39681) 2026-05-01 12:21:58 +08:00