A Step for Open Sharing: AddThis Integrates Web Intents

AddThis has long been committed to standardizing the way in which content is shared across the web. Today we’re excited to announce core product support for another emerging building block in the open sharing ecosystem. It’s called Web Intents.

What the heck is it?

Web Intents is an open specification being developed within the W3C process. It allows web pages to more easily and securely invoke external services on behalf of users. In plain English, this spec is a way for a web browser to help users connect to useful services on the web for performing certain common actions — things like save, share, and print.

For example, a web page can indicate that it contains some content a user might want to save. A user’s browser can detect that, help the user choose a suitable service, and then actually save the content. Same goes for printing, even for the most basic type of sharing — sending a URL to some other service.

You can learn more about Web Intents and what they can do at webintents.org or the W3C site.

How does AddThis work with Web Intents?

We’re announcing 3 things today. All of the bits are either already deployed or will be rolling out over the coming days.

1. AddThis sharing tools can invoke Web Intents.

AddThis social tools are the easiest way to integrate sharing functionality into your site. That’s not just true for deploying Pinterest, Facebook, or over 300 other services and custom interfaces — it’s also true for access to basic Web Intents. When a developer includes AddThis in a page, users immediately get access to any intent handlers that are registered with their browser. No handlers registered? That’s ok too, it won’t hurt anything and you’ll still get AddThis-powered sharing and analytics as usual.

2. AddThis makes Web Intents work, even if the browser doesn’t support them.

By adding AddThis to a page, a site developer can feel free to use Web Intents to initiate sharing actions. AddThis makes sure the handlers are there, and lets users invoke the tools and share content, even without any browser support. Site developers can relax and not worry about figuring out a complex matrix of browser support for their pages.

3. AddThis sharing tools can handle sharing actions.

If a page includes a share intent, AddThis can handle it. End users can share content to any of our 300+ services. AddThis ensures that web intents retains all the flexibility of current sharing tools from day one.

What next?

We’re extremely excited to help take another step toward open sharing by supporting and participating in the work on this emerging specification. We’ll be continuing to add support to our products and talking more about implementation details here and in our docs. We’ll also be talking quite a bit more about Web Intents to users, site operators, and the over 300 service providers we’ve integrated with across the globe. We’ll be releasing tools to make Web Intents support easier and more valuable for all of them.

The more progress the web is able to make on the mechanics of sending content from point A to point B, the more AddThis can stay focused on the optimization, analytics, and unique social experiences that you’ve come to expect from us and our tools. Check back on this blog to stay up-to-date on our support and ongoing product enhancements around Web Intents.

To the Open Web,

Team AddThis

Pinterest Available in the AddThis Services Menu (And Some Fun Facts!)

If you already have AddThis on your site, it is now easier than ever to provide your users the ability to share to Pinterest. All you have to do to get Pinterest into the AddThis sharing menu is add a little bit of code so we can grab an image from your page.

Replace the URL of the image the pin is on, and place this within the <HEAD></HEAD> of the page:

<meta property="og:image" content="http://YOUR-DOMAIN.com/IMAGE.jpg"/>

You might even have this line of code already on each page of your site. This open graph tag is used by multiple services, including Pinterest and Facebook, to display an image with the shared content.

We recently discussed the popularity of Pinterest and since, the service has continued to grow. Because we are so enthusiastic about everyone’s penchant for pinning, here are some fun facts from the AddThis network:

  • Content is shared to Pinterest (11%) via mobile devices more than Facebook (7%) and Twitter (9%)
  • Almost 35% of all content shared to Pinterest via AddThis is food. NOM!
  • The US, UK, Canada and Australia are all the most socially engaged countries on Pinterest

Dont forget, we also support the Pinterest “Pin It” button, if that’s your preferred implementation. One of the biggest advantages of leveraging the AddThis Pinterest sharing tools is the great insights you will gain through our analytics about how your users are “pinning” your content.

Now get back to your boards, people.

AddThis for Shopify Now Available

If you run one of the over twenty-thousand stores powered by Shopify, getting AddThis for your store just got a lot easier. To enable AddThis for Shopify just head on over to the Shopify App Store and Select AddThis. When you’ve clicked Install App you’ll be taken to a wizard that will allow you to setup your sharing tools and start enabling your visitors to become your marketers via their favorite social networks.

Merchants on Shopify get access to over 300 social channels including Pinterest, Facebook and Twitter in addition to real-time analytics showing how socially viral their products are. This real-time data can help you increase traffic and engagement to your store resulting in increased sales.

AddThis for Shopify has even been featured 10 helpful new Shopify Apps. Let us know if we can do anything to make AddThis work even better on your Shopify store.

