Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
Locked
0

Facebook Conversion Code for Facebook Ads error

Community Beginner ,
Aug 17, 2015 Aug 17, 2015

Hello,

My Facebook Conversion Codes (JAVASCRIPT) for Facebook Ads is breaking up into 2 parts when viewing under "view source" code, but looks fine from the backend of Business Catalyst. This break is causing the script to not function properly.
Our instructions were to paste the code into the <head></head> tags.

This was the code provided to me to install onto the backend:

<script>(function() {

var _fbq = window._fbq || (window._fbq = []);

if (!_fbq.loaded) {

var fbds = document.createElement('script');

fbds.async = true;

fbds.src = '//connect.facebook.net/en_US/fbds.js';

var s = document.getElementsByTagName('script')[0];

s.parentNode.insertBefore(fbds, s);

_fbq.loaded = true;

}

})();

window._fbq = window._fbq || [];

window._fbq.push(['track', '6038042986520', {'value':'0.00','currency':'USD'}]);

</script>

<noscript><img height="1" width="1" alt="" style="display:none" src="https://www.facebook.com/tr?ev=6038042986520&cd[value]=0.00&cd[currency]=USD&noscript=1" /></noscript>

Here's a screenshot of the "view source" code:

ViewSourceCode.JPG

Here's how it looks on the backend in Business Catalyst:

BackendHTML.JPG

336
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines