[Analytics] Cannot send event name with hyhen in app.analytics.increment

Hi,

We are trying to send event name in app.analytics.increment function (on App platform).
We are using the following code:

await app.analytics.increment(“button-click”, { “key”: “value” })

However in the table the event name is shown as buttonclick (without the hyphen). Refer ss
Screenshot 2023-01-16 at 12.43.28 PM

How can we send event names with hyphens?

TIA!

@Shraeyas We have some restrictions on the event names wherein we trim special chars and spaces, and all letters will be in lowercase. To have some separator between words, you can use the underscore _ character.

1 Like