1

When we click a link on a website and visit that link the HTTP request contains the previous site as the HTTP referrer. But if I click a link inside a email I have received, that HTTP request does not contain a HTTP referrer field...(clicking a link in a email received to my gmail)

So my question is, do we have a method to distinguish between these two scenarios ?

I mean any method to identify these two clicks separately using parameters in the HTTP request

2
  • can someone give me little help here ??? Dec 20, 2014 at 14:47
  • 1
    Use different links? Dec 20, 2014 at 15:01

2 Answers 2

0

I think, that when You click a link on a https page the header not contains the HTTP referrer (in php: $_SERVER['HTTP_REFERER']). And google use https, so from links in gmail the HTTP referrer not send.

0

Just like explained in my previous answer, don't rely on the referrer.

Just use a query string parameter like &source=email, &fromemail=true or &campaign=email.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.