Skip to content
This repository has been archived by the owner on Nov 16, 2022. It is now read-only.

Add custom variable tracking #17

Open
aeirola opened this issue Oct 2, 2020 · 0 comments
Open

Add custom variable tracking #17

aeirola opened this issue Oct 2, 2020 · 0 comments
Labels
enhancement New feature or request
Milestone

Comments

@aeirola
Copy link
Contributor

aeirola commented Oct 2, 2020

Should support both event and visit scopes, with matching APIs. Event scoped variables should be set with the actual event, not with separate API calls.

Event scope (need to check which all events support custom variables)

trackScreen(
  path: string,
  customVariables?: Array<{
    index: number,
    name: string,
    value: string,
  }>,
)

Visit scope

setCustomVariable(index: number, name: string, value: string)

See

@aeirola aeirola added this to the v1.0.0 milestone Oct 2, 2020
@aeirola aeirola added the enhancement New feature or request label Oct 2, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request
Development

No branches or pull requests

1 participant