Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Calls to setCustomDimension() are working on init but not on event (Angular App) #52

Closed
R0mpo opened this issue Jul 11, 2022 · 3 comments

Comments

@R0mpo
Copy link

R0mpo commented Jul 11, 2022

Hello,

We have been noticing that call to setCustomDimension() method in order to set or update Matomo Custom Dimension are no longer working when they are linked to user's actions.

Our case : Once the application loaded, we set 2 different dimesions to our company's Matomo :

  • user profile
  • customerName (both are business infos, stored as string)

Once the user clic on a given element of the app, we were sending a 3rd Custom Dimension : "isActive". And while it worked for a while, it seams to have stop working since last week. If sending this even on the app load like the other 2, no issues happens and the dimension is set. If waiting for any user event, it doesn't.

Have you ever heard or anything similar happening within an Angular app ?
Is there any logs or reproduction details that could help for troubleshooting this ?

Looking forward hearing from you !

ps : I'm fluent in French if that can help explaining better the issue

@R0mpo
Copy link
Author

R0mpo commented Jul 12, 2022

PS : we realised this morning that if we force the sending of a "classic' event just after using setCustomDimension, then the custom dimension is well sent.

For now we will force sending a 'mock' event instantly after setting custom dimension

@EmmanuelRoux
Copy link
Owner

Hi @R0mpo,

Note that custom dimensions are set for the next request, which is being sent using tracking methods such as trackPageView or trackEvent.

You can refer to matomo documentation for details: https://matomo.org/guide/reporting-tools/custom-dimensions/ and https://developer.matomo.org/api-reference/tracking-javascript

If you still have an issue, please provide a repro (Stackblitz...) so I can observe the described behavior.

@R0mpo R0mpo closed this as completed Jul 13, 2022
@R0mpo
Copy link
Author

R0mpo commented Jul 13, 2022

Thank you for the precisions :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants