Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #902277

    Hi,
    We have been asked to insert the Bing tracking code as below by a customer.
    Bing Ads UET tag tracking code. You need to add it to your entire website in the header or body sections. If your website has a master page, then you can add it once there and it is included in all pages.
    We are using the Enfold Child Theme and to be honest, we are unsure where to add the code? In addition, we are using Google Analytics. Will there be any conflict?
    Sorry if the above appears to be stupid questions, but we all have to learn :)

    Regards
    Neil

    #902358

    Hey Neil,

    You can insert the code into the header.php or footer.php. This will ensure that it picks up across the whole site. Keep in mind you would want to use a child theme so the php file is not overwritten on updates.

    Best regards,
    Jordan Shannon

    #902760

    Hey Jordan,

    Thank you for your reply.

    We are running the Enfold Child theme but we only see style.css and functions.php in the child theme editor section.

    Do we edit the header.php file in the main Enfold section? I do not think we do?

    Although there are many references to ‘how to install the Enfold Child Theme’ we cannot find any information as to how to actually make use of it :)

    Regards
    Neil

    #902767

    Hi,

    Try adding the code in child / functions.php – it should work

    function add_custom_script(){
    ?>
    
    PASTE YOUR CODE HERE 
    
    <?php
    }
    add_action('wp_footer', 'add_custom_script');

    Alternatively, copy footer.php or header.php to child theme folder and paste the code.

    Regards Pete

    • This reply was modified 6 years, 9 months ago by 2funky.
    #902776

    Hey 2funky,

    Thank you for the input on this.

    Best regards,
    Jordan Shannon

    #902904

    Hi 2funky,

    We had to edit the header.php and copy to the Enfold Folder as we kept seeing this message when trying to edit the functions.php file within wordpress – is this a hosting issue?

    Unable to communicate back with site to check for fatal errors, so the PHP change was reverted. You will need to upload your PHP file change by some other means, such as by using SFTP.

    Thank you for your help with this..

    Regards
    Neil

    #902955

    Hi,

    Please refer to the following article on dealing with that error.

    Keep in mind you can in fact update via FTP.

    Best regards,
    Jordan Shannon

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