Repository navigation
Show visits sent by AI assistants without an account - #134
Merged
Merged
Conversation
AI referral counts were kept only on sites connected to WebDecoy Cloud and shown only there. Every install now keeps daily counts per AI product and landing page for 30 days and shows them on the dashboard widget (7 days) and the Statistics page (30 days). Counts only: nothing about a visitor. Connected sites still send their counts to WebDecoy Cloud as before.
Merged
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
AI referral counts (visits that arrive from a link in ChatGPT, Perplexity, Claude, Gemini, Copilot and others) were only counted on sites connected to WebDecoy Cloud, and only shown there. Now every install counts them locally, free, with no account.
webdecoy_ai_referral_days(UTC day, platform, landing path, count), kept 30 days, pruned on the hourly cleanup. Up to 1,000 landing paths a day; past that a referral still counts for its platform under an empty path, so platform totals stay exact. Schema version 2.13.0.webdecoy_count_ai_referralsfilter still turns all counting off.observe()now counts only afterregister()turned counting on.webdecoy_crawler_visits; added.Tests:
tests/AiReferralLocalTest.php. It covers local counting with no key and no cloud queueing, local plus cloud when connected, waiting for the schema, and the summary fold. Reverting to connected-only counting fails the first test.