Skip to content
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

Clarification for accessing Matomo interface #3

Open
ko-suta opened this issue Jun 30, 2020 · 1 comment
Open

Clarification for accessing Matomo interface #3

ko-suta opened this issue Jun 30, 2020 · 1 comment

Comments

@ko-suta
Copy link

ko-suta commented Jun 30, 2020

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.

@frjo
Copy link

frjo commented Sep 7, 2022

The simplest is to just paste in the JavaScript widget that Matomo gives you in to your baseof.html template.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants