| 开发者 | cservit |
|---|---|
| 更新时间 | 2026年8月14日 15:02 |
| PHP版本: | 7.4 及以上 |
| WordPress版本: | 7.0 |
| 版权: | GPLv2 or later |
| 版权网址: | 版权信息 |
do_action( 'servit_analytics_event', 'contact', array( 'label' => 'Contact Form' ) );
do_action( 'servit_analytics_event', 'order', array( 'value' => 49.90 ) );
do_action( 'servit_analytics_event', 'order_confirmed', array( 'value' => 49.90 ) );
Or via JavaScript on the frontend:
ServitAnalytics.track( 'contact', { label: 'Contact Form' } );
The JavaScript helper is limited to non-monetary events (contact requests and tel/mailto/WhatsApp clicks) and is rate limited. Orders and their values are recorded server-side only — via the PHP hook above or the automatic shop integrations — so revenue figures cannot be forged from the browser.
Automatic integrations (individually toggleable under Analytics > Settings):
?utm_source=google&utm_medium=cpc&utm_campaign=summer_sale) or rely on automatically detected click IDs (gclid, gbraid/wbraid, fbclid, msclkid, ttclid, li_fat_id).
{prefix}_servit_analytics_views, {prefix}_servit_analytics_events, {prefix}_servit_analytics_ad_costs) to store pageviews, conversion events and ad spend data. No personal data (IP addresses, usernames) is stored. Visitor uniqueness is determined by a daily-rotating, non-reversible SHA-1 hash that cannot be traced back to an individual.
All data can be deleted by enabling "Delete all tables and data when the plugin is uninstalled" in the settings before uninstalling the plugin.
servit-analytics folder to /wp-content/plugins/ or install the ZIP via Plugins > Add New > Upload.No. The session ID is stored in sessionStorage, which is cleared automatically when the browser tab is closed. No cookies are set at any point.
No. A daily-rotating, salted SHA-1 hash is computed from the IP, user agent and a WordPress nonce salt. The hash is stored; the IP is never written to the database.
The plugin is designed with GDPR in mind: no cookies, no IP storage, no external services. Whether consent is required depends on your specific use case and jurisdiction — consult your data protection officer or legal counsel.
No. Everything runs locally. Charts are rendered as inline SVG. There is no CDN, no external JavaScript library and no remote API call.
Yes. SERVIT Analytics operates independently and does not interfere with other analytics solutions.
Nothing. All data is preserved. The plugin only removes its cron jobs on deactivation. To permanently delete all data, enable "Delete all tables and data when the plugin is uninstalled" in the settings, then uninstall the plugin.
Go to Analytics > Statify Import. The plugin reads the Statify database table and imports date, path and referrer for each row. Since Statify does not track sessions or devices, each imported pageview is counted as a separate session. The import runs in batches and can be resumed safely.
Fluent Forms (contact requests), WooCommerce (orders), Easy Digital Downloads (orders) and FluentBooking (bookings). Each integration can be toggled individually in the settings and is only active when the respective plugin is installed.