-
-
Notifications
You must be signed in to change notification settings - Fork 2.7k
Closed
Milestone
Description
Tracking page views and links works as expected, but content tracking does not work.
I've verified that content tracking does work if I'm using the non proxy javascript tracker.
This is for matomo 3.11.0, php 7.1.31 and current matomo proxy tracker from https://github.com/matomo-org/tracker-proxy as a fresh clone via git clone as advised in https://github.com/matomo-org/tracker-proxy/blob/master/README.md
The matomo instance is running on its own subdomain matomoinstance.mydomain.tld.
piwik.php is accessible through the path /stat/ on each website to be tracked.
Tracker code is:
<script type="text/javascript">
var _paq = window._paq || [];
_paq.push(['disableCookies']);
_paq.push(['trackPageView']);
_paq.push(['enableLinkTracking']);
_paq.push(['trackAllContentImpressions']);
(function() {
var u="//mysite.mydomain.tld/stat/";
_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.async=true; g.defer=true; g.src=u+"piwik.php"; s.parentNode.insertBefore(g,s);
})();
</script>
config.php for the proxy:
<?php
$PIWIK_URL = 'https://mymatomoinstance.mydomain.tld/';
$PROXY_URL = '/stat/';
$TOKEN_AUTH = 'someworkingauthtoken';
$timeout = 5;
$user_agent = '';
Metadata
Metadata
Assignees
Labels
No labels