Documentation
GeoBlock Pro
Analytics

Analytics

Navigate to WooCommerce → GeoBlock → Analytics to view restriction event data.

All events are stored in the {prefix}geoblock_analytics custom database table. Results are cached using the WordPress object cache with a 5-minute TTL.


Summary Cards

CardMetric
Total EventsAll restriction events in the selected period
Unique CountriesDistinct country codes that triggered restrictions
Top RuleThe rule that fired most frequently
Block RatePercentage of product views that resulted in a restriction

Trend Chart

A line chart showing daily restriction event counts over the selected date range (7, 14, or 30 days). Helps identify traffic spikes from specific regions.


Top Countries Table

ColumnDescription
CountryCountry name and flag
EventsTotal restriction events from this country
% of TotalShare of all restriction events
Last SeenTimestamp of the most recent event

Rule Performance Table

ColumnDescription
RuleRule type and identifier (product ID, category name, etc.)
Modehide / block / redirect
EventsNumber of times this rule triggered
Unique CountriesCountries that triggered this specific rule

Analytics Event Structure

Each row in the analytics table captures:

ColumnTypeDescription
event_typevarcharrestriction, redirect, gateway_block
actionvarcharhide, block, redirect
rule_idintID of the matched rule
rule_typevarcharproduct, variation, category, tag, attribute, global, payment
countrychar(2)ISO 3166-1 alpha-2 country code
customer_ip_hashvarcharSHA-256 hash of customer IP (privacy-safe)
product_idintWooCommerce product ID
gateway_idvarcharPayment gateway ID (for gateway events)
modevarcharActive restriction mode at event time