Firebase Analytics fire custom event from PHP

Viewed 789

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?

1 Answers

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.

Related