All Collections
Frequently Asked Questions (FAQ)
Statistics & Performance
We do not want the Datatrics pixel to be loaded until visitors have accepted the cookies. Could this cause problems?
We do not want the Datatrics pixel to be loaded until visitors have accepted the cookies. Could this cause problems?
Xander Wijering avatar
Written by Xander Wijering
Updated over a week ago

The tracking script may be posted immediately, as we do not collect any personal data by default. Before the visitor accepts the cookies, the following can be sent to our tracking script:

<script> 
_paq.push(["setCustomData", {
"opt-in": false
}]);
_paq.push(["trackPageView"]);
</script>

After accepting, the same script can be fired, but with the opt-in set to true. This is easy to arrange in Google Tag Manager, for example, if the acceptance of the cookies is also shared with it.

In this way, it is still possible to display personalizations to visitors without collecting personal data.

Did this answer your question?