PHPackages                             mediadreams/md\_news\_pages\_clickcount - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. mediadreams/md\_news\_pages\_clickcount

ActiveTypo3-cms-extension[Utility &amp; Helpers](/categories/utility)

mediadreams/md\_news\_pages\_clickcount
=======================================

With this TYPO3 extension you are able to count views of pages and ext:news records. You can display a list with most viewed pages/news and delete the statistics automatically with a scheduler task.

v1.0.1(5mo ago)04GPL-2.0-or-laterPHP

Since Oct 22Pushed 5mo agoCompare

[ Source](https://github.com/cdaecke/md_news_pages_clickcount)[ Packagist](https://packagist.org/packages/mediadreams/md_news_pages_clickcount)[ RSS](/packages/mediadreams-md-news-pages-clickcount/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (2)Versions (3)Used By (0)

TYPO3 Extension `md_news_pages_clickcount`
==========================================

[](#typo3-extension-md_news_pages_clickcount)

With this extension you are able, to count views/clicks of `ext:news` or `pages`-records. Additionally it integrates a new option in the plugin of `ext:news` to show records ordered by views. A new plugin to show pages ordered by clicks is shipped as well.

Requirements
------------

[](#requirements)

- TYPO3 12.4 || 13.4
- ext:news &gt;= 11.0

Installation
------------

[](#installation)

- Install the extension by using the extension manager or use composer (`composer req mediadreams/md_news_pages_clickcount`)
- Include the static TypoScript of the extension

Usage
-----

[](#usage)

### Count views

[](#count-views)

- In the news detail view template add the following code:
    `{md:getCountImg(recordUid: '{newsItem.uid}', recordType: 'news')}`
- In the pages template add the following code:
    `{md:getCountImg(recordUid: '{data.uid}', recordType: 'pages')}`

Make sure, that you import the namespace to the ViewHelper by adding the following line at the top of the template: `{namespace md=Mediadreams\MdNewsPagesClickcount\ViewHelpers}`

Note:

- All hits to a news preview have the speciel parameter `tx_news_pi1%5Bnews_preview%5D`. When this is set, no tracking happens.
- By default, all hits of logged in backend users will be ignored. Enable visits of logged in backend users in the extension settings, if needed.

### Show most read news

[](#show-most-read-news)

- Insert the plugin `News system` of `ext:news` on a page
- In `Settings`-tab select `List view (without overloading detail view)` in the `What to display` dropdown
- Select `Views` in the `Sort by` dropdown
- Select a `Sort direction` (`Descending` will show the most viewed articles first)
- Save and close

### Show most read pages

[](#show-most-read-pages)

- Insert the element `Pages by views` on a page
- `Plugin`-tab
    - Select the type of pages in `Page type` which you want to show
    - In `Startingpoint` select the starting point
    - In `Recursive` set the levels, how deep you want to dive down the page tree
- Save and close

### Spam prevention (works for news entries only!)

[](#spam-prevention-works-for-news-entries-only)

In the extension settings, you are able to set `daysForNextCount`, which adds an IP check. So multiple views of the same IP address in the given timespan (days) will be counted just once.

By default this functionality is disabled (`daysForNextCount = 0`)

ATTENTION:

If you have set `daysForNextCount` to something higher than 0, please make sure, that you activate the scheduler task `mdNewsClickcount:cleanupLogCommand` of type `Execute console commands` in order to meet the GDPR requirements! This will clean up the log.

### Clear views

[](#clear-views)

- Add a scheduler task of type `Execute console commands`
- Select `mdNewsPagesClickcount:clearViewsCommand` in `Schedulable Command` dropdown

Bugs and Known Issues
---------------------

[](#bugs-and-known-issues)

If you find a bug, it would be nice if you add an issue on [Github](https://github.com/cdaecke/md_news_pages_clickcount/issues).

THANKS
======

[](#thanks)

Thanks a lot to all who make this outstanding TYPO3 project possible!

Credits
-------

[](#credits)

The icons in this extension where kindly taken from [Font Awesome](https://fontawesome.com).

**The TYPO3 project - inspiring people to share!**

###  Health Score

31

—

LowBetter than 68% of packages

Maintenance73

Regular maintenance activity

Popularity3

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity36

Early-stage or recently created project

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~49 days

Total

2

Last Release

152d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/c5d77efbf0d5d788c58c6c783c044fc88a8009cdc65dff094a6b8d7de862de94?d=identicon)[mediadreams](/maintainers/mediadreams)

---

Top Contributors

[![cdaecke](https://avatars.githubusercontent.com/u/2102444?v=4)](https://github.com/cdaecke "cdaecke (2 commits)")

---

Tags

extensionpages newsTYPO3 CMStypo3viewscounttx\_news

### Embed Badge

![Health badge](/badges/mediadreams-md-news-pages-clickcount/health.svg)

```
[![Health](https://phpackages.com/badges/mediadreams-md-news-pages-clickcount/health.svg)](https://phpackages.com/packages/mediadreams-md-news-pages-clickcount)
```

###  Alternatives

[georgringer/news

News system - Versatile news system based on Extbase &amp; Fluid and using the latest technologies provided by TYPO3 CMS.

2815.1M90](/packages/georgringer-news)[georgringer/eventnews

Extend EXT:news with event and calendar functionality

31588.7k4](/packages/georgringer-eventnews)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
