Announcement

Collapse
No announcement yet.

Tracking individual checkout pages with Google Analytics

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Tracking individual checkout pages with Google Analytics

    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:
    1. Open the SellerDeck Design Library (Design | Library)
    2. Select the 'Layouts' tab
    3. Scroll down to the 'Google Analytics Markup' group and expand it
    4. Double-click the 'Google Analytics Tracking Code' layout
    5. Find the following line of code:


      Code:
      ga('send', 'pageview');
    6. 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>);
    7. 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>);
    8. 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>);
    9. Click 'OK' and 'Close'.
    10. 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
Working...
X