27 October 2014

Tracking User Activity Across Browsers and Mobile Devices

I'm often asked whether we can track user activity at a more granular level than what's currently provided with Login History, Setup Audit Trail, and other existing monitoring features in Salesforce.

When I tell them yes, people's imaginations immediate kick into over-drive. Without understanding what is possible, people begin to imagine every possible way data can be accessed whether through a button click, running a report, viewing a list view, hovering over a related list, or looking at search results.

There are many ways users may interact with data in Salesforce. This blog post is designed to separate out fact from fiction when understanding how granular we can track user activity while working with the new Event Log Files functionality.

Event Log Files provides self-service access for customers to server generated log records. This means that a server interaction had to happen in order to record the event. The most typical server interaction is the change in a URI (uniform resource identifier, analogous to the URL you see in your address bar).

For example, when I clicked on the Marc Benioff contact record from the Home tab, the URL in the address bar changed by adding the contact id. As a result, the entry in the log file shows a Referrer URI of /home/home.jsp and a URI of /0033000000Vt4Od.

This URI interaction unto itself is powerful considering salesforce grew up as a native web application. Most things that we click ultimately change the URI. The easiest way to test this is to click something in the application and see if the address bar changes.

De-coding the URIs isn't difficult, it just takes a lexicon:
Standard object based pages:

/d: Detail- Detailing a single record and with its associated records
/m: Hover- HoverDetail page that uses a mini layout and no header/footer
/e: editPage Allowing the editing of a single record
/p: printableView- In a relatively unadorned format, detailing a single record and all of its associated records.
/o: Overview of a single entity.
/l: list- A filtered list of a single entity
/x: Printable list: A filtered list of a single entity. Does not have a help link, since you can't click links on paper.
/r: Refresh list: A stripped down version of a list filtered by ids
/s: special: Special is used for "other" pages where you want to reuse parts of the edit/detail page
/h: history: Show the history (used only in forecasting)
/a: Assign: Entity Owner Change page
/c: calendar: Time-based (Calendar) view of list data
/n: mini edit: Mini layout edit page

Custom Objects based Pages

/d: Detail
/m: Hover
/e: Edit
/p: Printable View
/o: Overview
/l: List
/x: Printable List
/a: Assign
/r: Refresh List

We can now track when someone prints a page or list view, edits a record or creates one, changes ownership, or even refreshes a list.

URI events mainly track what happens in the browser. In order to track similar interactions on a mobile device using a Salesforce 1 application, we have a separate UI Tracking log event.

At Dreamforce 2014's True to the Core session Mark Bruso asked me about this distinction and what we actually track.

Most of the time, when people ask about Salesforce 1 mobile, it's to validate the effectiveness of a BYOD (Bring Your Own Device) mobile strategy with a focus on the type of device, network used, and operating system of choice. The goal is typically to rationalize an investment in mobile in addition to understanding what their users are doing when they are in a Salesforce 1 application.

However, we also track a couple key attributes in the UI Tracking log file including Referrer and Action. This are analogous to the URI and Referrer URI attributes in the URI log file.

When you combine these two data sets, the big picture emerges across these different platforms. Now we can track what's happening with a user regardless of whether they use a browser or a mobile phone.

This is powerful for answering questions like:
  1. What % of my users are in the browser versus on the phone?
  2. Where are users using their mobile devices since they may be on the road?
  3. Where are my users spending their time and on what records?
  4. How frequently are they logging in and what hours of the day?
  5. Who clicked on what, when, where, and how?
