Skip to content


HTML Validation Errors in Image Tracking Code #2733

anonymous-piwik-user opened this Issue · 4 comments

2 participants


This is re-reporting of the image tracking code issue reported in ticket #2642. Unfortunately, the issue in the "Image Tracker code" shown in the web interface is still present in Piwik version 1.6. Despite the fact that "&" is present in DisplayAlternativeTags.tpl.

Piwik Open Source Analytics member

Works for me - if you experience an error please post it here...


I didn't mean the API functions - that seems to be fine. I meant the "Piwik Image Tracker" as shown in Piwik web interface (or should I better call it "user interface"?) under "Settings" - "Websites" - "View Tracking code" - "Display Image Tracker code".

It seems that the "&" in the template gets converted to "&" in the web interface. (Just like, e.g., "<" gets converted to "<".) Is it possible that the leading "&" needs to be escaped, so that "&" is kept in the web interface? (I don't know much about PHP/HTML.)



Or maybe urlencode() or htmlspecialchars() or htmlentities() with "&" needs to be used?

Piwik Open Source Analytics member

(In [5374]) Fixes #2733

@anonymous-piwik-user anonymous-piwik-user added this to the 1.7 Piwik 1.7 milestone
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.