Linux 软件免费装
Banner图

CQI Referrer Attribution

开发者 hdfraser
更新时间 2026年6月25日 02:25
PHP版本: 7.4 及以上
WordPress版本: 7.0
版权: GPL-2.0+
版权网址: 版权信息

标签

referrer attribution marketing attribution ai traffic traffic channels

下载

1.3.1 1.8.0

详情介绍:

Most analytics plugins guess where your traffic came from by running a script in the visitor's browser, after the page has already loaded, and after any ad blocker or privacy extension has had a chance to block it. CQI Referrer Attribution classifies every visit on the server, before the page is even sent, so the data is complete and the plugin adds no client-side JavaScript, no extra request, and no Core Web Vitals penalty. It also answers a question most attribution tools still miss: how much of your traffic is coming from AI assistants. ChatGPT, Gemini, Perplexity, Claude, Copilot, and a growing list of others now send real visitors. This plugin classifies that traffic as its own channel, not lumped into Direct or Referral where it disappears. Nine channels are detected automatically: AI Tools, Organic Search, Social Media, Email, Paid Search, Paid Display, Campaign, Referral, and Direct. This plugin is fully functional with no licence key, trial period, or usage limit of any kind. AI Referrer Taxonomy A built-in registry of AI assistant domains is used to classify AI-referred traffic. The default set includes ChatGPT, Google Gemini, Perplexity, Claude, Microsoft Copilot, Grok, Meta AI, and more. Entries can be added, edited, activated, deactivated, deleted, and exported as JSON. Dashboard A 30-day summary showing total sessions, session change versus the previous 30 days, AI traffic sessions and their share of total traffic, top channel, and a channel share pie chart. Sessions log The full Sessions report supports date range, channel, and source filters, pagination, and CSV export. Consent-aware When CQI Consent is active, attribution is only persisted after marketing consent is granted. Without consent, classification runs in memory only and no cookie or database row is written. The plugin operates in permissive mode when CQI Consent is not installed. Independent of CQI Consent, the plugin reads the Global Privacy Control signal (the Sec-GPC HTTP header) on every request and does not persist attribution when it is present. This is checked regardless of whether any consent plugin is installed. When CQI Consent is not installed, the plugin also recognises marketing consent already withheld through Complianz or CookieYes, if either is active on the site, using each plugin's own consent cookie. Borlabs Cookie is not currently supported, since its consent cookie format is not publicly documented; sites running Borlabs Cookie alone currently operate in permissive mode, the same as a site with no consent plugin at all. Privacy by design No personal data is stored. Session tokens are HMAC-SHA256 hashes of an anonymized IP address (last octet zeroed) and the current date. Raw IP addresses are never written to disk. Token rotation is daily. The plugin is registered with the WordPress personal data export and erasure framework. Excluded channels Any channel can be excluded from the Dashboard summary, the channel share chart, and the Sessions report. This is most useful for removing Direct / Unknown from view so reports focus on traffic you can actually attribute and act on. Path exclusions and bot filtering A built-in guard silently drops requests to /robots.txt, /sitemap.xml, /xmlrpc.php, /favicon.ico, and other system paths before classification runs. Additional path prefixes can be added in Settings, one per line, to suppress noise from any crawlers or automated probes specific to your site. Public PHP API Two functions are available for use in themes and other plugins: These function names are intentionally preserved from CQIP Site Services v1.8.0 for backward compatibility on sites migrating from that plugin. Filter and action hooks These hooks let other plugins extend this plugin's behaviour. They are not used by this plugin itself; they exist for add-ons such as CQI Referrer Attribution Pro.

安装:

  1. Upload the cqi-referrer-attribution folder to /wp-content/plugins/.
  2. Activate the plugin through the Plugins menu in WordPress.
  3. Go to Attribution in the WordPress admin menu to view the Dashboard.
No configuration is required after activation. Classification begins on the next front-end page request.

屏幕截图:

  • Reports tab with session log, filters, and CSV export.
  • Settings tab showing retention, consent, and privacy configuration.

升级注意事项:

1.2.1 The Dashboard's Conversions and Conversion Rate cards have been replaced with AI Traffic Sessions. Both removed cards always showed zero on every site; this plugin has never included conversion tracking. 1.2.0 If you previously enabled Delete on uninstall, re-check that setting after updating. Earlier versions saved this setting but did not act on it; this version makes it function correctly for the first time. 1.0.0 Initial release.

