How to Track Page Names in a Community Server Website with WebCEO’s HitLense

Posted on May 14th, 2008 in General | No Comments »

Here is a quick and easy way to track page names in WebCEO’s HitLens analytics application by changing a couple variables in the tracking script. This works perfectly in Community Server 2008!

First let’s take the original code generated by HitLense:

<!–WEBSITECEO:BEGIN:{764EEF2E-BC11-45CF-8627-300CE1BA2219}–>

<!–
Do NOT modify this script to avoid traffic misrepresentation!
Web CEO 4 0300/1
Code initially inserted into: “index.aspx”.
–>

<script type=”text/javascript”><!–
// hitlens v1.2.7
function hitlens_embedded() {
var id = 123456;
var pc = 0;
var PAGENAME = escape(”);
var CONTENTGROUP = escape(”);
var TRANSACTION = escape(”);
var TRANSACTION_ID = 0;
var ORDER = escape(”);
return “id=”+id+”&pc=”+pc+”&p=”+PAGENAME+”&gr=”+CONTENTGROUP+”&tr=”
+TRANSACTION+”&trid=”+TRANSACTION_ID+”&ord=”+ORDER;
}
//–></script>
<script type=”text/javascript” src=”/webceo.js”></script>
<!–WEBSITECEO:END:{764EEF2E-BC11-45CF-8627-300CE1BA2219}–>

Now lets add a quick line of code to the var PAGENAME = variable:

var PAGENAME = document.title;

What this will do is pull the page’s title and post it in HitLense.

The default tracking code HitLense generates also throws in the following comment that needs to be removed completely:

<!–
Do NOT modify this script to avoid traffic misrepresentation!
Web CEO 4 0300/1
Code initially inserted into: “index.aspx”.
–>

Also make sure to leave the var pc = 0; at 0. The var pc is a unique page identifier, if you use specialized tracking (like above) instead of the wizard-driven setup then you’ll definitely need to keep it at 0 or your going to run into some problems.

Your final tracking code should look like this:

<!–WEBSITECEO:BEGIN:{764EEF2E-BC11-45CF-8627-300CE1BA2219}–>
<script type=”text/javascript”><!–
// hitlens v1.2.7
function hitlens_embedded() {
var id = 123456;
var pc = 0;
var PAGENAME = document.title;
var CONTENTGROUP = escape(”);
var TRANSACTION = escape(”);
var TRANSACTION_ID = 0;
var ORDER = escape(”);
return “id=”+id+”&pc=”+pc+”&p=”+PAGENAME+”&gr=”+CONTENTGROUP+”&tr=”
+TRANSACTION+”&trid=”+TRANSACTION_ID+”&ord=”+ORDER;
}
//–></script>
<script type=”text/javascript” src=”/webceo.js”></script>
<!–WEBSITECEO:END:{764EEF2E-BC11-45CF-8627-300CE1BA2219}–>

Good luck!

Community Server 2008 Beta 1 is Now Available

Posted on February 6th, 2008 in Computers, Web | No Comments »

Come and get it! Beta 1 of Community Server 2008 is now available:

* Web Installer: http://get.communityserver.org/download/cs2008b1web
* Windows Installer: http://get.communityserver.org/download/cs2008b1msi
* Upgrade Tool: http://get.communityserver.org/download/cs2008b1up

Below is a brief list of what you’ll find in this Beta:

* Groups. We’ve added support for private and public groups that support their own membership, blog, forum, gallery, and pages. You can now easily create mini-communities for friends or for your team.

* Web Services APIs. Community Server 2008 includes a complete Web Services layer for working with Community Server. This makes it even easier to share data from within Community Server with other applications or tools. The Web Services implementation is a RESTful implementation and we also include a client library to include within applications that need to talk to Community Server.

* Friends. We’ve completely overhauled the friends functionality to make it easier to both manage and add friends. You’ll find the friends behavior much more like FaceBook’s friend functionality.

* Media Gallery. We’ve merged the Photo/File Galleries into a single Media Gallery application. The Media Gallery includes viewers for rendering images, audio, video making it even easier to share content in your community.

* Message Streams. New to Community Server is a message stream application that enables multi-user conversations (formerly private messages), social streams (similar to FaceBook), profile comments, and more.

* Enterprise File Storage. We’ve completely overhauled file storage so all files are in a Centralized File Store (includes both a File System and Amazon S3 provider).

* Widgets. Community Server now support shareable widgets in all sidebars.

* Simplified Permissions. We’ve tried to simplify the rich permissions functionality that Community Server has always been known for. All the previous permissions capabilities still exist, but we’ve added some tools to make it even easier to manage and apply permissions.

* User Experience. We’ve started to introduce some new user experiences in both the Control Panel and other aspects of the site. When Community Server 2008 ships you’ll find a much friendly and beautiful experience for both running and managing your community.

Many, many additional new features, performance improvements, and bug fixes.