Rudi Shumpert : Code By Numbers
17Nov/094

Save the referrals!

I ran across an interesting question on the yahoo web analytics group.

Paraphrased: If you have a short easy to share/print/send email like www.mysite.com/cool and that redirects to the user to a long ungangly url like www.mysite.com/much/longer/url/to/get/customer/to/admit/that/ie6/is/thedevil.htm. What happens to the referrer data/info?

Short answer? Most likely it is lost and your redirect will strip out that precious referrer data. But, it does not have to depending on how you have your redirects set up.

For this example lets assume that you use a common redirect folder called "redir" . So when you print or create a short easy to share email for your new campaign you want to sent out or shared.

www.site.com/redir/ie6isthedevil

And when a user types this in, or clicks on the link from an email they get taken to

www.site.com/its/true/ie6/is/the/devil.ftw

However, as the question above highlights, the referrer data from page to the short url is lost. Fortunately, this fix to this is easy. On the page that contains the actual redirect code, place this JavaScript in place.

<script language="javascript">
document.url = document.referrer;
</script>
.
.....
(redirect code in language of choice)

It merely copies the referrer data into the DOM URL object on the redirect page to pass it along to the long final url. Then all of your web analytic tracking code will function as expected. (I tested this in Omniture & Google Analytics)

That's it!

-Rudi

11Nov/090

Form Abandonment

NOTE: The code samples below are merely a proof of concept. This solution is not actively in place in any production environmetn that I am involved with.

I was talking to a fellow ColdFusion developer about a web site he was working on, specifically a registration form, and what were some of the best practices with form length and such that would facilitate users filling out the form and submitting.   This is a common issue with web sites that will not be going away anytime soon.  In fact the questions he had are the same ones I have seen in dozens of blog posts trying to figure this out.

  • How many questions to put on a form?
  • What type of questions work the best?
  • What question(s) scared off a user and kept them from completing the form?

I know that there are a few "Form Abandonment" plug-ins out there for Omniture and the likes, but from what I've seen the data you get is somewhat limited.   If your form has 20 elements on it and the plug-in only lets you know what the last element with focus was, you have to really think about the validity of that data.  How do you know for sure that the user filled out the elements in order?  Did the developer of the form set the tab index correctly?  Did the user glance at the form, click somewhere near the bottom and then bail?  Did the user fill out half the form the shut down the browser?

16Oct/094

Pathing: Internal Search Analysis. (not just for page views)

When I was at the Omniture training class a few weeks back, the instructor mentioned that an advantage of storing the internal search terms in a s.prop was that you could get pathing enabled on the s.prop and you would then be able to see not only what your visitors were searching on, but how they refined their search.

Note: After you choose which s.prop you are going to use to store/capture the data in, you will need to contact Omniture Client Care to get pathing enabled for that s.prop

pathing

Where does your path take you?

6Oct/090

Bing! You have inflated traffic numbers!

Our #1 Fan!  The past couple of months we noticed a very odd trend the the geo-location / city data that was being saved in Omniture.  The great metropolis of Redmond, Washington was now the number 1 city of origin of our web visitors.  And this was not a small lead, they were the number 1 city by more than double the traffic from the number 2 spot.

Trying to find an explanation for all this, I checked the twitter-verse and did a little digging online, but did not have a chance to really dive into the issue until yesterday.

19Sep/090

Omniture & ColdFusion: Why you should care.

So you use ColdFusion and by now you have heard the news that Omniture is going to be purchased by Adobe. So what?  Why should you care?

omni-cf

Get Adobe Flash playerPlugin by wpburn.com wordpress themes