Omniture Tip’s and Tricks ~ The Custom Object Parameter

Today I wanted to discuss one of the optional parameters in the s.t and s.tl function calls within Omniture: The Custom Object Parameter.

Business Requirement

There are a lot of times with Omniture implementations when you need to send a beacon call (be it a full page view or just a custom link call) but don’t want to overwrite the values that are already in the ‘s’ object. For example, let’s say that you have a page that has several features on it where you need to send a custom link call for each feature when it is used. For each one of these features, you need to send the page name on a prop for a reference to the page that the feature was used on. Now let’s assume that there is also a feature on that page that needs to send a full page view, such as a help document that is displayed in a modal popup div.

The Problem

The problem in the above example is that anytime the help document loads, you will be changing the s.pageName variable, thus making it difficult to set the pageName into a traffic variable any time one of the features on the page is used. Let me demonstrate -

/* Page Name set on page load */
s.pageName="Home Page";

/* Feature on page used */
s.linkTrackVars('prop1');
s.prop1=s.pageName;
s.tl(this,'o','Feature Used');     //Page Name 'Home Page' successfully sent in Custom link call

/* Help popup div displayed */
s.pageName='Help Popup';
s.t();

/*Another Feature on page used */
s.linkTrackVars('prop1');
s.prop1=s.pageName;
s.tl(this,'o','Feature Used');     //Page Name 'Home Page' is no longer available and 'Help Popup' is sent instead 

Solution

There are a couple of different ways to solve this problem. One of these solutions is to store the page name in a JavaScript variable so that you can reference it for later. However, this means you are storing the value twice on the page (at least until the visitor uses the help document).

Another solution is one that Omniture has already provided for you: the custom object parameter. You can create an object of any name with the same properties as the s object and pass it in to the s.tl and s.t functions without actually overwriting the values in the s object. This object can be sent as the first and only parameter on the s.t function and the optional fourth parameter on the s.tl function. Let’s look at an example.

/* Option 1: Create your own defined object and pass it into the function call */
// Custom link call for a used Feature
var customObject;
customObject.linkTrackVars = 'prop1';
customObject.prop1 = s.pageName;     //Notice that the property on the object has the same name: 'prop1'
s.tl(this,'o','Feature Used',customObject);     //Notice the use of the optional Fourth parameter for the custom object

// Page View call for the Help Popup
var customObject;
customObject.pageName = 'Help Popup';
s.t(customObject);      // Notice the use of the optional parameter for the custom object

/* Option 2: Create an anonymous object defined in the function call (Preferred method) */
// Custom link call for a used feature
s.tl(this,'o','Feature Used',{
     linkTrackVars:'prop1',
     prop1:s.pageName
});

// Page View call for the Help Popup
s.t({
     pageName:'Help Popup'
});

That’s it!! Using this simple little trick can save you a lot of time and headache in your implementation endeavors. I have actually made this a standard implementation technique for all of my custom link calls in order to allow for any flexibility that may be needed in the future.

Any thoughts or comments? Please let me know below. Thanks for reading.
If you have an Omniture tip or trick that you would like to share please let us know! We’ll feature you in our next Omniture Tips and Tricks post!

Rogers Wins Again! #NerdShirtFriday

Our own Kevin Rogers wins Nerd Shirt Friday again this week. That’s two wins for Kevin who describes himself as, “I’m Just Awesome!” Kevin faced some serious opponents with some seriously nerdy shirts this week. Thanks to everyone who participated and we look forward to seeing the nerd shirts this Friday.

Feel free to visit the Keystone Solutions Facebook page. Get involved in a serious digital debate or join in on the Friday fun.

S.C.A.D Collaboration and The Four Pillars of Digital Success

Here at Keystone Solutions we have an idea that we would like to share with you the community of people that make our digital lives tick. S.C.A.D. represents what we believe to be The Four Pillars of Digital Success. The genesis for the thought really is that so often we find that the people that have extraordinary skills on one of the four pillars often don’t talk enough when in reality all these pieces need to gel like a finely tuned sportscar. Building a marketing campiagn? You need all these pieces. Building a new website? You’ll need all these pieces. So our idea is to help break down the usual silo’s and bring these professionals together online and off. While collaboration certainly is not a new idea we believe S.C.A.D. has the potential to be truly revolutionary for the entire industry.

Don’t be a ‘Head Nodder’ Anymore

Have you ever been to a head nodder’s conference? I know I have. A head nodder’s conference is a bit like going to church or to a political rally where a crowd of people sit in chairs in front of a speaker or speakers and nod their head in agreement all day long. At the end of the day their is always a guy running around with a video camera asking everyone what the big conference takeaway was and about 90% of the people say, “It was so great to connect with my friends and meet new industry professionals.” Right? You conference junkies know exactly what I’m talking about. Why is this? Is no one getting anything out of the sessions? Do we pay the big names to come and speak just so we have a reason to gather with like-minded folks? I think the answer lies in the two words “Like-Minded”.

S.C.A.D.

