function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Herin DedhiaHerin Dedhia 

Tracking the Source of Site URL Origin

How do i track the origin source of Site URL from where it was originated.For e.g a job portal lists our jobs.So if user is coming from that job portal to our website, is there any way from which i can track origin of request? 

Vinita_SFDCVinita_SFDC

Hello,

 

Either you can make use of Google Analytics(https://support.google.com/analytics/answer/1008065?hl=en-GB) or you can access user's browser cookie information.

 

Refer following link for similar use case implemented with cookies information:

 

http://unbounce.com/online-marketing/how-to-set-up-and-track-keyword-origination-from-multiple-sources-in-salesforce/

 

(Section: Create a mechanism to capture incoming URL or referrer information and store it so that it stays with the visitor)

 

 

JK84JK84

Hi,

 

You can use something called the "referrer" URL. This will tell you the URL from which the request to your site originated from.

 

You can capture that either from Javascrip in your VF page using "document.referrer" or in your apex code using the following:

 

pageURL =ApexPages.currentPage().getHeaders().get('referer');

 

Note: Please accept my answer as the solution if it resolves your issue.