Skip to content
This repository has been archived by the owner on Jan 30, 2023. It is now read-only.

Multiple tracker objects #524

Open
gabrielbenjamim opened this issue May 20, 2021 · 1 comment
Open

Multiple tracker objects #524

gabrielbenjamim opened this issue May 20, 2021 · 1 comment

Comments

@gabrielbenjamim
Copy link

gabrielbenjamim commented May 20, 2021

Is your feature request related to a problem? Please describe.
Unable to have two instances of Matomo for the same code base, example, if I have a SPA and a Microfrontend, even though, they are different projects, they share the same URL and bundle, but if both requires different implementation for Matomo, with siteID or even baseURL, it's not possible since the first createInstance conflicts and overwrites the other and there's no way to distinguish posterior calls to trackEvent, trackPageView, pushInstruction and etc.

Describe the solution you'd like
Direct references or calls to either "getAsyncTracker" or/and "addTracker", according to Matomo guide for multiple instances/trackers: https://developer.matomo.org/guides/tracking-javascript-guide#customise-one-of-the-tracker-object-instances

@michael-scheurer
Copy link

Ended up with the exact same behavior.

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

No branches or pull requests

2 participants