Hi, what’s the best way to install tags like the conversion tracking tag? I used a code block in the layout editor but it doesn’t implement it in the right place.
Hi phillipikoo,
I’m not familiar with that, is that javascript? Please post the code here so that we can have a closer look.
Regards,
Rikard
Hi. Yes it is. The code is included below.
And here are the instructions:
Install your tag
Copy the tag in the box below and paste it between the <body></body> tags of the page you’d like to track. You can then use Google Tag Assistant plugin on Chrome to make sure your tag is correctly placed.
However, it looks like the code isn’t being placed between the body tags
Hi,
Please try adding this to the bottom of your functions.php file under Appearance–>Editor:
function enfold_add_tracking_code() { ?>
<script type=”text/javascript”>
/* <![CDATA[ */
var google_conversion_id = 92386726;
var google_conversion_language = “en”;
var google_conversion_format = “3”;
var google_conversion_color = “ffffff”;
var google_conversion_label = “AJexCI2u5WQp3EuAM”;
var google_remarketing_only = false;
/* ]]> */
</script>
<script type=”text/javascript” src=”//www.googleadservices.com/pagead/conversion.js”>
</script>
<noscript>
<div style=”display:inline;”>
</div>
</noscript>
<?php }
add_action('ava_after_main_container', 'enfold_add_tracking_code');
If you’re not using a child theme please do so before adding this: http://kriesi.at/documentation/enfold/portfolio-item/create-a-child-theme/
Best regards,
Rikard