Last active
September 5, 2016 15:28
-
-
Save harishankerr/956d75fe9c44d4751687021039af170f to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php // Use only if required. | |
if ( ! function_exists( 'my_custom_event_function' ) ) { | |
function my_custom_event_function() { | |
wc_google_analytics_pro()->get_integration()->custom_event( 'onBannerClick', array( | |
'hitType' => 'event', | |
'eventCategory' => 'Outbound Link', | |
'eventAction' => 'click', | |
'eventLabel' => 'Shopping-Banner', | |
'eventValue' => null, | |
) ); | |
} | |
add_action( 'wp_head', 'my_custom_event_function' ); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment