Pier and Google

Google webmaster tools allows one to measure the effectiveness of a website. To load it, first install the XML parser:

Metacello new
	baseline: 'XMLParser';
	repository: 'github://pharo-contributions/XML-XMLParser/src';
	load.

In Iceberg select Pier3 and right-click to get the packages option. Search for Google at the bottom and select and load it.

Next add a Google Analytics for tracking:

  1. Create your account on https://google.com/analytics, find the Tracking Id under the admin page, it generally has the format UA-number-1.
  2. Under http://localhost:8080/pier/template/footer, login if so the edit option is available. In the editor add the text:

    *../Google Analytics|embedded=true*

    A picture:

    Powered by Seaside, add Google
    Click on the red link to create it, select PRComponent for the type, PRGoogleAnalyticsWidget (under Pier Widgets) for the component class. The Google Analytics will look like a blank page, but if one clicks edit the following opens:
    Google Analytics bold, checked Views and Anonymousmous Users
    Enter the uacct.
  3. Check in your site in https://analytics.google.com/analytics/web