Global Site Tag (gtag.js) Tracking for Contact Form 7

Since version 0.6.2 the plugin supports the latest Google Analytics tracking code called “Global Site Tag” or gtag.js which usually look like this:

<script async src="https://www.googletagmanager.com/gtag/js?id=GA_TRACKING_ID"></script>
<script>
  window.dataLayer = window.dataLayer || [];
  function gtag(){dataLayer.push(arguments);}
  gtag('js', new Date());
  gtag('config', 'GA_TRACKING_ID');
</script>

The plugin automatically sends custom tracking events whenever a form submission is submitted, sent, failed to send or is considered spam.

See the list of all Google Analytics and Metomo (formerly Piwik) tracking events that are triggered automatically for all form submissions.