Hi,
I found that we sometimes miss form submission events in our Google Analytics. After checking each and every corner, I found only one place that could fail. Specifically, when submitting the event in this loop:
foreach ( $google_analytics_codes as $ua_code ) {
// Submit the event
$event->send( $ua_code );
}
$this->add_note( $entry['id'], __( 'An event has been sent using the Google Analytics Measurement Protocol.', 'gravity-forms-google-analytics-event-tracking' ), 'success' );
There's nothing that checks the result of ->send(), neither here, nor in the send function itself. Thus some events may slip through (temporary network issues, routing problems, timeouts, DNS resolve errors etc. etc.). Is there any way you can implement a retry of some sort, and/or maybe at least call an add_note with specific parameters depending on the result of send()?
Hi, I found that we sometimes miss form submission events in our Google Analytics. After checking each and every corner, I found only one place that could fail. Specifically, when submitting the event in this loop:
There's nothing that checks the result of
->send()
, neither here, nor in the send function itself. Thus some events may slip through (temporary network issues, routing problems, timeouts, DNS resolve errors etc. etc.). Is there any way you can implement a retry of some sort, and/or maybe at least call anadd_note
with specific parameters depending on the result ofsend()
?