I tried adding the set cookie DC in the url of a button in the hopes that that would result in setting the cookie only when the button is clicked. However, the cookie is already set when the page loads.
Is it possible to set a cookie when a button is clicked?