Home › Forums › Product Support Forums › Ajax Search Pro for WordPress Support › Having difficulty using variable data in Google Analytics › Reply To: Having difficulty using variable data in Google Analytics
Hi Phil,
The values are the actual variable values. The event category, label etc.. are only attributes for the event objects. It worked similarly in GA3, but these were standardized attribute names, with GA4 it is not that strict anymore. We decided to keep them for now, as it can still work with GA3, and for GA4 it does not matter what the attribute name is. In a future update once GA3 is out of the way, we will rework that interface to add as many event attributes as you want.
For example in our demo setup with the default configuration when I check the “search_end” event, I can see these attributes. Among them there is the event_category, event_label etc.. If you check the event_label attribute, you can see the attribute values sent by each event.