@@ -179,7 +179,7 @@ discard block |
||
179 | 179 | * @param string $listName |
180 | 180 | * @throws \yii\base\InvalidConfigException |
181 | 181 | */ |
182 | - public function addCommerceProductImpression(Product|Variant $productVariant, $index, string $listName = 'default') { |
|
182 | + public function addCommerceProductImpression(Product | Variant $productVariant, $index, string $listName = 'default') { |
|
183 | 183 | InstantAnalytics::$plugin->commerce->addCommerceProductImpression($productVariant, $index, $listName); |
184 | 184 | } |
185 | 185 | |
@@ -192,7 +192,7 @@ discard block |
||
192 | 192 | * @deprecated `Analytics::addCommerceProductDetailView()` is deprecated. Use `Analytics::addCommerceProductImpression()` instead. |
193 | 193 | * @throws \yii\base\InvalidConfigException |
194 | 194 | */ |
195 | - public function addCommerceProductDetailView(Product|Variant $productVariant, $index, string $listName = 'default') { |
|
195 | + public function addCommerceProductDetailView(Product | Variant $productVariant, $index, string $listName = 'default') { |
|
196 | 196 | Craft::$app->getDeprecator()->log('Analytics::addCommerceProductDetailView()', '`Analytics::addCommerceProductDetailView()` is deprecated. Use `Analytics::addCommerceProductImpression()` instead.'); |
197 | 197 | InstantAnalytics::$plugin->commerce->addCommerceProductImpression($productVariant, $index, $listName); |
198 | 198 | } |
@@ -338,7 +338,7 @@ discard block |
||
338 | 338 | // Load them up for GA4 |
339 | 339 | foreach ($campaignParams as $key => $method) { |
340 | 340 | $value = $request->getParam($key) ?? $session->get($key) ?? null; |
341 | - $method = 'set' . $method; |
|
341 | + $method = 'set'.$method; |
|
342 | 342 | |
343 | 343 | $this->$method($value); |
344 | 344 |