
Tracking of Paypal
How the pixel-code is integrated into PayPal is explained in the following.
PayPal offers various options with which you can use their pay service. Brief descriptions can be found here on how these can be set up so that milestone and e-commerce tracking can be used. To use milestone and e-commerce tracking in conjunction with 'PayPal', you can proceed as described in 'Integrating the pixel-code', 'Configuring campaign and milestone tracking' and 'Configuring e-commerce/shopping cart tracking'. Care should be taken, however, that correct content is defined for the variables in the pixel-code on the pages that open automatically after aborting or successfully carrying out payment. This would be possible as follows with e-commerce tracking:
The 'wm_sales' and/or 'wm_basket' parameters have to be configured correctly (see Configuring e-commerce/shopping cart tracking). One option would be to transfer the content of the page that is displayed if payment has been completed successfully (e.g. in the GET list of the URL).
If campaign and milestone tracking is to be used, e.g. to track whether the order has been completed successfully or whether the user has aborted it during the payment transaction via PayPal, the 'wm_milestone' parameter has to be configured correctly (see Configuring campaign and milestone tracking). It would also be possible to transfer the content of this parameter via the GET list in the URL for the pages that are displayed for a successfully completed or aborted payment transaction.
In the following there is a brief description of the individual payment options offered by PayPal, and where to configure pages that open when the payment transaction has been completed successfully or cancelled.
Express Checkout
If Express Checkout is used as a payment method, the 'ReturnURL' and 'CancelURL' parameters of the SetExpressCheckout method (method of the PayPal-API) have to be configured correctly. The 'ReturnURL' parameter contains the URL of the page that is to be displayed if the payment transaction has been completed successfully. The 'CancelURL' parameter contains the URL of the page that is to be displayed if the payment transaction has been cancelled.
These parameters are transferred using the 'SetExpressCheckout' method and are also defined there.
Detailed information on how to configure this payment method can be found on the following page of PayPal:
www.paypal.de/expresskaufabwicklung
Solution A: Existing shopping cart
Using this method, either the complete value of the order (excluding individual items) or each individual item is transferred to PayPal. Regardless of which method is used, the 'return' and 'cancel_return' parameters have to be set to ensure tracking functions correctly. The 'return' variable specifies the page to which the user is directed after a correct payment. The 'cancel_return' variable specifies the page to which the user is directed if payment has not been carried out correctly.
Detailed information on how to configure this payment method can be found on the following page of PayPal:
https://www.paypal.com/cgi-bin/webscr?cmd=xpt/cps/merchant/
SellerHubShopSolutionsA-outside
Solution B: No shopping cart available (PayPal shopping cart)
If the items are paid for via the PayPal shopping cart, the following settings have to be made when configuring the shopping cart.
Clicking 'Weitere Optionen hinzufügen' [Add further options] brings up further settings, also for 'Geben Sie eine Folgeseite an' [Specify a following page].
Here you can specify the page to which the user is directed if payment is completed successfully or aborted. Under 'Erfolgreiche Zahlungs-URL' [Successful payment URL] you have to specify the page to which the user is directed if payment is completed successfully. Under 'Zahlungsstornierungs-URL' [Payment cancellation URL], you specify the page to which the user is led if the payment transaction has been aborted.
Detailed information on how to configure this payment method can be found on the following page of PayPal:
https://www.paypal.com/cgi-bin/webscr?cmd=xpt/cps/merchant/
SellerHubShopSolutionsB-outside
Solution C: Single item sale/donations
For single item sales or donations (and hence the corresponding buttons in PayPal), the following settings have to be made when creating these buttons.
Clicking 'Weitere Optionen hinzufügen' [Add further options] brings up further settings, also for 'Geben Sie eine Folgeseite an' [Specify a following page].
Here you can specify the page to which the user is directed if payment is completed successfully or aborted. Under ”Erfolgreiche Zahlungs-URL' [Successful payment URL] you have to specify the page to which the user is directed if payment is completed successfully. Under 'Zahlungsstornierungs-URL' [Payment cancellation URL], you specify the page to which the user is led if the payment transaction has been aborted.
Detailed information on how to configure this payment method can be found on the following page of PayPal:
https://www.paypal.com/cgi-bin/webscr?cmd=xpt/cps/merchant/
SellerHubShopSolutionsC-outside
You will find a list of the payment options offered by PayPal here:
https://www.paypal.com/de/cgi-bin/webscr?cmd=_merchant-outside
| Example: |
|---|
| An online shop gives you the option to pay for items with PayPal. A milestone is set on the shopping cart page. This milestone indicates that the user is on the shopping cart page. The user selects PayPal as the payment method (e.g. Express Checkout). The user is directed to PayPal, where he makes or cancels the payment. After payment is completed successfully or aborted, the user is directed to the pages that were previously specified (in the case of Express Checkout, in the ReturnURL and CancelURL parameters). These pages in turn contain milestones and/or the sales/basket parameters that designate a successful payment or cancellation or, in the event of sales/basket, give the content/total of the shopping cart. In the statistics you would now be able to see how many users have successfully made payment from the shopping cart, how many have cancelled during PayPal and what amount/items were in the shopping cart. |
