Created
December 1, 2017 07:26
-
-
Save madeincosmos/5409c11ab409ae223885a9c03b044556 to your computer and use it in GitHub Desktop.
Add Google Optimizer code in WooCommerce Google Analytics
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 addTrackingCodeinGAPlugin ( $requireCode ) { | |
$requireCode .= "ga('require', 'GTM-KZ35PPF');" | |
return $requireCode; | |
} | |
add_filter( 'woocommerce_ga_snippet_require', 'addTrackingCodeinGAPlugin', 10, 1 ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment