Active
Project:
Statistics
Version:
1.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
26 Mar 2024 at 16:40 UTC
Updated:
13 Jun 2024 at 11:55 UTC
Jump to comment: Most recent
After Enabling the statistics module I found node view counts only showing in EN language. I have a website with multi-language enabled. English language is the default and Turkish is the secondary language. Node view counts only show in English language. In Turkish it always shows 1 view.
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #4
fgmSince D9 is EOL, moved issue to the contrib version of Statistics.
Comment #6
samitk commentedIt is working at my end, i am getting the Node view counts in all the languages,
The only problem I found is, all the languages have the same count,
For Example: If node id 1 in English have 10 count, then I translate node i to another language it also have the same count 10, ideally it should starts from 1.
@fms please suggest.
Thanks
Samit K.
Comment #7
fgmGood to learn this now works.
For versions 1.x this is as designed (feature, not bug) : the statistics table accumulates views across languages and revisions, keeping only a single count per node, and will not change in 1.x for compatibility.
This is something that we probably want to change in 2.x indeed. Accordingly, converting to feature for the next version.
Comment #8
samitk commentedHI @fms,
Do we need a new ticket for this feature request?
Thanks
Samit K.
Comment #9
samitk commented