Using Search to Augment Analytics for News Websites

    by Rob Hammond
    August 22, 2016
    Screenshot of mirror.co.uk

    This guest post was originally published on Medium.

    At Trinity Mirror we publish thousands of articles every day, across dozens of websites. Working with this volume and velocity of content is a challenge.

    Traditional web analytics has a natural bias towards the top-performing content. While this works for relatively static sites, on a news website it can mean definitions of success are skewed. Many good pieces of content disappear into a void if they don’t build enough concurrents to flash up on the big leaderboard.


    As many other major publishers have identified, traditional web analytics software just isn’t good enough at providing analytics that meets the needs of news organizations. One approach I’ve taken at Trinity Mirror has been to look beyond blunt metrics such as concurrents, unique visitors and page views and take a closer look at the nature of the content itself and the factors that lead to its success or failure.


    Our in-house editorial analytics platform HiveAlpha started life as a simple tool for the SEO team to keep track of content being published across our network in real-time.

    Over time it has grown into a fully-featured editorial analytics and productivity platform. But how it was initially created has shaped a slightly different way of approaching editorial analytics as compared to other publishers’ in-house tools.


    Why HiveAlpha? It is intended to be a ‘hive’ for users to deposit and access useful information. And ‘alpha’ because it’s something I put together on my (long) daily commute.


    At the core of HiveAlpha is a search engine. In common with the Guardian’s Ophan, ElasticSearch is a central technology.



    ElasticSearch is excellent for analytics (as demonstrated by Kibana), and is used in HiveAlpha as both a noSQL database and a search engine. This means anything stored is inherently searchable, and through its aggregations, visualization and other analytics tasks are easy.

    Unlike Ophan (as far as I’m aware), HiveAlpha stores the content of every article we publish into a real-time searchable index. This allows us a level of insight into our content that no other web analytics tool I’ve seen offers.

    As with any large dataset, part of the problem with using traditional web analytics to analyze millions of pages is findability. By integrating search with content analytics, it’s easy to segment articles on flexible criteria.

    Some examples of what this allows us to do:

    • We can identify articles by language patterns. Q: when did we first mention ‘brexit’ in an article? A: 18 June 2013, almost a year before it was first used in the Commons.
    • We can perform highly advanced searches on our content in real-time, with more granularity than available on Google. For example we could easily find long-read articles published within the past year that mention a specific topic or phrase, by a specific author, with a lead video and more than three images.
    • With that query we could also view trends of other articles over time that match that criteria, and create a segment in our core business analytics tool to view how that content performs.
    • It’s no secret most news sites’ internal search functions are awful. With a better index internally, we can search a comprehensive index of all the content we’ve ever published, up to the minute. Google is fast, but it’s not always comprehensive, and will filter out content it doesn’t like.
    • Because we index article text separately from other meta-data, it means the number of false-positives you see on Google (which often happens with news sites as it indexes most read/shared/recent lists as well as the body copy) are massively reduced.
    • We can define new metrics on the fly — because we index everything we publish, often the answer to a new type of question is just a case of querying the dataset in a new way. For example recently we pulled out usage patterns of agency pictures on Mirror.co.uk; something no other internal tools were able to offer.


    The aggregations offered by ElasticSearch make it easy to create visualizations for standard analytics charts. But beyond the traditional audience charts, the data indexed in HiveAlpha has enabled experimentation with other visuals, such as the NewsMap below which shows recently mentioned locations in our stories:

    The NewsMap shows an overview of the locations mentioned in our articles. Photo courtesy of the author.

    The NewsMap shows an overview of the locations mentioned in our articles. Photo courtesy of the author.

    Another visual ElasticSearch allows us to do is view an overview of the tags we’ve used in our articles over a given period of time, shown below using the D3.js bubble chart. It’s not as accurate as a bar chart, but it can compress a lot of information into a small space — and it looks nice:

    The topic bubble is another way of seeing a broad overview of the content we publish. Courtesy of the author.

    The topic bubble is another way of seeing a broad overview of the content we publish. Courtesy of the author.

    Another nice visual is a calendar of our most viewed content over a given month, in much the same way as Google’s Trends calendar.

    Most popular news topics each day in June 2016. Courtesy of the author.

    Most popular news topics each day in June 2016. Courtesy of the author.

    One further way we can visualize our content is to see the internal link structure of our articles (which is handy for SEO). For any given topic, section or search, we can see the strongest pages and ensure they are being cited in the right way.

    An example is shown below of the Mirror’s coverage of Jeremy Corbyn, created using data exported from HiveAlpha and visualized using the wonderful Gephi — where you can calculate PageRank and express that in a network graph (as well as in tabular form):

    Link graph created using graphml and Gephi. Courtesy of the author.

    Link graph created using graphml and Gephi. Courtesy of the author.


    There are a lot of exciting things that can be done using search as a basis for analyzing content — much more than is available in commercial tools today.

    HiveAlpha does maybe 0.1% of what I think it could do, and in a later post I’ll discuss what we’re doing with the more traditional editorial analytics side of the platform.

    Rob Hammond is Head of SEO/Distributed Platforms at Trinity Mirror. Follow on Twitter @robhammond.

    Tagged: editorial analytics in-house analytics search analytics Trinity Mirror web analytics web metrics

    Comments are closed.

  • MediaShift received funding from the Bay Area Video Coalition (BAVC), which receives support from the Bill & Melinda Gates Foundation, to launch the MetricShift section to create a vibrant hub for those interested in media metrics, analytics and measuring deeper impact.

    About MetricShift

    MetricShift examines the ways we can use meaningful metrics in the digital age. We provide thoughtful, actionable content on metrics, analytics and measuring impact through original reporting, aggregation, and audience engagement and community.

    Executive Editor: Mark Glaser

    Metrics Editor: Jason Alcorn

    Associate Metrics Editor: Tim Cigelske

    Reader Advisory Board

    Chair: Anika Anand, Seattle Times Edu Lab

    Brian Boyer, NPR

    Clare Carr, Parse.ly

    Anjanette Delgado, Gannett

    Hannah Eaves, consultant, Gates Foundation

    Alexandra Kanik, Ohio Valley Resource

    Ian Gibbs, Guardian

    Lindsay Green-Barber, CIR/Reveal

    Celeste LeCompte, ProPublica

    Alisa Miller, PRI

    Connect with MetricShift

    Facebook group: Metrics & Impact

    Twitter: #MetricShift

    Email: jason [at] jasalc [dot] com

  • Who We Are

    MediaShift is the premier destination for insight and analysis at the intersection of media and technology. The MediaShift network includes MediaShift, EducationShift, MetricShift and Idea Lab, as well as workshops and weekend hackathons, email newsletters, a weekly podcast and a series of DigitalEd online trainings.

    About MediaShift »
    Contact us »
    Sponsor MediaShift »

    Follow us on Social Media