Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #1289745

    I need to add a custom tracking code to the body. I tried code block but it adds an actual block.

    #1289751

    Hey John,

    Whats the code tracking? Perhaps it can be added to the header?

    Best regards,
    Jordan Shannon

    #1289945

    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.

    #1290231

    Jordan, can you please tell me the best solution?

    #1290235

    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’);

    #1290269

    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

Viewing 6 posts - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.