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

New INI config setting for Custom image to replace default 1x1 GIF image #2672

Closed
anonymous-matomo-user opened this issue Sep 19, 2011 · 3 comments · Fixed by #17879
Closed
Labels
Enhancement For new feature suggestions that enhance Matomo's capabilities or add a new report, new API etc.

Comments

@anonymous-matomo-user
Copy link

Hello everyone,

I would like to change the default GIF image returned by piwik but I can't figure out where to change this.

I'am using the Image tracker code: (<img src="http://127.0.0.1/piwik/piwik.php?idsite=1&rec=1" style="border:0" alt="" />

I would like to add a parameter to specify witch image I want or simply return an image that I specify the path somewhere.

A parameter can be a good solution to choose from multiple images.

Thank you.

@robocoder
Copy link
Contributor

This was proposed in #50.

Because the piwik.php request must not be cached, we should to keep the response small. A custom image would add unnecessary overhead to requests using piwik.js, as the image isn't displayed.

Please accept the transparent pixel as-is.

If you want to promote Piwik, you're welcome to use a regular img tag linked to a static resource.

@robocoder
Copy link
Contributor

Re-opening as I see Matt directed you in the forum to create this ticket.

A config file setting as Matt proposed would be the easiest to implement, e.g.,

[Tracker]
; custom image to return when tracker URL includes &image=1
; should we have a default path to the piwik logo?
custom_image = /path/to/image

@mattab
Copy link
Member

mattab commented Sep 25, 2011

This feature could useful for those using the Image Tracker, but definitely not high priority ;)

@anonymous-matomo-user anonymous-matomo-user added this to the Future releases milestone Jul 8, 2014
@sgiehl sgiehl self-assigned this Jan 23, 2015
@sgiehl sgiehl removed their assignment Jul 24, 2015
@mattab mattab modified the milestones: Long term, Mid term Dec 23, 2015
@mattab mattab modified the milestones: Long term, Mid term Dec 5, 2016
@justinvelluppillai justinvelluppillai changed the title Custom image to replace default 1x1 GIF image New INI config setting for Custom image to replace default 1x1 GIF image Oct 6, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Enhancement For new feature suggestions that enhance Matomo's capabilities or add a new report, new API etc.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants