Skip to main content
menu_icon.png

Everything you need to learn Optimizely X in one place: See our resource pages for Web Experimentation and Personalization.

x
Optimizely Knowledge Base

Anonymize IP addresses in Optimizely

THIS ARTICLE WILL HELP YOU:
  • Add one line of code to your site to start running Optimizely experiments (A/B tests)
  • Choose the pages where you'd like to add the Optimizely code snippet
  • Find your project code snippet in Optimizely
  • Decide where to add the code in your HTML

In some countries, you may be required to remove the last block of an IP address to protect the identity of your visitors. Optimizely allows you to easily remove the last block of your visitors’ IP address before we store event data.

There are two ways to anonymize IP addresses in Optimizely: by project or by account.

If you're an account administrator, you can enable this setting at the account level to anonymize IP addresses automatically for all new projects. Here's what will happen: 

  • The last octet of the IP address changes into a 0 (zero) for all tracking calls made to Optimizely

  • The full IP address won't be stored anywhere and cannot be retrieved later

You can also lock this setting to ensure that your account is always in compliance. This article walks you through enabling IP anonymization at the account level.

Optimizely X

Here's how to enable IP anonymization for an account in Optimizely X.

  1. Navigate the Account Settings > Account Overview.

  2. Enable Anonymize by default to automatically anonymize IP addresses for new projects.

  3. If you want to lock the setting permanently, click to enable Lock this setting permanently. You cannot undo this action yourself once saved. You will need to contact Optimizely's support team to change this setting.

  4. Click Save.

Optimizely Classic

Here's how to enable IP anonymization for an account in Optimizely Classic.

  1. Navigate to Account Settings.

  2. Select Account Overview.

  3. Enable Anonymize by default to automatically anonymize IP addresses for new projects.

  4. If you want to lock the setting permanently, click to enable Lock this setting permanently. You cannot undo this action yourself once saved. You will need to contact Optimizely's support team to change this setting.

  5. Click Save.

IP anonymization by project

If you'd like to enable IP anonymization on a project-by-project basis, rather than automatically for the entire account, you can do that in Project Settings. Here's how: