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

Exit page url is not correct when last action of a visit is a download or outlink #9345

Closed
tsteur opened this issue Dec 7, 2015 · 0 comments · Fixed by #10867
Closed

Exit page url is not correct when last action of a visit is a download or outlink #9345

tsteur opened this issue Dec 7, 2015 · 0 comments · Fixed by #10867
Labels
Bug For errors / faults / flaws / inconsistencies etc.
Milestone

Comments

@tsteur
Copy link
Member

tsteur commented Dec 7, 2015

Use case:

  • A user is on page 'example.com/foo/bar'.
  • User clicks on outlink 'example.org/outlink'

So far Piwik has stored a visit_exit_idaction_url=example.org/outlink with type id 2 (for outlink). The exit page should be still example.com/foo/bar though.

Same for downloads. If last action was an outlink or download we did not count an exit for the actual last page.

FYI: The page title was tracked correctly but not the page url

There's a PR for this in #9343 but it's not fully done yet. To solve this properly we need new columns in the database meaning schema changes meaning it has to go into Piwik 3.X

Currently, exit_id_action_url and exit_id_action_name are as well used for idaction_url_ref and idaction_name_ref. Before a visit is overwritten by a new tracking request we read the previous idactions idaction_name_ref and idaction_url_ref from log_visit and save them attached with the new log_link_visit_action. Problem: exit_id_actions are only updated for pageviews meaning the reference is not correct. We would actually need 2 new columns in log_visit to save last_id_action_url and last_id_action_name or simple like it was done in CustomDimensions plugin only last_idlink_va

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug For errors / faults / flaws / inconsistencies etc.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants