This guide covers the cookies that Layer0 creates and uses.

  • layer0_bucket: a number between 1 and 100 randomly assigned by Layer0 to all clients connecting to it. It is a long-lived non-session cookie allowing predictable cohorts during split testing. Its value is not accessible from client-side JavaScript code.
  • layer0_destination: the name of the experience to which split testing has assigned the user based on the value of layer0_bucket. Its value is accessible to client-side JavaScript code and can thus be safely included in client-side metrics.