Skip to content

Dataset

Google Analytics event and traffic datasets for AI training

A Google Analytics dataset is an export of one business's Google Analytics 4 property: the events its sites and apps sent, with event parameters, user properties, traffic source, device, geography and ecommerce items, taken from the BigQuery export's daily events tables, with key event, audience and custom dimension definitions where agreed. SourceX sources it to a buyer's spec from established businesses that run Google Analytics. Each dataset is de-identified, with user_pseudo_id and any user ID removed or rekeyed and page URLs screened, and licensed for an agreed permitted use.

Dataset manifest

Sourced to your spec
What it is
Event-level rows from one Google Analytics 4 property with parameters, user properties, traffic source, device, geography and items, plus the property's definitions
Typical systems
Google Analytics 4 standard and Analytics 360 properties with web, iOS and Android data streams, the BigQuery export and the Data API, plus saved Universal Analytics exports
Typical history
Event rows begin when the BigQuery link was made; earlier periods exist only as aggregates or saved exports, so ask for the first table date
Modality
Structured event rows with nested and repeated fields; page titles, URLs and search terms as text
Delivery formats
Parquet, Avro or newline-delimited JSON that keeps the export's nested schema, with definitions as JSON
Preparation
user_pseudo_id and session IDs rekeyed with one mapping; user_id removed or rekeyed; app advertising_id, vendor_id and click IDs removed; URLs, page titles and parameters screened
Licensing
Scoped per property, stream and date range; permitted use agreed per license; site consent records and Google's terms checked by owner and buyer
Availability
Sourced to your spec; event-level history depends on when the export was linked, and supply is not guaranteed
Structured recordsIllustrative

What a delivery contains

Fields vary by source system and are fixed per order. A typical delivery includes:

FieldTypeWhat it holds
event_namestringThe event_name column: automatic events such as session_start, enhanced measurement events, recommended events such as purchase, and custom events.
event_timestampintegerThe event_timestamp column in microseconds UTC, with event_date, which follows the property's reporting time zone.
event_paramsarrayThe repeated event_params record as key and typed value, including page_location, engagement_time_msec and every custom Event Parameter.
user_pseudo_refstringRekeyed user_pseudo_id, the browser or app instance ID; rows collected without analytics consent are not tied to a persistent ID.
user_refstringRekeyed user_id, present only where the business set a User-ID for signed-in users.
sessionobjectga_session_id and ga_session_number lifted from event_params and rekeyed with the pseudo ID, since the export has no session table.
user_propertiesarrayThe repeated user_properties record: each User Property key, its typed value and set_timestamp_micros.
deviceobjectThe device record: category, operating_system, language and web_info browser, with the app streams' advertising_id and vendor_id removed.
geoobjectThe geo record: continent, country, region and city, which Google derives from the IP address without exporting it.
traffic_sourceobjectThe traffic_source record of name, medium and source, which describes how the user was first acquired, not this session.
collected_traffic_sourceobjectThe collected_traffic_source record of manual campaign fields and click IDs seen on the event.
itemsarrayThe repeated items record on ecommerce events: item_id, item_name, item_category, price and quantity.
privacy_infoobjectThe privacy_info record: the analytics_storage and ads_storage consent state recorded on the event.
streamobjectThe stream_id and platform columns, with the Admin API's Data Stream, Key Event, custom dimension and Audience definitions delivered beside the events.
Sample recordIllustrative

Field names from the table above; values are masked placeholders.

Example record

{
  "event_date": "20240917",
  "event_timestamp": 1726582341120000,
  "event_name": "add_to_cart",
  "user_pseudo_ref": "u_c41f7a90",
  "user_ref": null,
  "session": { "session_ref": "s_0be2d1", "ga_session_number": 3 },
  "event_params": [
    { "key": "page_location", "value": { "string_value": "[SITE]/garden/hose-reels?color=green" } },
    { "key": "engagement_time_msec", "value": { "int_value": 18250 } },
    { "key": "value", "value": { "double_value": 64.0 } },
    { "key": "stock_badge", "value": { "string_value": "low_stock" } }
  ],
  "user_properties": [
    { "key": "loyalty_tier", "value": { "string_value": "silver", "set_timestamp_micros": 1719400000000000 } }
  ],
  "device": { "category": "mobile", "operating_system": "iOS", "web_info": { "browser": "Safari" } },
  "geo": { "country": "United States", "region": "Ohio" },
  "traffic_source": { "source": "newsletter", "medium": "email", "name": "spring_launch" },
  "collected_traffic_source": { "manual_source": "google", "manual_medium": "cpc",
                                "manual_campaign_name": "garden_generic", "gclid": "[REMOVED]" },
  "items": [ { "item_id": "SKU-HR-220", "item_name": "Wall-mount hose reel", "item_category": "Garden",
               "price": 64.0, "quantity": 1 } ],
  "privacy_info": { "analytics_storage": "Yes", "ads_storage": "No" },
  "stream": { "stream_id": "st_2", "platform": "WEB" }
}

