Lowercase device in order tracks for consistency across values

This commit is contained in:
Justin Palmer 2023-11-22 15:26:25 +01:00
parent 4acd06245f
commit 3e905dd6ea
No known key found for this signature in database
GPG Key ID: ACAB7C35AA2577AF
1 changed files with 1 additions and 1 deletions

View File

@ -375,7 +375,7 @@ class SourceAttributionController implements RegisterHooksInterface {
'type' => $source_data['type'] ?? '',
'medium' => $source_data['utm_medium'] ?? '',
'source' => $source_data['utm_source'] ?? '',
'device_type' => $source_data['device_type'] ?? '(unknown)',
'device_type' => strtolower( $source_data['device_type'] ?? '(unknown)' ),
'session_pages' => $source_data['session_pages'] ?? 0,
'session_count' => $source_data['session_count'] ?? 0,
'order_total' => $order->get_total(),