Get Dynamic & Get Noticed
Pinterest is the fastest growing social media networks to date – and has already proven to be a powerful tool for driving interest in products or services that ultimately results in buying behavior. So how do you increase the chances of your product going viral in the fast-moving world of Pinterest? One of the best ways is to integrate a ‘Pin This’ widget on your website or blog to ensure anyone viewing it can easily share your engaging content with their friends and the wider Pinterest network.
The Code Snippet
There are several options (and a step-by-step wizard) to creating your own Pin-It button which you should definitely check out. Our sample snippet below is what they’ve deemed the advanced snippet – and we’ve located the Pin Count horizontally, remember to replace anything in italics with your own website’s information.
put this inside your <head> tag
<script type='text/javascript'>
(function() {
window.PinIt = window.PinIt || { loaded:false };
if (window.PinIt.loaded) return;
window.PinIt.loaded = true;
function async_load(){
var s = document.createElement("script");
s.type = "text/javascript";
s.async = true;
if (window.location.protocol == "https:")
s.src = "https://assets.pinterest.com/js/pinit.js";
else
s.src = "http://assets.pinterest.com/js/pinit.js";
var x = document.getElementsByTagName("script")[0];
x.parentNode.insertBefore(s, x);
}
if (window.attachEvent)
window.attachEvent("onload", async_load);
else
window.addEventListener("load", async_load, false);
})();
</script>
put this where you want the button to show up
<a href="http://pinterest.com/pin/create/button/?url=http://www.atomni.com
&media=http://www.atomni.com/image.png&description=This is the sample description." class="pin-it-button" count-layout="horizontal">Pin It</a>
Using WordPress Variables in Pin It Button
Really nothing changes with the majority of the above snippet – you’ll just have to replace the italic text with some WordPress snippets to pull the unique information about your blog posts to be pinned. Here’s what the most basic native-WordPress installation snippet looks like after we replace the italic text with WordPress function calls to pull the unique post data. Each of these are wrapped in a PHP function urlencode() for passing through the URI.
//get urlencode(get_permalink($post->ID)); for the page or blog post's URL //get urlencode(wp_get_attachment_image_src( get_post_thumbnail_id( $post->ID ), 'single-post-thumbnail' )); for the page or blog post's Image URL //get urlencode(get_the_excerpt()); for the page or blog post's description <a href="http://pinterest.com/pin/create/button/?url=<?php echo urlencode(get_permalink($post->ID));?>&media=<?php echo urlencode(wp_get_attachment_image_src( get_post_thumbnail_id( $post->ID ), 'single-post-thumbnail' ));?>&description=<?php echo urlencode(get_the_excerpt());?>" class="pin-it-button" count-layout="horizontal">Pin It</a>
Depending on what custom variables or other social media plug-ins you’re using this snippet might end up being a bit different for you – just remember to use whatever dynamic information you have about the page, post, or image so it’ll be sure to engage your new audience on Pinterest! This might also be a good time to re-visit how you sculpt your content catalog – how share-able is your content?
Pinterest and SEO
Guess what? This is awesome for search engine optimization too! By using dynamic URL setting as described above you’re creating a new back-link to your website and channel for referral traffic every time someone pins – which means you’ll be expanding your valuable back link portfolio, potentially before your competition. But remember, before someone Pin’s it, they have to find it worth sharing. Make your web content worthwhile, make it aesthetically pleasing, make it count. Compelling content combined with the ease-of-use of the Pin-widget will surely increase your impact on Pinterest.
Google unveils the Knowledge Graph

What is Facebook targeting next? Watch out Craigslist, Zuckerberg has his eyes on you!
