All Straightsell websites do not have separate pages for each page of the checkout process, they only have one page called “payments/pages/purchase_pages.php” – a bit of an issue when trying to track page loads…
As a result, we have implemented “virtual pageviews” for the checkout process, which is commonly used for when a customer wants to do Conversion Tracking in Google Analytics.
The virtual pageviews code tells Google Analytics or any other tracking what page the checkout process is up to; the names of each virtual pageview are:
ga('send', 'pageview', 'payments/pages/contact.php');
ga('send', 'pageview', 'payments/pages/freight.php');
ga('send', 'pageview', 'payments/pages/confirm.php'); OR ga('send', 'pageview', 'payments/pages/confirm_creditcard.php');
ga('send', 'pageview', 'payments/pages/complete.php'); OR ga('send', 'pageview', 'payments/pages/complete_creditcard.php');
So:
/payments/pages/complete.php – Is the final URL for completed purchases using other payment methods (Direct Deposit, Credit Card by Phone, On Account and PayPal).
/payments/pages/complete_creditcard.php – The final URL for completed purchases using credit card only.
NOTE: “pageviews” are currently setup on your website.