I wanna create a custom function in google appsscript to create a custom event in GA4, is it possible??
I tried to do this by connecting the google analytics api. And trying to create a js function in appscript, which would be able to create a custom event but I don't know if it's the right way to do it
[google-apps-script]
and the term custom function has a well-defined meaning in that context, which is probably not what you meant. If you are targeting Google Ads scripts instead, please tag the question appropriately as[google-ads-script]
.