# Best practice for naming custom event name across platforms in Dynatrace

**URL:** <https://community.dynatrace.com/t/best-practice-for-naming-custom-event-name-across-platforms-in-dynatrace/55610>\
**Category:** Real User Monitoring\
**Tags:** real-user-monitoring-classic, mobile-monitoring, events\
**Created:** [April 17, 2026, 3:04am UTC](https://community.dynatrace.com/t/best-practice-for-naming-custom-event-name-across-platforms-in-dynatrace/55610 "2026-04-17T03:04:10Z")\
**Posts on this page:** 5\
**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:** [April 17, 2026, 3:04am UTC](https://community.dynatrace.com/t/best-practice-for-naming-custom-event-name-across-platforms-in-dynatrace/55610/1 "2026-04-17T03:04:10Z")

</div>

I’m currently working on defining **cross‑platform naming guidelines for custom Dynatrace events** (Android, iOS, and Web) to ensure consistency and ease of use during incident analysis.

While reviewing Dynatrace documentation, I couldn’t find explicit guidance on **recommended naming formats** for custom events (for example:

- UPPER\_CASE\_WITH\_UNDERSCORES
- camelCase
- kebab-case / snake\_case)

In practice, we see different conventions already in use across platforms, often driven by SDK or language norms.

I’d like to understand from a Dynatrace perspective:

- Is there a **preferred or recommended event naming format** for custom events?
- Are there any **formats to avoid** due to searchability, filtering, or correlation in Dynatrace?
- Does Dynatrace have **different recommendations per platform** , or is a single convention preferred across all?
- From an operations standpoint, what naming style tends to work best during **incident investigation**?

Could someone point me to right documentation or any guidance, examples, or pointers to best practices would be greatly appreciated.

---

<div class="post-metadata">

**Author:** ![t\_pawlak](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/t_pawlak/32/14991_2.png) [@t\_pawlak](https://community.dynatrace.com/u/t_pawlak)\
**Post date:** [April 17, 2026, 7:28am UTC](https://community.dynatrace.com/t/best-practice-for-naming-custom-event-name-across-platforms-in-dynatrace/55610/2 "2026-04-17T07:28:32Z")

</div>

Dynatrace does not enforce a specific naming convention, but best practice is, use one consistent format across all platforms. Just try avoid&nbsp;mixed styles (camelCase + UPPER\_CASE), spaces, platform-specific names, putting details into event name (use attributes 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:** [April 20, 2026, 3:14am UTC](https://community.dynatrace.com/t/best-practice-for-naming-custom-event-name-across-platforms-in-dynatrace/55610/3 "2026-04-20T03:14:33Z")

</div>

Thanks for the clarification — that’s helpful [@t\_pawlak](https://community.dynatrace.com/user/42367)&nbsp;.

I had one follow‑up question:  
Do you mind sharing how Dynatrace typically **names custom events internally or in examples** across Android, iOS, and Web platforms?

In practice, we’re seeing different conventions already in use (for example, camelCase or kebab‑case on Android, potentially different styles on iOS, and UPPER\_CASE\_WITH\_UNDERSCORES on Web).  
I’m curious whether Dynatrace tends to **follow platform‑native conventions** in examples, or prefers a **single uniform naming style** across platforms when possible.

Any guidance or examples would be appreciated.

---

<div class="post-metadata">

**Author:** ![matthias\_hochri](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/matthias_hochri/32/15052_2.png) [@matthias\_hochri](https://community.dynatrace.com/u/matthias_hochri)\
**Post date:** [April 20, 2026, 9:22am UTC](https://community.dynatrace.com/t/best-practice-for-naming-custom-event-name-across-platforms-in-dynatrace/55610/4 "2026-04-20T09:22:33Z")

</div>

Are you talking about RUM on Grail Events? Or which APIs are you talking about? reportEvent? sendEvent? Action APIs?

---

<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:** [April 20, 2026, 11:55pm UTC](https://community.dynatrace.com/t/best-practice-for-naming-custom-event-name-across-platforms-in-dynatrace/55610/5 "2026-04-20T23:55:38Z")

</div>

We are using the dtrum APIs on Web and Mobile (Android/iOS).  
Specifically, we trigger events using addAction and leaveAction so i think its user action api’s&nbsp;and reportCustomError to capture messages and properties in Dynatrace.

These events are operational/lifecycle events (for example: SDK initialization, identify, and evaluation failure).  
The goal is to apply consistent naming across Android, iOS, and Web to support searchability and incident analysis.
