Jump to content

Web-ID

Members
  • Posts

    7
  • Joined

  • Last visited

Everything posted by Web-ID

  1. Working! 🙂 with this: <script type="text/plain" data-type="text/javascript" data-category="statistics"> /* piwik/matomo code */ </script> same if js is in an external file: <script type="text/plain" data-type="text/javascript" data-category="statistics" data-src="<?= $config->urls->templates ?>scripts/piwik.js"></script> And the best: I can reduce to "Accept all Cookies" and "Essential Cookies only" and it works! Same with the "Statistics" included as an Cookie group. All variants working! @ngrmmcan I contribute something for your help? (I work on a web server)
  2. I added cookie group statistics. Still tracking on Piwik/Matomo if chosen like on the pic: no check "statistics" and click on "Save Preferences". Still wondering what is wrong in my code ... Also wondering what is the difference between: "Accept all" and "Accept necessary cookies only". Does "Accept necessary cookies only" not deleete all other cookies than the ones needed from PW? Which would mean statistics, marketing etc? Thanks a lot for your support.
  3. Thanks for the answers. My first line Piwik/Matomo now looks like this: <script data-category="statistics" class="require-consent"> I also tried out: <script data-category="necessary" class="require-consent"> as I only use "all Cookies" and "Necessary Cookies" from the module and no extra Cookie group for Statistics. Both possibilities still track the Website after empty Cache and clicking "Necessary Cookies". Any more Ideas to get that fixed?
  4. @ngrmm Thanks for your super fast reply. My code looks like this now and is placed just before </body> <script type="text/javascript" data-type="text/javascript" data-category="statistics" class="require-consent">/* PrivcyWire */ /* <script type="text/javascript"> */ var _paq = _paq || []; _paq.push(['trackPageView']); _paq.push(['enableLinkTracking']); (function() { var u=(("https:" == document.location.protocol) ? "https" : "http") + "://www.URL.ch/piwik/"; _paq.push(['setTrackerUrl', u+'piwik.php']); _paq.push(['setSiteId', 1]); var d=document, g=d.createElement('script'), s=d.getElementsByTagName('script')[0]; g.type='text/javascript'; g.defer=true; g.async=true; g.src=u+'piwik.js'; s.parentNode.insertBefore(g,s); })(); </script> General Settings in PrivacyWire are only including the default "All Cookies" and "Necessary Cookies" and Piwik is still tracking after empty cache and click on "Necessary Cookies". Is data-category="statistics" included in "necessary"? I also tried data-category="necessary" but still tracking ... any idea? Website is this one
  5. Hi @joshua Can you let me know how I exclude Piwik/Matomo tracking from "only essential cookies"? <script type="text/javascript"> var _paq = _paq || []; _paq.push(['trackPageView']); _paq.push(['enableLinkTracking']); (function() { var u=(("https:" == document.location.protocol) ? "https" : "http") + "://www.URL.ch/piwik/"; _paq.push(['setTrackerUrl', u+'piwik.php']); _paq.push(['setSiteId', 1]); var d=document, g=d.createElement('script'), s=d.getElementsByTagName('script')[0]; g.type='text/javascript'; g.defer=true; g.async=true; g.src=u+'piwik.js'; s.parentNode.insertBefore(g,s); })(); </script> <noscript> <p><img src="http://www.URL.ch/piwik/piwik.php?idsite=1" style="border:0;" alt="" /></p> </noscript>
  6. I had the same issue on hoststar.ch Solved it by adding namespace to all files appearing in the error log <?php namespace ProcessWire;
×
×
  • Create New...