常见问题:

Does this plugin use JavaScript to track visitors?

No. Classification is entirely server-side. No tracking scripts are added to the front end.

Does this plugin store personal data?

No. Session tokens are one-way cryptographic hashes (HMAC-SHA256) of an anonymized IP address and the current date. Raw IP addresses are never stored. Tokens cannot be reversed to identify an individual.

I have CQIP Site Services installed. Can I run both?

Not at the same time, if CQIP Site Services has its own Referrer Attribution module active. Both write to the same database tables, since this plugin was extracted from that module and preserves its table and option names for migration compatibility. If CQIP_SS_ENABLE_REFERRER is set to true in your wp-config.php, this plugin detects that and refuses to activate, showing an admin notice with the exact line to add to wp-config.php to resolve it. Existing attribution data carries over automatically once the conflict is resolved.

How does the AI channel work?

When a visitor arrives via a referrer that matches an entry in the AI Referrer Taxonomy, the session is classified as the AI Tools channel. The matched platform name (e.g. "ChatGPT") is stored as the source. The default taxonomy includes 19 entries, including NotebookLM and DeepSeek, and can be edited from the AI Taxonomy tab.

Will this work with GDPR / UK-GDPR?

The plugin does not store personal data and is registered with the WordPress personal data export and erasure framework. When CQI Consent is active, attribution is only persisted after marketing consent. As with any tool that processes visitor data, your own legal assessment of your site's practices is advisable.

What happens if a visitor does not have a referrer?

Visits with no referrer and no UTM parameters are classified as the direct channel.

Can I remove Direct / Unknown, or any other channel, from reports?

Yes. Go to Attribution > Settings > Excluded channels and check any channels you want removed. Excluded channels are removed from the Dashboard summary cards, the channel share chart, and the Sessions report, including CSV export. This is commonly used to exclude Direct / Unknown so reports focus on attributable traffic.

What happens to my data if I delete the plugin?

By default, nothing is removed. Your attribution data, settings, and AI taxonomy stay in the database in case you reinstall later. If you want a clean removal, enable Attribution > Settings > Data and Storage > Delete data on uninstall before deleting the plugin. With that enabled, deleting the plugin permanently removes the attribution log, all plugin settings, and the AI taxonomy. This cannot be undone.

How do I stop bot probes and crawler noise appearing in the session log?

Go to Attribution > Settings > Path Exclusions. Add one path prefix per line. Any request whose URL starts with a listed path is silently dropped before classification runs. Common entries are /robots.txt, /sitemap.xml, /feed/, and any path your monitoring tools or uptime checkers hit. The plugin also has a built-in guard that automatically excludes /xmlrpc.php, /wp-cron.php, /wp-signup.php, /favicon.ico, and other WordPress system paths regardless of your exclusion list.

What is the channel priority order?

When more than one signal is present on a session, this priority order applies:

  1. UTM parameters (utm_medium determines email, social, paid search, paid display, or campaign)
  2. AI Referrer Taxonomy match
  3. Known search engine referrer (organic search)
  4. Known social platform referrer
  5. Referral (any other external domain with a referrer)
  6. Direct (no referrer, no UTM parameters)

How are Paid Search and Paid Display detected?

Both are detected from the utm_medium URL parameter, not from the referrer header. utm_medium set to cpc or ppc is classified as Paid Search. utm_medium set to display is classified as Paid Display. Any other utm_medium value is classified as Campaign. If your paid traffic does not carry UTM parameters, those sessions are classified by referrer instead, typically landing in Organic Search, Referral, or Direct depending on the source. Tagging every paid URL with UTM parameters is required for accurate Paid Search and Paid Display classification.

更新日志:

1.8.0 1.7.0 1.6.1 1.6.0 1.5.1 1.5.0 1.4.2 1.4.1 1.4.0 1.3.3 1.3.2 1.3.1 1.3.0 1.2.3 1.2.2 1.2.1 1.2.0 1.1.2 1.1.1 1.1.0 1.0.12 1.0.11 1.0.10 1.0.9 1.0.8 1.0.7 1.0.6 1.0.5 1.0.4 1.0.3 1.0.2 1.0.1 1.0.0