What's the Difference Between First and Third-Party Cookies? ... A first-party cookie is set by the publisher's web server or any JavaScript loaded in the website. A third-party cookie can be set by a third-party server, such as an AdTech vendor, via code loaded on the publisher's website.