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
joestuartjoestuart 

Track user's journey on force.com and log

We are having strange things happen on our shopping cart that is hosted on a SFDC site.  Is there any way to track the user's movements (what pages they go to and a time stamp)?
We want to track to see if they are clicking the back button for example. 
Thanks.
SwethaSwetha (Salesforce Developers) 
HI Joe,
There is no way to track the community user behaviour (such as where user's clicks )

Using Salesforce Communities Management package (https://help.salesforce.com/articleView?id=networks_reporting_dashboards_package.htm&type=5)that is available in app exchange, can track User activities such as number of posts and comments made, login activity, count of total active members, new members added, user profiles with or without photos.

Helpful Article link: https://help.salesforce.com/articleView?id=networks_reporting.htm&language=en_US&type=0

Additionally, you can configure google analytics for salesforce communities to track User IDs, community user types, and search activity so this information can be pulled into meaningful reports

Helpful Article link: https://help.salesforce.com/articleView?id=networks_google_analytics_setup.htm&language=en_US&type=0

Hope this helps you. Please mark this answer as best so that others facing the same issue will find this information useful. Thank you
 
AbhishekAbhishek (Salesforce Developers) 
You can do it with Google Analytics

Salesforce Sites provides out-of-the-box integration with Google Analytics. Use Google Analytics to track the usage of your sites and site pages, including the number of visits, number of page views, average time spent on site, and more.

For further reference you can check this,

https://help.salesforce.com/articleView?id=sites_analytics_tracking_code.htm&type=5

I hope you find the above information is helpful. If it does, please mark as Best Answer to help others too.

Thanks.