Synthetic record for illustration. Field names, structure and format are agreed per order.

What AI teams use it for

Model browsing and purchase paths

Ordered events with page_location, items and engagement time show how visitors move from landing page to cart on a real site.

Train analytics agents on the real schema

Agents that write SQL against this export need the nested event_params and items records as they actually appear.

Build session-based recommendation

view_item, add_to_cart and purchase events with item records give sequences of item interactions per session.

Study traffic source and intent

Collected campaign fields beside on-site behavior show what visitors from each source went on to do.

Evaluate reporting answers

Event tables with the property's own report totals give test items where an agent must explain why the two differ.

Use-case guides: Enterprise and computer-use agents, Private evaluation sets, Sales agents

What makes this data valuable

Nested schema kept

event_params, user_properties and items arrive as repeated records, not flattened.

Unbroken table dates

Daily tables run without gaps from the first export date, or gaps are listed.

Session keys rekeyed together

The session ID is rekeyed with the same mapping as the pseudo ID, so sessions can still be rebuilt.

Consent state on every row

privacy_info is delivered, and rows collected without analytics consent are kept and flagged.

Definitions delivered

Key events, custom dimensions and data streams come with the events.

Report totals for comparison

Interface or Data API totals for the same dates are supplied.

Process

Google Analytics dataset

This page covers google Analytics event and traffic records.Illustrative

Every interaction is an event and sessions are derived

Google Analytics 4 has one record type. A page view, a scroll, a purchase and the start of a session are all events, each a row with an event_name, a microsecond timestamp and a repeated list of event_params held as a key and a typed value. There is no session row and no page view table. A session is something the reader builds: ga_session_id travels as an event parameter and is unique only together with user_pseudo_id, and engagement time arrives as engagement_time_msec spread across events. Sessions, engaged sessions and session source in the interface are calculations over these rows, and two analysts can compute them differently. The shape comes from Firebase's app analytics, which is why web and app streams share one table.

Traffic source is the best-known trap. The traffic_source record on every row describes how that user was first acquired and does not change on later visits. A session's source has to be derived from collected_traffic_source, the campaign fields and click IDs seen on the event, or read from session_traffic_source_last_click on newer tables. The channel that reports attribute a conversion to comes from Google's attribution models and is not in the export. A dataset that labels sessions by traffic_source has given every return visit the user's first campaign.

History has a cliff. Universal Analytics modeled the same activity as sessions that contained hits, with different identifiers and definitions. It stopped collecting when Google retired it, and its properties were later deleted. What survives of that era is whatever the business pulled out first: Analytics 360 BigQuery tables, API extracts, spreadsheets of aggregates. Those cannot be read as one series with the newer rows, because a session and a user mean different things on each side. Inside the newer model the raw table is wider than the interface. Reports show a custom parameter only once it is registered as a custom dimension, while the export carries every parameter sent.

There are two ways out of a property. The Data API and the interface return aggregates, dimensions against metrics, shaped by steps that never touch the raw rows. Explorations over large ranges are sampled. Rows are withheld by thresholding where counts are small and demographic or Google signals data is involved. High-cardinality dimensions collapse into an (other) row, and user counts are estimates. The API's response metadata says when sampling, thresholding or other-row loss applied, so ask for it with any aggregate file.

Event rows exist in one place: the BigQuery export, a dataset in the business's own cloud project with one events table per day and an intraday table where streaming was chosen. The export is not retroactive. Tables begin once the link is made and no earlier day can be requested. Standard properties have a daily export limit, and a property that exceeds it can have the daily export paused. A project left in the BigQuery sandbox lets its tables expire. Either leaves missing dates. Daily tables are also rewritten for a short time after their date as late events arrive.

