By webwriter on
I've just posted this over at Scriptlance but contact me if you are interested in taking it on.
I need to develop a Node Impression Counting module.
The Advertisement module does this, but I don't want all the complexity of the entire Ads module. But it's a good place to grab the parts needed, I would imagine.
Here are the details of what the module should include:
Admin Interface: Allows you to assign impression counting to specific content types.
Views Integration: Should create fields that can be added to a Views row for display.
-# Views Today
-# Views This Week
-# Views This Month
-# Views All Time
I am willing to donate this module to the community if you want to develop it.
Comments
If by impressions, you mean
If by impressions, you mean number of times viewed, you might check out the Statistics Granularity module.
The difference is I need to
The difference is I need to count how many times it is displayed, not how many times someone clicks on the node to view it, because it is an ad and when it is displayed and clicked, it goes to an outside URL.
I can't find anything within statistics that counts each time something is displayed in a block, only when someone actually visits the node.
I actually have found a developer to create this, although I don't know if it will be turned into a community module at this point- it requires some workarounds in views to create reports.
I did have a small module
I did have a small module built for this and have uploaded it here: http://www.rightclickwebs.com/new/node_impressions.zip
To use it, download and install the module. You'll also need to download and install Views Custom Field.
After installing the module you ll have to add new field in your Views, choose Customfield group then select Customfield: PHP code. In a next page you can select Exclude from display so this field won't be visible. Under the value, copy/paste following code:
To add # of views today, this week, this month and total you have them available as fields under the Node impressions group.
This data is updated on each cron run.
I didn't code it and therefore can't offer any support for it but it does what I need it to. Hopefully it can help someone else!
If anyone wants to make this an official module, feel free to do so.
After several years is there
After several years is there any way to achieve this in a more streamlined way on D7?