How does SEOMoz Code its Social Badge on Blog
-
On the blog section (and most other pages of the site) there is a social badge on the right hand side of the page where it shows the number of followers on Twitter, FB fans, etc.
How does SEOMoz pull those numbers? It seems like its not using the normal Javascritps supplied by FB and Twitter, Feedburner.
Thanks
-
Thank you guys. This was great. I'm definitely going to roll it out to all my sites.
-
We pull the numbers via javascript. If you check out posts.js when you are on the blog you can see where we make a call to Facebook and to Twitter to get those numbers. We also have hard coded the numbers at specific dates just in case it fails so there is a number present.
For the feedburner numbers we do those server side and ping the feedburner api and cache it. So there is one unlucky sole every hour that has to ping feedburner to recache the number.
-
Those numbers show up in the HTML, so they're likely calculated server-side in some way.
Feedburner (RSS feed provider), Twitter, and Facebook all have an API of some sort to grab the content from. Moz appears to use bronto.com to deliver their Top 10 email, so that's probably where they're getting the email subscriber count from.
Here's a tutorial to get you started on pulling content from Facebook/Twitter/Feedburner. Since it appears that your personal website uses Wordpress, I'll use that as a reference:
http://www.problogdesign.com/wordpress/how-to-get-facebook-twitter-and-rss-counts-wp/
Got a burning SEO question?
Subscribe to Moz Pro to gain full access to Q&A, answer questions, and ask your own.
Browse Questions
Explore more categories
-
Moz Tools
Chat with the community about the Moz tools.
-
SEO Tactics
Discuss the SEO process with fellow marketers
-
Community
Discuss industry events, jobs, and news!
-
Digital Marketing
Chat about tactics outside of SEO
-
Research & Trends
Dive into research and trends in the search industry.
-
Support
Connect on product support and feature requests.
Related Questions
-
Redirect social media links to https?
Hi fellow SEO-ers! One of the sites I'm responsible for uses a Twitter or Facebook feed on most of their pages, next to their unique content. As the tweets (twits?) and comments in some of these feeds are old, they still refer to the old Twitter and Facebook-domains using http (instead of https). These links are all automatically 301-redirected, but still make up ca. 9% of the links on the site. Do you think that this affects SEO? I doubt it, because I suppose that Google has seen this many times and understands that these links are still pointing to the same content. Although my client is prepared to write a script to auto-update all these links, I think it won't make a difference. What do you think? Thanks for your feedback!
Social Media | | corusent0 -
Hi! The same function you have on twitter ( how you can see their flooewrs) do you have it for blogs?
Hi! The same function you have on twitter ( how you can see their flooewrs) do you have it for blogs?Describe your question in detail. The more information you give, the better! It helps give context for a great answer.
Social Media | | JohannaPihl0 -
Is it possible to modify the default social sources in Google Analytics?
In the newest Google Analytics there's a section called 'Social' which tracks traffic from FB, Twitter and other social sites. For some reason it doesn't include Instagram (which is the one that matters to me, though I'm sure there are many others that it doesn't include either.) Is there a way to modify that and add Instagram as a social source?
Social Media | | storemachine0 -
What is a good amount of social shares per week / day?
As the title says. What is your idea of a good amount of social shares to be given per day or week or month for a website?
Social Media | | Zoolander1 -
Using BUFFER in Social Sharing
Hello everyone, I am inclining to use a platform from which to post my social content. I use mainly facebook, twitter, linked in, google +. I used Hoot, but found it difficult to include Linked In, and several other social media sites. Somebody has experience using BUFFER? Ive read about it, and it seems great! Would you recommend it? Thanks for your comments,
Social Media | | JesusD0 -
Wordpress Social Button Plugins Change
Hi Guys, I'm thinking of changing the plugin I used on my blog for people to share my blog posts on Facebook, Twitter and Google +. If I do this, would I lose all shares (meaning that all the buttons would go back to 0, I know the shared content would still appear on people's profiles)? Thanks, Carlos
Social Media | | Carlos-R0 -
Google 'Author' tag question (Guest Blogging)
Hi, It seems like im seeing more and more about the Author tag, its now in Webmaster Tools and Google+. If your guest blogging, is it a good idea to include the Author link back to your Google+ account? If your Google+ account is also connected to your website and Google confirms they can see the connection does the Author links help with ranking when you push them back to the connected Google+ account?
Social Media | | activitysuper0 -
Any recommendations for Social Media Submission
I came across a company one time that would sign you up and submit your username to all the social media sites. Seems like it was "knowit" or something like that. Anyway Does any one have an recommendations on companies to submit to sites instead of having to do each one individually. Thanks, Utah Tiger
Social Media | | Boodreaux0