Intermediate10 columnsUp to 10,000 rows Fictional data

Website Traffic (Analytics) dataset

Daily sessions, users, bounce rate and conversions by page, traffic source and device.

Made the moment you click and sent straight to you. Nothing is saved on our server.

About this dataset

An export like the ones you get from a web analytics tool: one row per day for a combination of page, traffic source and device, with sessions, users, new users, bounce rate, average session length and conversions (sign-ups or enquiries).

It is made for building dashboards and spotting trends: growth over two years, weekday against weekend, mobile against desktop, and which channels actually bring people who convert.

Good for practising: Dashboards, Time series, Funnel analysis, Power BI.

What's built into the data

The rows are random, but they follow rules, so there is something real to find. These are the patterns to look for:

  • Traffic grows steadily, ending about 80% higher than it started.
  • Weekends get about 20% fewer sessions than weekdays.
  • Organic search brings the most visits; social has the highest bounce rate and email the lowest.
  • Desktop sessions last longer than mobile ones.
  • The /pricing and /contact pages convert far better than blog pages, and email and paid search visitors convert better than the rest.

Columns

ColumnTypeDescription
dateDateDay the visits happened.
pageCategoryLanding page path.
traffic_sourceCategoryOrganic Search, Direct, Social, Referral, Email or Paid Search.
deviceCategoryMobile, Desktop or Tablet.
sessionsWhole numberVisits.
usersWhole numberDistinct visitors.
new_usersWhole numberFirst-time visitors.
bounce_rate_pctDecimalPercent of sessions that viewed only one page.
avg_session_secWhole numberAverage session length in seconds.
conversionsWhole numberSign-ups or enquiries.

Preview: the first 8 rows

A sample with seed 2026. Your download will have different values but the same columns and patterns.

datepagetraffic_sourcedevicesessionsusersnew_usersbounce_rate_pctavg_session_secconversions
2024-04-01/blog/excel-tipsEmailMobile82723430.41034
2024-04-02/pricingPaid SearchTablet22156.1530
2024-04-03/courses/sqlSocialMobile1451118968.71282
2024-04-04/contactPaid SearchTablet33268.7871
2024-04-05/pricingSocialMobile123947572.5686
2024-04-06/courses/pandasDirectMobile1781596940.6522
2024-04-07/contactOrganic SearchMobile20918014243.39215
2024-04-08/contactPaid SearchTablet11139.3670

Practice exercises

  1. Plot total sessions per week. Add a 4-week rolling average to see the trend.
  2. Compare conversion rate (conversions ÷ sessions) by traffic source and by device.
  3. Which pages bring the most traffic, and which bring the most conversions? Are they the same pages?
  4. Build a dashboard with a date slicer: sessions, users, bounce rate and conversions, with month-on-month change.
  5. Group by weekday and show the weekly cycle. On which day should a new blog post go out?

Stuck on one? Each exercise uses ideas from the lessons below, and trying it with the messy option on turns it into a cleaning exercise as well.

Load it straight into Python

You don't have to download first. Pandas can read the link directly, in Jupyter, Google Colab or a script. Keep the seed so you get the same data every time you run the notebook:

import pandas as pd

url = "https://beeprotonai.info/resources/datasets/website-traffic/download/?rows=1000&seed=42"
df = pd.read_csv(url, parse_dates=["date"])
df.head()

For SQL practice, download the SQL format and run it against an empty database, for example sqlite3 practice.db < website-traffic-1000-rows-seed42.sql or mysql -u root -p practice < website-traffic-1000-rows-seed42.sql (use your file's name). It creates a table called website_traffic and fills it.

About the data

Everything in this file is invented. Names are random pairings of common first names and surnames, email addresses use example.com (reserved for examples, so it can never reach anyone), and phone numbers start with +91 00, which no real Indian mobile number does. Any resemblance to a real person or business is coincidence. Dates run from 1 April 2024 to 31 March 2026 unless a column says otherwise. Use it freely for learning, teaching and projects, including commercial ones, with no attribution required (CC0).

Lessons that go with it

More datasets

See all 14 datasets →