Missing event
-
This site contains the following script code (add ?ao_noptimize=1 to the URL to see the unoptimised page):
jQuery(function($) { $(document).ready(function(){ $('#page-header a[href^="tel:"]').on('click', function() { gtag('event', 'click_to_call_header', { 'event_category' : 'phone_call', 'event_label' : window.location.pathname }); }); $('#page-content a[href^="tel:"]').on('click', function() { gtag('event', 'click_to_call_content', { 'event_category' : 'phone_call', 'event_label' : window.location.pathname }); }); $(document).on('wpcf7mailsent', function( event ) { gtag('event', 'inquiry', { 'event_category' : 'form_submission', 'event_label' : $("#your-service").val() }); location = 'https://drroof.com.au/thank-you/?subject='+$("#your-service").val(); }); }); });
In Google Analytics 4, I can see the “click_to_call_*” events, which means the code works OK, but when a form is submitted, I only get a “form_submit” event, not an “inquiry” event.
I use very similar code on other sites that integrate with MonsterInsights, and they all record “inquiry” events, but not this site, which uses CAOS and CAOS Pro without integration.
The page I need help with: [log in to see the link]
Viewing 9 replies - 1 through 9 (of 9 total)
Viewing 9 replies - 1 through 9 (of 9 total)
- The topic ‘Missing event’ is closed to new replies.