ReferenceAuto-captured Events
Reference

Auto-captured Events

Reference for all events automatically captured by the Mythic Analytics SDK including page views, attribution tracking, and auto-included context properties.

Auto-captured events

The SDK automatically captures these events when the corresponding config options are enabled:

EventDescriptionConfig
$pageviewPage load with URL, title, referrer, and performance metricscapture_pageview
$pageleavePage exit with $time_on_page, $exit_intent, scroll depthcapture_pageleave
$engagementFires 10 seconds after page loadAlways on
$identifyUser identification (via identify())Always on
$create_aliasAlias creation (via alias())Always on
Click eventsAuto-captured link clicks, button clicksautocapture
Form submissionsAuto-captured form submit eventsautocapture

Attribution tracking

When capture_utm is enabled (default), the SDK captures UTM parameters and advertising click IDs from the URL:

  • UTM: $utm_source, $utm_medium, $utm_campaign, $utm_term, $utm_content
  • Google Ads: $gclid, $gbraid, $wbraid
  • Facebook: $fbclid, $fbc, $fbp
  • Twitter/X: $twclid
  • LinkedIn: $li_fat_id
  • Mythic Click ID: $iiid (from link redirect tracking)

Auto-included context

Every event automatically includes:

  • $lib, $lib_version — SDK identifier and version
  • $current_url, $referrer, $host, $pathname — Page context
  • $browser, $browser_version, $os, $os_version — User agent
  • $device_typemobile, tablet, or desktop
  • $screen_width, $screen_height, $viewport_width, $viewport_height
  • $session_id, $device_id, distinct_id — Identity context