Analytics
Go to WooCommerce → GeoBlock → Analytics to see how often your restrictions trigger.
Analytics is off by default. Turn on Analytics Logging under WooCommerce → GeoBlock → Advanced to start collecting data. Until then, the Analytics tab shows "Analytics is disabled."
The dashboard always covers the last 30 days.
Summary Cards
| Card | What it shows |
|---|---|
| Potential Sales Blocked | Total restriction events in the last 30 days |
| Top Blocked Market | The country that triggered the most restrictions |
| Most Affected Rule | The rule that triggered most often |
A Business Insights list sums this up in plain sentences: the country with the most blocks, the most affected rule, and the 30-day total.
Charts and Tables
| Section | What it shows |
|---|---|
| Blocks This Week | Daily restriction counts for the 10 most recent days that had activity |
| Top Blocked Markets | The 10 countries with the most restriction events |
| Most Affected Rules | The 10 rules that triggered most often, with Rule, Type, Impact (Blocks) and Last Seen |
What Is Recorded
Each event is stored in the {prefix}geoblock_analytics database table:
| Column | Description |
|---|---|
created_at | When the event happened |
event_type | product_rule, variation_rule, bulk_rule or payment_rule |
rule_id / rule_type | Which rule matched (product, variation, category, tag, attribute, global or payment) |
country | 2-letter ISO country code |
customer_ip_hash | A salted SHA-256 hash (HMAC) of the visitor's IP - the IP itself is never stored |
product_id | The product involved (product events) |
gateway_id | The payment method involved (payment events) |
mode | The Restriction Mode at the time |
request_path | The page that was requested |
Dashboard results are cached for 5 minutes.
Analytics data is kept until you remove it. There is currently no retention setting, clear button or CSV export.