Blog Traffic Counts

Zachary Moonshine
Zachary Moonshine
@zachary-moonshine
7 years ago
824 posts
On my last site with SE we had a feature that similar to the likes was a little counter visible to the public on each blog post that showed how many views the post had, it was very cool for bands to see when we posted a blog about them that it had thousands of hits is this possible to do here on jamroom?
updated by @zachary-moonshine: 05/30/17 03:58:11AM
Zachary Moonshine
Zachary Moonshine
@zachary-moonshine
7 years ago
824 posts
nice i figured this would probably be possible here gonna check that out
michael
@michael
7 years ago
7,746 posts
The trick to this one would be giving it the right name.

* If you call every page view 'blog_view' then its not going to know which blog was viewed so will count each blog view of anything as 1.

* If you include the profile_id in the count, then it will count all blog views on this profile as 1 and you will end up with a total blog post views for the profile.

* If you put the _item_id of the blog post in the count then you will just get the count for the views of just that blog post.