Count pageviews, not people. Privacy-first web analytics, securely stored in the EU.
OPEN BETA
Count pageviews, not people. Privacy-first web analytics, securely stored in the EU.

Script Options

Learn how to configure the PageviewsOnline analytics script. Discover all available script options for privacy-first, cookie-free web analytics.
Home Documentation Script Options

When initializing the PageviewsOnline analytics script, you can specify optional settings that control how analytics data is collected and processed.

Verbose

Enabling verbose mode will make the script print more information to the browser console. This is helpful for understanding what is happening and for troubleshooting.

HTML

<script ... data-verbose="true" ...></script>

JavaScript

script.dataset.verbose = "true";

Do Not Track (DNT)

Do Not Track (DNT) is a browser setting that allows users to signal that they prefer not to be tracked across websites. While widely supported in the past, the DNT standard is no longer actively maintained and has been discontinued by major standards bodies and browser vendors. Despite this, some browsers still expose the DNT signal.

By default, PageviewsOnline respects the browser's Do Not Track setting and does not collect pageviews from visitors who have DNT enabled. This behavior aligns with our privacy-first approach and requires no additional configuration.

If you explicitly want to include visits from browsers with Do Not Track enabled, you can override this behavior using the script option below.

HTML

<script ... data-collect-dnt="true" ...></script>

JavaScript

script.dataset.collectDnt = "true";

Allow HTTP

By default, the PageviewsOnline analytics script only runs on secure HTTPS websites. This option allows the script to run on non-secure HTTP pages.

HTML

<script ... data-allow-http="true" ...></script>

JavaScript

script.dataset.allowHttp = "true";