Changeset 453


Ignore:
Timestamp:
Jan 21, 2007, 3:44:17 PM (14 years ago)
Author:
David Sheldon
Message:

Add several calls to GA.

Location:
trunk/npemap.org.uk/static
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/npemap.org.uk/static/find.js

    r374 r453  
    1313    if (where.toUpperCase().match(/^([A-Z]+\d+[A-Z]?)\s*(\d[A-Z][A-Z])?$/)) {
    1414      request = "/cgi/geocoder.fcgi?postcode=" + encodeURIComponent(where) + "&callback=postcodeLoc&format=js";
     15      if (typeof urchinTracker == 'function') urchinTracker('/postcodeSearch');
    1516     
    1617    } else {
    1718      request = 'http://ws.geonames.org/searchJSON?name=' +  encodeURIComponent(where)  + '&callback=getLocation&country=GB&fclass=P&fclass=T&style=SHORT';
     19      if (typeof urchinTracker == 'function') urchinTracker('/nameSearch');
    1820    }
    1921    aObj = new JSONscriptRequest(request);
     
    4446    }
    4547    $('where').value = '';
     48    if (typeof urchinTracker == 'function') urchinTracker('/sucessfulSearch');
    4649  }
    4750  else {
  • trunk/npemap.org.uk/static/tiles/mapTiles.js

    r442 r453  
    110110  Element.show('status');
    111111  $('status').innerHTML = "<p>Submitting postcode "+ $F('postcode1') + " " + $F('postcode2') + "...</p>";
     112  if (typeof urchinTracker == 'function') urchinTracker('/tiles/submitPostcode');
    112113 new Ajax.Request(el.getAttribute("action"), {
    113114           method:"post",
     
    589590           onComplete: updateStatus 
    590591 });
     592  if (typeof urchinTracker == 'function') urchinTracker('/tiles/reportBad');
    591593 hideMarkerWindow();
    592594 YAHOO.util.Event.preventDefault(e);
Note: See TracChangeset for help on using the changeset viewer.