Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to track users across domains?

Tags:

php

ads

tracking

We got pitched this idea yesterday. A user visits our site and are marked. Then when they visit other sites like CNN they are targeted with adds for our site. So once they are exposed to us, they start to see us everywhere, creating the illusion we are bigger than we are.

The person pitching it said it was done by cookies. I was very skeptical since I don't believe there to be anyway to see what cookies a different domain has set. So I wanted to try an figure out how it was accomplished. The salesman called this technology pixel tracking.

I have never heard of pixel tracking but from my research I have found that it is placing a 1 pixel image that references a script on another domain with parameters to be executed. My first thought was, OK maybe its possible this way.. But I still don't know how?

Can anyone explain how they are able to mark you as visited our site, and then see this mark on another site? Is it from your IP?

like image 547
JD Isaacks Avatar asked Oct 28 '10 13:10

JD Isaacks


People also ask

How do you track users and sessions across multiple domains?

If you want to treat a session that begins on www.example.com and ends on www.mysite.com as a single entity instead of two unique sessions, then you'll want to use cross-domain tracking. It's possible to use Google Analytics or other software to enable cross-domain tracking, as you'll see in a later section.

How do I cross domain tracking?

Navigate to More Settings > Cross Domain Tracking. Note: The preferred method is to make changes to the Google Analytics Settings variable, so that changes are shared across multiple tags. In Universal Analytics tags, click Enable overriding settings in this tag to expose the More Settings option.

Can Google Analytics track multiple domains?

Cross-domain measurement is a Google Analytics feature that allows you to see sessions from two related sites (such as an ecommerce site and a separate shopping cart site) as a single session, rather than as two separate ones.

Does cross domain need tracking?

It is always needed when there are multiple domains. The other misconception is that you need cross-domain tracking whenever you are using various domains. If you want to see the same user navigating across websites and to attribute conversions to the sources of traffic, you will need cross-domain tracking.


1 Answers

Included at the bottom of the (CNN) website in this case is an img tag like:

<img src="http://www.webmarketingCompany.com/pixel.php?ID=623489593479">

When a user visits the (CNN) website, and the browser renders the page, it sends http requests for all the images as well, including a request to http://www.webmarketingCompany.com for the image pixel.php which includes the ID as a get parameter. pixel.php not only returns an image, typically a 1x1 transparent gif (so it isn't visible in the rendered page), but can do a whole host of additional processing using the ID value; and it also has access to any webmarketingCompany.com cookies, which are also sent with the http request.

Of course, CNN have to agree to include the img tag in their html. Typically it's used as a tracker by third party marketing companies working on behalf of CNN to identify who is visiting their site, what pages they're viewing, etc.

But because it's a PHP script, it can do a whole host of extras, such as setting further cookies. If webmarketingCompany.com also handle ad-serving on behalf of CNN, they can do some creative selection of the ads that they choose to serve.

Such cross-client "pollination" is frowned upon, certainly here in the UK.

like image 82
Mark Baker Avatar answered Oct 13 '22 08:10

Mark Baker