Maybe someone can help me here?
I have looked through a dozen threads trying to find out where to paste my Facebook Advertising conversion script.
The directions said to paste the script between the <head> and </head> of the checkout success html page.
After reading wiki and several other help files, I decided the code should be placed in the following file.
includes/modules/my_files/header_php.php (original file pulled from includes/modules/pages/checkout_success/).
So I put my facebook script code at line 115 in the header_php.php file:
// include template specific file name defines
$define_page = zen_get_file_directory(DIR_WS_LANGUAGES . $_SESSION['language'] . '/html_includes/', FILENAME_DEFINE_CHECKOUT_SUCCESS, 'false');
} else {
echo '<html><head>';
LINE 115
// MIKE ADDED THIS FOR FACEBOOK ADVERTISING
<script type="text/javascript">
var fb_param = {};
fb_param.pixel_id = '
MY UNIQUE PIXEL CODE';
fb_param.value = '0.00';
(function(){
var fpw = document.createElement('script');
fpw.async = true;
fpw.src = '//connect.facebook.net/en_US/fp.js';
var ref = document.getElementsByTagName('script')[0];
ref.parentNode.insertBefore(fpw, ref);
})();
</script>
<noscript><img height="1" width="1" alt="" style="display:none" src="https://www.facebook.com/offsite_event.php?id=MY UNIQUE CODE&value=0" /></noscript>
// END MIKE ADDED THIS FACEBOOK ADVERTISING
echo '<script type="text/javascript">
I checked the Facebook Ads admin page after modifying the file to make sure the connection to the page was established...well, it wasn't. So, I pasted my script into the original file location under the pages folder...still didn't work. Next, I processed an order with my website to see what effect that would have...no joy. So I restored the pages folder files back to the original configuration and ran another test order to see if the my_files/header_php.php file would work...still no joy.
:please:I'm I working in the right checkout_success file (header_php.php) to make this work?
Any help would be appreciated.