From 412f015395221c4009f9a05e3281db3697798267 Mon Sep 17 00:00:00 2001 From: nikitasol Date: Tue, 29 Mar 2022 14:58:49 +0200 Subject: [PATCH] track ViewCategory as trackCustom As per Meta's dev docs, ViewCategory is not a Standard event and should be tracked as trackCustom. List of Standard Event can be found here: https://developers.facebook.com/docs/meta-pixel/reference#standard-events --- classes/Handler/PixelHandler.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/classes/Handler/PixelHandler.php b/classes/Handler/PixelHandler.php index bd97a0d09..fb9c6913a 100644 --- a/classes/Handler/PixelHandler.php +++ b/classes/Handler/PixelHandler.php @@ -67,6 +67,10 @@ public function handleEvent($params) $eventType = false; if (isset($params['event_type'])) { $eventType = $params['event_type']; + + if ($eventType = 'ViewCategory') { + $track = 'trackCustom'; + } } if (isset($params['user'])) { $userData = $params['user'];