Replies: 3 comments
-
You can use the tracker functions directly to send the data you want, https://umami.is/docs/tracker-functions |
Beta Was this translation helpful? Give feedback.
0 replies
-
@mikecao but that would still mean I need to include the script tag into the website, since I need to call the tracker functions within the website code? |
Beta Was this translation helpful? Give feedback.
0 replies
-
You don't actually have to use the script. Just do POST with the correct payload to your umami |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Would it be possible to extract the needed data from a log file from a reverse proxy or by using a middleware and let the traffic be recorded by umami? I am using traefik and would like to track all of my sites, not only my custom sites where I can inject the script tag. I was wondering if the access log, created by traefik, could be used/parsed to extract the relevant informations needed for saving the analytics. This would also enable to see if other services/ports are being used, and which containers/domains are accessed. Another option is to use a middleware to intercept the connection and reroute it back (similar to authelia).
As for now, the only way to add a script tag would be using the traefik plugin rewrite body. Maybe to find the
<body>
tag and replace it with:The problem her is, the
data-website-id
, which will be the same for all websites and we couldn't differentiate it (or so I think?).Beta Was this translation helpful? Give feedback.
All reactions