# How to count user actions with JavaScript parameters?

**URL:** <https://community.dynatrace.com/t/how-to-count-user-actions-with-javascript-parameters/19525>\
**Category:** Dashboarding\
**Tags:** user-actions, dashboards-classic, javascript\
**Created:** [June 9, 2020, 1:38pm UTC](https://community.dynatrace.com/t/how-to-count-user-actions-with-javascript-parameters/19525 "2020-06-09T13:38:28Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![mcordent](https://avatars.discourse-cdn.com/v4/letter/m/8e7dd6/32.png) [@mcordent](https://community.dynatrace.com/u/mcordent)\
**Post date:** [June 9, 2020, 1:38pm UTC](https://community.dynatrace.com/t/how-to-count-user-actions-with-javascript-parameters/19525/1 "2020-06-09T13:38:28Z")

</div>

Hi everyone,

I would like to chart the number of user actions according to a specific URL.

This url looks like: /eWavWeb/util/GetJSAudit.do?function=getJSON. (this is an Ajax call)

When i do **select useraction.name from useraction where useraction.name like ‘\*/eWavWeb/util/GetJSAudit.do\*’** ,

I only get **/eWavWeb/util/GetJSAudit.do** as useraction.name.

When I enter in session details. I can see details of the action, Xhr Request:

 ![25462-25313-1591709598905.png](https://global.discourse-cdn.com/dynatrace/original/3X/c/d/cd9ff8d0a42659badb29b7e940831375252b7930.png)

How can I get the number of request (or useraction) according to /eWavWeb/util/GetJSAudit.do?function=getJSON?

Thanks

---

<div class="post-metadata">

**Author:** ![zietho](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/zietho/32/41733_2.png) [@zietho](https://community.dynatrace.com/u/zietho)\
**Post date:** [July 1, 2020, 2:34pm UTC](https://community.dynatrace.com/t/how-to-count-user-actions-with-javascript-parameters/19525/2 "2020-07-01T14:34:24Z")

</div>

Hey,

have you tried using aggregate functions?

e.g.,: SELECT useraction.name, **count(\*)** FROM useraction where useraction.name = “/api/products” **group by useraction.name**

**gives you:**

 ![25572-1593614046340.png](https://global.discourse-cdn.com/dynatrace/original/3X/2/3/2391869bd10fb5a8026f522f5afa6666e053663f.png)

regards Thomas
