Viewing 1 replies (of 1 total)
  • Thread Starter ivanrlio

    (@ivanrlio)

    Nevermind! Got it using jQuery! For those interested, the code is here:

    $(document).ready(function() {
    $(‘.wp-social-login-provider-facebook’).on(‘click’, function(){
    ga(‘send’, ‘event’, ‘Navigation’, ‘WSL-Facebook’);
    });
    $(‘.wp-social-login-provider-google’).on(‘click’, function(){
    ga(‘send’, ‘event’, ‘Navigation’, ‘WSL-Google’);
    });
    $(‘.wp-social-login-provider-twitter’).on(‘click’, function(){
    ga(‘send’, ‘event’, ‘Navigation’, ‘WSL-Twitter’);
    });
    });

Viewing 1 replies (of 1 total)

The topic ‘Add Google Analytics onclick tracker to WSL elements’ is closed to new replies.