Comments (10)
This is the code for Matamo:
<!-- Matomo -->
<script type="text/javascript">
var _paq = window._paq || [];
/* tracker methods like "setCustomDimension" should be called before "trackPageView" */
_paq.push(['trackPageView']);
_paq.push(['enableLinkTracking']);
(function () {
var u = "//samip.fi/matomo/";
_paq.push(['setTrackerUrl', u + 'matomo.php']);
_paq.push(['setSiteId', '1']);
var d = document, g = d.createElement('script'), s = d.getElementsByTagName('script')[0];
g.type = 'text/javascript';
g.async = true;
g.defer = true;
g.src = u + 'matomo.js';
s.parentNode.insertBefore(g, s);
})();
</script>
<!-- Image Tracker-->
<img src="https://samip.fi/matomo/matomo.php?idsite=1&rec=1" style="border:0" alt=""/>
<!-- End Matomo Code -->
SiteID and the URL to the matomo instance is the most things it would need.
from littlelink-server.
closed by #112
from littlelink-server.
How about just allowing to add some custom code into <head></head>
section. Then one change will allow to use whatever analytics tool you want.
from littlelink-server.
That would work too.
from littlelink-server.
Thanks. The goal of the docker container is to keep it simple. Currently Google analytics is as simple as adding your tracking Id, then analytics and button clicks are wired up automatically. I'd like to do the same for any additional analytics system that is added, rather than injecting scripts via env variable.
from littlelink-server.
I am happy to write this integration but I have no easy way of testing it, outside of hosting/creating my own account
from littlelink-server.
Any progress on this? :)
from littlelink-server.
@kenjibailly nope but PRs are welcome! In my experience, the person that cares about it most will add this feature.
from littlelink-server.
I def want to look on how to implement it, but I'm just a hobbyist coder and have no idea how you link your variables to docker. Some pointers would help me out try to make it happen :)
from littlelink-server.
I figured it out and made a pull request for this here: #111
Edit: added image tracking in #112
from littlelink-server.
Related Issues (20)
- [BRAND REQUEST] Pixelfed
- [Feature Request] Separate blocks and clickable links in the footer HOT 1
- [BRAND REQUEST] Lemmy
- [BRAND REQUEST] Threads
- [BRAND REQUEST] X (the "new" twitter) HOT 4
- [Enhancement] Categories HOT 2
- [BRAND REQUEST] Google Scholar
- [BRAND REQUEST] ORCID
- [BRAND REQUEST] Semantic Scholar
- [BUG REPORT] X Logo is missing a background HOT 2
- Question: Is it possible to export the page as static files? HOT 1
- [Request] Please move to publishing semver releases HOT 4
- Custom Favicon and Button Text for Ghost HOT 1
- [BRAND REQUEST] Forgejo
- [BUG REPORT] Button event tracking for Umami does not show up in dashboard HOT 8
- [BUG REPORT] <Concise description of the bug> HOT 2
- Update the Twitter Button HOT 1
- Update copyright year. HOT 1
- [BUG REPORT] GitHub Action Hangs HOT 1
- [BRAND REQUEST] <Audius> HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from littlelink-server.