joshua Posted November 25, 2020 Share Posted November 25, 2020 (edited) As we often use Matomo (former known as Piwik) instead of Google Analytics we wanted to embed Matomo not only in the template code but also via the ProcessWire backend. That's why I developed a tiny module for the implementation. The module provides the possibility to connect to an existing Matomo installation with the classical site tracking and also via the Matomo Tag Manager. If you have also PrivacyWire installed, you can tell MatomoWire to only load the script, if the user has accepted cookies via PrivacyWire. To offer an Opt-Out solution you can choose between the simple Opt-Out iFrame, delivered by your Matomo installation, or a button to choose cookies via PrivacyWire. You'll find the module both in the module directory and via github: ProcessWire Module Directory MatomoWire @ GitHub MatomoWire @ Packagist ->installable via composer require blauequelle/matomowire I'm looking forward to hear your feedback! Edited January 15, 2021 by joshua Added Links, removed alpha status 13 3 Link to comment Share on other sites More sharing options...
snobjorn Posted November 25, 2020 Share Posted November 25, 2020 This sounds interesting. I will give it a try. 1 Link to comment Share on other sites More sharing options...
bernhard Posted November 27, 2020 Share Posted November 27, 2020 On 11/25/2020 at 12:09 PM, joshua said: we wanted to embed Matomo not only in the template code but also via the ProcessWire backend Funny, just played around with matomo this week. What do you mean exactly? Do you have a screenshot to get an idea? 🙂 Thx for sharing! Link to comment Share on other sites More sharing options...
wbmnfktr Posted January 14, 2021 Share Posted January 14, 2021 Just a little side note... Thank you @joshua! Don't know when or if I will visit Göttingen anytime soon but... dein nächster Bierdeckel geht auf mich! (for english readers... try DeepL Translate for the last part.) 1 Link to comment Share on other sites More sharing options...
ceberlin Posted April 1 Share Posted April 1 We try to switch from MATOMO direct embedding to the MATOMO tag manager. I am wondering right now how to use the Matomo Tag Manager correctly. Has anyone expericence with this already? We intend not to block the Tag Manager itself but want to be able tags (like Facebook) inside of it. I don't believe right now that the Tag Manager is a GDPR / DSGVO problem itself. And if this one is blocked, every tag inside is blocked too, which makes a fine-grained selection not possible to the user. But I need to be able to set up rules in PrivacyWire that toggles activation of used tags inside of the Tag Manager. But how? Link to comment Share on other sites More sharing options...
Alf S. Posted May 12 Share Posted May 12 Some things may be obvious for some experienced coders, but not for idiots like me. On the module page (https://processwire.com/modules/matomo-wire/) there ist short description what to do: "This module requires an installed Matomo instance. Insert your Matomo URL and the Site ID or Tag Manager Container ID of the current website." As I am using matomo for the first time, I had to struggle until it woked as expected. Fist of all I had a network error 400 while matomo tried to send the data to the matomo installation (mydomain.com/matomo/). Finally I got the point. When you install matomo, u are getting an embedding code. From this line "_paq.push(['setSiteId', '1']);" you have to copy the ID to the Backend... sceenshot below... Second. I you are using Hanna Code and the "matomowire-opt-out" tag, the MatomoWire Textformatter has to be first. Or you change the open and close tags to... lets say {{ and }}... 1 Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now