With a retargeting pixel, an unobtrusive piece of JavaScript code is embedded in your website footer. When a visitor departs, the cookie notifies retargeting platforms to serve specific ads based on the pages they visited.