Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Why put "?ref=" in url?

Tags:

url

facebook

Lots of sites adds "?ref=###" in their URL, facebook/imdb etc. Now I checked this question and it appears that the reason is to keep track of what "referred" the users to that page. But I don't understand, what's the point of doing that? Is it for analytical or functional purposes?

like image 714
Ming Avatar asked Jan 30 '14 13:01

Ming


People also ask

What does REF mean in URL?

The address of the webpage where a person clicked a link that sent them to your page. The referrer is the webpage that sends visitors to your site using a link. In other words, it's the webpage that a person was on right before they landed on your page.

What are website parameters?

URL parameter is a way to pass information about a click through its URL. You can insert URL parameters into your URLs so that your URLs track information about a click. URL parameters are made of a key and a value separated by an equals sign (=) and joined by an ampersand (&).


1 Answers

As David said in the comment, it could be for any purpose they'd like.

In case of Facebook, it is mostly used for statistical tracking. It helps developers to understand where their traffic is coming from so that they can better optimize their Facebook integration. This data can also be seen in the App's insight under Referrals. According to one of the comments in the question that you've linked, a functional use of ref=ts parameter it to disable the mobile redirect, so some Facebook app developers use it intentionally to serve mobile users the desktop version of the site.

You can find more info at: Fbdev Ref Wiki and Referral Tracking documentation.

like image 199
Rahil Arora Avatar answered Sep 20 '22 12:09

Rahil Arora