If you are using Google Conversion to track order at the end of page (shopthanks.asp), please take note that when a customer redirected to Paypal site to make the payment and after a success payment, they will be returned to shopthanks_displayonly.asp on your VPCart site.
The Paypal standard has Return URL and Notification URL.
Return URL will make sure your customers are returned back to your VPCart site after a payment is made.
The Return URL used in VPCart is http://www.yourvpcartsite.com/paypalresult.asp
For a success payment, paypalresult.asp will redirect to shopthanks_displayonly.asp to show the order summary details.
While the Notification URL (IPN) will be called back to your site silently and this is running in background so you will never see it.
The Callback URL used in VPCart is http://www.yourvpcartsite.com/paypalcallback.asp
For a success payment, paypalcallback.asp will redirect to shopthanks.asp to show the order summary details, to update orders record with payment status, to send order emails, and to track your Google conversation sales.
In v7.02 and v8.00, you do not need to set the Returl URL and Notification URL in your Paypal merchant account setting because VPCart already include these URLs parameters dynamically in the payment form:
<input name ="return" value ="http://www.yourvpcartsite.com/paypalresult.asp" type ="hidden">
<input name ="notify_url" value ="http://www.yourvpcartsite/paypalcallback.asp" type ="hidden">
You just need to make sure IPN is enabled in your Paypal account so that Paypal can do the call back with the dynamic URL above automatically.
To enable your IPN, please follow these steps :
This page shopthanks_displayonly.asp is just a display and will not run execution of any database routines eg to update the payment status, and will also not running any order emailing, as well for executing the Google Conversion tracking. You also no need to insert your Google Conversion tracking code into this file shopthanks_displayonly.asp.
The reason is, Paypal will later silently run the IPN feature by calling the page http://www.yourvpcartsite.com/paypalcallback.asp to your site to update the payment status into VPCart orders table, to send th order emails, and run any Google analytics/conversation tracking.
So please make sure if you need to insert any Google Conversation tracking, please only insert into shopthanks.asp or shopthanksmerchant.asp and do not need to insert the code into shopthanks_displayonly.asp.
If you insert into both shopthanks.asp and shopthanks_displayonly.asp, it will cause your Google Conversation having double tracking for a transaction.
Please also take note, if you are using VPCart pack v8.1.0.12 and below, you will need to update two files to use latest code. Here are the changes :
1. Open file shop_google_analytic_subs.asp using notepad or text editor.
2. Locate this code (around line 19) :
if instr(lcase(request.ServerVariables("SCRIPT_NAME")), "shopthanks.asp") > 0 then
ShopUrchinECommerce
end if
'800 - 2017.06.27 - Bug Fix: Google Analytics: Not updated if callback process
if instr(lcase(request.ServerVariables("SCRIPT_NAME")), "shopthanks.asp") > 0 or session("onshopthankspage") = "yes" then
ShopUrchinECommerce
session("onshopthankspage") = ""
end if
setsess "googleordertotal",getsess("OrderTotal")
'800 - 2017.06.27 - Bug Fix: Google Analytics: Not updated if callback process
session("onshopthankspage") = "yes"