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
-
Wordpress Socialize Plugin giving me 400+ 302s. Should I be concerned?
Looking at my report and saw I had over 400 302s. When I looked where they came from, it seems it's from a plugin called socialize sending stuff to Facebook. Does it matter?
Social Media | | IoanSaid1 -
Does a 301 retain social actions
I just changed the domains on one of my largest and oldest sites for branding reasons. I have the 301 set to keep the page structures and all. My question is will the "likes" and shares and etc be kept via the 301 or will they have to be reacquired?
Social Media | | Atomicx0 -
Anyone use the new "Social Settings" in Google Analytics?
In the past couple of months, Google rolled out a tab called "Social Settings" in the Admin area (see image). It's an optional setting, and Google is rather vague about what it does. GA already tracks social in "Traffic Sources," so what is the advantage of using Social Settings? If you've used these new settings, what have your experiences been? Were the settings helpful? Did they completely screw up your analytics? Thanks, Benjamin Ri5bY Ri5bY.jpg
Social Media | | 1000Bulbs1 -
How to Start a Social Networking Site
I am thinking about starting a niche social networking site. My question is how big of a team would I need, how much up front costs would I incur and what specific coding languages would my team need to be well versed in? I'm thinking HTML, CSS, php, MySQL but are there any other languages needed for this type of endeavor ?
Social Media | | bronxpad0 -
How to get most out of viral blog traffic?
Our website has a WordPress blog, hosted at website.com/blog. I've discovered that with some hard work and a bit of luck, I can create a blog posts that will go viral - they will get about 50k readers in 1-3 days (which is a LOT for our website), and 300-1000 tweets, 100-250 Facebook shares, and anywhere from 10 to 130~ G+1s. (Unfortunately, these are for the posts, not for our website.) The posts will also get some comments. And most importantly, a few links - sometimes from very reputable domains. However, I feel that I could be doing much more here. The links go directly to the blog post, and I'm not sure how much is that helping our website overall in regards to SEO. What actions can I encourage the readers to do, and how should I prioritize them? Some of the actions are: Sharing/liking, writing a comment, checking out our products, subscribing to our Facebook/Twitter/G+ profile, subscribing to our RSS. One another possible action/opportunity that I see and which could potentially pay off is to offer some kind of PDF report to be emailed, which would initiate an autoresponder sequence. Do you think that having a clear call to action in a blog post could reduce the sharing of it ? Is it possible to encourage whoever is writing about our blog posts to use a direct link to our website, instead of linking directly to the post? If yes, how? E.g. if I included a direct link to our website in the post itself, e.g. in the most important part of the post that gets quoted, it could work - unfortunately that's usually virtually impossible. Am I sitting on a gold mine here, and should do this as much as possible? Should I consider putting this content not just onto the blog, but on our website.com/something ? I'm actually not sure how that would help though, it would simply have a shorter URL. I've discovered that it doesn't matter where I post this content, if the presentation looks decent. So it doesn't have to be posted on website.com/blog. I can even post it on other domains - should I? And the most important question: How do I get the most out of this opportunity in SEO regards? Thanks for any ideas or insights!
Social Media | | Jiri.Novotny0 -
What's a good social media content creation brief template?
I'm trying to put together a brief template for our copywriters to use when requesting the creation of a piece of content. These are the points I have thought of so far are: Subject / Topic Content Objective Desired User Outcome / Call to action Sources, References Tone of voice Related product information Target SEO keywords Can you think of anything else to add? Do you know good resources (articles, blog post) tackling the subject of a content creation brief? Thanks in advance.
Social Media | | Amiee0 -
What are your top 3 social bookmarking and social networking sites for Ecommerce?
I am trying to figure out the best social bookmarking and social networking sites to use for my eCommerce sites. Often in the social bookmarking platforms posting a review or a product is instantly considered spam. I know that having links from these types of sites are important but I don't want to come across as spam. What creative solutions do you use for this challenge?
Social Media | | purch0