Support Center Support Center Home

  1. Home
  2. User Journeys
  3. Scripting
  4. Removing Cookie Banners in User Journeys

Removing Cookie Banners in User Journeys

Many modern websites have a cookie banner which pops up when the user loads the page. These can sometimes interfere with User Journeys by getting in the way of other content on the page. There are a couple of methods to closing cookie banners to allow your journey to run smoothly.

Cookie banners can be removed by clicking on the banner itself within the journey.

  1. Create an IfElement to wait for the banner to appear. Make sure to set the error condition to no to ensure the journey does not fail if the banner does not appear.
  2. Add a Click action to click on the accept button and close the banner.
  3. Add a Screenshot to allow you to visualise the banner disappearing (optional).

Often, the banners create a cookie when the user clicks on the banner. If you can identify this cookie, you can add it to the pre-start actions of the User Journey and stop the banner from appearing.

You can identify the cookie within the developer tools for your browser.

  1. Click Inspect Element to open developer tools for the webpage you want to check.
  2. Go to Application > Storage > Clear Site Data.screenshot showing the clear site data button in 'application' tab of chrome devtools
  3. Go Cookies > Your Website Domain.screenshot showing how to view cookie data in the application tab
  4. Refresh the page.
  5. Accept the cookie consent popup on the screen.
  6. Wait for a new cookie to appear.
  7. Note down the name and value of the cookie.
  8. Go into the Script Editor > Pre-Start Actions and select Cookie; add the name and value. screenshot showing the cookie options in the user journey pre-start actions
Was this article helpful?

Related Articles