Skip to main content

Troubleshoot Implementing First-Party Cookies on Your Website

Enabling first-party cookies in your tracking script allows you to track your users more accurately. When first-party cookies are enabled, cookies are created on your website instead of Sendinblue or a third party.

How does it work?

Enabling first-party cookies adds the parameter “_se” to the URLs redirecting to your website. In rare cases, this may cause issues with loading a page on your website if the application or web server doesn’t handle unknown parameters.

➡️ For example

How to resolve potential issues?

Review the options below to resolve common issues that occur when implementing first-party cookies on your website.

Page Not Found

➡️ For example opens correctly but shows 404 error

If your page doesn’t show when the URL is clicked, you may need to confirm how your web server checks parameters. 

  1. If your web server expects a known set of parameters, add “_se” as a parameter.
  2. If your web server evaluates query parameters to locate a resource, the server should skip evaluating “_se”. Configure your server settings to allow “_se”.

URL missing _se parameter

➡️ For example will get changed to only

When the first-party cookie setting is enabled, if your page URL is missing the “_se” parameter , you can check if any JavaScript script on your page is cleaning the URL, or if there is a delayed application state in which the “_se” parameter is added back later. This happens quite often in Single Page Applications.

Your application clears the URL

➡️ For example will get changed to only

An application can be configured to read query parameters to determine states in a single-page or multi-page experience. It can clean its own URL to correctly represent the state it is in. 

  1. Your website framework should add “_se” as an exception and/or skip taking any action on it. Make sure the parameter persists in the URL until the tracking script has done its job.
  2. If your website clears and cleans unknown values from the address bar, make sure the Sendinblue tracking script calls happens as early as possible, ideally before loading any library. To help the tracking script calls to happen quickly, we advise you to place the Sendinblue tracking script as high in the website header as possible.

🤔 Have a question?

If you have a question, feel free to contact our support team by creating a ticket from your account. If you don't have an account yet, you can contact us here.