clarity icon indicating copy to clipboard operation
clarity copied to clipboard

How to create a Custom Tag for React Native apps?

Open muphb opened this issue 1 year ago • 8 comments

It's possible to create Custom Tags in Clarity for React native apps? If so, how?

I looked at the SDK documentation, but I only found how to create Custom Tags for websites (https://learn.microsoft.com/en-us/clarity/filters/custom-tags#how-to-setup-custom-tags)

muphb avatar Aug 11 '23 18:08 muphb

@muphb , Currently we do not support custom tags for Mobile Applications. We will consider your feedback and add it to our product roadmap.

ClaritySupport avatar Aug 14 '23 16:08 ClaritySupport

This has been supported in the React Native SDK version 1.0.1.

ibradwan avatar Sep 18 '23 08:09 ibradwan

Would like to know how to do same in Android Native (Java/Kotlin)

Shabinder avatar Sep 19 '23 08:09 Shabinder

@Shabinder You will need to upgrade to 1.3.3 and then use this function Clarity.setCustomTag("key", "value");. The docs should be updated soon to reflect the newly added API.

ibradwan avatar Sep 19 '23 08:09 ibradwan

is there any way to send custom properties as well along with customTag in android native sdk?

jagdishsnap avatar Sep 26 '23 09:09 jagdishsnap

Hello @jagdishsnap,

Can you please elaborate more on what you mean by custom properties? If you mean custom session attributes, then the custom tags feature is designed for that purpose.

ibradwan avatar Sep 26 '23 10:09 ibradwan

Hey, sorry for not elaborating more on this. So for every tracking tool we used to send custom properties along with custom events, they are called event properties. Custom tags are helpful for sending custom event, if I want to tag any additional parameter then how can I do that? Example: Event name = XYZ (Key, value) Event properties = P1 (key, value), P2 (key, value)

jagdishsnap avatar Sep 26 '23 11:09 jagdishsnap

I see, you would like to add custom dimensions to your event. This is not currently supported, but let me pass it through to our PM team and see what we can do about that. Thanks for your feedback 😀

ibradwan avatar Sep 26 '23 13:09 ibradwan