The revolution in the digital economy is forcing the retail pharmacy industry to develop new business models to achieve operational excellence. A large amount of user-generated content on social media can be captured and analysed to help organisations gain insights into market requirements and enhance business intelligence. Accordingly, this study proposes an analytic framework for retail pharmacy organisations to: a) use social media and highlight the most-discussed topics by consumers, b) to identify the key areas for improvement based on the most negative comments received, and c) to determine the connections amongst the important concepts and enhance customer loyalty by adding values to consumers. We conduct an in-depth analysis on the Twitter platforms of the three largest retail pharmacy organisations in the UK: Boots, Lloyds and Superdrug. The findings show that issues with marketing, customer service and product are the key improvement areas for the retail pharmacies. Particularly, Boots received an overall better sentiment performance than Lloyds and Superdrug. We also determine the relationships amongst the important concepts discussed by consumers. The analysis generates insights into the use of social media for supporting pharmacy organisations in developing their social media strategies as well as improving their operations and service quality.