# addActionProperty does not work in Dynatrace tenant runs on RUM Classic Gen2 without DPS licensing

**URL:** <https://community.dynatrace.com/t/addactionproperty-does-not-work-in-dynatrace-tenant-runs-on-rum-classic-gen2-without-dps-licensing/55243>\
**Category:** Real User Monitoring\
**Tags:** real-user-monitoring-classic, user-actions, licensing\
**Created:** [March 11, 2026, 9:36pm UTC](https://community.dynatrace.com/t/addactionproperty-does-not-work-in-dynatrace-tenant-runs-on-rum-classic-gen2-without-dps-licensing/55243 "2026-03-11T21:36:30Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![mkarmocha](https://avatars.discourse-cdn.com/v4/letter/m/e480ec/32.png) [@mkarmocha](https://community.dynatrace.com/u/mkarmocha)\
**Post date:** [March 11, 2026, 9:36pm UTC](https://community.dynatrace.com/t/addactionproperty-does-not-work-in-dynatrace-tenant-runs-on-rum-classic-gen2-without-dps-licensing/55243/1 "2026-03-11T21:36:30Z")

</div>

I am trying to capture User Action using addAction, addActionProperty, leaveAction, however the addActionProperty does not work, though I created Javascript Variable for the properties i am passing in addActionProperty.

How did I create;  
Click on Application \> Edit \> Capturing \> Session and action Properties \> Add Property \> Custom defined property.

And then I chose Javascript Variable put other details.

My code below;  
const dtrum = window?.dtrum;  
if (!dtrum) {  
logger.info(`trackCustomUserAction (dtrum API undefined) actionName=[${actionName}] `);  
return;  
}

const actionId = dtrum.enterAction('feature\_initialized’);

if (properties && typeof dtrum.addActionProperties === ‘function’) {  
dtrum.addActionProperties(actionId, null, null, {status, action});  
}

dtrum.leaveAction(actionId);

So when my code is executed the values does not seems to be logged in dynatrace.

However, if i set property values in global windows then Dynatrace UI grabs the value and logs the status and action for the user. Below ithe working code

const actionId = dtrum.enterAction('feature\_initialized’);

//Created Javascript variable in Session and User Property  
// capture expression named as DT\_OBSERVABILITY  
// assigning it in global window, so that dynatrace UI could capture value  
window.POC = window.POC || {};  
window.POCstatus = values?.status ?? ‘’;  
window.POC.action = values?.action ?? ‘’;  
dtrum.leaveAction(actionId);

I am trying to understand why addActionProperty does not work, is it related to Our Dynatrace tenant runs on RUM Classic Gen2 without DPS licensing. I see that we do not have experience vital and user events available. Could someone help clarify as I need to document this as I am trying to log user actions in our web application

---

<div class="post-metadata">

**Author:** ![wkimchan](https://avatars.discourse-cdn.com/v4/letter/w/ed8c4c/32.png) [@wkimchan](https://community.dynatrace.com/u/wkimchan)\
**Post date:** [March 12, 2026, 6:08am UTC](https://community.dynatrace.com/t/addactionproperty-does-not-work-in-dynatrace-tenant-runs-on-rum-classic-gen2-without-dps-licensing/55243/2 "2026-03-12T06:08:56Z")

</div>

The issue is here:

> And then I chose Javascript Variable put other details.

Choosing “Javascript **variable** ” will lead to the behaviour you mentioned here:

> However, if i set property values in global windows then Dynatrace UI grabs the value and logs the status and action for the user.

What you want is to select “JavaScript **API** ” instead.

---

<div class="post-metadata">

**Author:** ![mkarmocha](https://avatars.discourse-cdn.com/v4/letter/m/e480ec/32.png) [@mkarmocha](https://community.dynatrace.com/u/mkarmocha)\
**Post date:** [March 13, 2026, 12:37am UTC](https://community.dynatrace.com/t/addactionproperty-does-not-work-in-dynatrace-tenant-runs-on-rum-classic-gen2-without-dps-licensing/55243/3 "2026-03-13T00:37:15Z")

</div>

thanks it is resolved now
