Tagged: custom tracking code
I need to add a custom tracking code to the body. I tried code block but it adds an actual block.
Hey John,
Whats the code tracking? Perhaps it can be added to the header?
Best regards,
Jordan Shannon
it says body tag of each page… but im going to put it in the global header and see if it works
<script type=”text/javascript” src=”//tag.brandcdn.com/autoscript/annamariacharters_vfdwsk0wnxfhelu9/annamariacharters.js”></script>
i assume use the google analytics section? or should i use a function. i already have google analytics number in there.
Jordan, can you please tell me the best solution?
I did this
function ovacam_add_gtag(){
?>
<script type=”text/javascript” src=”//tag.brandcdn.com/autoscript/annamariacharters_vfdwsk0wnxfhelu9/annamariacharters.js”></script>
<?php
}
add_action(‘wp_head’, ‘ovacam_add_gtag’);
Hi bigideasonline,
Did it work? with the code you posted above it should be placed on the head tag.
If you want to place it in the body then you can replace wp_head with ava_after_body_opening_tag
Hope this helps.
Best regards,
Nikko