Free tool · Analytics Test data generator: realistic analytics events from a seed
Random rows do not test a tracking pipeline. Real event data has users who come back, sessions with a start and an end, funnels where most people drop off, campaigns that stick to a session and devices that stay with a user. Define the funnel and the fields, pick a seed, and download thousands of events that behave like that, as JSON, NDJSON or CSV.
- Users, sessions and funnels
- Reproducible from a seed
- Setup shareable as a link
Generate test events
Start from a preset, change the funnel and the fields, and the preview updates. Download when it looks right.
Structure
Choosing a preset replaces the structure and the fields.
The same seed and setup always give the same rows.
One event per line. x1-5 repeats it 1–5 times; 60% is the chance a session goes on from the step before. Sessions always start with the first step.
Fields
Every row has user_id, session_id, event and timestamp. Add your own properties below; a user-scoped field keeps its value for that user, a session-scoped one for the session.
| Name | Type | Options | Scope | Only on events | |
|---|---|---|---|---|---|
Field types and options
int / float— A range such as 1-100; float takes dec=2 for decimal placesenum / url / country— A comma-separated list; add :3 to weight a value three times as often; (empty) is a blank valueutm— source/medium/campaign triplets with weights; (none) means a direct visit. Writes name_source, name_medium, name_campaign and keeps them for the sessiondevice / browser / os / user_agent— Drawn once per user from a weighted mix of current browsers and parsed with the same rules as the user agent parser, so they always agreeemail— userNNNN.xxxx@example.com, a domain reserved for examples (RFC 2606), one per userbool— The chance of true, as 0.3 or 30%
Output
Users
200
Sessions
466
Events
1,879
- page_view1,409
- view_item278
- add_to_cart105
- begin_checkout52
- purchase35
[
{
"user_id": "u_81ed7d2315",
"session_id": "s_00b96022643a",
"event": "page_view",
"timestamp": "2026-11-12T19:35:47.000Z",
"event_id": "a5092a1a-a1ff-4ffa-a4be-5b5de72474db",
"page_url": "https://shop.example.com/cart",
"item_category": null,
"value": null,
"currency": null,
"utm_source": "google",
"utm_medium": "organic",
"utm_campaign": null,
"country": "CN",
"device": "mobile",
"browser": "Mobile Chrome"
},
{
"user_id": "u_81ed7d2315",
"session_id": "s_00b96022643a",
"event": "page_view",
"timestamp": "2026-11-12T19:36:11.004Z",
"event_id": "1910e938-196b-4156-9b96-bb9765838cb8",
"page_url": "https://shop.example.com/",
"item_category": null,
"value": null,
"currency": null,
"utm_source": "google",
"utm_medium": "organic",
"utm_campaign": null,
"country": "CN",
"device": "mobile",
"browser": "Mobile Chrome"
},
{
"user_id": "u_81ed7d2315",
"session_id": "s_00b96022643a",
"event": "page_view",
"timestamp": "2026-11-12T19:36:22.902Z",
"event_id": "63d82fa4-9e67-4c18-b60d-c784c71294a2",
"page_url": "https://shop.example.com/",
"item_category": null,
"value": null,
"currency": null,
"utm_source": "google",
"utm_medium": "organic",
"utm_campaign": null,
"country": "CN",
"device": "mobile",
"browser": "Mobile Chrome"
},
{
"user_id": "u_81ed7d2315",
"session_id": "s_00b96022643a",
"event": "view_item",
"timestamp": "2026-11-12T19:36:34.717Z",
"event_id": "93810d79-9ef6-4ca9-b751-186814e55c6f",
"page_url": null,
"item_category": "shoes",
"value": null,
"currency": null,
"utm_source": "google",
"utm_medium": "organic",
"utm_campaign": null,
"country": "CN",
"device": "mobile",
"browser": "Mobile Chrome"
},
{
"user_id": "u_5f03a86daf",
"session_id": "s_30c43121644d",
"event": "page_view",
"timestamp": "2026-11-01T09:29:01.000Z",
"event_id": "69991097-109a-4b5b-a1ba-6632ab181ed3",
"page_url": "https://shop.example.com/category/shoes",
"item_category": null,
"value": null,
"currency": null,
"utm_source": "bing",
"utm_medium": "organic",
"utm_campaign": null,
"country": "KR",
"device": "mobile",
"browser": "Mobile Safari"
},
{
"user_id": "u_5f03a86daf",
"session_id": "s_30c43121644d",
"event": "page_view",
"timestamp": "2026-11-01T09:30:15.084Z",
"event_id": "be3079b5-015c-4a9b-9f8c-808b5f09955b",
"page_url": "https://shop.example.com/cart",
"item_category": null,
"value": null,
"currency": null,
"utm_source": "bing",
"utm_medium": "organic",
"utm_campaign": null,
"country": "KR",
"device": "mobile",
"browser": "Mobile Safari"
},
{
"user_id": "u_5f03a86daf",
"session_id": "s_30c43121644d",
"event": "view_item",
"timestamp": "2026-11-01T09:31:12.253Z",
"event_id": "c68b18f1-75ef-41f1-b2cb-29382a95a72e",
"page_url": null,
"item_category": "shoes",
"value": null,
"currency": null,
"utm_source": "bing",
"utm_medium": "organic",
"utm_campaign": null,
"country": "KR",
"device": "mobile",
"browser": "Mobile Safari"
},
{
"user_id": "u_5f03a86daf",
"session_id": "s_6f044c88a46b",
"event": "page_view",
"timestamp": "2026-11-08T15:19:39.000Z",
"event_id": "fc5b6598-bf29-4fb3-9079-ac6df012eebd",
"page_url": "https://shop.example.com/",
"item_category": null,
"value": null,
"currency": null,
"utm_source": "google",
"utm_medium": "organic",
"utm_campaign": null,
"country": "KR",
"device": "mobile",
"browser": "Mobile Safari"
},
{
"user_id": "u_5f03a86daf",
"session_id": "s_6f044c88a46b",
"event": "view_item",
"timestamp": "2026-11-08T15:19:55.831Z",
"event_id": "b4dd34bc-10b0-49ad-8628-edfc2fa3d2c6",
"page_url": null,
"item_category": "accessories",
"value": null,
"currency": null,
"utm_source": "google",
"utm_medium": "organic",
"utm_campaign": null,
"country": "KR",
"device": "mobile",
"browser": "Mobile Safari"
},
{
"user_id": "u_5f03a86daf",
"session_id": "s_6f044c88a46b",
"event": "add_to_cart",
"timestamp": "2026-11-08T15:20:14.746Z",
"event_id": "71ea90d8-7682-4f68-b472-1897c66a4255",
"page_url": null,
"item_category": "shoes",
"value": 275.76,
"currency": null,
"utm_source": "google",
"utm_medium": "organic",
"utm_campaign": null,
"country": "KR",
"device": "mobile",
"browser": "Mobile Safari"
},
{
"user_id": "u_5f03a86daf",
"session_id": "s_6f044c88a46b",
"event": "begin_checkout",
"timestamp": "2026-11-08T15:23:24.118Z",
"event_id": "51a66ab9-bfb4-41c6-9522-a71f795db113",
"page_url": null,
"item_category": null,
"value": null,
"currency": null,
"utm_source": "google",
"utm_medium": "organic",
"utm_campaign": null,
"country": "KR",
"device": "mobile",
"browser": "Mobile Safari"
},
{
"user_id": "u_5f03a86daf",
"session_id": "s_0a1235e522d9",
"event": "page_view",
"timestamp": "2026-11-10T10:37:46.000Z",
"event_id": "f5495185-d08b-4fa3-8f62-c8310a799d4f",
"page_url": "https://shop.example.com/",
"item_category": null,
"value": null,
"currency": null,
"utm_source": "google",
"utm_medium": "organic",
"utm_campaign": null,
"country": "KR",
"device": "mobile",
"browser": "Mobile Safari"
},
{
"user_id": "u_5f03a86daf",
"session_id": "s_0a1235e522d9",
"event": "page_view",
"timestamp": "2026-11-10T10:38:01.835Z",
"event_id": "8696def4-d877-4db2-a159-69fd32410596",
"page_url": "https://shop.example.com/",
"item_category": null,
"value": null,
"currency": null,
"utm_source": "google",
"utm_medium": "organic",
"utm_campaign": null,
"country": "KR",
"device": "mobile",
"browser": "Mobile Safari"
},
{
"user_id": "u_5f03a86daf",
"session_id": "s_0a1235e522d9",
"event": "page_view",
"timestamp": "2026-11-10T10:38:27.699Z",
"event_id": "4d97ecd0-520c-4fd4-bb1b-8f07d5e9eeae",
"page_url": "https://shop.example.com/",
"item_category": null,
"value": null,
"currency": null,
"utm_source": "google",
"utm_medium": "organic",
"utm_campaign": null,
"country": "KR",
"device": "mobile",
"browser": "Mobile Safari"
},
{
"user_id": "u_5f03a86daf",
"session_id": "s_0a1235e522d9",
"event": "page_view",
"timestamp": "2026-11-10T10:38:59.191Z",
"event_id": "faa2b550-2be8-49c6-984f-26ac621ac19f",
"page_url": "https://shop.example.com/product/runner-2",
"item_category": null,
"value": null,
"currency": null,
"utm_source": "google",
"utm_medium": "organic",
"utm_campaign": null,
"country": "KR",
"device": "mobile",
"browser": "Mobile Safari"
},
{
"user_id": "u_5f03a86daf",
"session_id": "s_772fc0ec2a8d",
"event": "page_view",
"timestamp": "2026-11-14T17:44:07.000Z",
"event_id": "b7b1749d-2561-4dc7-bfae-6304a0a90e2d",
"page_url": "https://shop.example.com/category/shoes",
"item_category": null,
"value": null,
"currency": null,
"utm_source": null,
"utm_medium": null,
"utm_campaign": null,
"country": "KR",
"device": "mobile",
"browser": "Mobile Safari"
},
{
"user_id": "u_5f03a86daf",
"session_id": "s_772fc0ec2a8d",
"event": "page_view",
"timestamp": "2026-11-14T17:45:19.286Z",
"event_id": "d1e9a95b-8f37-4c89-af33-364b6d371e29",
"page_url": "https://shop.example.com/",
"item_category": null,
"value": null,
"currency": null,
"utm_source": null,
"utm_medium": null,
"utm_campaign": null,
"country": "KR",
"device": "mobile",
"browser": "Mobile Safari"
},
{
"user_id": "u_5f03a86daf",
"session_id": "s_772fc0ec2a8d",
"event": "view_item",
"timestamp": "2026-11-14T17:45:39.033Z",
"event_id": "7a2a2e0c-5df0-4290-9d22-ed261e8b8f31",
"page_url": null,
"item_category": "accessories",
"value": null,
"currency": null,
"utm_source": null,
"utm_medium": null,
"utm_campaign": null,
"country": "KR",
"device": "mobile",
"browser": "Mobile Safari"
},
{
"user_id": "u_5f03a86daf",
"session_id": "s_772fc0ec2a8d",
"event": "add_to_cart",
"timestamp": "2026-11-14T17:45:42.594Z",
"event_id": "c9685021-4ce9-4dcb-b13a-fb9416fc12cb",
"page_url": null,
"item_category": "bags",
"value": 167.31,
"currency": null,
"utm_source": null,
"utm_medium": null,
"utm_campaign": null,
"country": "KR",
"device": "mobile",
"browser": "Mobile Safari"
},
{
"user_id": "u_9b48a8a356",
"session_id": "s_0143d7db91c1",
"event": "page_view",
"timestamp": "2026-11-03T20:58:54.000Z",
"event_id": "066bb92b-82fe-4d18-bfe6-f7f0d3f685cb",
"page_url": "https://shop.example.com/",
"item_category": null,
"value": null,
"currency": null,
"utm_source": "google",
"utm_medium": "organic",
"utm_campaign": null,
"country": "DE",
"device": "mobile",
"browser": "Mobile Safari"
}
]Share these inputs: the values go after the # in the link, so they never reach a server.
https://tapcub.com/tools/test-event-generator
Version v1.0Updated Update history
What makes this data realistic
The point of test data is to break the same way production data does. These are the properties that usually reveal bugs.
Returning users
Each user has several sessions spread over the date range, so “new vs returning”, retention and user-level joins have something to count.
Session boundaries
Sessions are at least 30 minutes apart, events inside one are seconds to minutes apart, and more traffic falls in the day and evening than at night.
Funnel drop-off
Every step after the first has a chance of continuing. The counts in the chart above get smaller step by step, as in a real funnel report.
Consistent properties
Country and device stay with the user, UTM stays with the session, and properties such as value appear only on the events you list. Nulls appear where real data has them.
The bar chart counts events per name. To check conversion between steps, count distinct session_id per event in your own pipeline and compare.
Generate test events in four steps
The ecommerce preset makes a few thousand events, enough for a dashboard or a pipeline test.
-
1
Pick a preset
Ecommerce, SaaS sign-up or content site. Each sets a funnel and typical properties.
-
2
Shape the funnel
Edit the steps: names, repeats and the share of sessions that go on to each step.
-
3
Add fields
Name, type, options and scope; limit a field to certain events, such as value on purchase.
-
4
Download
JSON for fixtures, NDJSON for loaders and streaming, CSV for spreadsheets. Share the link to give a colleague the same data.
How the generator builds the events
Everything comes from one seeded pseudo-random sequence, so the output is the same in every browser for the same setup.
- The seed text is hashed with FNV-1a (32 bits) and drives a mulberry32 generator; nothing depends on the clock or Math.random()
- For each user, the number of sessions is drawn between the min and max; each session starts on a random day at an hour weighted towards daytime, sorted and kept 30+ minutes apart
- Inside a session the first step is repeated 1–n times, then each later step continues with its probability; the gap between events is 3 seconds plus an exponential delay averaging 40 seconds
- Weighted picks (enum, url, country, utm) choose in proportion to the weights; user- and session-scoped values are drawn once and reused
- Output follows the formats exactly: JSON with nulls for missing properties, one JSON object per line for NDJSON, RFC 4180 CSV with a header row
| Column | Example | Meaning |
|---|---|---|
| user_id | u_d6c16ed822 | Stable for all of a user’s sessions |
| session_id | s_24a820d0d129 | One per session |
| event | add_to_cart | A funnel step name |
| timestamp | 2026-11-12T05:59:12.000Z | UTC, increasing within a session |
One session from the ecommerce preset
A typical session from the ecommerce preset: a visitor lands from Google, views two pages and an item, and adds it to the cart, but does not check out.
| event | timestamp | page_url / value | utm_source |
|---|---|---|---|
| page_view | 09:14:02 | https://shop.example.com/ | |
| page_view | 09:14:51 | https://shop.example.com/category/shoes | |
| view_item | 09:15:20 | item_category = shoes | |
| add_to_cart | 09:16:47 | value = 129.9 |
The session stopped after add_to_cart because the 55% chance of going on to begin_checkout did not come up. utm_source is the same on every row of the session.
Where test data misleads
Test data that is too clean hides the bugs you are trying to find.
Uniform random rows
Independent random events have no sessions or funnels, so session counts, conversion rates and retention look wrong or meaningless.
Ignoring time zones
Timestamps here are UTC. If your dashboard groups by local day, events near midnight move to another date; check that this is what you expect.
No nulls
Real events miss properties. Limiting fields to certain events gives nulls elsewhere, which is where schema and type errors show up.
Mixing test and real data
Send generated events to a test project or table. Example domains (example.com) and u_ / s_ IDs make them easy to find and delete.
Check real events the moment they arrive
Test data proves the pipeline works; TapCub checks the real events that flow through it.
Validated on arrival
Unexpected event names, missing properties and wrong types are flagged as events arrive, with warnings on the project home.
Learn moreOne script, then one call
client.js records pageviews, sources, outbound clicks and downloads on its own. A custom event is tapcub.track(name, props).
Learn moreSDKs for every platform
The same event names on web, iOS, Android, Flutter, React Native, mini programs and the server API.
Learn moreTest data generator questions
Still have a question?
Chat with the team behind TapCub — we usually reply within a few hours on business days.
How is this different from Mockaroo or Faker?
Those generate independent rows of any kind. This tool generates event streams: users with several sessions, ordered timestamps and funnel drop-off, which is what analytics pipelines, dashboards and alerts need to be tested with.
Can I get the same data again?
Yes. The same seed and the same settings always produce the same rows, in any browser. Share the link and a colleague gets identical data.
How much data can it generate?
Up to 5,000 users and 200,000 events per run in the browser. For more, change the seed and generate several files.
Which format should I choose?
NDJSON (one JSON object per line) for bulk loaders such as BigQuery, ClickHouse or Snowflake and for streaming; JSON for test fixtures; CSV for spreadsheets and SQL COPY.
Does it contain real personal data?
No. IDs are random, emails use the reserved example.com domain and there are no names or phone numbers, so the data and the share link are safe to pass around.
Can I send these events to my analytics tool?
Yes, with your own script that reads the file and calls your SDK or HTTP API. Send them to a test project so they do not mix with real traffic.
Update history
New features, fixes and data refreshes for this tool, newest first.
-
· v1.0
LaunchedFirst release.
Missing something or found an error? Tell us — requests that come up often go into the next update. All tool updates
From test events to a tracking plan
Decide the real events and properties, generate the code, then let TapCub validate what arrives.