It would be great to have a php function or bit of code that would allow me to say "[link] has been clicked [#] times"
Our site has a directory of camp listings and we want to be able to show the people who sign up to be a part of these listings how many hits their camp gets without grabbing a screenshot of the admin side.
| Comment | File | Size | Author |
|---|---|---|---|
| #5 | gotwo-counter.patch | 606 bytes | vbisht |
Comments
Comment #1
hass commentedSo you'd like to append the number of clicks to the gotwo link text?
Comment #2
g10tto commentedI'd just like some way to show those numbers wherever I want. e.g. "This has been clicked X times."
Comment #3
hass commentedNo idea what you need. Post a patch for review, please.
Comment #4
g10tto commentedI'm not a developer, so I have no patch to post.
I'm just asking for a way to take the information (the number of clicks for each Go redirect link created by the module) that you collect on the Site Building > Go Redirects page, and display it in plain text elsewhere.
For example:
Let's say I create a Go link to the New York Times homepage, and title it "New York Times." On the Go redirects page it will show the link ID, the Label "New York Times", destination web address, and finally the Counter (the number of clicks). I want to be able to display the counter number outside of the Go redirects page where normal visitors can see how many times other people clicked to visit the New York Times site.
"12 people clicked through to see the New York Times homepage"
Comment #5
vbisht commentedIt seems the release version 5.x.1.5 has broken the counter. Earlier, you could track the hits at admin/build/gotwo. The issue seems to come from line #131.
The attached patch fixes the problem
Comment #6
hass commentedComment #7
g10tto commentedUm, no. This isn't a bug for missing stats. It's a request to develop a means to post those stats as a dynamic plain-text counter *throughout* the site (not just on the counter page in the admin side).
Comment #8
hass commentedNo patch, no progress, closing.