# Migrate Custom Events & Trace from AppInsights to Dynatrace (Client Side JS)

**URL:** <https://community.dynatrace.com/t/migrate-custom-events-trace-from-appinsights-to-dynatrace-client-side-js/41878>\
**Category:** Open Q&A\
**Tags:** distributed-traces-classic, technologies, javascript\
**Created:** [October 2, 2023, 12:50pm UTC](https://community.dynatrace.com/t/migrate-custom-events-trace-from-appinsights-to-dynatrace-client-side-js/41878 "2023-10-02T12:50:43Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![izi-p](https://avatars.discourse-cdn.com/v4/letter/i/94ad74/32.png) [@izi-p](https://community.dynatrace.com/u/izi-p)\
**Post date:** [October 2, 2023, 12:50pm UTC](https://community.dynatrace.com/t/migrate-custom-events-trace-from-appinsights-to-dynatrace-client-side-js/41878/1 "2023-10-02T12:50:43Z")

</div>

Hello,

We are migrating our front-end application from appInsights to Dynatrace.

We had some custom traces & events on appInsights that were sent to appInsights programmatically in the front-end code. (we called appInsights.trackEvent() in the front-end js code). It helped us debug some special use cases.

We could find these events and traces in appInsights.

We would like to migrate this behavior to Dynatrace. What is the proper way to do this with Dynatrace? Is there a way on front-end js application to send these kind of information to Dynatrace programatically?

Thank you,

Pierre

---

<div class="post-metadata">

**Author:** ![rthimothee](https://avatars.discourse-cdn.com/v4/letter/r/6a8cbe/32.png) [@rthimothee](https://community.dynatrace.com/u/rthimothee)\
**Post date:** [November 3, 2023, 10:18am UTC](https://community.dynatrace.com/t/migrate-custom-events-trace-from-appinsights-to-dynatrace-client-side-js/41878/2 "2023-11-03T10:18:47Z")

</div>

Any solution to solve this issue, or documentation or something to help !&nbsp;[@Yosi\_Neuman](https://community.dynatrace.com/user/6931)&nbsp;do you have any experience about that, that’s a current issue for my customer.

---

<div class="post-metadata">

**Author:** ![Yosi\_Neuman](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/yosi_neuman/32/9845_2.png) [@Yosi\_Neuman](https://community.dynatrace.com/u/Yosi_Neuman)\
**Post date:** [November 3, 2023, 12:22pm UTC](https://community.dynatrace.com/t/migrate-custom-events-trace-from-appinsights-to-dynatrace-client-side-js/41878/3 "2023-11-03T12:22:44Z")

</div>

Hi&nbsp;[@rthimothee](https://community.dynatrace.com/user/59714)

Dynatrace enables you to extend its default Real User Monitoring functionality using the RUM JavaScript API. It allows you to create custom user actions, report errors, enable Session Replay, and much more.

The RUM JavaScript API comes included in the RUM JavaScript, which is injected automatically by OneAgent.

Please check [RUM JavaScript API Capabilities](https://docs.dynatrace.com/docs/shortlink/api-rum#capabilities)&nbsp;and [DtrumApi documentation](https://www.dynatrace.com/support/doc/javascriptapi/interfaces/dtrum_types.DtrumApi.html) for more information

HTH

Yos
