Home Forums Free Themes Education Hub Setting up a Facebook Pixel Event Code on every page

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #38122
    manuel@palachuk.com
    Participant

    I’ve set up the Facebook pixel by adding the prescribed code into the header.
    Now I need to ad the Event Codes to pages.
    Is there a place in the them that I can add the script code once and have it show on all pages?
    It looks like this:

    <script>
    fbq(‘track’, ‘ViewContent’, {
    value: 3.50,
    currency: ‘USD’
    });
    </script>

    Thanks

    #38135
    wensolutions
    Keymaster

    Hello @manuelpalachuk-com,

    If you are using child theme than you can directly add the scripts in your child themes function.php by hooking it in “wp_footer”.

    But if you don’t have the child theme activated then use the plugin to insert the js code .

    Refer to below Link for the plugin.

    https://wordpress.org/plugins/custom-css-js/

    Hope this helps.

    Best Regards!!

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