Created
July 17, 2015 09:04
-
-
Save woogist/112abf14abb9154872ce to your computer and use it in GitHub Desktop.
This file contains hidden or 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
function custom_tracking_code() { | |
if ( is_product() ) { | |
?> Add your Product code here <?php | |
} elseif ( is_cart() ) { | |
?> Add your Cart code here <?php | |
} elseif ( is_order_received_page() ) { | |
?> Add your Thank you code here <?php | |
} | |
} | |
add_action( 'wp_head', 'custom_tracking_code' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment