Measure visitors without a cookie banner
Want to know how many people visit your site and which pages they read, without tracking your visitors and without a cookie banner? You can. In this article you'll learn which measurement options are available, how to read the statistics in DirectAdmin, how to set up Matomo in a privacy-friendly way and what the Dutch Data Protection Authority (Autoriteit Persoonsgegevens, AP) says about analytical cookies.
Search Console or an analytics tool?
Google Search Console shows what happens in Google: how often your page appeared in the results and how often it was clicked. What visitors do on your site afterwards, or visitors who arrive another way, Search Console doesn't see. For that you need an analytics tool. Differences between the two are normal: look at the trend, not the exact number.
| Type | How it works | Example |
|---|---|---|
| Server statistics | The web server writes every visit to a log; a program turns that into overviews. No script in your page, no cookie. | AWStats in DirectAdmin |
| Tracking script on your own hosting | A piece of JavaScript sends each visit to your own analytics program. The data stays with you. | Matomo |
| Tracking script from a service | The script sends the visit to the service's server. | Google Analytics and other services |
AWStats in DirectAdmin
If you have a hosting package, you already have server statistics. In DirectAdmin, under System Info & Files, click Site Summary / Statistics / Logs and then, next to your domain, click View Statistics. You'll see unique visitors, visits, pages and data traffic per month, day and hour, and where visitors come from. Good to know:
- AWStats updates the figures once a day, at night. Today's visits show up tomorrow.
- AWStats also counts bots. What it recognises as a bot is listed separately as "Not viewed traffic", but not every bot is recognised.
- It's hard to see which pages a single visitor views one after another.
Step by step, with screenshots: Site summary and logs: the error log and the access log. Note: Usage statistics is about your package (storage and data traffic), not about your visitors.
Installing Matomo
Want to see more than AWStats shows, for example how many people submit your contact form? Then you can install Matomo on your own hosting package. You do this with Installatron in DirectAdmin, or with the Website Manager in My WebOké. See Opening Installatron: what can you install? and Website Manager: installing WordPress and other software. Install Matomo on a subdomain, for example, such as stats.example.com, and then add the tracking code Matomo gives you to your site.
Setting up Matomo in a privacy-friendly way
- Measure without cookies. In the tracking code, add the line
_paq.push(['disableCookies']);before the line withtrackPageView. See Matomo's explanation. - Shorten IP addresses. In Matomo, go to Administration, Privacy, Anonymize data and choose how many bytes of the IP address are masked. The default is 2; 3 is stricter.
- Choose a retention period. Matomo can regularly delete old raw visitor data. Decide for yourself how long you need it and write that period down.
- Share nothing. Don't link your statistics to advertising or to other services.
- Mention it in your privacy statement.
Matomo's own steps are in Configure privacy settings in Matomo.
What the AP says
To place or read cookies you generally need consent. There is an exception for what the AP calls limited analytical cookies: cookies used to improve your site, for example by counting visitors and popular pages, that have little or no impact on visitors' privacy. These don't require consent. However:
- If you process personal data in doing so, and an IP address already counts as personal data, the GDPR also applies. You then need a legal basis. According to the AP, for limited analytical cookies this can be legitimate interest, after a balancing test.
- You mention the measuring in your privacy statement, and visitors must be able to object easily.
- If you track visitors across sites, build profiles or use the data for advertising, they are tracking cookies and you do need consent.
According to the AP, using Google Analytics means you process personal data. Whether you can use it without consent depends on your settings. If you use it on a small site, asking for consent is the safe choice.
Further reading
- Dutch Data Protection Authority: Cookies
- GDPR for your website: cookies, external content, forms and privacy statement
- WordPress course: GDPR, cookies, forms and privacy statement
- Which words do your customers use? Free keyword research (the search queries in Search Console)
Want to learn more? Take the free course Getting found online, lesson 8.1 Measuring with privacy-friendly analytics.
