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

    Hi there,

    I have the Facebook Pixel installed site wide throughout my enfold theme.

    But now I need to install the specific event code for leads on a few pages.

    How do I do this?

    The code looks like this:

    <script>
    fbq(‘track’, ‘Lead’);
    </script>

    I’m after the simplest solution here please. I’d rather not mess around with core files for the theme as that is way over my head.

    Thanks!
    Dan

    #1070026

    Hey Dan,

    You can follow the instructions here: https://kriesi.at/documentation/enfold/add-custom-js-or-php-script/#add-a-script-to-head-section
    Hope it helps.

    Best regards,
    Nikko

    #1197887

    I am wondering the same thing I have the Facebook Pixel Base code added but need to add this event code to a specific page.

    <script>
    fbq(‘track’, ‘CompleteRegistration’, {
    value: 1,
    currency: ‘1’,
    });
    </script>

    And they also provide this second bit of code. Not sure where it goes?
    <!– End Facebook Pixel Code –>
    </head>
    <body>
    <script>insert_event_code_here;<script>

    • This reply was modified 4 years, 8 months ago by eugenebare.
    #1197966

    Hi eugenebare,

    Which page specifically do you need to add it to? We need to know the ID of the page in question.

    Best regards,
    Rikard

    #1198127

    My objective is to use Pixel to track how many people complete my gravity form to get a generator estimate.

    It starts on this page https://tpcgenerators.com/gen-portal/
    and after its completed, it redirects to this page: tpcgenerators.com/we-will-be-in-touch-soon/

    How is it best to place the event pixel?
    I already placed the pixel base code in the child them of enfold I am using.

    #1198238

    Hi eugenebare,

    Thanks for the update. So the code needs to go on both pages? Also, what exactly did you add in your child theme?

    Best regards,
    Rikard

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