Break Down the Silo’s

There is never a day that goes by that I don’t hear from industry professionals in the digital space that they wish they could break down institutional silos. We hear things like, “I wish my clients design team would work with the development team” and, “ How come analytics is rarely brought in at the initial design phases so that both teams can execute at the highest level.” I have no doubt that all the professionals that make up the S.C.A.D. pillars above are saying these things daily. This leads to animosity for the other groups who never seem to understand your challenges. So what are we doing about this? After all, the definition of insanity is to do the same things day after day and expecting a different result.

Be an Agent for Change

Again, I bring up the two words, “Like minds.” Humans are like cattle. They live, eat, drink and work in packs. They find comfort in what they know. This seeking of comfort however is also the bane of our professional existence. We here at Keystone Solutions would like to help initiate some change! We believe it starts with true collaboration. The only way to understand the plight of the guy in the department next to yours is to learn a bit about them! The second step is to collaborate effectively with them. Here is what we plan to do:

1. Every morning the @KeystoneSocial Twitter account is going to post four great links representative of the four pillars with the hashtag #SCAD (Strategy, Creative, Analytics and Development) We hope that you’ll retweet these posts and share them with your groups online.

2. We are going to start a podcast that will live here on the Keystone Solutions community blog. Our goal will be to bring representatives of each of the four pillars together every other week to discuss, collaborate and enlighten.

3. We would like to hold a S.C.A.D. conference. One day, four sessions (One to represent each pillar) and ample time for networking. That’s why we all go right?

What Can You Do?

Well, you can start by leaving us a comment. Is it too much for us to think that these diverse professional groups can work together in tandem? Maybe you know a person who’s a great collaborator (maybe you) that would like to come on the upcoming podcast? Please, feel free to get involved.

 

Jorgen Sorensen wins Nerd Shirt Friday by Being Helpful

Every Friday on the Keystone Solutions Facebook Page we have a fun little Friday activity we call #NerdShirtFriday. A bunch of us geeks show off our nerdy T-shirts and we vote on them. This past week was won by Jorgen Sorensen. I really love his shirt because it really embodies our culture here at Keystone Solutions and reflects what I see every day in the measure community. Check it out!

Jorgen wrote a caption that we just loved, “Philosophically, I like this shirt much more than “No, I won’t fix your computer.” I’m just a helpful, problem solving, nerdy guy.”

Be proud of yourself Jorgen and congratulations for winning this weeks Nerd Shirt Friday!

You Learned Everything You Needed to Know About Web Optimization by the Time You Were Five!

When you were a kid growing up you knew that if you asked your parents for too much stuff at once that there was a pretty good chance they were going to get annoyed and not give you any of the things you asked for. However, you also knew that if you didn’t ask for anything there was again a good chance you wouldn’t be getting anything either. So you learned quickly, just as my one year old is doing now, that you needed to pick your battles carefully and to ask for the things you wanted the most and that you had to do this with a certain amount of thoughtfulness around your timing. If Mom and Dad were in a bad mood, you might burn a request with no chance!

See, where you might be able to take some cues from your web presence? There are a couple lessons to be learned here.

Don’t ask for too much

As practitioners of optimization, social media and analytics we see more internal strife over this issue than probably any other. Businesses have different departments with different products and services and ALL of them want to be featured significantly on the homepage of the company website. The fact is, in most cases this is just not possible and when it’s attempted you wind up with a page like the one below! This page has well over 50 actions leaving the reader to hunt for what it is they are seeking. Some of the actions are duplicates while others like the Weight Watchers banner at the top are slapped right over the primary banner and branding! This is a case of asking for too much!

Cluttered Home Page

Don’t ask for too little

About a week ago I was sent a direct message on Twitter by a friend who wanted to help out her friend who was launching a new business selling high end steaks and chops. She told me that her friend had just finished the website and that I should check it out. She’s a friend, so I did. What I found when I went to the link she provided was a beautiful looking landing page that provided the reader three package options with the details and pricing of each. The only thing that was missing was a button to buy! I thought, ok, the images must be clickable and take you to an order page of some kind. Nope. Nothing there either. I promptly messaged my friend back and told her, “I’d love to buy something from your friend but I can’t figure out how?” She’s since rectified that issue but i wonder how long she was sending traffic to an e-commerce website that forgot to ask for the sale. Woops.

Optimize for Success

So we see how asking for too much on a page can cause a potential reader or buyer to click away taking no action. We also see how asking for too little or not providing a clear conversion opportunity at all can also be a detriment to the success of your business. This is where optimization comes in and plays a critical role in getting the most out of your web presence. Here at Keystone Solutions we are fluent practitioners of tools like Adobe Omniture’s Test&Target and Googles Website Optimizer and believe heavily in the mantra of, “You should always be testing”. Hey, if you had tools like this when asking your parents for what you wanted you’d have been spoiled rotten.

If you want your website conversions to rise and your executive team to feel like spoiled rotten children. Shoot us an email. The first consultation is free!