Making Your bit.ly URLs Unique

August 11th, 2010 § 0

Have you ever created a bit.ly URL only to discover that it’s already been used and there are already analytics tied to it?  Here’s a simple way to make your URL is unique and only clicks to your bit.ly link will be tracked.  Add a parameter to the end of the URL, as in…

http://webanalyticsconsultant.net?unique

That’s it!

RegEx Testing Tool

June 24th, 2010 § 0

A great RegEx testing tool was shared with me today – RegEx Coach.  It is a great way to test your regular expressions code to ensure that it works as expected.  You simply place your test string in the bottom section and your regular expression in the top section.  RegEx Coach will highlight the portion of the string that matches the regular expression you have provided.

This is great for use with various web analytics tool implementation such as Unica NetInsight in which regular expressions are used to define parameters in many cases.

Clean Up One Line JavaScript

June 23rd, 2010 § 0

I found a great utility for cleaning up consolidated JavaScript files.  You know, the ones you can’t read because everything is on one line?  Credit goes to jcay.com.  Here is the software – jscisetup.exe.

Make this…

<script language="JavaScript">var i=0,s="",k=0;function foo()
{for(j=0;j<10;j++){for(i=0;i<10;i++){s="string1";
k=Math.floor(Math.random()*10);
for(i=20;i>9;i--){s="string2";k=i;}}}</script>

Look like this…

<script language="JavaScript">
var i = 0, s = "", k = 0;
function foo()
{
    for(j = 0; j < 10; j++)
    {
        for(i = 0; i < 10; i++)
        {
            s = "string1";
            k = Math.floor( Math.random()*10 );
        }
        for(i = 20; i > 9; i--)
        {
            s = "string2";
            k = i;
        }
    }
}
</script>