Hi TheTwi and other users,
I know this is an old topic, however other people maybe having the same issue. The problem isnt piwik it’s your current setup. To make sure images work correctly please set piwik as a sub domain.
If your using cpannel:
On localhost please create a vhost subdomain for piwik (not sure why you would need piwik for checking local stats unless its for testing)
Linux Ubuntu Instructions
opten terminal (ctrl, alt + t):
Browse to the web directory:
now create your file / site folder (please note you may need sudo access so use sudo infront of the command if its needed)
Enter the directory
add your piwik files here, once all your piwik files are created please create the virtual host by doing the following:
Now create the file:
sudo nano sub.domain.test.conf
Past the following but with your details:
DocumentRoot /var/www/ sub.domain.test
Allow from all
save the file (ctrl + x) when promted to save type y and push enter.
Now create the symlink for sites on linux this can be done by typing:
sudo a2ensite sub.domain.test
Create the hosts file to match it:
sudo nano /etc/hosts
at the bottom of the file enter:
#This links the domain nmame to your local host
The final step is to restart apache:
sudo service apache2 restart
Now you should be able to view piwik ad sub.domain.test in your browser.
For mac osx follow: http://sawmac.com/mamp/virtual/
For windows follow: Virtual hosts on Apache in Windows
I hope this post helps anyone experiencing the image issue.