holehan / hugo-component-matomo Goto Github PK
View Code? Open in Web Editor NEWMatomo user tracking and optout scripts for Hugo
License: MIT License
Matomo user tracking and optout scripts for Hugo
License: MIT License
Hi Holehan,
Is this an abnormal error? I have nowhere to find this script in the repository.
layout/partials/extend_footer.html
(as suggested by the papermod theme)theme:
- "PaperMod"
- "matomo"
matomo:
url: https://analytics.domain.com // as exact as my self-held matomo server
id: 1
disableSRI: false
Console log
/piwik.js net::ERR_ABORTED 404
Hello,
Could you clarify what is the Privacy page? You say
Add the optout shortcode to your privacy page
But I have no idea what is the privacy page. I run a Hugo blog and just installed Matomo on my server.
Thank you if you have time to reply.
Hi,
I set the theme, but only one of the output messages appears.
You can try it live here: https://notes.nicfab.eu/en/pages/privacypolicy/#matomo-_opt-in_-or-_opt-out_
It appears only the do not track output.
Is there something I miss?
First of all, thank you very much for creating the component to integrate Matomo analytics with Hugo web-site.
I was able to follow your instructions (the mandatory part) without any problem. However, I have a more basic question that concerns prerequisites.
Being a beginner user, my inquiry may seem naive, for which I apologize in advance.
One of the "Requirements" is Matomo Analytics with marketplace/plugin access.
If I understand this correctly, this means that before installing the component, one needs to place the Matomo files into the web-site's sub-folder, as per instructions:
All files can be uploaded to a “analytics” sub-directory in your public www folder, for example http://yourdomain.org/analytics/ or you could setup Matomo in its own subdomain and upload all the files at http://analytics.example.org/. If you have SSH access to your server, you can use it instead of FTP as it is much faster: run wget https://builds.matomo.org/matomo.zip && unzip matomo.zip
Following these guidelines, I have placed the "Matomo" directory into the root/content sub-folder of my Hugo website via the "run wget" command in the Terminal.
Ultimately, following the above-mentioned instructions, I aim at arriving here :
Open your web browser and navigate to the URL to which you uploaded Matomo. If everything is uploaded correctly, you should see the Matomo Installation Welcome Screen.
However, having "Matomo" as my website's sub-folder causes the Netlify (through which I build the website) deployment error saying "rst2html / rst2html.py not found in $PATH: Please install".
Trying to address the potential problem, I additionally integrated Python with the project as described here, but to no avail.
In this respect, I would like to ask whether this error is caused by my misunderstanding of how to integrate Matomo with Hugo, or this is a solely Netlify-related issue that should be addressed there.
Thank you very much in advance.
I run a few sites on the same server, would it be possible to install the theme in a central folder and just link to it but associate each site with a different entity in Matomo?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.