{"repo":"divinerites/plausible-hugo","free":true,"listed":false,"github":"https://github.com/divinerites/plausible-hugo","clone":"git clone https://github.com/divinerites/plausible-hugo.git","description":"Dead simple integration between plausible.io and gohugo.io","language":"HTML","stars":140,"topics":["analytics","hugo","plausible-analytics","privacy"],"license":"GPL-3.0","category":"docs-static-sites","readme_excerpt":"plausible-hugo : A theme component & Hugo module According to their web site, \"Plausible Analytics, is a simple, open-source, lightweight ( section. ### That's it ! It works . Nothing more is needed Mininum config.toml file Example html section You can have a look at the end of this file for a minimal working example as a hugo module. Hugo Module You also can use it as a versioned Hugo Module if you prefer and know how to do it . We strongly advise for this method , as it will be simple and transparent to keep up with our version updates. In this case, instead of declaring this as a theme, just add it as a hugo module. Using Plausible goals 1 - Simple custom goals If you want to use some custom goals, for each goal, you just have to add a snipplet in a partial named plausible js.html that you have to create in your site /partials directory Then, add a straightforward call to those plausible function/goal where you need it in your gohugo code. This is an example, if you want a plausible custom goal named ClickOnTelephoneNumber . Snipplet example for plausible js.html Example of integration in your html code 2 - Custom goals when entering a page You can have a use case where you want a custom goal setup when you enter a certain page. So you can have more granularity than the classic \"page goals\". Just add a front matter parameter plausible custom goal in this page. Each time you enter the page, your custom goal is reached. 3 - Variable custom goals Using variables for your Goal","default_branch":null,"files":null,"tree":[],"storefront":"/r/divinerites","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/divinerites/plausible-hugo/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}