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
-
Outreach - Guest Blogs & Articles
Hi I know how old hat guest blogs are - but is all lost for high quality articles being placed on relevant sites? I am trying to decide where to put my offsite SEO efforts - we have no outreach strategy at present. Do I ignore articles altogether & focus on SEO/Social campaigns? Or try and do both? It's only me internally, we are looking to outsource some of the work but not all. Help! Thanks!
Social Media | | BeckyKey0 -
Question about pruning your website/blog for SEO
Hey all, So I checked out "The What, Why, and How of Pruning Your Website for SEO" and recently read ahrefs well known article on seo strategy and both really focused on the idea of removing poorly performing pages on your site for an SEO boost. I've asked this question in a few different ways before but I was hoping to get some more insight into this. If my company's blog has thousands of posts going back 5 years, 99% of which only really had pageviews on the day of their release and then after that receive no traffic, direct or organic, am I better off getting rid of (301) 99% of these posts and only sticking to/improving important/performant posts? Does anyone know how other blogs/sites deal with these sorts of issues. Where one function of the blog is to provide informative articles and the other function to post little tidbits (with barely any copy and rapid relevancy decay rate) meant to promote interaction with the blog community (like polls or one line contest winner announcements). Is this an issue of misusing the blog? For example, should the blog just be used for articles and all contests etc. be moved to social media? Thanks in advance for your insights, Roman
Social Media | | Dynata_panel_marketing0 -
I have 3 different niches - Should I create 3 different Social Profiles/hubs?
So I have 3 completely different niches. As in B2B vs. B2C, as well as markets that are not related whatsoever. Unless your grandmother that likes to sew, just so happens to also love to demolish giant buildings (lol, I never thought about how polar opposite my niches were until I re-read that sentence). Anyways, I guess the company should also have profiles/hubs, but what about for Outreach? I feel like outreach should be done by a personal profile, since outreach is all about networking and building relationships. Any direction/help/tips here? Thanks everyone, Tyler A.
Social Media | | TylerAbernethy0 -
Value in content from website being shared across social media?
If I write content (small career advice quotes) on my website and I distribute across Twitter and FB I assume my site will get the full credit (from an SEO perspective) since that is where the content was originally uploaded. However, will I still get SEO credit for being active on social media, or will Google view it as duplicate content and evaluate that I am not active on social media? thank you
Social Media | | knielsen0 -
What is the best way to promote a blog like blogsport or wordpress?
Hello, With the recent algorithm changes of Google I am wondering what the the best way is to promote a blog like blogspot or wordpress? Looking forward to your answers! Regards, Thomas
Social Media | | ThomasH0 -
Why has SEOmoz removed its G+ code?
Hi, Back in Jan I asked "Why has SEOmoz added G+ code to multiple pages?" - I wanted to double check something so looked at your source code but see that you've now removed the rel="publisher" code from all of your pages... Could you please let me know why its been removed? I don't want to add it to my site and find out 2 weeks later that you've done a big test and shown it hurts rankings or something like that. Thanks FashionLux
Social Media | | FashionLux0 -
Using a Social Media Infrastructure
I just wanted to share a technique I have had a great deal of success with called a Social Media Infrastructure. It has really increased the amount of followers on all of the social media sites I have been using. The first link explains a Social Media Infrastructure and the second link is somebody using the social media infrastructure whom has implemented the technique much better. http://kylelacy.com/social-media-seo-social-media-infrastructure/ http://brianwong.com/blog/how-to-automate-your-blog-workflow-and-increase-your-search-engine-ranking/ It does take some time to get all set up correctly, but it has increased my followers a ton. I am not going to claim that it gives you all the links and as much SEO benefit as they claim, but it does give your social media some muscle.
Social Media | | photoseo10 -
Social Accounts/Networks Multiple account management?
Having tried Yoono and Tweetdeck I'm leaning towards Tweetdeck for ease of use.... Managing 5 facebook accounts, 9 facebook pages and 6 twitter accounts at the moment... Any other suggestions for tool or software I should consider?
Social Media | | JohnW-UK0