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
DipakDipak 

Session tracking in salesforce

Hi all,

 

I want to know , how to track session in salesforce VF page. I have a site, i want to know the session in time and out time. within that session a visitor may visit more than one page . But Only i want to know the inTime(when visitor open the site for first time) and outTime(when visitor close the browser or browser's Tab). That means i want to track how long a visitor visits to my site .

 

 

Is there any way to track the session..

 

Please help me ASAP

bob_buzzardbob_buzzard

Force.com sites can be easily integrated with google analytics for this sort of tracking.  Check out the  site:googleAnalyticsTracking standard component.