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.

CommentFileSizeAuthor
#5 gotwo-counter.patch606 bytesvbisht

Comments

hass’s picture

Version: 6.x-1.2 » 6.x-1.x-dev

So you'd like to append the number of clicks to the gotwo link text?

g10tto’s picture

I'd just like some way to show those numbers wherever I want. e.g. "This has been clicked X times."

hass’s picture

No idea what you need. Post a patch for review, please.

g10tto’s picture

I'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"

vbisht’s picture

Version: 6.x-1.x-dev » 5.x-1.5
Category: feature » bug
StatusFileSize
new606 bytes

It 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

hass’s picture

Status: Active » Fixed
g10tto’s picture

Version: 5.x-1.5 » 6.x-1.2
Category: bug » feature
Status: Fixed » Active

Um, 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).

hass’s picture

Status: Active » Closed (won't fix)

No patch, no progress, closing.