--- label: 'Tracking and displaying popular content' related: - core.tracking_content - history.tracking_user_content - tracker.tracking_changed_content - block.place --- {% set statistics_settings = render_var(url('statistics.settings')) %} {% set permissions = render_var(url('user.admin_permissions')) %}

{% trans %}Goal{% endtrans %}

{% trans %}Configure and display tracking of how many times content has been viewed on your site, assuming that the core Statistics module is currently installed.{% endtrans %}

{% trans %}What are the options for displaying popularity tracking?{% endtrans %}

{% trans %}You can display a content hits counter of how many times a content item has been viewed, at the bottom of content item pages. You can also place a Popular content block in a region of your theme, which shows a list of the most popular and most recently-viewed content.{% endtrans %}

{% trans %}Steps{% endtrans %}

  1. {% trans %}In the Manage administrative menu, navigate to Configuration > System > Statistics.{% endtrans %}
  2. {% trans %}Check Count content views and click Save configuration.{% endtrans %}
  3. {% trans %}In the Manage administrative menu, navigate to People > Permissions.{% endtrans %}
  4. {% trans %}In the Statistics section, check or uncheck the View content hits permission for each role. Click Save permissions.{% endtrans %}
  5. {% trans %}Optionally, in the Manage administrative menu, navigate to Structure > Block layout. Place the Popular content block in a region in your theme (you will need to have the core Block module installed; see related topic for more details on block placement).{% endtrans %}