I want to create a "view" that can records how many times a users profile page has been viewed by other users using statistics.

Comments

steveburge’s picture

Hi smatron

Are you collecting the page views statistics at the moment? Do you have the Statistics module enabled?

smatron’s picture

thanks stevejburge for replay, yes i have Statistics module enabled and i am collecting the page views statistics, but i want Records how many times a users profile page has been viewed by other users, and show it in view block.

steveburge’s picture

Hi smatron

It should track the visits to user profile pages also.

When you enable the Statistics module, you'll get a "Track page visits" tab appear on each user profile page.

You can then use Views to add the stats as a field.

smatron’s picture

Is there a way to stop Statistics from incrementing when the users visit's the page again, and also can i track page visits based on user role.
"Thanks you"

steveburge’s picture

By default, I believe the answers are "no" and "no", I'm afraid. Both would require some custom code.

smatron’s picture

do you know where can i get the code