Sharing is Environmentally Caring! And Which Countries are Socially Green?

To commemorate the “greenest” day of the year, we looked at some of our network data to see what was going on in the social world on Earth Day 2012. Some of the most interesting stats were around printing and which countries are the most conservative when it comes to limiting their paper usage.

A few fun tidbits:

  • 7% of social actions measured through AddThis’s sharing tools are people printing.
  • In the United States, 11% of actions measured through AddThis are people printing.
  • The French print twice as much as the rest of the world.
  • Also getting a failing grade is Sweden – the Swedish are printing 20% of the time.
  • The most environmentally friendly social countries are Brazil, India, Turkey.
  • Mexico, Spain and Italy are just a few of the countries that print 7% of the time through our sharing tools.

Sharing to social networks is environmentally caring as it reduces the need to produce as much physical content, which then reduces waste.

We also saw a 200% increase in interest for the term “Earth Day” on the actual day of the celebration, April 22. There was also a small spike on Friday, April 20 due to a high volume of articles being published about weekend activities surrounding the “holiday”.

New Follow Buttons, Including Pinterest, Tumblr and Instagram

Pinterest, Tumblr, Instagram and FourSquare have all been added as options in the AddThis Follow tools. They join the already available Facebook, Twitter, Google+, YouTube, Flickr, LinkedIn and Vimeo buttons. It is now easier than ever to promote your various social channels on your site and encourage visitors to follow your brand.

As with all our tools, we want to give you insight into how the buttons are performing, so make sure you sign up for the AddThis analytics to see which channels your users are going to and even more than that – which pages on your site are actually generating the followers.

If you have any questions, please feel free to head to our support page and we’ll help you get some answers.

Text Copy Tracking for All

Last month, we turned on Text Copy Tracking for WordPress and Blogger publishers; we will be turning on Text Copy Tracking for all AddThis publishers in the next few weeks. Text Copy Tracking gives you insight into the keywords your audience is copying to their clipboards.

What is Text Copy Tracking?
Text Copy Tracking captures the text users copy to their clipboards from your site. We do not track what users do with these copied keywords, but it is likely that many are put into a search engine. These keywords should give you a better idea of your audience’s specific interests and reveal opportunities to keep users engaged with your site.  For privacy reasons, we omit any copies that appear to be a URL, an email address, or a phone number. You can use it on any page, but it will only be active for site visitors who are using a supported browser.

Do I need to upgrade my AddThis code to get text copy tracking?
No, we will push this change automatically; all you have to do is sit back and start watching your analytics live view.  If you want to turn off text copy tracking, you will have to update to the latest AddThis code.

What happens if I want to turn off copy text tracking?
We understand some users may not want this feature–so you can easily disable text copy tracking.  To do so, edit your AddThis code to set the data_track_textcopy property to false on the addthis_config object.  You can get more details here.

As always feedback is appreciated via comments below.

Washington DC Welcomes the Space Shuttle

Yesterday morning the space shuttle Discovery made it’s final landing at Dulles Airport in Virginia, just down the road from the AddThis offices. The area welcomed Discovery with great enthusiasm, posting live photos of the shuttle on the back of a 747 all over Facebook, Twitter and other social networks.

We took a look at our data and it was clear that a lot of activity was happening. Check out this map:

 

It is clear by the high intensity of interest in the Virginia and surrounding DC area that the in-person images of the shuttle arriving at its final destination evoked a lot of excitement!

 

Credit: Tom Oettinger

 

100 Years Later, The Titanic is Far from Forgotten

Yesterday morning, around 2:20am, marked the 100 year anniversary of Titanic slipping below the ocean’s surface. But even today – 3 years after the last survivor died – the fated ship, her story and the story of those onboard, is a source of constant fascination and curiosity, spawning thousands of articles and blog posts.

The AddThis data reflects the buzz around the ship, seeing spikes in interest on both Saturday and Sunday – the anniversary of Titanic hitting the iceberg and then sinking, respectively. It also brings to mind the channels in which the tales are being shared – through social mediums still decades away from being discovered in 1912.

 

  • We saw a spike Tuesday on 100th anniversary of the launch of the Titanic and due to a number of television specials about the famous voyage. Overall we had a great spike of >100% over the weekend.

 

  • Facebook dominated as the service to deliver and receive articles about the Titanic. Stories ranged from tales of survival and heroism about those aboard the fated ship to recent scientific theories in how she actually went down.

  • The map shows the geographic interest intensity for the United States. Rhode Island most likely appears dark because of this popular story about two pro tennis players, Richard Norris Williams II and Karl Howell Behr, who both survived the sinking and went on to play against each other. The Tennis Hall of Fame and Museum located in Newport had a ”Tennis and the Titanic” exhibit as a tribute to Hall of Famers.

