I am trying to set up matomo's tag manager. Emitting events and tracking in general was working correctly using the call:
init({ url: MATOMO_URL, siteId});
However, I am unsure as to where I should place the tag manager call. I have tried to add the container's js into the init call (replacing the original one) because the container JS file just extends the matomo.js one as far as I can tell. It does not seem to work.
I'm closing as I've seen this is not supported and we managed to set it up separately (using the library for normal tracking & normal head script injection for tag manager).
I am trying to set up matomo's tag manager. Emitting events and tracking in general was working correctly using the call:
init({ url: MATOMO_URL, siteId});
However, I am unsure as to where I should place the tag manager call. I have tried to add the container's js into the init call (replacing the original one) because the container JS file just extends the matomo.js one as far as I can tell. It does not seem to work.
init({ url: MATOMO_URL, siteId, jsTrackerFile: 'js/container_lXXXXX.js' });
Am I missing something? Do I need to initialize both things? How can I debug this?