Why FB/CPA promoters use cloaking scrips? What's their purpose?

LetsGoViral

Viral Strategy Consultant
Dec 30, 2009
19
0
0
Europe
letsgoviral.com
I want to understand why cloaking works and how it is used.

From what I understand so far, it's to show one landing page to the FB ads admin and then send the actual users to a whole different page.

Or to show one page to a regular visitor who enters straight URL and another one to visitors from Google (checking referrer).

Is this the reason? How does this work? Is there some detailed tutorial?