Autopilot: Web page tracking code advanced options

This article addresses the web page tracking code advanced options. If you're not yet familiar with the tracking code and what it does, you can learn more here.

The advanced options are designed to help you become GDPR compliant. You can learn more about GDPR and what Autopilot is doing about it here.

How do I access and enable the advanced options?

You can access the advanced options in Settings.

When you enable options it will generate a new tracking code. Use this updated tracking code on your web pages to finish enabling the option:

What does each option do?

There are two options available:

1. Enable explicit cookie opt-in

This option will display an opt-in request on any web page using the tracking code. The design is responsive and will work on any website. It is a simple way for you to enable explicit opt-in to cookies on your website:

When this option is enabled Autopilot will not set any cookies until a visitor clicks "Accept". Once they do, it will not be shown again unless they clear their cookies.

Note that it is not merely a notification of using cookies, but rather a specific opt-in. This is because under the GDPR, people must take an affirmative action in the process of opting in.

2. Use my own cookie prompt

Enable this option if you'd prefer to use a different style of opt-in request, or already have one of your own.

When this option is enabled Autopilot will not set any cookies until you run the following function, which you should configure to occur when they click your accept button:


If you would like to give people the option to opt-out you can use the following function to opt them out:


You can also check if someone is opted in with the following function:


Which will return true or false.


What if I was using the tracking code prior to the release of these advanced options?

Things will continue to function as normal.

If you want to use the advanced options, select which ones you'd like to use, copy the new tracking code, and then update the existing code on your web pages.

What is the impact of using these options on form capture and Proactive Headsup?

If you are using form capture or Proactive Headsup, they will continue to work even if the visitor has not opted in to cookies. A cookie will be set automatically upon submission.

You should make sure your forms have an explicit opt-in checkbox, linking to your privacy policy which mentions the data you store, why, and for how long. This is outlined in our blog post.

For Proactive Headsup we provide an advanced option that allows you to add an explicit opt-in checkbox. Learn more here.