• Can anyone help me?
    I was asked to add google analytics to a clients website. My client is using this plugin. They asked me to add

    onClick=”ga(‘send’, ‘event’, ‘Newsletter’, ‘SignUp’, ‘company_name_here’);”

    I found the es-register.php in the classes folder and add a funtion and called it on the onlick.

    <div class=”es_button”>
    <input class=”es_textbox_button” name=”es_txt_button” id=”es_txt_button” onClick=”return es_submit_page(‘<?php echo $url; ?>’), SpecialClickFunction() ” value=”<?php _e(‘Subscribe’, ES_TDOMAIN); ?>” type=”button”>
    </div>

    // google tracking
    function SpecialClickFunction(){
    ga(‘send’, ‘event’, ‘Newsletter’, ‘SignUp’, ‘company_name_here’);
    return es_submit_page(‘<?php echo $url; ?>’);
    }

    https://www.ads-software.com/plugins/email-subscribers/

  • The topic ‘Google Tracking Help’ is closed to new replies.