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

create new visit on different campaign info or different referrer website #6847

Merged
merged 7 commits into from Dec 12, 2014

Conversation

diosmosis
Copy link
Member

Will fix issue #2624.

diosmosis added 3 commits December 9, 2014 17:01
…paign/website referrer information changes between actions. Includes new tracker hook shouldForceNewVisit that dimensions can use to force a new visit during tracking. Also includes light refactoring to referrer dimensions. Testless.
…ferrer info present in last action. Also add integration + system tests for new behavior.
; if set to 1, actions that contain different campaign information from the last action in the current visit will
; be treated as the start of a new visit. This will include situations when campaign information was absent before,
; but is present now (or vice versa).
tracker_create_new_visit_when_campaign_changes = 1
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

dont need to prefix with tracker_ since it's [Tracker] section

@mattab
Copy link
Member

mattab commented Dec 12, 2014

Feedback inline, nice change

@mattab mattab added this to the Piwik 2.10.0 milestone Dec 12, 2014
@mattab mattab added the Enhancement For new feature suggestions that enhance Matomo's capabilities or add a new report, new API etc. label Dec 12, 2014
@@ -550,6 +542,23 @@ private function triggerHookOnDimensions($dimensions, $hook, $visitor, $action,
return $valuesToUpdate;
}

private function triggerPredicateHookOnDimensions($dimensions, $hook, Visitor $visitor, Action $action = null, $returnFirstTrue = true)
{
$result = $returnFirstTrue ? false : array();
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

could we maybe remove $returnFirstTrue feature, it's not used and makes it bit hard to understand

diosmosis added 4 commits December 12, 2014 15:43
diosmosis pushed a commit that referenced this pull request Dec 12, 2014
Create new visit on different campaign info or different referrer website (includes minor refactoring to Referrer dimensions + 2 new INI config options).
@diosmosis diosmosis merged commit 56ef81b into master Dec 12, 2014
@diosmosis diosmosis deleted the campaign_change_new_visit branch December 12, 2014 23:56
@mattab
Copy link
Member

mattab commented Feb 17, 2015

Added FAQ to document this feature: https://piwik.org/faq/how-to/faq_19616/

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

Successfully merging this pull request may close these issues.

None yet

2 participants