Set the bmtest cookie

This guide will talk you through setting a bmtest cookie for testing our segments in your browser.

This guide will talk you through setting a bmtest cookie for testing our segments in your browser.

Below are guides for the 4 most common browsers if your browser is not covered and you still need help please contact us.

Many modern browsers are based on the same architecture as Chrome, therefore the guide there may well work.

  1. Open your browser and navigate to the page where you want to see the segment.
  2. Right click anywhere on the page and from the drop down menu choose Inspect
  3. You’ll now see the browser inspector tools on the right side of your screen.
  4. In the menu at the top select Console
  5. Now click the cancel button (as often you have a lot of noise in your console)
  6. Click anywhere in the console and you can type.
  7. Now copy and paste the following command: bmToolbox.setCookie("bmtest",1)
  8. It will respond with “undefined” and possibly a warning about Samesite attributes, this is quite normal and not a problem.
  9. Now you have set the bmtest cookie and our segments should appear. Note there maybe a timer so you may have to wait some seconds, or refresh the page

We don’t provide support for other browsers, however you are welcome to contact us and discuss it. We however recommend for testing you use one of the browsers listed above.

Testing on mobiles

Unfortunately testing on Mobiles is more difficult and the above techniques though possible require more work. Therefore when it comes to this forms of testing we recommend a simulator like Lambdatest or Browserstack.

When you decline cookies our bmToolbox set cookie script can not be run. Therefore to test in Privacy mode you have to set it manually via the application (storage on Safari) menu.

  1. Open your browser and navigate to the page where you want to see the segment.
  2. Right click anywhere on the page and from the drop down menu choose Inspect
  3. You’ll now see the browser inspector tools on the right side of your screen.
  4. Navigate to the Applications tab → cookies → your domain
  5. Then double click in the empty space below the other cookies if you have to many scroll down
  6. When you have the open input option then type in bmtest and then press Enter
  7. Once that’s done refresh your browser
  8. Now you have set the bmtest cookie and our segments should appear.