is there a way to fire a custom event (that is already configurated) from PHP or is there any other alternative how to execute the Firebase Analytics event from PHP code?
is there a way to fire a custom event (that is already configurated) from PHP or is there any other alternative how to execute the Firebase Analytics event from PHP code?
To send events from your server-side code to Google Analytics you can use the Measurement Protocol API. Sending events takes a REST API call in there.
To get comfortable with the API, I recommend looking at the JSON in the GA4 Event Builder tool, that is linked from the documentation too.