Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.ocular.dev/llms.txt

Use this file to discover all available pages before exploring further.

The unified data model for website and app analytics. Sessions, page views, events, and customer engagement consolidated across every digital touchpoint, with bounce, returning-visitor, and funnel-conversion rates pre-calculated.

What this data model represents

Grain: one row per user × session × activity. Metrics, grouped by category — every number you can compute on this data model. Expand below for examples in each.
Dimensions, grouped by category — every way you can split, filter, or group those metrics. Expand below for examples in each.
Source: Google Analytics 4, customer activity streams, device + geo enrichment, and product-interaction events, refreshed daily. What’s special: session-based and identity-resolved metrics are pre-aggregated. Bounce Rate accounts for single-activity sessions, Returning Visitor % tracks multi-session users, and funnel CVRs map the full View → Cart → Checkout → Purchase path. Metrics like Pages per Session and Traffic-to-Purchase CVR stay accurate at any time grain and across any dimension — you don’t have to re-derive them per query.

Slice by

Every dimension you can group or filter by.
DimensionDescription
User identity
user_idUnique identifier for authenticated users
user_pseudo_idPseudo identifier for anonymous visitors
is_customer_flagBoolean — user is an identified customer
customer_idUnique customer identifier for transacting users
Session & activity
session_idUnique session identifier
activity_timestampWhen the activity occurred
activity_nameName of the activity / event
session_count_per_userNumber of sessions for this user
activity_count_per_sessionNumber of activities within this session
Traffic source
sourceTraffic source (google, facebook, direct, …)
mediumMarketing medium (organic, cpc, referral, …)
channel_groupingGrouped channel classification
campaign_idMarketing campaign identifier
campaign_nameMarketing campaign name
contentAd content or creative identifier
termSearch term / keyword from paid campaigns
Page & content
page_locationFull URL of the page
page_view_pathPath portion of the page URL
page_titleTitle of the page
collectionProduct collection identifier
search_termInternal site-search query
Product
product_variant_idProduct variant identifier
product_nameProduct name
product_categoryHigh-level product category
product_subcategoryProduct subcategory
product_colorColor variant
Device
device_categoryDesktop, mobile, tablet
device_operating_systemOS of the device
device_browserBrowser used
device_mobile_brand_nameMobile device brand
device_mobile_model_nameMobile device model
Geographic
cityCity of the user
regionState or region
countryCountry
sub_continentSub-continental region
continentContinent
Time
full_dateDate, time component stripped
full_timestampFull timestamp
day_nameMonday, Tuesday, …
type_of_dayWeekday / Weekend
User journey
first_activity_timestampFirst-ever activity for this user
last_activity_timestamp_for_activityMost recent activity for this user
days_since_last_activityDays since previous activity
time_to_activityDays from first to current activity
Technical
order_idOrder identifier for purchase events
stream_idData-stream identifier
platformWeb, app, …

Use it to answer

  • What’s our true conversion rate from session to purchase, and where in the funnel are we losing people?
  • Which traffic sources and channels drive the highest-quality visitors — by engagement, not just volume?
  • How do mobile vs. desktop users behave differently — pages per session, add-to-cart rate, checkout CVR?
  • What’s the bounce rate by landing page or campaign, and which pages need work?
  • How many of our visitors are returning, and what’s the DAU/WAU/MAU stickiness ratio?
  • Which geographic regions show the strongest engagement and conversion?
  • Which products get viewed often but rarely added to cart — a PDP or pricing problem?
  • What share of sessions come from paid vs. organic vs. referral, and how does each convert?

Available metrics

Everything you can compute on this data model.
MetricFormula
Sessions & activity
Web Traffic (Sessions)Count of unique website sessions
Customer SessionsCount of sessions by identified customers
Total SessionsCount of all sessions regardless of activity type
UsersCount of unique identified users
Pseudo UsersCount of unique anonymous visitors
Customers (Transacting)Count of unique customers with transactions
Total ActivitiesCount of activities across all sessions
Page views & navigation
Page View SessionsSessions containing at least one page view
Page View ActivitiesCount of individual page-view events
Pages per SessionAvg page views per session
View Item SessionsSessions with a product detail page view
Add to Cart SessionsSessions where items were added to cart
Checkout SessionsSessions that reached checkout
Purchase SessionsSessions that completed a purchase
Referral SessionsSessions from referral sources
Paid SessionsSessions from paid advertising
Conversion & engagement
Visits per CustomerAvg sessions per identified customer
% PLP SessionsSessions viewing product-listing pages ÷ Total Sessions × 100
% PDP SessionsSessions viewing product-detail pages ÷ Total Sessions × 100
% Sessions Adding to CartAdd to Cart Sessions ÷ Total Sessions × 100
Checkout CVRPurchase Sessions ÷ Checkout Sessions × 100
Traffic-to-Purchase CVRPurchase Sessions ÷ Total Sessions × 100
Traffic source
Referral TrafficCount of sessions from referral sources
Paid TrafficCount of sessions from paid channels
Organic SessionsCount of sessions from organic search
User behaviour
Avg Sessions per UserTotal Sessions ÷ Pseudo Users
Returning VisitorsUsers with more than one session
% Returning VisitorsReturning Visitors ÷ Pseudo Users × 100
Return SessionsSessions from returning visitors
Return Visit RateReturn Sessions ÷ Total Sessions × 100
Avg Activities per SessionTotal Activities ÷ Total Sessions
Avg Activities per UserTotal Activities ÷ Pseudo Users
Avg Days Since Last ActivityAvg(days between consecutive activities per user)
Avg Time to ActivityAvg(days from first to last activity per user)
Active users
DAUUnique users active in the last 1 day
WAUUnique users active in the last 7 days
MAUUnique users active in the last 30 days
DAU / WAUDAU ÷ WAU
DAU / MAUDAU ÷ MAU
WAU / MAUWAU ÷ MAU
Bounce & exit
Bounced SessionsSessions with only one activity
Bounce RateBounced Sessions ÷ Total Sessions × 100
Revenue per session
Gross Sales per SessionGross Revenue ÷ Total Sessions
Net Sales per SessionNet Revenue ÷ Total Sessions

Not available in this data model

If you need order-level revenue, fulfilment, or ad-platform metrics, query a different data model.
Looking for…Use
Net Revenue, AOV, gross/net order counts, returns, cancellations, discount uplift, Customer Lifetime ValueSales
Shipment status, delivery SLA, RTO rate, return-pipeline timingFulfilment
Ad spend, ROAS, CPA, impressions, clicks by campaign / adset / adMeta Ads · Google Ads