Login   |   20 May 2019 
Support Center » Knowledgebase » 5-0012-EN-How to Setup Google eCommerce Tracking in ShopFactory?
 5-0012-EN-How to Setup Google eCommerce Tracking in ShopFactory?

Google Analytics Tracking Code: Tracking means recording the usage of a site by visitors. Part of the usage is the sales conversions information;  the eCommerce tracking code that sends the sales conversions information must be added on the "Thank you" page of your shop.
(Note: If you are accepting PayPal payments, make sure you turn ON the "Auto Return" option in your PayPal account for the orders to be tracked correctly. Refer to the information provided below this article.)

1. Download and save the text file from this link:

Download the Google tracking code below:



  • Click on the link and save the zip file to a directory or local folder. 
  • Once download is completed, open the directory/folder where you saved the file. 
  • Right click on the "googletracking.zip" file and select "Extract Here...".  A text file (googletracking.txt) will appear; double-click to open the file in your default text editor, i.e. Notepad.

2. Copy the entire code (as it is; make sure there are no line breaks in the code provided) and paste it in your Thank You page.

Refer to this KB article on how to Add custom HTML code in ShopFactory:

How do I add a custom HTML code to a page or to my entire website?



3. Important: Replace the XXXXXXX {(in the line: getTracker("UA-XXXXXXX-1")} with the correct ID (from your own Google analytics account) Make sure you enter your correct Google ID here to ensure this works.

4. The code should be at the top location (set location/position to 1).

5. You may need to enable "Rebuild All" from Settings menu -> and then Preview in External browser.

(Untick Rebuild All before publishing.)

6. Publish your shop again so that the changes are uploaded online.


NOTE: Accepting PayPal payments?

To ensure your orders paid in PayPal are correctly tracked by Google - setup up the Auto Return URL so buyers are immediately redirected back to your shop.

4-0089-EN- PayPal payments: Setting up Auto Return URL so buyers are immediately redirected back to shop


With Auto Return for Website Payments, your buyers are redirected back to your site immediately after clicking the Pay button on the Payment Confirmation page.

Refer to this PayPal article for more information,



Article Details
Article ID: 424
Created On: 01 Feb 2011 12:00 AM

 This answer was helpful  This answer was not helpful

 Article Options
Home | Knowledgebase | Downloads

Help Desk Software by Kayako SupportSuite v3.70.02