• Resolved adverti

    (@adverti)


    Hi,

    I installed the plugin and activated the analytics tracking in the options of my contact form, but no events are reported in my Google Analytics dashboard. I use Google Tag Manager to add analytics on my website.

    Have you any idea of the problem please ?
    Thank you !

Viewing 9 replies - 1 through 9 (of 9 total)
  • Plugin Author Kaspars

    (@kasparsd)

    Could you please use the Google Analytics debug mode (possibly using this Chrome extension) to check if the events are being sent?

    Thread Starter adverti

    (@adverti)

    Oh thank you ! We have this error, but I don’t know how to resolve it :

    Running command: ga(“send”, “event”, “Contact Form”, “Sent”, “Formulaire accueil”)
    Command ignored. Unknown target: undefined

    Plugin Author Kaspars

    (@kasparsd)

    Ok, so the GA command for the submission is being triggered:

    ga(“send”, “event”, “Contact Form”, “Sent”, “Formulaire accueil”)

    Are you using the gtag.js version of the analytics script instead of analytics.js in Google Tag Manager (see docs)?

    That should be also captured here https://github.com/kasparsd/contact-form-7-extras/blob/af09b888b55099b47970645bb0bf7c94e878ac92/assets/js/controls.js#L21-L27 through dataLayer.

    Thread Starter adverti

    (@adverti)

    Hi,

    Thank you for you answer. We installed Google Analytics by Google Tag Manager, and also add the “conversion linker” in order to have the function of gtag.js. But the events are not in analytics, however, they are well displayed in the GTM preview ??

    I give you the URL of the website, maybe there is anything you can find : https://www.lamenuitheque.com/

    Thank you very much !

    Thread Starter adverti

    (@adverti)

    Hi,

    Did you find time for my problem please ?? ? Thank you !

    I think we are having the same issue on our site, https://jamiethetutor.com/contact-us/

    We are using Google Site Kit to add our GA tracking on the site. When I check the page source I see the following GA code:

    <script type='text/javascript' src='https://www.googletagmanager.com/gtag/js?id=UA-57762112-1' async></script>
    <script type='text/javascript'>
    window.dataLayer = window.dataLayer || [];function gtag(){dataLayer.push(arguments);}
    gtag('js', new Date());
    gtag('config', 'UA-57762112-1', {"anonymize_ip":true} );
    </script>

    I also see another instance of the tagmanager being called:
    <link rel='dns-prefetch' href='//www.googletagmanager.com' />
    but I don’t think that is causing a problem.

    I verified that the Tracking ID is correct.

    Do you have any suggestions?

    Plugin Author Kaspars

    (@kasparsd)

    @justinjtt This plugin has built-in support for the window.dataLayer type of tracking code so you should be seeing events as expected. It is using the following syntax to send the event:

    dataLayer.push( {
    	eventCategory: 'Contact Form',
    	eventAction: 'EVENT ACTION',
    	eventLabel: 'FORM TITLE'
    } );

    where FORM ACTION and FORM TITLE are dynamically populated.

    Note that we’re using eventCategory, eventAction and eventLabel as variable names that get passed to the Google Tag Manager. Could that be different from what you GA tracking expects?

    Plugin Author Kaspars

    (@kasparsd)

    I’m testing an updated structure for the Global Site Tag (gtag.js) events and will include this change in the next release if it’s successful.

    https://github.com/kasparsd/contact-form-7-extras/pull/39

    Plugin Author Kaspars

    (@kasparsd)

    @adverti, @justinjtt This should now be fixed in version 0.8.0 of the plugin. Could you please confirm?

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘GA events’ is closed to new replies.