Why is a little complicated… but it benefits me to know the URL actually submitted by a user’s browser as the referrer during an action.
Some digging indicates that:
[li] PiwikTracker.php sends the value as &urlref
[/li][li] The log_visit table has referrer information, but it only stores the first action of the entire visit
[/li][li] The log_link_visit_action table has referrer information captured in idaction_url_ref and idaction_name_ref
[/li][li] However, according to the description of Action.record(), idaction_url_ref is “the ID of the last action done by the current visit”
Is the actual referrer reported by the browser stored anywhere?
If not, can I change a setting to rely on the browser reported value instead of automatically using the last page?
If not… and assuming that I’m happy to dump the information off in a random table (manually JOINing later), is it difficult to record information like this via a plugin?