No,
You have to use an action hook to insert the code you need, for example if you have:
<script>
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');
ga('create', 'UA-XXYY3690-1', 'auto', {'siteSpeedSampleRate' : 50});
ga('require', 'displayfeatures');
ga('set', 'dimension4', 'guest');
ga('send', 'pageview', {'anonymizeIp': true});
</script>
and you need to add
var clientId = '';
ga(function (tracker) {
clientId = tracker.get('clientId');
zxGPPana('zpar4',clientId);
});
for the code to look like:
<script>
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');
ga('create', 'UA-XXYY3690-1', 'auto', {'siteSpeedSampleRate' : 50});
ga('require', 'displayfeatures');
ga('set', 'dimension4', 'guest');
var clientId = '';
ga(function (tracker) {
clientId = tracker.get('clientId');
zxGPPana('zpar4',clientId);
});
ga('send', 'pageview', {'anonymizeIp': true});
</script>
you need to add this lines in your theme’s functions.php file:
add_action('ga_dash_addtrackingcode', 'ga_ecommerce_addon');
function ga_ecommerce_addon(){
echo "var clientId = '';
ga(function (tracker) {
clientId = tracker.get('clientId');
zxGPPana('zpar4',clientId);
});";
}