Update: December 30th, 2008
This post was published a long time ago on the Italian version of my blog and later moved here after the English blog opened. Please note that the following post can contain outdated information and (probably) multiple typos.
On September 18, coComment staff posted an update about the code used to integrate comment tracking on your blog. The code sets a few blog variables such as page title or blog name used by the coComment system to ensure that all blog details are correctly detected.
If you use a coComment-supported blogging platform you can skip manual integration, but it's still recommended.
To integrate coComment into your Movable Type blog you should follow these instructions.
Movable Type code
Starting from the new tracking code scheme, the following code is the Movable Type version.
<MTIfCommentsActive>
<script type="text/javascript">
// this ensures coComment gets the correct values
coco =
{
tool : "MovableType",
siteurl : "<$MTBlogURL$>",
sitetitle : "<$MTBlogName encode_html="1"$>",
pageurl : "<$MTEntryPermalink$>",
pagetitle : "<$MTEntryTitle encode_html="1"$>",
author : "<$MTEntryAuthorDisplayName encode_html="1"$>",
formID : "comments_form",
textareaID : "text",
buttonID : "post"
}
</script>
<MTIfCommentsAccepted>
<script id="cocomment-fetchlet" src="http://www.cocomment.com/js/enabler.js" type="text/javascript">
// this activates coComment
</script>
</MTIfCommentsAccepted>
</MTIfCommentsActive>
Edit Individual Entry Archive template
In a default Movable Type 3.2 or 3.3 installation the comment form is included in the Individual Entry Archive Template.
Open your template manager (Main Menu > Select your blog > Templates > Archives > Individual Entry Archive) and add the code above before the </head>.
Edit Comment Preview Template
Open your template manager (Main Menu > Select your blog > Templates > System > Comment Preview Template) and add the tracking code before the </head> tag.
Rebuild your site
Now save, close all templates, and rebuild your blog.
Note: This quick tutorial is valid for a default Movable Type installation. If you changed the default templates it's up to you to find the right templates and add the tracking code.