Start with questions, not data
The common way to set up analytics is to add the tracking code, switch on everything the tool offers and look at the dashboards later. The result is a large pile of numbers and few answers. A better way is to write down the questions you want the data to answer, then collect only what those questions need.
For a small site, the questions are usually modest:
- How many people visit, and roughly where do they come from?
- Which pages do they read most?
- Are they doing the things the site exists to encourage?
- Is anything getting worse, such as a drop in visits to key pages?
If a data point does not help answer a question like these, it is a candidate for being left out.
Why collect less
There are practical and ethical reasons to keep tracking light.
- Privacy: visitors reasonably expect their behavior not to be monitored more than needed. Collecting less means holding less that could be misused or leaked.
- Legal exposure: privacy rules in many places set conditions on collecting data about individuals, including through cookies and similar technologies. The requirements vary by country and region, so check the rules that apply to you or ask a qualified professional. This article cannot tell you what the law requires.
- Speed: every tracking script has a cost in loading time, and heavy tag setups can slow pages down.
- Clarity: fewer, better-defined measures are easier to read and trust.
- Trust: a clear, short privacy explanation is easier to write when your practices are simple.
Decide what you actually need
A reasonable minimum for most small sites includes:
- Page views and visits by page.
- Traffic source at a broad level (search, direct, links from other sites).
- Device category (phone, tablet, computer), which informs design and testing choices.
- A handful of defined actions, such as form submissions or purchases, as described under conversion tracking.
- Broad location, such as country or region, if it informs your business.
Items that often add risk without adding value for a small site:
- Collecting names, email addresses or other personal details inside analytics tools. Keep these out of page addresses and event names.
- Recording what visitors type into forms.
- Session recordings or heatmaps on pages with sensitive information. If you use them at all, mask fields and limit them to specific pages and periods.
- Combining analytics with advertising or profiling data, unless you have a clear reason and the proper permissions.
- Tracking everything a visitor clicks, “just in case.”
Choose a tool and configure it conservatively
Tools differ in how they work. Some set cookies and keep identifiers for individual browsers; others measure in aggregate with minimal or no identifying data. Neither type is automatically right for everyone, so compare them against your needs and legal context. When you configure one, consider the following:
- Turn off any feature you do not need, such as sharing data with other services, advertising features or detailed demographic collection.
- Set the shortest data retention period that still lets you compare year-on-year if you need to.
- Anonymize or truncate visitor network addresses if the tool offers this.
- Make sure the tool does not record personal details that appear in page addresses, such as email addresses in links.
- Restrict who can view the data, and remove accounts when people leave.
- Review the data-sharing and processing terms with the provider.
Be open with visitors
Tell visitors what you collect, why and how long you keep it, in plain language. Link the notice from every page, usually in the footer. If your setup requires consent before tracking, make the choice clear and fair, and make sure the site works properly for people who decline. Consent rules are one of the most location-specific parts of privacy law, so it is worth getting a professional opinion if you serve visitors in several regions.
Test and clean up
After installing tracking:
- Visit the site yourself and confirm the visit is recorded properly.
- Exclude your own traffic and any staging versions of the site.
- Make sure the code does not run twice on any page, which would double-count visits and distort measures such as bounce rate.
- Check that no personal information is leaking into reports.
- Confirm that the code loads without noticeably slowing pages. Core web vitals and other speed readings can show if it does.
Then remove anything stale. Old tags from tools you no longer use, forgotten test events and duplicate trackers accumulate over the years, and an audit of them is a good use of the quarterly review.
Review what you collect each year
Once a year, list the data you collect and ask whether you used it for a decision in the last twelve months. If not, stop collecting it and delete what you can. It is easier to add a measure later, when you have a question for it, than to justify holding it for years.
Keep expectations realistic
Even careful setups are imperfect. Visitors using privacy tools, declining consent or blocking scripts will not appear, so your numbers will usually undercount. Treat figures as a reasonable sketch, useful for trends, and not as an exact count. A lean setup that you understand and use is worth more than a comprehensive one that nobody reads.