# Custom User Action using Javascript variable

**URL:** <https://community.dynatrace.com/t/custom-user-action-using-javascript-variable/18851>\
**Category:** Real User Monitoring\
**Tags:** user-actions, user-sessions, javascript\
**Created:** [December 14, 2018, 10:20am UTC](https://community.dynatrace.com/t/custom-user-action-using-javascript-variable/18851 "2018-12-14T10:20:08Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![nva\_dt](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/nva_dt/32/22312_2.png) [@nva\_dt](https://community.dynatrace.com/u/nva_dt)\
**Post date:** [December 21, 2018, 3:19pm UTC](https://community.dynatrace.com/t/custom-user-action-using-javascript-variable/18851/2 "2018-12-21T15:19:23Z")

</div>

Hi Rene, I would use a user action naming rule.

You can give a specific name to the user action containing your JS variable.

Then use that custom name in the definition of your conversion goal.

Let us know if that helps!

---

_[View the full topic](https://community.dynatrace.com/t/custom-user-action-using-javascript-variable/18851)._
