-
Notifications
You must be signed in to change notification settings - Fork 17
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
File download tracking #32
Comments
I think this would be covered by #2 |
But that automatic detection is based on a pre-defined list of file extensions Matomo uses to detect download links. Are you using any other extension than in this list maybe? If so I could add an option to add more file extensions for the automatic link tracking.
For full manual control you could always use the tracker object on <a href="/static/somefile.zip" download onClick={() => window._paq.push(['trackLink', 'https://myurl.com/static/somefile.zip', 'download'])}>Download</a> But that's rather cumbersome obviously |
Thanks for clarifying. |
Thanks @kremalicious!
I'm curious why I can't see it in the script code. Here's the snippet I have in a
Inspecting the DOM in
Is it being configured under the hood somewhere? |
good point @samajammin, I based this on somewhat of an educated guess, where I understood that for a single page application Matomo needs that so not only links on the initial page are tracked, but also on subsequent visited pages. And a user arriving on the first landing page will fire That being said, I never fully explored link tracking since it seemed to just work with that implementation. There's probably a case to be made, which needs to be verified and tested, to put |
Thanks for the quick response & explanation @kremalicious! FWIW, the previous site used VuePress & the outlink tracking appeared to working when added to just the initial generated static page. Perhaps the only tracking we had was when the user landed on that given page though, so I can't verify if that's the correct approach. I'll keep an eye on our data with this new configuration & let you know if this shows similar results or not. |
Following up on this for folks who are curious. Since migrating our site to Gatsby (& using this Matomo plugin) on 6/25, we have seen a significant jump (~2x) in outlinks: This would support your theory @kremalicious that link tracking should be enabled on every route change, though I'm not sure how to verify this. |
Hey there,
I'm using gatsby-plugin-matomo 0.8.3 and it's working perfectly (thanks!) for regular navigation on the page. The page also offers downloads (linked to static files) like this:
<a href="/static/somefile.zip" download="">Download</a>
Unfortunately, the downloads are not shown in the Matomo dashboard. Is there anything else to setup to get this working?
Thanks!
The text was updated successfully, but these errors were encountered: