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

Allow POST instead of GET in piwik.php #5721

Closed
anonymous-matomo-user opened this issue Jul 13, 2008 · 5 comments
Closed

Allow POST instead of GET in piwik.php #5721

anonymous-matomo-user opened this issue Jul 13, 2008 · 5 comments
Labels
Enhancement For new feature suggestions that enhance Matomo's capabilities or add a new report, new API etc.
Milestone

Comments

@anonymous-matomo-user
Copy link

The current Javascript and tagging allows Urls up to 2083 Bytes with IE6 and IE7. They can not GET longer Urls… Once piwik uses more variables to track customizable user / page /etc.- segmentation, this might become a problem.
Current implementations of professional tools have the same limitations in their Javascript and data collection server interfaces. What about generating an Iframe in the page, POSTing the data in that Iframe instead of just generating a pixel request?
The server script piwik.php can be changed easily to handle POST as well as GET, the Javascript implementation might be developed as an optional script.

@mattab
Copy link
Member

mattab commented Oct 14, 2008

This seems overkill; why would you need to track more than 2k urls? Plus the iframe solution is not really something we are ready to implement (not industry standard, more a hack).
plus POSTing data is meant to be an “action”, something the user clicked or validated.
Thanks for feedback anyway

@robocoder
Copy link
Contributor

With the new piwik.js, we might consider using XmlHttpRequest (or IE equivalent ActiveX objects) — for Web 2.0 goodness — and JSON. This would permit more complex data for custom_vars and allow for non-image responses, eg server generated idvisitor.

@robocoder
Copy link
Contributor

In [3231], fixes #5721, refs #1460 - add .setRequestMethod("POST") to piwik.js

Use cases:

  • workaround GET request length limit
  • workaround mod_security or .htaccess rules that block request containing "http"

Notes:

  • subject to same origin policy

@robocoder
Copy link
Contributor

In [3238], the XmlHttpRequest is now asynchronous.

@mattab
Copy link
Member

mattab commented May 20, 2011

See also #2321

@anonymous-matomo-user anonymous-matomo-user added this to the Piwik 1.1 milestone Jul 8, 2014
This issue was closed.
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

No branches or pull requests

3 participants