-
Notifications
You must be signed in to change notification settings - Fork 9
Open
Labels
questionFurther information is requestedFurther information is requested
Description
For server-side events the source does not seem to be set/reported in GA. Is there a way to fix this? Maybe I'm not passing some data through?
I'm not passing the referrer, maybe that's required? This is essentially my setup:
....
$this->analytics
->setClientId($event->clientId) // from _ga/_gid cookie value
->setUserId('C.'.$event->order->customer->getKey()); // user ID
// set the purchase event details
$this->purchaseEvent
->setSessionId($event->sessionId) // _ga_{MEASUREMENT_ID} cookie value
->setEngagementTime(100)
->setPageLocation($event->url)
->setPageTitle($event->pageTitle)
->setCurrency('NZD')
->setTransactionId($event->order->id)
->setValue($event->order->total)
->setShipping($event->order->total_shipping)
->setTax($event->order->total_tax);
// add items
...Metadata
Metadata
Assignees
Labels
questionFurther information is requestedFurther information is requested