Integrating into StoreFoundation Template

Once you have configured your Google Analytics account, you can integrate tracking into your StoreFoundation template.

Procedure

  1. Add the tracking code as described in Adding the Tracking Code to your Pages insert the tracking code into the layout.xhtml (Path: ext-commerce/storefoundation/web/webroot/templates/layout.xhtml).
  2. Enable e-commerce transaction tracking as described in Enabling e-Commerce Transaction Tracking. You have to insert the JavaScript into the thankYou.xhtml (Path: ext-commerce/storefoundation/web/webroot/pages/thankYou.xhtml).
  3. Define conversion goals and tunnel:
    1. Define a goal:
    Option Description
    Active Goal on
    Match Type Regular Expression Match
    Match Type Value /thankYou.jsf
    Goal Name Order Conversion
    Case Sensitive false
    Goal value Change the primary domain 0
    1. Define a funnel:
    Option Description
    URL /summary.jsf
    Name Order Summary
    Required step true