I'm using the plugin "CAOS | Host Google Analytics Locally" with Minimal Analytics. Standard events seem to be tracked properly, but I'm having an issue with custom events.
For example, I use the following code to capture a form submission:
track({type : 'product_inquiry', event : {'event_category' : 'form_submission', 'page_path' : window.location.pathname}});
GA4 records this event, and shows its page path, but its category is shown as "(not set)" and the event doesn't appear when the report is filtered for is_key_event == true.
To be clear, "product_inquiry" is marked as a key event in the GA4 property settings.
Is my code correct?
What can I do to capture all the event parameters and have it shown in the key event report?
I'm using the plugin "CAOS | Host Google Analytics Locally" with Minimal Analytics. Standard events seem to be tracked properly, but I'm having an issue with custom events.
For example, I use the following code to capture a form submission:
track({type : 'product_inquiry', event : {'event_category' : 'form_submission', 'page_path' : window.location.pathname}});GA4 records this event, and shows its page path, but its category is shown as "(not set)" and the event doesn't appear when the report is filtered for
is_key_event == true.To be clear, "product_inquiry" is marked as a key event in the GA4 property settings.
Is my code correct?
What can I do to capture all the event parameters and have it shown in the key event report?