Sky Blue Sofa concrete5 Add-Ons How the 'Popular Pages' Addon Works

How the 'Popular Pages' Addon Works

Setting Up the Block

The Popular Pages addon for concrete5 works very similar to the built-in concrete5 Page List. The two major differences are:

  • Choose the page type(s)
  • Different sorting methods

Choose the Page Type(s)

Sometimes you just want to show results from only one or two page types. Say for instance, you only wanted to show how popular the articles on your site are, you would check the box next to the 'Articles' page type.

Screen_Shot_2012-09-26_at_6.28.37_PM.png

Sorting Methods

The Popular Pages addon gives you six methods to show popularity:

  • Currently trending
    This shows the pages sorted by those with the largest difference in page views within the last 7 days 
  • Trending in the last 2 weeks
    This shows the pages sorted by those with the largest difference in page views within the last 14 days 
  • Most popular in the last week
    This shows the pages sorted by those with the most number of views in the last 7 days 
  • Most popular in the last 2 weeks
    This shows the pages sorted by those with the most number of views in the last 14 days 
  • Most popular in the last month
    This shows the pages sorted by those with the most number of views in the last 30 days 
  • Most popular of all time 
    This shows the pages sorted by those with the most number of views total 

Screen_Shot_2012-09-26_at_6.28.50_PM.png

Behind the Scenes

Like the built-in page statistics for concrete5, this addon tracks the page views by your visitors. However, it only tracks when a page is being viewed, not when it is being edited. In addition, the visitor's UserAgent is checked against a list of bots. If the addon does not believe the visit is from a bot, then it gets tracked.

Since it takes some time to get enough statistics for displaying the popularity correctly, this addon will use the built-in popularity until it has gathered enough data. For example, the 'Most Popular for the Last Week' only takes 7 days to get enough statistics and start showing correct popularity.