Ecommerce software home
Shopping Cart Software Forum for Ecommerce Templates
 
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

Find us on Facebook Follow us on Twitter View our YouTube channel
Search our site
 All Forums
 Technical
 PHP (Unix / Linux / Apache) versions
 Getting sales conversion info from Paypoint
Author « Topic »  

laleirina
Advanced Member

United Kingdom
167 Posts

Pre-sales questions only
(More Details...)

Posted - 09/17/2018 :  03:54:17  
Hi,

We are trying to send sales conversion information to Google Adwords and Google Analytics.

Currently, I have this code in the wpconfirm.php page.


<!-- Event snippet for Transactions CW conversion page -->
<script>
gtag('event', 'conversion', {
'send_to': 'AW-1035870097/OZ7HCNKq7IcBEJG_-O0D',
'value': 1.0,
'currency': 'GBP',
'transaction_id': ''
});
</script>
</head>


It doesn't work. I checked this 'https://www.ecommercetemplates.com/phphelp/ecommplus/paypoint.asp' because paypoint.net is our credit card payment provider.

I can't find any relevant information about how to send sales info on to Google. Help!!

Thanks.


Phil
ECT Moderator

United Kingdom
7625 Posts

Posted - 09/17/2018 :  05:35:26  
Hi,
Take a look at this post here, it should help you - https://www.ecommercetemplates.com/support/topic.asp?TOPIC_ID=108588&whichpage=2

quote:
Currently, I have this code in the wpconfirm.php page.

I would remove that, it would need to be added on the thanks.php page



* Database Migrations and Conversions*
* ASP to PHP Cart Conversions*

*Contact Us*
*Buy The PHP Capture Card Plugin*
*Rate Our Services/View Our Feedback*

Edited by - Phil on 09/17/2018 12:47:39

laleirina
Advanced Member

United Kingdom
167 Posts

Pre-sales questions only
(More Details...)

Posted - 09/19/2018 :  05:06:39  
Thanks very much. I've put

<script>
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');
ga('create', 'UA-8489843-4', 'auto');
ga('send', 'pageview');
ga('require','ecommerce','ecommerce.js');
<?php print @$googleanalyticstrackorderinfo ?>
</script>


into the thanks.php page before the closing body tag and


$googleanalyticsinfo=TRUE;
$usegoogleasync=TRUE;
$usegoogleuniversal=TRUE;

into includes.php

Hopefully that will work. Thank you for you help, Phil.

1234
Ecommerce Template Expert

USA
972 Posts

Pre-sales questions only
(More Details...)

Posted - 11/29/2018 :  06:24:32  
Google suggests placing the code within <head> </head> on the top of each page. However ECT suggests placing the code before </body>


Where should I place this code...and does it matter?

Phil
ECT Moderator

United Kingdom
7625 Posts

Posted - 11/29/2018 :  06:32:28  
I would place it just before the </body> so it doesn't effect page loading



* Database Migrations and Conversions*
* ASP to PHP Cart Conversions*

*Contact Us*
*Buy The PHP Capture Card Plugin*
*Rate Our Services/View Our Feedback*
  « Topic »  
Jump To:
Shopping Cart Software Forum for Ecommerce Templates © 2002-2022 ecommercetemplates.com
This page was generated in 0.02 seconds. Snitz Forums 2000