The export and the reports disagree, and should. Under consent mode, visitors who decline analytics storage can still send cookieless pings. Those rows reach the export without a persistent user identifier, so they do not join into users, while the interface may fill the gap with modeled users that never reach BigQuery. To test a sample, list the table dates and find the gaps. Count rows by the analytics_storage value in privacy_info by day, look for the date a consent banner went live, and see what user_pseudo_id holds on the declined rows. Count distinct event_params keys per event name by month to see the instrumentation change. Read page_location query strings, page_title and search_term values for email addresses and names.

What to check before licensing

  • Have the data owner and your counsel check Google's terms on exported Google Analytics data and on API use against the intended use.
  • Confirm that user_pseudo_id, ga_session_id and any user_id were removed or rekeyed with one mapping, and that gclid and other click IDs, app advertising_id and vendor_id values and transaction IDs were handled too.
  • Ask for the site's consent records: which banner ran in which period and region, what visitors were told, and whether that covers the permitted use.
  • Ask for the date the BigQuery link was created, the list of table dates, and the cause of any gap.
  • Read page_location, page_referrer, page_title and free-text parameters in the sample for email addresses, names and order numbers.
  • Ask whether rows without analytics consent are included, excluded or flagged, and how internal and developer traffic was filtered.
  • If aggregates or Universal Analytics history are offered, ask for the sampling and thresholding flags on each file and keep those periods apart from event rows.

Delivery No files move before a signed license. A listing or a request grants no files by itself.

How licensing works through SourceX

  1. 1

    Define

    Send the domain, modality, volume, format, timeline and permitted use you need.

  2. 2

    Source

    SourceX identifies businesses that hold matching data and are open to licensing it.

  3. 3

    Qualify

    Fit, rights and quality are checked, and you review samples before committing.

  4. 4

    License

    Scope, permitted use, exclusivity, price and obligations are agreed in writing.

  5. 5

    Deliver

    Approved data is prepared, de-identified where required and transferred securely.

Questions Acquisition Partners ask

Is the data event-level or aggregated?

Event-level, where the business linked BigQuery. Each row of the export is one event with its parameters, user properties, device, geography and items. Without that link a property can supply only aggregated report rows, which may be sampled or thresholded. State in your request which you need.

How far back can a Google Analytics dataset go?

Event rows go back to when the business linked its property to BigQuery and no further, because the export cannot be backfilled. Aggregated reports can reach earlier. Anything from the Universal Analytics era exists only as files the business exported before Google deleted those properties.

Can sessions and user journeys be rebuilt from the export?

Yes, with care. Sessions are not stored. They are rebuilt by grouping events on the pseudo ID together with the ga_session_id parameter, so both must be rekeyed consistently. Journeys across devices need a user ID the business set at sign-in. Rows collected without analytics consent are not tied to a persistent identifier, so check on a sample whether they join into sessions at all.

Why won't the export match the numbers in the Google Analytics interface?

Because the interface applies steps the raw rows never receive. Reports can add modeled users for visitors who declined consent, use Google signals, estimate user counts, apply attribution models and hide small rows. The export holds only the events collected. A delivery should include report totals for the same dates so you can measure the difference.

Does the dataset contain personal data?

It can before preparation. The export has no IP address column, but user_pseudo_id is a persistent identifier, user_id is the business's own customer key, app streams carry device advertising IDs, and URLs, page titles and search parameters often carry emails or names. Those are removed, rekeyed or screened before delivery, and no method is perfect. Confirm the method with counsel.

Is SourceX affiliated with Google?

Google Analytics is named to identify the system the records come from. That does not imply a partnership with or endorsement by Google. The records belong to the business that runs Google Analytics, which licenses them under a signed agreement, and a request does not guarantee a matching dataset. Buyers should still confirm with counsel that the vendor's terms allow the intended use of exported data.

Evaluating this data for procurement?

Diligence packets are prepared per dataset. Rights, privacy processing and quality differ between datasets.

Request dataset diligence

Tell us what your models need

Send your spec — domain, volume, format, timeline and permitted use — and SourceX will match it against partner data and come back with what can be licensed.

Updated 26 November 2026.

See if your company qualifies