Skip to content

Enhancement Request: Enable IP exclusions in Jetpack Stats for cached environments #40778

@alinclamba

Description

Impacted plugin

Jetpack

What

Support IP exclusions in Jetpack Stats with cached sites

How

The current implementation of the jetpack_stats_excluded_ips filter does not work for sites using caching, as the logic to exclude IPs relies on dynamically determining visitor IP addresses before serving the tracking script. Cached pages bypass this logic, resulting in the inability to exclude specific IPs from being tracked.

This issue was initially reported by a user on an Atomic site (ephillc.com) reported here: https://github.com/Automattic/jpop-issues/issues/9399, but affects all users relying on caching for performance.

This was initially reported by a user and here's the follow-up ticket where we let them know: 9226409-zd-a8c

Metadata

Assignees

No one assigned

    Labels

    Customer ReportIssues or PRs that were reported via Happiness. aka "Happiness Request", or "User Report"Triaged[Feature] Stats DataFeature that enables users to track their site's traffic and gain insights on popular content.[Plugin] JetpackIssues about the Jetpack plugin. https://wordpress.org/plugins/jetpack/[Pri] Low[Type] EnhancementChanges to an existing feature — removing, adding, or changing parts of it

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions