Skip to main content

Ad-blockers and Apple ITP 2.x

Ad-blockers

In 2022, more than 40% of all internet users have installed an ad-blocker on their browser, which might also block your analytics scripts. By loading your analytics script from your domain, you can reduce the risk of ad-blockers on your site. This way, you see the traffic from users using ad-blockers, giving you insights you didn't have access to before. How much ad-blockers currently impact you depends on the location of your visitors and details around the persona you are targeting. Generally, we have experienced that the more technical your visitors are, for example, software engineers, the more likely they have an ad-blocker installed.

Apple intelligent-tracking-prevention

When your visitors are using Apple Safari, you could get impacted by Apple ITP 2.x (Apple intelligent-tracking-prevention). Dreamdata does not use third-party cookies, so in either case, the impact of Apple ITP 2.x is limited. By loading the script from your domain, you ensure that Safari continues seeing the cookies as 1st party.

Load analytics.js from your domain

To mitigate the effect of ad-blockers, you can serve the analytics script from your own domain. To do so, follow these steps:

  1. Pick a sub-domain, for example dd.company.com. When you have done that, you should set up the following CNAME: {your-selected-domain.company.com} -> {slug}.customers.dreamdata.cloud. You will see your slug by logging into app.dreamdata.io and looking at the URL.

  1. Contact us at friends@dreamdata.io and be sure to share {your-selected-domain.company.com} with us. Dreamdata must add a configuration to enable SSL/HTTPS for your domain. After that, we will come back to you with an updated script for you to update on your website or inside Google Tag Manager (to use Google Tag Manager, see below).
  2. Lastly, you need to add the new domain into your Dreamdata analytics script that was generated in our setup. You add it as an option as shown below:
dreamdata.load('<DREAMDATA_API_KEY>', {
// Other options generated by the setup...
apiHost: 'dd.company.com',
});