Sample web events clickstream data
Updated 3 November 2026. Fictional U.S. businesses and people, generated with a fixed seed.
What is in it
Each row is one event in a visit to a fictional online shop during 2024: session and visitor ids, date and time, event type, page, device, browser, country, traffic source, seconds on page and revenue for purchases. Events are in order within each session, and a purchase always follows an add_to_cart, so funnel and sessionization practice works.
More practice tables like this one: all 22 newer sample datasets.
First rows
point at a column to light it up
| event_idtext | session_idtext | user_idtext | event_datedate | event_timetext | event_typetext | page_pathtext | devicetext | browsertext | countrytext | traffic_sourcetext | seconds_on_pagenumber | revenuenumber |
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| EV1000001 | S000001 | U01657 | 2024-01-01 | 11:27:23 | page_view | / | Desktop | Chrome | United States | Organic search | 116 | |
| EV1000002 | S000001 | U01657 | 2024-01-01 | 11:29:30 | page_view | /about | Desktop | Chrome | United States | Organic search | 102 | |
| EV1000003 | S000001 | U01657 | 2024-01-01 | 11:31:26 | page_view | /products/standing-desk | Desktop | Chrome | United States | Organic search | 98 | |
| EV1000004 | S000001 | U01657 | 2024-01-01 | 11:33:19 | page_view | /products | Desktop | Chrome | United States | Organic search | 61 | |
| EV1000005 | S000001 | U01657 | 2024-01-01 | 11:34:32 | page_view | /blog/buying-guide | Desktop | Chrome | United States | Organic search | 15 | |
| EV1000006 | S000001 | U01657 | 2024-01-01 | 11:34:57 | click | /about | Desktop | Chrome | United States | Organic search | 12 | |
| EV1000007 | S000002 | U02552 | 2024-01-01 | 08:21:39 | page_view | /products/desk-lamp | Desktop | Chrome | India | Direct | 29 | |
| EV1000008 | S000002 | U02552 | 2024-01-01 | 08:22:19 | page_view | /blog/buying-guide | Desktop | Chrome | India | Direct | 8 | |
| EV1000009 | S000002 | U02552 | 2024-01-01 | 08:22:41 | click | /pricing | Desktop | Chrome | India | Direct | 38 | |
| EV1000010 | S000002 | U02552 | 2024-01-01 | 08:23:32 | click | /pricing | Desktop | Chrome | India | Direct | 5 |
Events by type
events, 1,000-row file
Show as a table
| event_type | value |
|---|---|
| page_view | 616 |
| click | 187 |
| add_to_cart | 86 |
| search | 69 |
| signup | 23 |
| purchase | 19 |
Data dictionary
| Column | Type | Meaning |
|---|---|---|
| event_id | text | Event number (events are listed in order within each session) |
| session_id | text | Visit number |
| user_id | text | Fictional visitor id (one visitor can have many sessions) |
| event_date | date | Date (2024) |
| event_time | text | Time of the event, HH:MM:SS |
| event_type | text | page_view, click, search, add_to_cart, signup or purchase |
| page_path | text | Page the event happened on |
| device | text | Mobile, Desktop or Tablet |
| browser | text | Browser |
| country | text | Visitor country |
| traffic_source | text | How the session started |
| seconds_on_page | integer | Seconds spent before the next action |
| revenue | decimal | Order value in USD, only on purchase events (otherwise blank) |
Practice questions
answers checked in SQL and in Python
How many events of each type?
page_view 616; click 187; add_to_cart 86; search 69; signup 23; purchase 19
Excel
=COUNTIF(F:F,"purchase")SQL
SELECT event_type, COUNT(*) AS n FROM web_events GROUP BY event_type ORDER BY n DESC, event_typeFile: web-events-1000
How many distinct sessions, and how many include a purchase?
245 sessions, 19 with a purchase
SQL
SELECT COUNT(DISTINCT session_id), COUNT(DISTINCT CASE WHEN event_type = 'purchase' THEN session_id END) FROM web_eventsFile: web-events-1000
Total revenue by traffic source?
Direct $639.08; Social $501.67; Organic search $251.87; Paid search $211.29; Email $181.33; Referral $178.10
Excel
=SUMIFS(M:M,K:K,"Organic search")SQL
SELECT traffic_source, ROUND(SUM(revenue),2) AS r FROM web_events WHERE revenue IS NOT NULL GROUP BY traffic_source ORDER BY r DESC, traffic_sourceFile: web-events-1000