Update sendEvent function to check gtag existance before calling it.
Update sendEvent function to check gtag existance before calling it.

google/site-kit-wp,google/site-kit-wp,google/site-kit-wp,google/site-kit-wp