How To Create Most Popular View?

Created on 19 September 2017, about 7 years ago
Updated 10 July 2023, over 1 year ago

I'm stumped how to create a most popular view.

I've enabled the module.

Created a "Trending" view.

But what do I set the sort criteria to?

On this mod's front page it says:

To use the counts in Views we make use of the Drupal core module 'Statistics' (enabled as a dependency; its own counting at should of course be disabled and any old values will be overwritten) and set its permissions the way you wish at People -> Permissions, and in your Views (of nodes!), show/sort/filter by variable 'Content/Node statistics: Total views'

Does that mean Total views of all time?

I want the most views in the past day, hour, 15 minutes, etc. Can that be done?

Also what database to use to set it for most popular? The statistics database or this modules? And so I do need to have the statistics module enabled for this type of view, right (dependency as above)?

For some reason I can't get the most recent nodes to display. It's showing nodes from like years ago.

Also If I use the Google Analytics Counter: Pageview Total (Pageview Total) as a field, it shows 0.

The dashboard also lists: Number of nodes with known pageview counts on this site: 25.

Here is a screenshot:
https://i.imgur.com/eKIdLhB.jpg

Basically I want to grab the nodes from google analytics with the most hits every hour.

πŸ’¬ Support request
Status

Closed: outdated

Version

3.0

Component

Miscellaneous

Created by

πŸ‡ΊπŸ‡ΈUnited States mattwmc

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • πŸ‡ΈπŸ‡°Slovakia kaszarobert

    Because of the Universal Analytics shutdown, version 7.x-3.x is no longer supported.
    As Drupal 7 EOL is close, please consider upgrading to the latest Drupal and latest version of this module with Google Analytics 4 support.
    If you are still here and experiencing problems with the latest version using GA4, then please open an issue about it.

Production build 0.71.5 2024