Code Monkey home page Code Monkey logo

Comments (10)

samip5 avatar samip5 commented on May 22, 2024 3

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&amp;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.

timothystewart6 avatar timothystewart6 commented on May 22, 2024 1

closed by #112

from littlelink-server.

tomajask avatar tomajask commented on May 22, 2024

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.

samip5 avatar samip5 commented on May 22, 2024

That would work too.

from littlelink-server.

timothystewart6 avatar timothystewart6 commented on May 22, 2024

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.

timothystewart6 avatar timothystewart6 commented on May 22, 2024

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.

kenjibailly avatar kenjibailly commented on May 22, 2024

Any progress on this? :)

from littlelink-server.

timothystewart6 avatar timothystewart6 commented on May 22, 2024

@kenjibailly nope but PRs are welcome! In my experience, the person that cares about it most will add this feature.

from littlelink-server.

kenjibailly avatar kenjibailly commented on May 22, 2024

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.

kenjibailly avatar kenjibailly commented on May 22, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.