Skip to content

Event not recognised as key and category parameter not captured in GA4 #60

Description

@galbaras

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions