how to display node hit in drupal? - drupal

i want to add page hit to nodes on my drupal site.how can i do that?

Use the built-in Statistics module to add a pure page count. If you want to display the number of unique visitors that visit a page, you will need to use the Statistics Advanced module .This module counts the number of unique IP addresses per visit, while the Drupal core Statistics module increments its count every time the node is viewed.

What might work easier is "Node view count" module: http://drupal.org/project/nodeviewcount
I also came accross this other useful "Visitors" module: http://drupal.org/project/visitors
Hope this helps...options are always good :)

The built-in Statistics module offers this.

After enabling the Statistics module, you can en/disable and configure it here: Administer -> Reports -> Access log settings (admin/reports/settings). The Statistics Advanced module's configuration is there, also.

Related

The Google Analytics Vote For Trump Analytics Spam

We were checking newly implemented Google Analytics for our mobile app and surprisingly there are a lot of visitors from multiple countries but in actuality, we haven't released our app for any store and it's just beta between 5 main users.
After checking Google Analytics report in details we have found that it got spammed by Bot call "Trumps Bot" when something happens on your account you can see following lines in your language section.
“Secret.ɢoogle.com You are invited! Enter only with this ticket URL. Copy it. Vote for Trump!”
There are a lot of solution available to avoid this data in your reports using the filter but i was just wondering if there is any concrete solution on permanently remove this data from my reports and also is there anything we can do to avoid such data in future as its seriously affecting business strategy.
Due the tecnology used on Google Analytics the only way to eliminate this referal is using a filter, check one common point of all this hits . In this case is a hard one, because all the parameters changes , exept for the language, for a well know reason, to see the spam.
So try to use this one, in my case works
I highly recommend you read the community policy, this can be considered as off-topic question
Analytics spammers are always trying to find new ways of getting attention, and with this one, this spammer hit it big.
It is not possible to permanently remove it unless you delete the whole property. But you can create and advance segment to get a clean view.
But the most important part is blocking it so it doesn't pollutes your data. For this particular type of spam you should create a custom exclude language filter with this expression:
\s[^s]*\s|.{15,}|.|,
That expression will block any hit that doesn't use a proper language. That combined with a valid hostname filter should prevent most of the current spam and save you a lot of headaches.
If you need help, you can check this step by step guide for building these filters and creating the advanced segment to remove it from your historical data.
Here is also a related question.
Login in to Your Google Analytics account
Select ADMIN Section
Click on All Filters -- Add Filters
Give a filter name such as -- Include only website traffic
In Predefined section, select  Include Only
for more... Click Here

Reports on Drupal Usage

I'm benchmarking some CMS's for future use.
I would like to know if with Drupal it's possible to have (extensions or api's) reports of back office usage.
Examples:
Users that don't create/update content for more than X days?
Content Areas that don't have new content for more than X days?
Number of contents waiting approval?
Thank you.
There are several contributed modules to Drupal that shows statistics for the site, take a look at the statistics category: http://drupal.org/project/statistics
For example, there is a module to display user statistics: http://drupal.org/project/user_stats
The better option is to build a custom module that search the database for the statistics that you need.

Drupal, faceted search and google api

A recent task I have to figure out, gives me some hard time thinking about it, so I decided to share it with you guys :)
My Drupal 6.x application is made using modules like: faceted-search, views, CCK.
Now I would like to add some additional functionalities connected with faceted-search module... And here comes the fun :)
I want to give my app user availability to search with additional field "distance".
So user-story looks like that:
User A adds item to application, he fills field: city, street etc.
User B decides to search some item in app. During search he decided that he do not want to anything in different city, so he decided that the distance should me 5km from his location (in his profile - city, street).
And the question in... How can I bite that, any suggestion, modules?
thx
tzim
I think Apache Solr will perfectly fit for it. It has very good Drupal module as well.

Ubercart: Create a set of products only one user can see

I'm using Drupal 6 with the ubercart (and required/recommended modules) installed, and I can't seem to figure this out...
How can you create a set of products (say about 100), then individually grant users access to view/purchase those products?
I'm working on a photography web site, and this is the basic requirement so users can buy and order prints of the photographers work with them, but no one else can see the photos.
Found this after hours upon hours of Googling and digging through documentation:
http://drupal.org/node/812184
If you follow the instructions, it works pretty well:
"I'd try using the TAC Lite module. http://drupal.org/project/tac_lite
By setting up a vocabulary with the terms equal to the role names, then assigning those roles to the terms in the TAC Lite interface, you'll get what you want."

How should I implement currency conversion in my Druppal application?

If an User has X amount of credits on his account (I think CCK can store this value). He can create specific Nodes (requests for admin). Each Node has a Type (Taxonomy defined, may be. Or via CCK). Each Type has associated number of credits. When user publishes a Node providing certain type, his balance of credits decreases by the number of credits Node Type has (admin will perform this request and send user notification email).
This is some kind of very simple e-shop for activation codes. I didn't want to use Ubercart due to it's complexity. May be this functionality can be achieved using some simple Drupal modules? Or may be there are some alternate ways? Or it is better to go Ubercart (can it do what I want BTW)?
I've seen folks in the Ubercart forums do this kind of thing for purchasing/posting ads on a site.
Check out these modules:
http://drupal.org/project/uc_store_credit
http://drupal.org/project/userpoints_ubercart
https://www.drupal.org/sandbox/taggartj/2343093
may be worth a look it is a credit system, adds a product feature to give user credits also has good helper functions to integrate with rules ect , also has a sub module to limit a content type by amount of credits and then deducts after the new node has ben created & has blocks to show the user their credits and credit history :)

Resources