umami-software / umami

Umami is a simple, fast, privacy-focused alternative to Google Analytics.
https://umami.is
MIT License
22.12k stars 4.13k forks source link

Uami is not working under Matomo Tag Manager. #2324

Closed dotmcdh closed 9 months ago

dotmcdh commented 11 months ago

Describe the Bug

I want to add a tracking code using Matomo Tag Manager, but in this way, uami is not tracking traffic. When I add this same code directly in the head, it is working.

P.S. Other scripts are working with Matomo Tag Manager, and also with plausible and other competitors' uami. Is this normal?

Database

PostgreSQL

Relevant log output

No response

Which browser are you using? (if relevant)

No response

How are you deploying your application? (if relevant)

No response

mxdpeep commented 11 months ago

try this JS code (replace ***):

(function() { var el = document.createElement('script'); el.setAttribute('src', '***/script.js'); el.setAttribute('data-website-id', '***'); document.body.appendChild(el); })();

github-actions[bot] commented 9 months ago

This issue is stale because it has been open for 60 days with no activity.

github-actions[bot] commented 9 months ago

This issue was closed because it has been inactive for 7 days since being marked as stale.