Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

how to display node hit in drupal?

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

like image 551
hd. Avatar asked Dec 17 '10 21:12

hd.


People also ask

How nodes are displayed in Drupal?

Content items managed by the Node module are typically displayed as pages on your site, and include a title, some meta-data (author, creation time, content type, etc.), and optional fields containing text or other data. (Fields are managed by the Field module in Drupal 7.) Each node has an unique ID.

What is display mode in Drupal?

Drupal View Modes allow you to render (display) a Drupal entity or entities (like nodes) in a certain way, based on a particular context. This tutorial will demonstrate the usage of Drupal View Modes with an example. We will install and also use the modules Field Group and Display Suite. Let's get started!

What is the node in Drupal?

All content on a Drupal website is stored and treated as "nodes". A node is any piece of individual content, such as a page, poll, article, forum topic, or a blog entry. Comments are not stored as nodes but are always connected to one. Treating all content as nodes allows the flexibility to create new types of content.


2 Answers

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.

like image 191
mikesir87 Avatar answered Nov 15 '22 08:11

mikesir87


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 :)

like image 39
hmartens Avatar answered Nov 15 '22 09:11

hmartens