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
-
Pay with a Tweet (or other social payments) in the Freemium world
Hi Mozer(s), I work for a company which provides cloud-based collaboration environments for companies. Like many companies in this field, we offer a Free package, which gives users enough capabilities to explore our tool under business-alike circumstances. However, we currently dont have a time limit for our free version - which, makes us (I think) quite unique from a competitive standpoint. But consequently, it also means a lot of users see no immediate need to upgrade to a business package. If maintaining this business model, we are considering various options in how to generate more awareness. The company is quite new and can generally only get better results of SEO and social media advancement. One alternative is to start charging for signup to the Free package, using Social payments scheme, i.e. get access to the collaboration tools for free if liking, tweeting, plusing us, using a pre-defined message, hashtag, etc, using a hybrid approach, allowing users to edit some/all of the message. It may have an impact on number of sign ups, but are there other potential negative effects? I have seen some comments, both positive and negative, about its SEO impact, mostly positive, not least from this [Youmoz post](How To: Win Tweets and Influence Search Engines with PayWithaTweet).- though unlikely to have a direct SEO effect, it can increase sharing, exposure and SERP presence. But any flip sides social payment users should be aware of? Thanks in advance.
Social Media | | Clinked0 -
How does Social Media really Impact SEO?
It's become a common refrain that social media is critical to SEO. Taking this literally, I have been examining the impact of social media on specific pages and topical areas within my site. Specifically, I am looking at pages and content areas that we promote and link to via social media and I am seeing zero correlation to SEO success. Social media is not impacting my rankings at all. And we have a sizable social footprint. Has anyone else done this type of analysis and seen different results?
Social Media | | AmyLB0 -
Do social media buttons work better "within" a website or "outside" of a website?
Websites like techcrunch.com include the social media buttons (+1, FB like, linkedin etc.) to the left of their articles so they seem to float outside of the content. Some even let the social media buttons wander while scrolling, so that they are always visible (e.g. here: http://www.kirstenwinkler.com/news-from-palabea-and-how-to-prepare-kids-for-tomorrow/). The "traditional" way has been to include the buttons within the content, e.g. on top of the article or on the right hand side. I was wondering which alternative has the largest impact. Intuitively "outside" of the content should be more visible as it "breaks" with the website design. Has anyone done an empirical test which version gets more clicks?
Social Media | | aschroet0 -
Scoop it is anyone using this social networking site to generate traffic
hi i have just come across scoop it http://www.scoop.it/t/gastric-band-hypnotherapy which is a magazine site where you can post items and news and i would like to know if anyone is using this to generate traffic for their site and generate links. I cam across it after finding out that links were coming to my site from the network and this morning i have signed up as a free member to try it but there are paid options. I would like to know if anyone is using it and how successful it has been for them
Social Media | | ClaireH-1848860 -
Social Media Plugins advice - Google+ Pages - what is best for SEO?
I'm seeking some social media plugin advice, in relation to SEO. This may not be possible to answer yet, or ever? But it could be worth a discussion. As far as i can see, there are two main forms of plugins (taking facebook as an example): 1 that directly connects a user to your brand page on said platform (eg like us on facebook) 1 that allows a user to 'like', 'share', 'recommend' the page that you are on as a sign of respect and/or sharing content For a home page, I am confused as to which one to use, without filling out the whole page with plugins. One objective is to increase fan numbers, the other is to increase content sharing, and possibly SEO? I've noticed that Google has been returning some personalised results based on mine, or my google+ connections +1's. So to the question... Do you think having more fans on the new Google Pages for business accounts will improve SEO to the same, if not higher weighting than a +1 does? and therefore is it more important to get more brand page followers, or +1's of the homepage?
Social Media | | ARMofficial0 -
Moderate blog comments Yes/No? Facebook comment plugin?
I was reading outbound marketing and they suggest that a good blog "does not" moderate comments. I have always taken the moderate approach, but their thought was this inhibits a conversation from taking place on the blog. I am wondering what thoughts others may have on this and its potential positive and negative impacts, both SEO and in general. Also I am thinking about using a Facebook plugin with my blogposts. I think this may be a good way to help get social visibility... Has anyone tried this yet?
Social Media | | mmaes0 -
Best place to have blog reside
So... I have a fairly new wordpress blog at myblog.com, but the ultimate goal is to drive traffic and increase rankings for mysite.com. With the rise of twitter/facebook influences do you think best to migrate the blog to a directory within www.mysite.com aka www.mysite.com/blog and then 301 direct all the existing pages to the new pages created or is it better to keep the 2 domains seperate and then just have links in the navigation of both sites to each other? My initial thoughts are to incorporate it within www.mysite.com/blog but not 100% sure? Quick follow up question.. Is there an easy code snipit to add to the .htaccss file to 301 direct myblog.com to mysite.com/blog? Thanks for any help and thought on this! John
Social Media | | JohnHerrigel0 -
MyBlogGuest+Wordpress+Onlywire = viable semi automatic blogging?
Do you guys recommend I pursue this combination? I want a semi-automatic (spend a few minutes a day picking interesting blog articles) blog and to automate its promotion. Is there anything else I could be doing? Also this combination doesn't seem to post to facebook pages well. I'd like to also add buttons to like/tweet/ etc, right on the blog. What are some best practices for this?
Social Media | | ilyaelbert0