DataBrighten

    Sample web events clickstream data

    1,000 × 13rows × columns in the 1,000-row file

    Updated 3 November 2026. Fictional U.S. businesses and people, generated with a fixed seed.

    textnumberdateyes/no
    Largest file10,000rows; also 100 and 1,000
    Columns13with a data dictionary below
    Dates2024-01-01 – 2024-01-07range in the file
    LicenceCC0synthetic, free for any use

    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_idtextsession_idtextuser_idtextevent_datedateevent_timetextevent_typetextpage_pathtextdevicetextbrowsertextcountrytexttraffic_sourcetextseconds_on_pagenumberrevenuenumber
    EV1000001S000001U016572024-01-0111:27:23page_view/DesktopChromeUnited StatesOrganic search116
    EV1000002S000001U016572024-01-0111:29:30page_view/aboutDesktopChromeUnited StatesOrganic search102
    EV1000003S000001U016572024-01-0111:31:26page_view/products/standing-deskDesktopChromeUnited StatesOrganic search98
    EV1000004S000001U016572024-01-0111:33:19page_view/productsDesktopChromeUnited StatesOrganic search61
    EV1000005S000001U016572024-01-0111:34:32page_view/blog/buying-guideDesktopChromeUnited StatesOrganic search15
    EV1000006S000001U016572024-01-0111:34:57click/aboutDesktopChromeUnited StatesOrganic search12
    EV1000007S000002U025522024-01-0108:21:39page_view/products/desk-lampDesktopChromeIndiaDirect29
    EV1000008S000002U025522024-01-0108:22:19page_view/blog/buying-guideDesktopChromeIndiaDirect8
    EV1000009S000002U025522024-01-0108:22:41click/pricingDesktopChromeIndiaDirect38
    EV1000010S000002U025522024-01-0108:23:32click/pricingDesktopChromeIndiaDirect5

    Events by type

    events, 1,000-row file

    page_view616click187add_to_cart86search69signup23purchase19
    Show as a table
    event_typevalue
    page_view616
    click187
    add_to_cart86
    search69
    signup23
    purchase19
    Source: DataBrighten synthetic data (seed 42), computed from the file you can download here.

    Data dictionary

    ColumnTypeMeaning
    event_idtextEvent number (events are listed in order within each session)
    session_idtextVisit number
    user_idtextFictional visitor id (one visitor can have many sessions)
    event_datedateDate (2024)
    event_timetextTime of the event, HH:MM:SS
    event_typetextpage_view, click, search, add_to_cart, signup or purchase
    page_pathtextPage the event happened on
    devicetextMobile, Desktop or Tablet
    browsertextBrowser
    countrytextVisitor country
    traffic_sourcetextHow the session started
    seconds_on_pageintegerSeconds spent before the next action

    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_type

    File: 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_events

    File: 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_source

    File: web-events-1000