# Tracking user action source

**URL:** <https://community.dynatrace.com/t/tracking-user-action-source/36889>\
**Category:** Real User Monitoring\
**Tags:** real-user-monitoring-classic, user-actions\
**Created:** [October 13, 2022, 12:21pm UTC](https://community.dynatrace.com/t/tracking-user-action-source/36889 "2022-10-13T12:21:26Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Julius\_Loman](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/julius_loman/32/51_2.png) [@Julius\_Loman](https://community.dynatrace.com/u/Julius_Loman)\
**Post date:** [October 13, 2022, 12:21pm UTC](https://community.dynatrace.com/t/tracking-user-action-source/36889/1 "2022-10-13T12:21:26Z")

</div>

Does anyone track the source of user actions in a web application? The idea is to track and evaluate which navigation methods in the web applications the users are preferring.

Let me give an example of the Dynatrace UI itself. For a list of applications, you can navigate either by clicking on the breadcrumb (1) or using the left menu (2). The user action itself is the same (e.g. “Application list”). I don’t want to split the user action into several ones.

 ![Julius_Loman_1-1665662514521.png](https://global.discourse-cdn.com/dynatrace/original/1X/6a4a583ac9f277c400c706945b22534ebc96d4d9.png)

Ideally, the source of the action is tracked in a user action property. However, at the moment there is no possibility to have the element identifier of the interaction or data-dtname (or any alternative) as the source of the user action property.&nbsp;  
Another option is to send the user action property source by calling dtrum API, but this can be challenging from the implementation side.

What is your experience?

---

<div class="post-metadata">

**Author:** ![AntonioSousa](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/antoniosousa/32/50_2.png) [@AntonioSousa](https://community.dynatrace.com/u/AntonioSousa)\
**Post date:** [October 13, 2022, 2:12pm UTC](https://community.dynatrace.com/t/tracking-user-action-source/36889/2 "2022-10-13T14:12:46Z")

</div>

I have had the need in the past, but wasn’t able to get there with a standard approximation. First we tried the Referer header, bit it was not reliable, and it wouldn’t solve your usecase anyway.

We then tried with Javascript, and since in our case we had the possibility of passing a parameter, we then started catching it as a parameter with Dynatrace. But this was done without the Javascript API…

---

<div class="post-metadata">

**Author:** ![Julius\_Loman](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/julius_loman/32/51_2.png) [@Julius\_Loman](https://community.dynatrace.com/u/Julius_Loman)\
**Post date:** [October 13, 2022, 3:01pm UTC](https://community.dynatrace.com/t/tracking-user-action-source/36889/3 "2022-10-13T15:01:59Z")

</div>

The referrer value is also not possible in general. It’s effective in case if you need to track the landing. I have a use case where you can get to the same user action on the application home page by using different links (menu and list of favourites for example).

---

<div class="post-metadata">

**Author:** ![dannemca](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/dannemca/32/7215_2.png) [@dannemca](https://community.dynatrace.com/u/dannemca)\
**Post date:** [October 13, 2022, 3:02pm UTC](https://community.dynatrace.com/t/tracking-user-action-source/36889/4 "2022-10-13T15:02:02Z")

</div>

I was about to suggest the Referrer as property 🤔 . Why you face this as not reliable?

---

<div class="post-metadata">

**Author:** ![AntonioSousa](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/antoniosousa/32/50_2.png) [@AntonioSousa](https://community.dynatrace.com/u/AntonioSousa)\
**Post date:** [October 13, 2022, 7:09pm UTC](https://community.dynatrace.com/t/tracking-user-action-source/36889/5 "2022-10-13T19:09:02Z")

</div>

There are multiple situations where the Referer is not sent. In the case I had, the page was only accessible from another one, so first thing I did was capture Referer server side, as a Request Attribute. I don’t recall the details, but we only got a little part of the total requests. I checked the Wikipage now for such situations, and probably I was affected by CSP then. But not sure…

Also, as Julius has stated, it you got two links on a page, Referer won’t help to distinguish them.

---

<div class="post-metadata">

**Author:** ![uros\_djukic1](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/uros_djukic1/32/37084_2.png) [@uros\_djukic1](https://community.dynatrace.com/u/uros_djukic1)\
**Post date:** [October 14, 2022, 10:53am UTC](https://community.dynatrace.com/t/tracking-user-action-source/36889/6 "2022-10-14T10:53:13Z")

</div>

Hello,  
I confirm the fact that if you are running your platform onto Managed there are some potential CSP strike AFAIK. Indeed all depend&nbsp; about “route change” or some webhook, thus not ease to use referer.&nbsp;  
The easy solution is using&nbsp;self-monitoring dashboard feature. Namely,&nbsp;self-monitoring of Dynatrace Managed clusters on dedicated SaaS environments for Premium customers only.

---

<div class="post-metadata">

**Author:** ![Julius\_Loman](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/julius_loman/32/51_2.png) [@Julius\_Loman](https://community.dynatrace.com/u/Julius_Loman)\
**Post date:** [October 14, 2022, 12:03pm UTC](https://community.dynatrace.com/t/tracking-user-action-source/36889/7 "2022-10-14T12:03:18Z")

</div>

I’ve put together a [product idea on this topic too.](https://community.dynatrace.com/post/196524#M33300)
