Skip to content

evoOrigin reference

Data kept in the session

The system plugin writes an array to the Joomla session under the configured key (evo_origin by default). Its keys are:

ContentKeyLimit
URL parameter valuegclid, gbraid, wbraid, msclkid, fbclid100 characters
URL parameter valueutm_source, utm_medium, utm_campaign100 characters
URL parameter valuehsa_cam100 characters
Domain of the first-contact external referer, lower case and without www.referer150 characters
1 if the first referer was one of your own domainsreferer_interno

Capture rules:

  • A URL parameter replaces the previous value each time it appears.
  • The referer is stored once per session: the first one that is not your own. Only the domain is stored, not the URL.
  • A referer whose domain matches one of the Own domains (or a subdomain of one) does not count as an external origin.
  • Capture happens only on the frontend, on GET requests with HTML format. com_ajax, requests carrying the X-Requested-With header and user agents containing "bot", "crawl" or "spider" are skipped.

Visit logging

With Log visits on:

  • At most one row is written per Joomla session (the session identifier is stored as an HMAC-SHA256 with a salt derived from the site secret, not in the clear).
  • The row is written only if the session carries an origin: source, medium, campaign, referer or a click identifier. With Record direct visits on, sessions with no origin are stored with the source (direct) and the medium (none), except prefetches and those arriving from another page of the same site.
  • Nothing is written if the user agent contains any of the texts in Bots and tools that do not count.
  • Browser prefetches (Sec-Purpose, Purpose or X-Moz headers) are stored with the is_prefetch flag and counted under the medium (prefetch), or not stored if you choose "Ignore them". If the same session later requests the page for real, the flag is removed.
  • The landing page is stored without its query string.
  • If the visitor identifies themselves later in the same session, the row gets their user_id.
  • Click identifiers are stored only if Store click identifiers is on, and the user agent only if Store the user agent is.
  • In the statistics, an empty source is shown as (direct) and an empty medium as (none).

AI crawler logging

With Log AI crawler accesses on, each GET or HEAD request whose user agent matches a crawler in the evoBots catalogue writes a row with the date, the bot, the path without query string and the response code. robots.txt tokens (Google-Extended, Applebot-Extended) make no requests and cannot be counted; Googlebot is not in the catalogue. Responses 401, 403 and 429 are counted as "Refused" in the panel.

Visits from AI assistants are classified from the source (utm_source) or the referer domain of the logged visits: ChatGPT, Perplexity, Claude, Gemini, Copilot, Poe, You.com, Phind, DeepSeek and Grok.

evoSEO can ask for an aggregated summary of this access through the onEvoseoCollectAiAccess event, to cross it with its robots.txt policy. It contains no personal data.

The onEvooriginLead event

The extension that creates the lead triggers it. evoOrigin reads the origin from the current session and stores the summary.

ContentArgumentFormat
Reference type (for example, offer)refTypeLetters, numbers, _, . and -; up to 50 characters
Reference identifierrefIdAs above plus :; up to 100 characters
use Joomla\CMS\Factory; use Joomla\Event\Event; Factory::getApplication()->getDispatcher()->dispatch( 'onEvooriginLead', new Event('onEvooriginLead', ['refType' => 'offer', 'refId' => (string) $offerId]) );

Behaviour:

  • If Store lead attribution is off, or the arguments do not match the format, it does nothing.
  • Each refType + refId pair has a single row.
  • The first time, it stores the first and last origin as the same value. On later calls it updates the last origin only if the session carries an origin, and adds one to the visits counter every time the event is triggered.
  • An error while storing attribution never prevents the lead from being created.

REST API

Read-only routes. Use the X-Joomla-Token: <token> header and the core.manage permission on com_evoorigin. Without it, the API returns 403.

Method and routeReturns
GET /api/index.php/v1/evoorigin/statsMonthly counters: month, source, medium, campaign, visits. With the period filters, the report by day, week or month (see below).
GET /api/index.php/v1/evoorigin/aiAI access: accesses by crawler and visits from assistants, aggregated. With the period filters, the series by day, week or month.
GET /api/index.php/v1/evoorigin/visitsVisits: ip, user_id, landing, source, medium, campaign, referer, is_prefetch, user_agent (empty if not stored), created.
GET /api/index.php/v1/evoorigin/leadsLead attribution summaries.
GET /api/index.php/v1/evoorigin/leads/:idOne summary by numeric id.

Parameters:

ParameterRouteEffect
filter_monthstatsMonth in YYYY-MM format (monthly counters)
filter[range]stats, ai7d, 30d, 90d, 365d, this_month, last_month or custom. Default 30d
filter[from], filter[to]stats, aiDates YYYY-MM-DD in UTC, both included. They go together, do not accept future dates and the maximum is 731 days. They are not combined with a shortcut in range
filter[group_by]stats, aiauto, day, week or month
filter[compare]stats, aiCompare with the previous period of the same length (default: yes)
filter[source], filter[medium]statsExact value. With the medium (prefetch) you ask for the prefetches
filter[include_prefetch]statsAdds the prefetches to the visits (default: no)
filter[days]aiPeriod in days (default 30). Not combined with the period filters
filter_source, filter_campaignvisitsFilters by exact value
filter_ref_typeleadsFilters by reference type
page[limit], page[offset]visits, leadsPagination; the limit runs from 1 to 100 (20 by default)

