30knees Posted February 27 Posted February 27 I'm unable to get the use proxy script feature to work. While researching, I came across these instructions: https://github.com/matomo-org/tracker-proxy?tab=readme-ov-file It doesn't look like the files mentioned that should be downloaded are installed via the tb native Matomo module: Quote download matomo.php, download piwik.php, proxy.php, matomo-proxy.php & if you are using the Heatmaps and Session recordings plugin also download plugins/HeatmapSessionRecording/configs.php to your website root directory, for example at http://trackedsite.com/matomo.php, http://trackedsite.com/piwik.php, http://trackedsite.com/proxy.php, http://trackedsite.com/matomo-proxy.php & http://trackedsite.com/plugins/HeatmapSessionRecording/configs.php edit the file to set the configuration variables: $MATOMO_URL should contain the URL to your Matomo server $PROXY_URL should contain the URL to the tracker-proxy server $TOKEN_AUTH should contain the token_auth Is this because the native module is out of date or is it because of something else?
30knees Posted February 27 Author Posted February 27 (edited) And a follow-up question: Is there any analytical benefit to using the native Matomo module compared to just using the tracking code? Also, sometimes when I visit the settings page I get this error and then suddenly it's gone again, without any changes being made: Quote Unable to connect to the API {"result":"error","message":"Unable to authenticate with the provided token. It is either invalid, expired or is required to be sent as a POST parameter."} Edited February 27 by 30knees
30knees Posted March 7 Author Posted March 7 On 2/27/2024 at 7:23 PM, 30knees said: I'm unable to get the use proxy script feature to work. While researching, I came across these instructions: https://github.com/matomo-org/tracker-proxy?tab=readme-ov-file It doesn't look like the files mentioned that should be downloaded are installed via the tb native Matomo module: Is this because the native module is out of date or is it because of something else? As this is a tb native module, would you be able to help here, @datakick?
Adik Posted April 15 Posted April 15 (edited) Important msg for Matomo users While browsing Google Search Console today, I discovered that GoogleBot was only loading small section of my product pages. Error from GSC: "Page resources. Failed to load 1/57 of resources" GoogleBot was blocking by matomo.js file. The solution is simple, add following line to script: _paq.push(['disableAlwaysUseSendBeacon']); Example of full code with added line: <script> var _paq = window._paq = window._paq || []; /* tracker methods like "setCustomDimension" should be called before "trackPageView" */ _paq.push(['trackPageView']); _paq.push(['enableLinkTracking']); _paq.push(['disableAlwaysUseSendBeacon']); (function() { var u="https://store-domain.com/"; _paq.push(['setTrackerUrl', u+'matomo.php']); _paq.push(['setSiteId', '2']); var d=document, g=d.createElement('script'), s=d.getElementsByTagName('script')[0]; g.async=true; g.src=u+'matomo.js'; s.parentNode.insertBefore(g,s); })(); </script> If you are using Matomo Web Analytics module add code to file: /modules/piwikanalyticsjs/views/templates/hook/jstracking.tpl (line 27) I discovered this when I saw that the number of reviews visible in a Google search had started to fall rapidly. Edited April 15 by Adik 1
30knees Posted April 17 Author Posted April 17 On 4/15/2024 at 7:11 PM, Adik said: If you are using Matomo Web Analytics module add code to file: /modules/piwikanalyticsjs/views/templates/hook/jstracking.tpl (line 27) Do you mean that (...) {if $PIWIK_USE_PROXY} _paq.push(['setTrackerUrl', u]); {else} becomes _paq.push(['disableAlwaysUseSendBeacon']); {if $PIWIK_USE_PROXY} _paq.push(['setTrackerUrl', u]); {else}
Adik Posted April 17 Posted April 17 (edited) I added code after enableLinkTracking : {if isset($PIWIK_RCOOKIE_TIMEOUT)} _paq.push(['setReferralCookieTimeout', '{$PIWIK_RCOOKIE_TIMEOUT|escape:'javascript'}']); {/if} _paq.push(['enableLinkTracking']); _paq.push(['disableAlwaysUseSendBeacon']); Edited April 17 by Adik 1
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