I am trying to send a Google Event from within the Data Tag provided by Stape, however I am unsure how to implement the sendEventToGoogleAnalytics function.
Can you describe what exactly you try to achieve?
Why do you need to use Data Tag/Data Client for sending events to GA? This tag was made for sending data to other systems. For example, for sending Data to FB or Klavio.
For sending events to GA, you can use GA tag/GA client.
I am trying to send an event to Google Analytics when sending data to 3rd party system fails. We have noticed a drop in conversions since moving to Server To Sever and I am trying to collate date in order to diagnose the issue.