Share This Page – On Your Terms!
Build your own "Share this page" feature!
Not too long ago I added one of the "Share this page" scripts, AddToAny, to our web site. This seemed like it was going to work fine but this approach had 3 major drawbacks.
- Most of these services require you to link to their JavaScript file on their servers. Sure this is fairly reliable but I am not a fan of this approach.
- Limited tracking / analytic capabilities.
- Cookies you can not control.
The first two issues are not huge issues, but while we were testing the site, we noticed that the scripts were adding a few of their own cookies to our users. I understand why this is, but I did not like it and the feature was pulled. So I tested out another one, Share This, and it did the same thing. Not only do they add cookies to your users, but they are also tracking usage of their tool on your site. I don't blame them for this, after all they are providing this as a free service but I still do not like it.
After looking at the scripts for a while I decided that it could not be that difficult to write my own "Share this page" feature.
My goal was to create a widget to let users share the current web page without the limitations listed above. With just a wee bit of research I found the methods needed to be able to share a page via email, Twitter, Facebook, and LinkedIn. And then track the usage of data in Omniture SiteCatalyst.
<ul>
<li><A onClick="jsFunctionToRecordClick('Email');" HREF="mailto:?subject=#variables.emailSubject#&body=#variables.emailMessage#">Email </a></li>
<li><a onClick="jsFunctionToRecordClick('Twitter');" href="http://twitter.com/home?status=#variables.twitterLink#" target="_blank">Twitter </a></li>
<li><a onClick="jsFunctionToRecordClick('LinkedIn');" href="http://www.linkedin.com/shareArticle?mini=true&url=www.rudishumpert.com&title=AmazingArticle&summary=This is the best ever&source=Rudi" target="_blank">LinkedIn </a></li>
<li><a onClick="jsFunctionToRecordClick('Facebook');" href="http://www.facebook.com/share.php?src=bm&u=#variables.currentPage#&t=#variables.twitterLink#&v=3" target="_blank">Facebook </a></li>
</ul>
Sample links without the tracking added:
And then the JS Function: Note the JS function is specific to Omniture tracking but this could be leverage for any analytic solution with some minor tweaking.
function jsFunctionToRecordClick(category){
var s = s_gi(s_account);
s.linkTrackVars="events,eVarN,propN,propN";
s.linkTrackEvents="eventN";
s.events="eventN";
s.eVarN=''+category+'';
s.propN=''+category+'';
s.propN=''+category+' | '+s.pageName+'';
s.tl();
s.events="";
s.linkTrackEvents="";
s.linkTrackVars="";
s.eVarN='';
s.propN='';
s.propN='';
}
The feature is added to the page using a jQuery menu script that creates the same mouse-over drop down effect that the free scripts use, but you can use any sort of presentation approach that fits your web site's style.
And that is it. You know have your own custom share this web page feature that your can style however you like and maintain complete control over what cookies are used on your site and what level of tracking you would like to get out of the widget.
OMG! Borders wants to be l33t!
I logged into my email today and what did I see. An email from Borders with the subject OMG!

At first I chuckled, but then I wondered how far the lexicon of text's and twitters and im's start to filter into mainstream use. Is there more to come? How long before we get emails from major brands like. "WTF! This book is l33t! Don't be pwnd! " ??
-Rudi
Who are you…at this moment?
The past few weeks I've seen a few web tools out there that will take your real name or twitter name and perform a scan and apply some set of algorithims to the results and bring back the results.
Here are my results from a few of these sites.
1. Persona

2. Twanalysis
Your Twitter personality
Personality: likeable sociable cautious
Style: chatty academic
PARROT
3. Yahoo Mojo

4. Twitalyzer

All of these "tests" are fun to do, and I'm sure that I will keep participating in these and any new ones that pop up. But I think that all of them expose both a weakness and a strength of social media and the web in general. For the most part, you can be whatever type of person you want to be. The only requirement to participating online is a computer and an internet connection. For there, it's up to you how you want the world to perceive you. Are you going to hide behind a fake online name so you can be a jerk? Are you going to use an alias everywhere you login for fear of people finding out who you are? Are you going to stroll right out in the middle of things with your real name and not try and pretend to be something you're not?
More and more companies are using google, twitter, facebook and the likes to screen candidates. What type of information are you leaving for them to find? The way I look at it, you have a few choices:
1. Stuck in college: Your online history is littered with wild party photos and tales of debauchery that you really don't won't most people to see (even if you are posting in on myspace and facebook)
2. Invisible: This might be worse that posting embarrassing things. If I was looking to hire someone in an internet related field and could not find any trace of them out there, not even sites like LinkedIn, I would be concerned.
3. Honest: You have not tried to hide your identity online. You actively participate in user groups, forums, and other online discussions about professional items. You embrace the technologies for personal use as well, even though you might be more guarded with more personal/family aspects.
Not hard to see where I stand on this issue.
Where do you stand?
-Rudi
Archives

- Episode 53 – Google Analytics Premium with Phil Mui
- Episode 52: Looking forward to 2012 with Joe Stanhope
- Episode 51: Social Media Metrics Secrets with John Lovett
Recent Posts
- Standing Firm
- Writing in the margins
- Calling a tail a leg dosen’t make it a leg
- There is no I in Team
- Silence is golden…….get rich!
Categories
Blogs I Follow
- Atlanta Analytics
- Beyond Web Analytics
- Crepuscular Light
- Empty Mind
- Insightr
- Keystone Solutions
- Michele "Jojoba" Hinojosa
- Occam's Razor
- Omniture Industry Insights
- RIA Podcast
- The Omni Man
- Tweak & Geek
- Web Analytics Guy’s Blog
- Web Analytics Land
Contributors
Recommended Reading
- Industry Veteran Hila Strong Joins Keystone Solutions | Benzingacom
- Not There
- Career Napalm – 3 Jobs in 2 Years
- Guest Post: Thoughts on Teaching Passion
- Merchandising eVars [Omniture]
- WAA Web Analyst Certification Program
- Rudi Shumpert: New Keystone Blog Post- Omniture Campaign Best Practices ...



