From 4b87059d772552b186c8fc2d9f095138ba5741be Mon Sep 17 00:00:00 2001 From: PromInc Date: Tue, 10 Jun 2025 08:42:10 -0500 Subject: [PATCH] Prevent 422 Insights Event The Algolia event debugger indicates a large number of `422` status codes from Autocomplete click insights events due to a missing `index` field. --- view/frontend/web/js/insights.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/view/frontend/web/js/insights.js b/view/frontend/web/js/insights.js index 1f3d71cc9..cfd45a019 100755 --- a/view/frontend/web/js/insights.js +++ b/view/frontend/web/js/insights.js @@ -180,7 +180,7 @@ define([ var eventData = self.buildEventData( 'Clicked', $this.data('objectid'), - $this.data('indexname'), + $this.data('index'), $this.data('position'), $this.data('queryid') );