Categories
- Channel Analytics
- Marketing Integration
- migration
- Omniture Business
- Online Marketing
- Online Merchandising
- Search Engine Marketing
- SEO
- Site Search
- Testing and Targeting
- Web 2.0
- Web analytics
Authors
- Adam Greco (46)
- Alex Hill
- Adam Justis (1)
- Brent Dykes (6)
- Ben Gaines (29)
- 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 (11)
- 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 (3)
- Michael Klein (4)
- Matt Langie (5)
- Pearce Aurigemma (10)
- Steve Gustavson (3)
- Wes Funk (4)
Pages
Recent posts
- Which Social Platform Works Better For Marketers?
- Social Media Guru Rudi Shumpert as My Co Presenter (Advanced Solutions)
- Get the Most Out of the Breakout Sessions You Attend (Advanced Solutions)
- Give SOAP a REST (if you want to)
- Engineering Services at Summit – Your Chance to Talk One On One With an Expert (Advanced Solutions)
- OmnitureCare mailbag #2
- Code version H.21 released
- Mobile Breakout Sessions for Omniture Summit 2010
- Text “Haiti” to 90999: $10M+ donated in Two Days via SMS
- Dear Negative Stakeholder
Recent comments
- HMT: This is very good infor…
- Reuben: Bravo! :) As always…
- HMT: This post is very insig…
- Chris Nelson: Hi Ben. Thanks…
- Who won the superbowl: This …
- Ben Gaines: Chris, The prob…
- Ed Hewett: Shashi-these sess…
- Shashi Shamarao: Will these …
- Kelly: How can we turn off t…
- Cindy: Adam, Thanks for the…
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
Code version H.21 released
Those of you who logged in to the Admin Console in SiteCatalyst since this past Thursday afternoon to generate new JavaScript code may have noticed that we released code version H.21. The primary purpose of this update was to add ClickMap support for the <button> element, so that you can see the number of clicks on form buttons using the ClickMap plug-in. If need to be able to report on button clicks immediately, you may want to consider upgrading to this new code version after testing it extensively in a development environment.
Speaking of ClickMap support for the <button> element, we strongly recommend using the s_objectID variable in the onclick event handler of your <button> elements. In our experience, use of <button> almost always involves an onclick event handler which performs the button’s practical function (e.g., submitting a form, launching a pop-up, etc.). They never involve an href (and never should). This leaves ClickMap needing to use the onclick function to identify the page element, and this gets messy—especially when you consider that IE and Firefox report them to ClickMap differently.
Fortunately, there’s an easy solution: put an s_objectID variable—with a value unique to each distinct button—in the onclick for the button. For example:
<button type="submit" onclick="var s_objectID='abcd1234';myFormSubmitFunction();">
<button onclick="var s_objectID='some_unique_value';launchPopup();">
(Also, note that while the “type” attribute is not expressly required, when it is omitted—as in the second example above—IE will assume a type of “button,” and other browsers will assume a type of “submit.” This means that depending on which browser you are running ClickMap in to view the page, you will see a different number of clicks for the button, as it will only be reporting on the portion of the data which matches the implied type for the browser you are using. This limitation is also overcome by using s_objectID.)

Hey Ben,
Quick question - and I think you answered it in your article - for those who are already using the DynamicObjectIDs plugin (which I believe only generates unique id’s for objects in the dom with an href) would you need to do what you’re proposing here? Or is it because the DynamicObjectIDs plugin doesn’t work on these kind of objects you’d need to hardcode an s_objectID?
If this is the case, do you think the engineering team will take note that increasingly IA’s and developers are linking content with more ‘funky’ code than simply hrefs, so the s_code needs to effectively get smarter - in other words might DynamicObjectIDs (if it doesn’t already) cover more linkable objects?
As always, great reading!
Cheers, James.
Re: IE and Firefox reporting onclick handlers differently to Clickmap, how much of a difference is there ?
/Henrik Schack
Great question, James. I believe the plug-in goes through document.links to get an array of the links on the page, so a element would not be covered. You’d need to implement s_objectID manually on elements, at least based on the current version of dynamicObjectIDs. And I do agree and expect that plug-ins and base code will continue evolve to meet the needs of users in this regard and others. You’ve offered an excellent specific reminder of this, though, and we’ve taken note of it.
Hm but couldn’t the Omniture tracking code compensate for these differences, and make sure to track things “right” across different browsers ?