How can I calculate number of times a record has been viewed?


1 Answer 1


If you display the record in a Visualforce page, you can include Google Analytics code in the page. This will generate stats on sessions, page-views and users. Here's some sample code.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.