Tracking user activity in salesforce isn't rocket surgery. We can't track everything a client side script might, but we can track a lot. And what we track enables us to re-create what a user did and paint a picture that helps address a variety of adoption, troubleshooting, and audit use cases.


  1. This comment has been removed by a blog administrator.

  2. With a portable advertising practice, an association could discuss and get hold of their customers in a significant way by methods for a cell phone or system. An intelligent remote media gives clients time and area delicate, which along these lines produces an incentive for every one of its partners. visit this site

  3. This comment has been removed by a blog administrator.

  4. Nice Post with data concerning nice use! The ways in which you have got illustrated the data is spectacular phone tracking. Thanks!

  5. Thanks for a very interesting blog. What else may I get that kind of info written in such a perfect approach? I’ve a undertaking that I am simply now operating on, and I have been at the look out for such info. Best mobile phones

  6. Wow! Such an amazing and helpful post this is. I really really love it. It's so good and so awesome. I am just amazed. I hope that you continue to do your work like this in the future also best phone under 7000 to 9000

  7. Thank you very much for writing such an interesting article on this topic. This has really made me think and I hope to read more. web bokep

  8. It was wondering if I could use this write-up on my other website, I will link it back to your website though.Great Thanks. manufactured home releveling

  9. Nice to read your article! I am looking forward to sharing your adventures and experiences. impactresearch.org

  10. I am impressed. I don't think Ive met anyone who knows as much about this subject as you do. You are truly well informed and very intelligent. You wrote something that people could understand and made the subject intriguing for everyone. Really, great blog you have got here. track your shipment from chinapost with your tracking number

  11. Well we really like to visit this site, many useful information we can get here. iPhone Repair Dubai

  12. I need to to thank you for this very good read!! I definitely loved every little bit of it. I have you bookmarked to check out new things you post… app para espiar celulares

  13. Thanks for a very interesting blog. What else may I get that kind of info written in such a perfect approach? I’ve a undertaking that I am simply now operating on, and I have been at the look out for such info. como espiar un móvil desde otro móvil

  14. Richard Teahon writes for Calltracks Limited, a pioneer in the call tracking industry since 2004.site In addition to call tracking software the company offers lead tracking, call recording, and a call scoring systems for business.

  15. Trackers which utilize the Iridium Satellite system profit by a key element than no different GPS following system can gloat; 100% worldwide inclusion. gadgettrackers.com

  16. I wanted to thank you for this excellent read!! I definitely loved every little bit of it. I have you bookmarked your site to check out the new stuff you post. http://geolocatel.com/

  17. If this is a decision you are facing for your business it is important to understand how to use a tracking number and why. Track China Post to Canada packages tracking number

  18. Reverse phone search websites have so tried to be a boon lately, particularly to single girls of massive cities. individuals ne'er admit it, however it's quite shuddery to be living on their lonesome in an exceedingly huge town. If you want to read more about this topics then please visit this website https://trackthisnumber.com

  19. Though there aren't any value solutions to stay track of a phone, the quality of the information that you just receive exploitation this strategy is admittedly inadequate. Keeping track of individuals, and a great deal of different things within the world is less complicated currently using a gps system. observance phonephone numbers, text messages or location of a phone, is information needed by a person that's obtaining unwanted message or calls, oldsters involved with specifically wherever their children ar, businesses that ar trying to stay track to the whereabouts of their personnel and to not mention people who have to be compelled to have closure on whether or not or not their married person or partner is devoted.If you read more about this topics please visit this website.http://trackthisnumber.com

  20. I high appreciate this post. It’s hard to find the good from the bad sometimes, but I think you’ve nailed it! would you mind updating your blog with more information. Oneplus Mobile Price in Bangladesh

  21. These surveys can be your best partner now yet it will help enormously on the off chance that you can see the genuine article yourself. Samsung flashing software

  22. You make so many great points here that I read your article a couple of times. Your views are in accordance with my own for the most part. This is great content for your readers. http://simscitybuilditclub.com

  23. What is an outstanding post! “I’ll be back” (to read more of your content). Thanks for the nudge! Airtel customer care

  24. You understand your projects stand out of the crowd. There is something unique about them. It seems to me all of them are brilliant. sunflame customer care

  25. Wow i can say that this is another great article as expected of this blog.Bookmarked this site.. Orla customer care

  26. Thank you for taking the time to publish this information very useful! MOBILE

  27. Nice post, here great efforts share i really appreciated your crucial work. You have share effective and efficient work thanks again.
    Mobile price in Bangladesh

  28. I recently came across your blog and have been reading along. I thought I would leave my first comment. I don't know what to say except that I have enjoyed reading. Nice blog. I will keep visiting this blog very often. Blog content tracking

  29. This is my first time i visit here. I found so many interesting stuff in your blog especially its discussion. From the tons of comments on your articles, I guess I am not the only one having all the enjoyment here! keep up the good work Siargao Island Philippines

  30. Much obliged for a superb offer. Your article has demonstrated your diligent work and experience you must this field. Splendid .i cherish it perusing. best organic ghee

  31. Thanks for this great post, i find it very interesting and very well thought out and put together. I look forward to reading your work in the future. Phone Price in Bangladesh

  32. Awesome blog. I enjoyed reading your articles. This is truly a great read for me. I have bookmarked it and I am looking forward to reading new articles. Keep up the good work! Phone Price in BD

  33. Once you open the website of any mobile app development company, start by checking their portfolios. Portfolios provide a good overview of the business domains and project themes the company has been involved in, and the kind of technical expertise they hold.Mobile App development Companies in UK

  34. I was looking at some of your posts on this website and I conceive this web site is really instructive! Keep putting up.. poker88

  35. It is a great website.. The Design looks very good.. Keep working like that!. professional hackers

  36. I have to look for goals with essential information on given point and offer them to instructor our inclination and the article.
    Streaming Movie21 Online