diff options
author | diosmosis <diosmosis@users.noreply.github.com> | 2019-05-10 11:50:56 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-05-10 11:50:56 +0300 |
commit | c6eb52339f3fc496ac43b55c4a0de8d161edbff4 (patch) | |
tree | c05d34d97ea14cdb454e5ca3ff961c9449e53095 /tests/PHPUnit/Fixtures | |
parent | a4c8dc92994ccfd5775d080a4f63cb095ab95e19 (diff) |
Overwrite direct entry referrer information if campaign referrer is found in later request. (#14273)
* Overwrite direct entry referrer information if campaign referrer is found in later request.
* Update for non-campaign referrers as well.
* test comment tweaks
* Add current tracking URL into site urls in case website has no main url.
* Fix a couple issues and start adding tests.
* More tests and a fix.
* Apply review feedback.
* Fix couple tests.
* Fix referrer tests.
* try to fix random failure
* Add note to README.
Diffstat (limited to 'tests/PHPUnit/Fixtures')
-rw-r--r-- | tests/PHPUnit/Fixtures/SomeVisitsCustomVariablesCampaignsNotHeuristics.php | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/tests/PHPUnit/Fixtures/SomeVisitsCustomVariablesCampaignsNotHeuristics.php b/tests/PHPUnit/Fixtures/SomeVisitsCustomVariablesCampaignsNotHeuristics.php index e4e711cd73..574f93149c 100644 --- a/tests/PHPUnit/Fixtures/SomeVisitsCustomVariablesCampaignsNotHeuristics.php +++ b/tests/PHPUnit/Fixtures/SomeVisitsCustomVariablesCampaignsNotHeuristics.php @@ -144,7 +144,7 @@ class SomeVisitsCustomVariablesCampaignsNotHeuristics extends Fixture $t4->setUrl('http://example.org/index.html'); self::checkResponse($t4->doTrackPageView('Bonjour le monde')); - // test one action w/ no campaign & then one action w/ a campaign (should result in 2 visits) + // test one action w/ no campaign & then one action w/ a campaign (should result in 1 visit w/ overridden referrer) $t4->setForceVisitDateTime(Date::factory($dateTime)->addHour(10)->getDatetime()); $t4->setUrlReferrer(''); $t4->setUrl('http://example.org/index.html'); @@ -160,7 +160,7 @@ class SomeVisitsCustomVariablesCampaignsNotHeuristics extends Fixture $t4->setUrl('http://example.org/index.html'); self::checkResponse($t4->doTrackPageView('Dia duit ar domhan')); - // test one action w/ no referrer website & then one action w/ referrer website (should result in 2 visits) + // test one action w/ no referrer website & then one action w/ referrer website (should result in 1 visit w/ overridden referrer) $t4->setForceVisitDateTime(Date::factory($dateTime)->addHour(11)->getDatetime()); $t4->setUrlReferrer(''); $t4->setUrl('http://example.org/index.html'); @@ -200,6 +200,7 @@ class SomeVisitsCustomVariablesCampaignsNotHeuristics extends Fixture $t5->setForceVisitDateTime(Date::factory($dateTime)->addHour(2)->getDatetime()); $t5->setUrlReferrer('http://apocalypsenow.org'); $t5->setUrl('http://mutantrights.org'); + // params supplied, for existing campaign $t5->setAttributionInfo(json_encode(array('GA Campaign', 'some keyword', urlencode(Date::factory($dateTime)->addHour(2)->getDatetime())))); |