Added referrer code

https://swrvedev.jira.com/browse/SWRVE-4019