The titles here match up with the Measure Map documentation; the pages/snippets/layouts you edit will depend on the way you’ve structured your site.
Edit Your Footer Template
Right before the body closing tag at the bottom of your layout, you need to include a single javascript line. It should look something like:
<script type="text/javascript" src="http://tracker.measuremap.com/a/YOUR_ID"></script>
You can find the exact line you’ll need as the first step in the Measure Map guide for other platforms:
Edit Your Post Template
Since this is supposed to appear only when a post is clicked on, you’ll probably want to put this after the <r:content part=“extended”/> tag inserting the extended content— that’s wrapped in a <r:if_content part=“extended”>…</r:if_content>.
<script type="text/javascript"><!--
if(!mmposts){var mmposts=[];}mmposts[mmposts.length]="<r:id/>";
//--></script>
<!-- mmp mmid:<r:id/> mmdate:<r:date format="%Y-%m-%d %H:%M:%S"/> mmurl:<r:escape_html><r:url/></r:escape_html> mmtitle:<r:title/> -->
Edit Your Comments Template
Radiant doesn’t include commenting yet; when it does, I’ll fill this in.
I love Google’s Measure Map. I used it in the Typo incarnation of this site to unobstrusively track statistics, and I’m continuing to use it here.
With Radiant being so new to the blogging scene, I had to re-engineer the tags that are inserted in pages for tracking. This article is intended as a very short guide for people who have a Measure Map account (or will have, since it’s in alpha) and would like to get it working with Radiant— by just copying and pasting.
Warning: Since the Measure Map API may change significantly, this may become completely obsolete— though I’ll try to keep it updated. YMMV. If Measure Map includes Radiant in the list of supported blog platforms by the time you’re looking at this, use their guide instead.