SellerDeck Desktop includes code that enables you to create a goal in Google Analytics to track conversions to sales on your web site. The main help provides instructions for setting up such a goal in your Google Analytics account. This allows you to see the dropout rates from your cart and checkout visually as a 'funnel'. However it is also possible to modify the code and the goal setup to show dropout rates from individual checkout pages by making the following changes:
- Open the SellerDeck Design Library (Design | Library)
- Select the 'Layouts' tab
- Scroll down to the 'Google Analytics Markup' group and expand it
- Double-click the 'Google Analytics Tracking Code' layout
- Find the following line of code:
Code:ga('send', 'pageview');
- Replace it with:
Code:ga('send', 'pageview'<actinic:block if="%3cactinic%3avariable%20name%3d%22PageType%22%20%2f%3e%20%3d%3d%20%22Receipt%22" >, '/receipt.html'</actinic:block><actinic:block if="%3cactinic%3avariable%20name%3d%22PageType%22%20%2f%3e%20%3d%3d%20%22Checkout%20Page%200%22">, '/checkout-page-0'</actinic:block><actinic:block if="%3cactinic%3avariable%20name%3d%22PageType%22%20%2f%3e%20%3d%3d%20%22Checkout%20Page%201%22" >, '/checkout-page-1'</actinic:block><actinic:block if="%3cactinic%3avariable%20name%3d%22PageType%22%20%2f%3e%20%3d%3d%20%22Checkout%20Page%202%22" >, '/checkout-page-2'</actinic:block>);
- Find the following line of code:
Code:pageTracker._trackPageview(<actinic:block if="%3cactinic%3avariable%20name%3d%22PageType%22%20%2f%3e%20%3d%3d%20%22Receipt%22">"/receipt.html"</actinic:block>);
- Replace it with:
Code:pageTracker._trackPageview(<actinic:block if="%3cactinic%3avariable%20name%3d%22PageType%22%20%2f%3e%20%3d%3d%20%22Receipt%22" >"/receipt.html"</actinic:block><actinic:block if="%3cactinic%3avariable%20name%3d%22PageType%22%20%2f%3e%20%3d%3d%20%22Checkout%20Page%200%22" >"/checkout-page-0"</actinic:block><actinic:block if="%3cactinic%3avariable%20name%3d%22PageType%22%20%2f%3e%20%3d%3d%20%22Checkout%20Page%201%22" >"/checkout-page-1"</actinic:block><actinic:block if="%3cactinic%3avariable%20name%3d%22PageType%22%20%2f%3e%20%3d%3d%20%22Checkout%20Page%202%22" >"/checkout-page-2"</actinic:block>);
- Click 'OK' and 'Close'.
- Go to the goal tracking setup in Google Analytics and replace the second step:-
(value = '/cgi-bin/os000001.pl')
with the following three steps:
/checkout-page-0
/checkout-page-1
/checkout-page-2