Set up Google Analytics

Litium has built in support for Google Analytics.

Setup

To setup Google Analytics you need a Google Analytics account.

  1. Go to Settings -> Sites -> Web sites and texts. Select the web site you want to analyze and edit it. Add your Google Analytics account id and click save.

    GoogleAnalyticsAdmin
     
  2. Include the web control in each framework (.master file) that this website uses. Make sure to include the web control above the end form tag:
         <Web:GoogleAnalyticsScript runat="server" LogInAdministrationMode="false" />
      </form>
  3. Only page types that can be in visit statistics will be handled by Google Analytics.

E-commerce

There are some addtional steps if you would like to use Google Analytics for your ECommece website and analyze conversion rate etc.

  1. You need to include a specific web control at the last check out step (Order Receipt) to track that the order is completed. Following web control
    <ECom:GoogleAnalyticsScript runat="server" />
    this controll should be placed inside a web control that implements IOrderCarrierIntroducer. Normally your checkout page last step will either implement the IOrderCarrierIntroducer to show the order carrier, or will use the Ecom:OrderRepeater webcontrol with a databinding to the just completed order. Following is an example of how to make the order receipt page >>.
     
  2. Make sure the .master page of this order receipt page have the Web:GoogleAnalyticsScript web control.
     
  3. Read more about ECommerce and Google Analytics.
Is this page helpful?
Thank you for your feedback!