GithubHelp home page GithubHelp logo

holehan / hugo-component-matomo Goto Github PK

View Code? Open in Web Editor NEW
45.0 5.0 9.0 106 KB

Matomo user tracking and optout scripts for Hugo

License: MIT License

JavaScript 76.97% HTML 22.33% CSS 0.70%
hugo hugo-theme-component matomo piwik gdpr dsgvo

hugo-component-matomo's Introduction

hugo-component-matomo's People

Contributors

dependabot[bot] avatar holehan avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

hugo-component-matomo's Issues

piwik.js not found

Hi Holehan,

Is this an abnormal error? I have nowhere to find this script in the repository.

Configuration

  • hugo v0.86.0+extended darwin/arm64
  • using papermod theme
  • {{ partial "matomo-tracking" . }} is referenced in 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

Privacy page

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.

Clarification for accessing Matomo interface

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.

Installation Question

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?

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.