AbanteCart Community
Shopping Cart Operations => Support => General Support => Topic started by: flyn on August 20, 2014, 03:18:26 PM
-
Hello. I placed a test order and went thru the entire process and everything was fine. I need to know which page or pages make up this final page which I would call 'thanks'.
Is it the one called Success? Also on this page is the header and footer included? I am asking as I am working with a 3rd party from Google Ad Words and he wants me to paste some code in for better tracking of sales and I dont know where to paste it in.
Thanks
-
Hello. I placed a test order and went thru the entire process and everything was fine. I need to know which page or pages make up this final page which I would call 'thanks'.
Is it the one called Success?
Hi.
Yes 'Success' page. Try this page if you use default HTML5 template public_html/storefront/view/default_html5/template/common/success.tpl
https://github.com/abantecart/abantecart-src/blob/master/public_html/storefront/view/default_html5/template/common/success.tpl
-
Would I paste the tracking code in here or would I need to do that in another page like the footer?
-
Would I paste the tracking code in here or would I need to do that in another page like the footer?
Google recomended to paste code between the body tags (<body></body>) so if you need to paste some google code to 'thank you' page (in AbanteCart called 'Success' page shown after order confirm) use public_html/storefront/view/default_html5/template/common/success.tpl file
-
OK I added the code. I hope it works.
Thanks
-
Similar question.
In the public_html/storefront/view/default_html5/template/common/success.tpl file I have included a Facebook Conversion Tracking pixel as below
<!-- Facebook Conversion Code for Converted Sales -->
<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', '6017277759566', {'value':'0.00','currency':'EUR'}]);
</script>
<noscript><img height="1" width="1" alt="" style="display:none" src="https://www.facebook.com/tr?ev=6017277759566&cd[value]=0.00&cd[currency]=EUR&noscript=1" /></noscript>
I would like to ask for confirmation if this is 'simply' copied and pasted into the file like this:
<h1 class="heading1">
<span class="maintext"><i class="icon-thumbs-up"></i> <?php echo $heading_title; ?></span>
<span class="subtext"></span>
</h1>
<div class="container-fluid">
<section class="mb40">
<p><?php echo $text_message; ?></p>
<a href="<?php echo $continue; ?>" class="btn mr10" title="<?php echo $continue_button->text ?>">
<i class="icon-arrow-right"></i>
<?php echo $continue_button->text ?>
</a>
</section>
<!-- Facebook Conversion Code for FB ad tracker -->
<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', '6013584453966', {'value':'0.00','currency':'EUR'}]);
</script>
<noscript><img height="1" width="1" alt="" style="display:none" src="https://www.facebook.com/tr?ev=6013584453966&cd[value]=0.00&cd[currency]=EUR&noscript=1" /></noscript>
</div>
Or should it be placed elsewhere or after the "</div>" in a section of it's own?
Thanks.
BTW flyn how are you getting on with your insert? Is the code working?
-
Or should it be placed elsewhere or after the "</div>" in a section of it's own?
Hi.
JavaScript code can be placed without div http://www.w3schools.com/js/js_whereto.asp