StumbleUpon is a social bookmarking platform that allows users to randomly browser through web content that fits their likes. It’s a great way for websites to generate organic traffic in their niche.
Step 1. Place the below code where you want the button to show up on your site. If you have multiple buttons, you can have multiple instances of the below code anywhere on your page.
layout="5" attribute is the version of the StumbleUpon button with the counter at the bottom. There are several different variations. You can customize your button at StumbleUpon’s badge creation page: http://www.stumbleupon.com/dt/badges/create.
Step 2. Place the below code wherever you deem logical. The below script only needs to be included in your page once.
li.src = ('https:' == document.location.protocol ? 'https:' : 'http:') + '//platform.stumbleupon.com/1/widgets.js';
var s = document.getElementsByTagName('script'); s.parentNode.insertBefore(li, s);
There you have it. A quick and easy way to allow visitors to share your pages.