Forum Moderators: DixonJones
1. The visitor submits their transaction to your server.
2. Your server receives the transaction data and processes the transaction. This may include a number of steps at the server level, such as sending a confirmation email, checking a credit card number, etc.
3. After processing the transaction the server prepares to send the receipt page back to the visitor. While preparing the receipt page your server must extract some the transaction data and insert it into the Google Analytics JavaScript. This is the code that you must create.
4. The receipt page is sent to the visitor’s browser.
5. While the receipt page renders in the visitor’s browser the e-commerce data is sent to Google Analytics via special GA JavaScript.
6. Here’s a basic diagram of the process. Again, the biggest challenge during implementation is adding code to your web server that inserts the transaction data, in the appropriate format, into the receipt page. I’ll cover the setup in part 2 of this series.
I have the fun job of cleaning up after another here - and we see what may be a substantial gap between what GA reports and what the shopping cart reports.
plus GA seems to report transactions differently depending on how you set the parameters.