function gtag_report_conversion(url) {
var callback = function () {
if (typeof(url) != 'undefined') { window.location = url; }
};
gtag('event', 'conversion', { 'send_to': 'AW-.../...', 'transaction_id': '', 'event_callback': callback });
return false;
}
document.addEventListener( 'wpcf7mailsent', function( event ) {
gtag_report_conversion('<?php echo get_the_permalink(); ?>');
}, false );
Conversion Tracking (Contact Form 7)