How do I add this retargeting pixel to the footer?

I was given this retargeting pixel code and told to add it to the footer of our website kebmo.com.
I am using the Pro theme with the footer builder. I tried adding it to the Custom JS in the footer builder, but that didn’t seem to work. I didn’t find anything in docs or any recent posts with this specific topic.

<script src="https://js.adsrvr.org/up_loader.1.1.0.js" type="text/javascript"></script>
    <script type="text/javascript">
        ttd_dom_ready( function() {
            if (typeof TTDUniversalPixelApi === 'function') {
                var universalPixelApi = new TTDUniversalPixelApi();
                universalPixelApi.init("7yuo8xj", ["tqm3buk"], "https://insight.adsrvr.org/track/up");
            }
        });
    </script>

What is the best way to add this?
Thanks!

Hey @noizepro, my understanding is that would do the trick, however, you should be able to insert a Raw Content element and add your code there. Here’s a forum post that explains some precautions with that approach: Javascript code in Raw Content or Text breaks Cornerstone Visual Editor

You might also try WPCode which should allow you to add it directly to the footer. As an agency, we recommend PixelYourSite. It allows direct tracking code injection into a footer, but we use it for all major tracking pixels (Facebook, Google, TikTok, etc.)

I’d love to see the resolution on adding it directly to Cornerstone if that’s what Themeco advises.

Hey @noizepro,

Thanks for reaching out!

You can follow the recommendation of @RookDigital. We usually advise the client to use a plugin like WPCode to add 3rd party script.

Thank you.

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.