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

Long URI get truncated (trackPageView) #9563

Closed
rristow opened this issue Jan 19, 2016 · 8 comments
Closed

Long URI get truncated (trackPageView) #9563

rristow opened this issue Jan 19, 2016 · 8 comments
Assignees
Labels
answered For when a question was asked and we referred to forum or answered it.
Milestone

Comments

@rristow
Copy link

rristow commented Jan 19, 2016

There is a limit of 177 chars for URI. This is not enought in some "special" use-cases.
Piwik Version: 2.15.0
Report: indexVisitorLog

@tsteur
Copy link
Member

tsteur commented Jan 19, 2016

It should be possible to save much longer URIs. I'm not quite sure which field or URI you mean? How do you track the URL? Why the JavaScript Tracker? Is maybe only part of the URI visible but the whole URI is tracked?

@rristow
Copy link
Author

rristow commented Jan 27, 2016

which field or URI you mean?
I mean the URI that are showed in the 'Visitor Profile report': http://piwik.org/docs/user-profile/#visitor-profile-report

How do you track the URL?
Hier ist one Snippet from the Javascript-code:

<script type="text/javascript">
  var _paq = _paq || [];
  _paq.push(['trackPageView']);
  _paq.push(['enableLinkTracking']);
(...)

Why the JavaScript Tracker?
and Why not? (I don't want to 'import' nor use the 'bild' way)

Is maybe only part of the URI visible but the whole URI is tracked?
This is possible, but the problem ist that the Links are also 'broken'.
Is very useful wenn you can just click the link in the report and visit the same page with the same query-string.

@tsteur
Copy link
Member

tsteur commented Jan 27, 2016

The URLs are most likely only shown truncated but tracked and persisted correctly.
The links should not be broken though. What do you mean by they are broken? Is part of the URL at the end missing? How long is the URL with query?

Is it maybe possible that we get access to your Piwik so we can have a quick look?

@rristow
Copy link
Author

rristow commented Jan 28, 2016

You can reproduce the problem if you visit this TEST-LINK:
The link has 30 arguments in the query-string,

The piwik server for test is here: http://piwik.mediq.ch

If you go to the user's log, you will see that the link ist "broken" and piwik "just" handle until the parameter 24. (char-length: 1359)

@tsteur
Copy link
Member

tsteur commented Jan 28, 2016

Thx I can reproduce (and I removed credentials from your post). Can you try to specify a different value for page_maximum_length = 1024 in your config.ini.php.

It has to be in General section:

[General]
page_maximum_length = 2048

@mattab I couldn't find a FAQ for this one. Maybe there is one? Or should we create one?

@tsteur tsteur added the answered For when a question was asked and we referred to forum or answered it. label Jan 28, 2016
@tsteur tsteur added this to the 2.16.0 milestone Jan 28, 2016
@tsteur tsteur closed this as completed Jan 28, 2016
@tsteur
Copy link
Member

tsteur commented Jan 28, 2016

Feel free to comment in case it does not solve this issue @rristow

@tsteur tsteur self-assigned this Jan 28, 2016
@mattab
Copy link
Member

mattab commented Jan 29, 2016

I couldn't find a FAQ for this one. Maybe there is one? Or should we create one?

Created new FAQ How do I correctly track my very long Page URLs and Page Titles without truncating any characters?

@rristow
Copy link
Author

rristow commented Feb 12, 2016

Yes it works and thanks for the FAQ!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
answered For when a question was asked and we referred to forum or answered it.
Projects
None yet
Development

No branches or pull requests

3 participants