Hi!
I would like to know if there is a way of tracking the clicks on a collection item?
A counter in the CMS that goes one up every time someone clicks it.
I would like to show the most viewed blog posts, and so far I can only solve it by tracking it in Google Analytics, and then manually changing a field with nr of clicks in my CMS every now and then. But the project is for a client, and I don’t intend on doing this forever, and I also don’t think he would love this solution.
I have also thought about trying with custom code, but all I can think of would make the counter start at 0 for every person ever opening the page and also restart at 0 on refresh.
There is no easy native way of doing this. You’ll need to set up a way to get impression counts from something like Google Analytics, then use the Webflow API to update a field in the CMS through something like Postman, Zapier or Integromat.
Hey Jorge, we’ve built an analytics tool just for Webflow and it can help you with exactly this kind of thing.
After you’ve signed up and added tracking, click on “New metric” then follow either of these steps:
To see popular CMS items, open the dropdown and choose “Collections” followed by the collection you want. You’ll see a list of the most popular items in that collection (based on clicks).
To see popular CMS pages, choose page views from the dropdown (it should be the default) and then enter /<SLUG>, slug being the collection list slug. Then open the breakdown by dropdown and choose “Path”. You’ll see a list of the most viewed pages inside that collection.
For example, if I want to see which pages are most popular for my collection with the slug how-to, I’d do this: