Categories
- Channel Analytics
- Marketing Integration
- migration
- Omniture Business
- Online Marketing
- Online Merchandising
- Search Engine Marketing
- SEO
- Site Search
- social media
- Testing and Targeting
- Web 2.0
- Web analytics
Authors
- Adam Greco (46)
- Alex Hill
- Adam Justis (1)
- Brent Dykes (9)
- Ben Gaines (33)
- Brig Graff (2)
- Bret Gundersen
- Brian Hawkins (4)
- Brent Hieggelke (6)
- Bill Mungovan (14)
- Ben Robison (6)
- Brent Watson (1)
- Chad Greenleaf (2)
- Chris Knoch (4)
- Christopher Parkin (14)
- Christian Ridge (2)
- Chris Zaharias (6)
- David Kirschner (4)
- Ed Hewett (12)
- John Broady (10)
- Josh James (1)
- Jordan LeBaron (5)
- Jim McTiernan (2)
- Jeff Minich (9)
- Jose Santa Ana (2)
- Kiran Kairab Ferrandino (4)
- Kevin Lindsay (3)
- Matt Belkin (35)
- Mikel Chertudi (12)
- Michael Halbrook (4)
- Michael Klein (4)
- Matt Langie (5)
- Pearce Aurigemma (11)
- Siddharth Chaudhary (1)
- Steve Gustavson (3)
- Wes Funk (4)
Pages
Recent posts
- Keep Your Web Data Clean and Safe to Drink - Part I
- Summit Topic #3: Participation
- Summit Topic #2: getPercentPageViewed plug-in
- Summit Topic #1: Visitor Scoring in SiteCatalyst
- Welcome to the Idea Exchange!
- Dynamic Ad Targeting & Optimization Using Omniture Test&Target
- Mobile Video, App Targeting, and Flash 10.1, Oh My!
- Insight at Summit 2010 [Analysis with Insight]
- The Secret Revealed – New Solution Give Away (Advanced Solutions)
- Delivering Quick Wins: Score Early and Often - Part II
Recent comments
- Ben Gaines: Vitor, Great qu…
- Ben Gaines: Absolutely. Mayb…
- Ben Gaines: Glad you think s…
- HeatherA: The idea exchange …
- Ben Gaines: The labels could…
- Ben Gaines: Really glad to h…
- Jonathan Kay: Nice write-up …
- pamela: Hi just want to know…
- Vitor Lopes: Hi Ben, I ha…
- Ben Gaines: We tested this (…
Links
- DigitalAlex
- eMetrics (Jim Sterne)
- Forrester Research (John Lovett)
- Future Now’s grokdotcom
- immeria
- June Dershewitz on Web Analytics
- Lies, Damned Lies
- LunaMetrics
- Mine That Data
- Occam’s Razor
- Rich Page Ramblings
- SemAngel
- The Analytics Guru
- The Omni Man
- Web Analysis, Behavioral Targeting and Advertising
- Web Analytics World
Archives
Measuring mobile user actions in SiteCatalyst
In a previous post, I described custom link tracking, its various uses, and implementation techniques. Link tracking is awesome because it opens up a wide variety of data points and user experience aspects that can’t always be tracked on page loads. But everything hinges on the s.tl() function, which is part of the SiteCatalyst JavaScript code base. What happens if your users don’t have JavaScript enabled? This is very rare among desktop web users, but with the mobile web only gaining momentum, it’s an important question. How can we measure user actions if we don’t have the s.tl() function available to us?
If mobile web measurement is important to your online business initiatives, then you’ve probably already seen the Mobile Device Reporting guide. This document shows how you can use a hard-coded (although perhaps dynamically generated server-side) image request like the one shown below to pass page view data into SiteCatalyst even when the user doesn’t have JavaScript available.
<img src="http://metrics.yoursite.com/b/ss/gainesweb/5/54781023478?gn=Mobile%20Home&g=http%3A%2F%2Fm.mysite.com%2Findex.html&ch=Home&c1=Mobile%20Traffic&ev=event1&v0=mobile_campaign" />
This would count a page view for “Mobile Home” (gn= is the same as pageName=; mobile implementations allow you to substitute shorter parameter names), and a click-through for the “mobile_campaign” tracking code. You’ll do something very similar to implement link tracking on mobile sites, but you will instead use an anchor tag, where the href (destination URL) property is the Omniture image URL. Here’s an example, with the elements just mentioned in red:
<a href="http://metrics.yoursite.com/b/ss/gainesweb/5.4/REDIR/?url=http%3A%2F%2Fm.mysite.com%2Fdestination_page.html&ev=event2&v5=link%20click&pe=lnk_o&pev1=D=url&pev2=mobile%20link%20click” />
There are a few important differences between this example and the one given above. As explained, we’re using an anchor tag rather than an image tag. There is a /REDIR/ element at a specific point in the path. There is a url= query parameter, the value of which is the destination URL for the page that we want the user to end up viewing after clicking the link. And all of the standard link tracking parameters (pe=, pev1=, and pev2) are present. Note that we’re using one of the coolest features of SiteCatalyst mobile measurement—”dynamic” variables (indicated by “=D=url”)—to set the pev1= parameter equal to the page URL. This can save tons of characters in your request URL!
This will send all of the data in this image request to SiteCatalyst, and then it will take the user to the URL given in the url= parameter. As shown above, for example, an instance of event2 will be counted. The value “mobile link click” will show up in the Custom Links report. Had I wanted to do so, I could’ve set props, eVars, or the products variable. It captures everything that you want to measure regarding the user action, just like a normal, JavaScript-based request. It then redirects the user to the URL given in the url= parameter, so that to the end user, it behaves just like a normal link.
You’ll want to set the link tracking parameters correctly, so here is a table showing what they represent:
| Parameter | Definition | Possible/example values |
|---|---|---|
| pe= | Type of user action | lnk_o for custom links/general lnk_d for file downloads lnk_e for exit links |
| pev1= | Destination URL | Any destination URL http%3A//m.mysite.com/some_url.html http%3A//mobile.yoursite.co.uk |
| pev2= | Link Friendly Name (displays in Custom Links report) | Custom Value My Link |
A few final notes:
- Make sure to put the url= parameter first in a mobile link tracking tag. This ensures that the user is correctly redirected even if the mobile device truncates the request of the request URL.
- We don’t need a random number in the link tracking request, since we aren’t concerned about the link getting cached (as we typically are when receiving an image).
- Using 5.4 in the beacon ensures that the visitor ID method order stays consistent if using /5/ for the standard page view beacons. (See the Mobile Device Reporting guide for more information on this.)
- The pev2= parameter isn’t strictly necessary. It may be omitted in these requests; the pev1= value (the link URL) will display in reports instead.
- Using first-party cookies is strongly recommended for mobile implementations and will make the link URLs much friendlier; I used them in the examples above (”metrics.yoursite.com”). If you are not using first-party cookies, simply replace “metrics.yoursite.com” in the examples above with “[your namespace].[112 or 122].2o7.net.”
There you have it. Make sure you refer back to my post on link tracking if you have any questions about the concept or value of what I’ve described here. One final tip: As you may have noticed in the examples in this post, I URL encoded everything (e.g., %20 instead of a space). Make sure to do this when implementing mobile web measurement in SiteCatalyst; it will ensure that your data looks exactly the way you want it to look!
Questions? Concerns? Applause? Please feel free to contact me by leaving a comment on this post, or via Twitter or FriendFeed. I’d love to hear from you!

Where can I get the Mobile Device Reporting guide you mention? I searched for it on Omniture.com, but did not find it - at least not by that name. thanks.
Sorry about that. From the SiteCatalyst home page, it’s available by clicking the User Manuals link. Or, you can get it my going to Help > Help Home, then choosing Supporting Docs > User Manuals from the left nav menu. Let me know if that doesn’t lead you to the guide.
Hi. It did’nt lead me to the guide…. Could you provide a direct link? Thanks
Hi Jan. Unfortunately, I cannot provide a direct link, as you must be logged into SiteCatalyst with an active session in order to download the user guide. Were you unable to find it at Help > Help Home, then Supporting Docs > Manuals?