Skip to content

Limit collection to audience measurement

This page describes the settings that limit Pomelo to audience measurement: turn off automatic clicks, automatic form submissions and the Campagnes option. It describes how the script behaves today. It does not decide for you whether your site must collect consent: that depends on your country and your site.

For countries where audience measurement requires agreement, see Consent and Campaigns.

To limit Pomelo to audience measurement, apply these four points:

  1. Audience measurement only. The Campagnes option stays off. If you turn it on, it requires the visitor’s consent.
  2. Clicks and form submissions, your choice. Turn them off if you do not want to measure them (next section). JavaScript errors are measured without their message.
  3. Information and objection. Include the information notice and the objection link in your privacy policy: see Privacy and objection.
  4. No data about a person in an event name, a label, a page title or a page path (sections below).

In the dashboard, open the site settings, section “Measurement and collection”. Changes apply only after you click “Save”. The script is cached for up to an hour: a changed setting reaches pages in under an hour.

Setting Default Audience measurement only
Automatic clicks On Off
Automatic form submissions On Off
Campagnes Off Off

Do not add these settings to the script tag: they come from the site settings.

Automatic clicks. When off, the script no longer sends ui.click, outbound.click, file.download, contact.mailto or contact.tel. Data already collected stays available.

Automatic form submissions. When off, the script no longer sends form.submit. Even when on, a form submission carries only the form identifier and the path of its action, never the fields typed.

Campagnes. When off, no campaign data (UTM parameters, channel, ref) is collected, whatever the visitor chose. Campagnes serves a marketing purpose and requires consent: see Consent and Campaigns.

These settings do not block events your own code sends with window.pomelo.track(...). If you use it, put no personal data in those events.

Audience measurement itself: page views, time spent and scroll, performance, JavaScript errors, country, region and city, device, browser, and the referrer reduced to its domain. No measurement cookie is written; the only possible cookie remembers a visitor’s objection.

If you keep automatic clicks, two attributes reduce collection further:

  • data-autocapture-labels-only="true", on the script tag: ui.click is sent only for elements with an explicit data-analytics-id, with no label.
  • data-analytics-ignore, on an HTML element: no event for that element and its children.

A click label is 100 characters at most. A longer label is dropped, never truncated: the script tries the next source, then falls back to the element identifier. A label containing a recognised piece of personal data (email, phone number, UUID, IP address, token) is also dropped. A name or a postal address in a label is not recognised: do not put them in your labels. Details in SDK Integration.

Pomelo keeps the title and path of every page viewed. It automatically removes what can be recognised: email, phone number, identifier (UUID), IP address and token. A name or a postal address in a title or a path cannot be recognised: it is kept.

So put no data about a person in a page title or path: no name, no address, no customer number. For a page whose title or path necessarily carries such data (a customer record, for example), exclude it from measurement: do not load the script tag on it. Without the tag, the page sends nothing.

  1. Save the settings, then wait up to an hour.
  2. Open a page of your site, click a link and submit a test form.
  3. In the site’s “Actions” report, check that no click or form submission appears. An action shows up in the report within a few minutes; if nothing appears after the one-hour wait, that is the expected result.

Tell your visitors about audience measurement, with the opt-out link Pomelo provides: see Privacy and objection.