Probabilistic Counting

At Clearspring we like to count things. Counting the number of distinct elements (the cardinality) of a set is challenge when the cardinality is large.

To better understand the challenge of determining the cardinality of large sets let’s imagine that you have a 16 character ID and you’d like to count the number of distinct IDs that you’ve seen in your logs. Here is an example:

4f67bfc603106cb2

These 16 characters represent 128 bits. 65k IDs would require 1 megabyte of space. We receive over 3 billion events per day and each event has an ID. Those IDs require 384,000,000,000 bytes or 45 gigabytes of storage. And that is just the space the ID field requires! To get the cardinality of IDs in our daily events we could take a simplistic approach. The most straightforward idea is to use an in memory hash set that contains the unique list of IDs seen in the input files. Even if we assume only 1 in 3 records is unique the hash set would still take 119 gigs of RAM not including the overhead Java requires to store objects in memory. You would need a machine with several hundred gigs of memory to count distinct elements this way and that is only to count a single day’s unique IDs. We certainly don’t have a single machine with several hundred gigs of free memory sitting around so we need a better solution.

One common approach to this problem is the use of bitmaps. Bitmaps can be used to quickly and accurately get the cardinality of a given input. While bitmaps drastically reduce the space requirements from the naive set implementation described above they are still problematic when the cardinality is very high and/or you have a very large number of different sets to count.  If we want to count to one hundred million using a bitmap you will need one hundred million bits or roughly 12 megabytes for each counter.  Sparse bitmaps can be compressed in order to gain space efficiency but our bitmaps are not sparse. It is also not uncommon for our jobs to contain hundreds or even thousands of counters so we require a more space efficient solution.

Luckily for us cardinality estimation is a popular area of research. We’ve leveraged this research and implemented, and open sourced, several distributed probabilistic cardinality estimation algorithms. We will not go into the details of how these algorithms work in this post but if you are interested you can find references to the relevant research papers in our GitHub project.  In general these algorithms provide a space efficient mechanism for estimating the cardinality of a set but with less than perfect accuracy. They do this by representing the count as a set of bit fields and use some hashing function to determine the relevant bucket and bit for the element being added to the set. One algorithm, the LogLog cardinality estimation, is amazingly space efficient. Using LogLog you can count up to 100 million distinct elements with 4% error using just 640 bytes.

So now that we can count the number of distinct elements in huge sets using probabilistic cardinality estimators we have to solve for another problem. Clearspring has close to 2 petabytes of storage spread across several hundred servers. We store partitions of our data on each server so in order to get the cardinality of the full data set we need to combine the results from each of the servers. Let’s look at an example.  Imagine that we have 3 servers and the table below represents the cardinality for the data on each of those servers:

Machine

Cardinality

1 1000
2 1500
3 2500

We cannot simply add up the cardinality from each server and say that our total cardinality is 5000. That would assume that the data is partitioned in such a way that guarantees that no ID appears on more than one machine. If that condition is not true, as is often the case, we would be over estimating the cardinality by summing the results. This is where the true power of cardinality estimators really shines through. In addition to being space efficient, the cardinality estimators we use are also mergeable. This means that we can take the cardinality estimate, which is represented as an array of bits, from multiple machines and merge them together to get a cardinality estimate for the global set.

If estimating the cardinality of large sets is a problem you have then we recommend using probabilistic counters and if you happen to use Java then our stream-lib project is great place to start.

Want to work on problems like these?  We are hiring.

Write Your Politicians, Chime.In and More New Services

(Note: We’ve experienced a couple issues with our latest release, so if you come across any problems sharing to these services, it will be fixed soon. Apologize for any inconvenience. Please visit our support area if you have additional questions.)

We’ve updated the AddThis menu with some great new sharing services. Those services include:

  • Chime.in: a great service that allows you to connect around your interests
  • Beat100: a video sharing site
  • BufferApp: this service helps you to schedule sharing on your social media channels
  • Surfingbird.ru: a site from Russia that gathers the best content from around the social web

You’ll also notice a something in our menu that prompts you to Write Your Rep. This is an amazing service from RaiseYourVoice.us. RaiseYourVoice is a service that helps citizens easily contact elected representatives and connect with organizations supporting their aims.

If you are on a site that uses the AddThis sharing widget, click the Write Your Rep service and you will be prompted to enter your zip code. The tool will then find your local reps and candidates and let you send them a message!

RaiseYourVoice is a service we are especially excited about offering, as we believe civic involvement is very important. It is an election year after all — let your voice be heard!