napari / docs

Documentation for napari (other than API docs)
BSD 3-Clause "New" or "Revised" License
10 stars 37 forks source link

prevent redirects from triggering pageviews on plausible #190

Open neuromusic opened 2 years ago

neuromusic commented 2 years ago

📚 Documentation

Related to napari/docs#364, the current implementation to redirect from /* to /stable/* appears to result in triggering an event to plausible before the redirect. This complicates measuring site traffic statistics such as Bounce Rate, which appears to have been artificially suppressed by the addition of redirects for versions docs.

image https://plausible.io/napari.org

melissawm commented 2 years ago

I don't have experience with plausible tracking, but as a quick fix would it be sufficient to remove the

    <script async defer data-domain="napari.org" src="https://plausible.io/js/plausible.js"></script>

line from the pages that trigger the redirect? This would mean, for example:

neuromusic commented 2 years ago

@melissawm yes, I believe that would do the trick.

melissawm commented 2 years ago

Hi folks, can you confirm that this change fixed the issue? Thanks!

melissawm commented 1 year ago

Re-ping: is this fixed?

psobolewskiPhD commented 1 year ago

I'm not sure how to check if this is fixed, but I think this belongs in napari/docs so will transfer.

melissawm commented 1 year ago

If anyone with access to the metrics can check that, it would be awesome.