Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/matomo-org/matomo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Giehl <stefan@matomo.org>2020-07-29 00:32:05 +0300
committerGitHub <noreply@github.com>2020-07-29 00:32:05 +0300
commit844c7ac05789beb583467390ff7c66aa44e69012 (patch)
tree7a4b92ed6852bde6fff3552f88d1f4ad22cced78 /plugins/Live
parent8ca34b2b517810db2e35d8e3c7d4e33007af3faf (diff)
Use new tracker mehtod to set a custom dimension (#16245)
Diffstat (limited to 'plugins/Live')
-rw-r--r--plugins/Live/tests/Fixtures/VisitsWithAllActionsAndDevices.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/plugins/Live/tests/Fixtures/VisitsWithAllActionsAndDevices.php b/plugins/Live/tests/Fixtures/VisitsWithAllActionsAndDevices.php
index f49fd37bcb..cf3ee64fb7 100644
--- a/plugins/Live/tests/Fixtures/VisitsWithAllActionsAndDevices.php
+++ b/plugins/Live/tests/Fixtures/VisitsWithAllActionsAndDevices.php
@@ -96,7 +96,7 @@ class VisitsWithAllActionsAndDevices extends Fixture
$t->setForceVisitDateTime(Date::factory($dateTime)->addHour(0.1)->getDatetime());
$t->setUrl('http://example.org/product42');
- $t->setCustomTrackingParameter('dimension2', 'NZD');
+ $t->setCustomDimension('2', 'NZD');
$t->setEcommerceView($sku = 'P42X4D', $name = 'product 42', $category = 'software', $price = 60);
$t->setPerformanceTimings(33, 222, 356, 444, 522, 211);
$t->setDebugStringAppend('bw_bytes=36053');
@@ -157,8 +157,8 @@ class VisitsWithAllActionsAndDevices extends Fixture
$t->setPerformanceTimings(55, 348, 256, 299, 165, 144);
$t->setDebugStringAppend('bw_bytes=6851');
$t->setCustomVariable(1, 'custom', 'variable', 'page');
- $t->setCustomTrackingParameter('dimension1', '42');
- $t->setCustomTrackingParameter('dimension2', '€');
+ $t->setCustomDimension('1', '42');
+ $t->setCustomDimension('2', '€');
self::checkResponse($t->doTrackPageView('product 42'));
$t->setForceVisitDateTime(Date::factory($dateTime)->addHour(0.09)->getDatetime());
@@ -194,7 +194,7 @@ class VisitsWithAllActionsAndDevices extends Fixture
$t->setUrlReferrer('http://www.nice.website/page3');
$t->setCustomVariable(1, 'promo', 'summer', 'visit');
- $t->setCustomTrackingParameter('dimension1', '16');
+ $t->setCustomDimension('1', '16');
$t->setUrl('http://example.org/');
$t->setPerformanceTimings(0, 255, 319, 395, 222, 92);
$t->setDebugStringAppend('bw_bytes=631');