At the bottom of the site (CNN) in this case is the img tag, for example:
<img src="http://www.webmarketingCompany.com/pixel.php?ID=623489593479">
When a user visits the website (CNN) and the browser displays the page, he also sends http requests for all images, including the http://www.webmarketingCompany.com request for the pixel.php image, which includes the identifier as the get parameter. pixel.php not only returns an image, usually a transparent gif 1x1 (therefore, it does not appear on the displayed page), but can perform a number of additional processing using the ID value; and he also has access to any cookies webmarketingCompany.com, which are also sent with an http request.
Of course, CNN should agree to include the img tag in its html. It is usually used as a tracker by third-party marketing companies working on behalf of CNN to determine who visits their site, which pages they view, etc.
But since this is a PHP script, it can perform a number of additional functions, such as setting additional cookies. If webmarketingCompany.com also processes commercials on behalf of CNN, they can make creative choices for the ads they prefer to serve.
Such cross-client pollination is disapproving, of course, here in the UK.
Mark baker
source share