Integrating into StoreFoundation Template
Once you have configured your Google Analytics account, you can integrate tracking into your StoreFoundation template.
Procedure
- 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).
- 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).
- Define conversion goals and tunnel:
- 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 - Define a funnel:
Option Description URL /summary.jsf Name Order Summary Required step true