jadengis / ngx-clarity

Angular module to add the tracking code for microsoft.clarity.com
16 stars 2 forks source link

Custom userId and tags #4

Closed minahmoghadam closed 8 months ago

minahmoghadam commented 11 months ago

Hi. Is there any way to set userId in Clarity from this package?

faraz-ahmad-uft commented 11 months ago

@minahmoghadam - Could you find a way to do this? I have similar requirements in my project.

jadengis commented 11 months ago

@minahmoghadam Hi Mina? Can you link me to documentation about the userId? Currently there is no way to add userId but it could be added fairly easily I'm certain.

jadengis commented 11 months ago

@minahmoghadam Is this what you are referring to? Technically, these APIs will work today because what this library does is just inject the clarity script during app initialization, so after initialization the clarity function will be available.

If you are looking for a more Angular solution, I wouldn't be opposed to a service that wraps the clarity function for more idiomatic code. Let me know if this is what you are looking for.

jadengis commented 10 months ago

@minahmoghadam @faraz-ahmad-uft Do you still require help with this issue? Otherewise I'm going to close it.

faraz-ahmad-uft commented 10 months ago

You can close it for now