I have a client requesting to add a server-side HTTP Response Header cookie to implement Rakuten advertising tracking in a way that Apple products won't reject (no 3rd party or JavaScript implemented cookies). Apart from my personal feelings about whether this is a good idea, I promised to research it. It looks like it would be pretty simple to implement on a PHP based site, but here's the only thing I can find about implementing it in the ASP.net world:
https://learn.microsoft.com/en-us/aspnet/web-api/overview/advanced/http-cookies
This article does appear to show how to create and set a cookie in server-side C# code. I'm guessing in the DNN environment, I would have to build a custom DNN module to add to each page of the website that would examine the URL of the page while it loads, and if the Rakuten query string parameters were present, would grab and use those values to build and set the cookie during the page load.
I was hoping that there would be some similar DNN module out there I could review to understand better, but right now it looks like a ton of effort for a very limited ROI value. Anybody have any thoughts or ideas?
I've mostly associated HTTP Response Headers with security and authentication messages sent to the browser, rather than marketing cookies.
Thanks! David
I was hoping to find some example of a DNN project that I could use as a foundation for that, but the only DNN modules I find around the topic of cookies are "Cookie Consent" modules to meet GDPR requirements.