Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

content tracking does not work when using the tracker-proxy #14793

Closed
level420 opened this issue Aug 20, 2019 · 1 comment
Closed

content tracking does not work when using the tracker-proxy #14793

level420 opened this issue Aug 20, 2019 · 1 comment
Milestone

Comments

@level420
Copy link

level420 commented Aug 20, 2019

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 = '';
@level420
Copy link
Author

It was a tracker proxy bug and solved via matomo-org/tracker-proxy#53
closing.

@mattab mattab added this to the 3.12.0 milestone Oct 27, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants