Show navigation | Frontpage | Contact us | Sitemap

Activating Google Analytics on Composite 3.8

Composite 3.8 come with two features related to Google Analytics:

  • Easy Google Analytics Script embedding.
    Front-end developers can quickly enable the JavaScript required by the Google Analytics service using an existing XSLT definition.
  • Single sign on.
    Once users have logged in to the Composite administrative module, they can easily launch Google Analytics via a link on the welcome screen.

The two features can be used in combination or alone.

Easy Google Analytics Script embedding

To embed the JavaScript required by the Google Analytics service you must first create a site profile on Google Analytics. Part of the site profile is an account number. You should have this account number ready when executing the steps below.

  1. Open the Datamap fan, Data Query XSL Definitions, Data Query XSL Render and edit $$GoogleAnalyticsScript;
  2. In the XSLT, on line 14, locate the string XXXXX-X and replace it with the Account Number matching the site profile you have created for this site.
  3. Save the XSLT.
  4. On all xhtml templates, embed the Identifier $$GoogleAnalyticsScript; in the section of the XHTML.

Single sing on

To enable the Google Analytics single sign on feature you must have access to the Composite sites configuration file located in the C:\CompositeCms\Configuration folder. If your Composite site is hosted by an ISP you should contact the ISP and ask them to execute the change described below. In that case you should provide your ISP with the e-mail address and password to your Google Analytics account.

  1. Edit the file named C:\CompositeCms\Configuration\<SiteName>.config
  2. Locate the element named "googleanalyticsemail" and write the e-mail address associated with your Google Analytics Account.
  3. Locate the element named "googleanalyticspassword" and write the e-password associated with your Google Analytics Account.
  4. Save the file.

Your welcome screen in the Composite administrative module should now display a link to Google Analytics.

Help on Google Analytics

For information on how to set up and use the Google Analytics service, please see this Google Analytics support page.

My modules


© 2008 Composite A/S, Danmark
Tlf: +45 39 15 76 00 | info@composite.net
Composite A/S er Microsoft Certified Partner
Composite CMS overholder standarden for valid CSS
Composite CMS overholder standarden for valid XHTML 1.0
Printet fra http://www.composite.net/composite-1697.htm
Findes på denne sti: Composite Developer | 3.x technologies | Configuration | Activating Google Analytics