Learn business growth with Google Analytics 4 › Forums › Google Analytics 4 › . Can you send custom events to GA4? › Reply To: . Can you send custom events to GA4?
-
Sure, no problem! So, here’s the deal. In GA4, you can go to ‘Admin’ and click on ‘Custom Definitions’. There, you can generate a new dimension (which is basically the same thing as your previous event parameter).
Consider this as an empty bucket that’s ready to hold any value you send its way. So you can assign different values to this single bucket without having to create a new one for each value.
For example, one moment, you can send ‘some string 1’ to the “page_view” event, like this:
`javascript
{
event : “page_view”,
page_custom_type : “some string 1”
}
`
And another moment, ‘some string 2’, like this:
`javascript
{
event : “page_view”,
page_custom_type : “some string 2”
}
`
Essentially, it’s just one configuration to accommodate all your different strings. Easy as pie, right? So, no worry. You don’t need to pre-set all your strings in the admin console.