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

Nothing is record #27

Open
chadyred opened this issue Oct 14, 2017 · 0 comments
Open

Nothing is record #27

chadyred opened this issue Oct 14, 2017 · 0 comments

Comments

@chadyred
Copy link

Hello,

I have install piwik version 3.2 with docker-compose. Three different docker-compose have been use and always same result:

Nothing seems record...

I have use different example in local:

And all works fine but nothing is record. One simple example with :

version: '2'
services:
  db:
    image: mysql
    volumes:
      - /data/piwik/mysql:/var/lib/mysql
    environment:
      - MYSQL_DATABASE=piwik
      - MYSQL_USER=piwik
      - MYSQL_PASSWORD=piwik
      - MYSQL_ALLOW_EMPTY_PASSWORD=no
      - MYSQL_RANDOM_ROOT_PASSWORD=no
  app:
    image: piwik:fpm
    links:
      - db
    volumes:
      - ./config:/var/www/html/config
    networks:
      - default
      - nginx-proxy
  web:
    image: nginx
    volumes:
      - ./nginx.conf:/etc/nginx/nginx.conf:ro
    links:
      - app
    volumes_from:
      - app
    environment:
      - VIRTUAL_HOST=piwik.dev
    networks:
      - default
      - nginx-proxy
  cron:
    image: piwik:fpm
    links:
      - db
    volumes_from:
      - app
    entrypoint: |
      bash -c 'bash -s <<EOF
      trap "break;exit" SIGHUP SIGINT SIGTERM
      while /bin/true; do
        su -s "/bin/bash" -c "/usr/local/bin/php /var/www/html/console core:archive" www-data
        sleep 3600
      done
      EOF'

networks:
    nginx-proxy:
        external:
            name: proxy-nginx # Network for DNS

Then I have add website (idSite is 2) and I use JavaScript and it's send data :

  <!-- Piwik -->
  <script type="text/javascript">
    var _paq = _paq || [];
    /* tracker methods like "setCustomDimension" should be called before "trackPageView" */
    _paq.push(['trackPageView']);
    _paq.push(['enableLinkTracking']);
    (function() {
      var u="//piwik.dev/";
      _paq.push(['setTrackerUrl', u+'piwik.php']);
      _paq.push(['setSiteId', '2']);
      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.js'; s.parentNode.insertBefore(g,s);
    })();
  </script>
  <noscript><p><img src="//piwik.dev/piwik.php?idsite=2&rec=1" style="border:0;" alt="" /></p></noscript>
  <!-- End Piwik Code -->

Data is send by browser and are receive on my container. For all test on docker compose I have the same behavior and logs which seems to works:

piwik_1    | 172.18.0.3 - - [13/Oct/2017:05:51:39 +0000] "GET /piwik.php?action_name=my_site&idsite=2&rec=1&r=887751&h=7&m=51&s=39&url=http%3A%2F%2Fmy_site.dev%2Fprofile%2F&urlref=http%3A%2F%2Fmy_site.dev%2Frecette%2Fnew&_id=d6c860d631d25a0e&_idts=1507873767&_idvc=1&_idn=0&_refts=0&_viewts=1507873767&send_image=1&pdf=0&qt=0&realp=0&wma=0&dir=0&fla=1&java=0&gears=0&ag=0&cookie=1&res=2560x1440&gt_ms=8101&pv_id=kNLa5M HTTP/1.1" 200 43

But nothing is record...

image

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

1 participant