Example: GET /api/index.php/v1/evoorigin/stats?filter[range]=30d&filter[group_by]=week&filter[compare]=1.

The period filters are validated strictly: an invalid value, an unknown parameter or a period that is too long returns a 400 with the reason. Nothing is silently corrected. Days are UTC. Without period filters, stats and ai answer as before.

Responses are not cached. The IP in visits is always returned truncated; if it was stored as a hash, (hash) appears. Lead summaries do not include click identifiers. The statistics add up the detail still kept and the counters already aggregated. Anything before version 1.6 only exists by month and is not spread by day.

MCP tools (evoMCP)

They come from the evomcp group plugin. You need evoMCP, and the connection must have permission on the evoorigin component. The user also needs core.manage on com_evoorigin (and core.delete to delete or purge). The evoorigin_mark_prefetch tool needs evoMCP 1.26.0 or later.

evoMCP permissionToolWhat it does
Read (statistics)evoorigin_statsWith no parameters, or only month (YYYY-MM), it returns the monthly rows by source, medium and campaign. With range (7d, 30d, 90d, 365d, this_month, last_month or custom), from and to (UTC, 731 days at most; custom requires both), group_by (auto, day, week, month), compare (default true), source, medium or include_prefetch (default false) it returns the report: series with the previous period aligned, key figures, sources with their percentage and what only exists by month. month is not combined with the rest.
Read (AI)evoorigin_ai_accessAI crawler accesses (by bot, with purpose, refused responses and last access) and visits from assistants. With days (1 to 365, default 30) the period is rounded to the month. With range, from, to, group_by or compare it returns the series by day, week or month. days is not combined with those parameters.
Read (visits)evoorigin_list_visitsLists visits, with a truncated IP. Filters source, campaign, prefetch (only or exclude), limit (1 to 100), offset. Returns personal data.
Read (leads)evoorigin_list_leadsLists attribution summaries. Filters ref_type, limit, offset.
Read (leads)evoorigin_get_lead_attributionAttribution of one lead by ref_type and ref_id.
Write (visits)evoorigin_mark_prefetchFlags as prefetches the visits already stored whose IP starts with the prefixes in ip_prefixes (1 to 50 prefixes of two to four numbers separated by dots, for example 162.120.184.). It deletes nothing and only works with a truncated or full IP, not with a hash. Requires human approval.
Write (visits)evoorigin_delete_visitsDeletes up to 100 visits by id. Requires human approval.
Write (leads)evoorigin_delete_leadsDeletes up to 100 summaries by id. Requires human approval.
Write (visits)evoorigin_purge_nowRuns the retention purge now. Requires human approval.

evoorigin_stats and evoorigin_ai_access validate their parameters with the same strict rule as the API: an invalid value or an unknown parameter gives an error with the reason. The write tools support dry_run. With it, deletion reports what it would remove, evoorigin_mark_prefetch counts how many visits it would flag and the purge returns the configured periods, without touching data. No tool returns the full IP.

Chrome publishes the official list of the ranges of its Private Prefetch Proxy at https://www.gstatic.com/chrome/prefetchproxy/prefetch_proxy_geofeed. Check it before choosing the ip_prefixes: it may change.

Tables

With your Joomla table prefix:

What it storesTableColumns
Level 1: visitsevoorigin_visitsid, session_hash, user_id, ip, landing, source, medium, campaign, referer, click_ids, is_prefetch, user_agent, created
Level 2: lead attributionevoorigin_leadsid, ref_type, ref_id, first_* and last_* (source, medium, campaign, referer, at), visits, click_ids, created, updated
Level 3: monthly countersevoorigin_statsmonth, source, medium, campaign, visits
Level 3: daily counters (1.6)evoorigin_stats_dailyday, source, medium, campaign, visits
AI crawlers: detailevoorigin_crawlsid, created, bot, path, status
AI crawlers: countersevoorigin_crawl_stats, evoorigin_crawl_stats_dailymonth or day, bot, hits
Visits from assistants: countersevoorigin_ai_stats, evoorigin_ai_stats_dailymonth or day, assistant, visits

Scheduled task

The task type is evoorigin.purge. Each run does these things:

  1. Adds to the monthly and daily counters the visits older than the detail retention period (also the visits from AI assistants) and deletes them, in batches of 1000.
  2. Removes click identifiers from visits and leads older than their period, without deleting the row.
  3. Deletes the daily counters older than their period (Daily counters retention). Monthly counters are not deleted.
  4. Deletes lead summaries whose last interaction is older than the period in months.
  5. Counts by month, day and bot the crawler accesses older than their period and deletes the detail.

The purge runs even when visit logging is off, so data that already existed keeps being purged.