Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Hi there,
I want to print the number of unique visits of each node in the node.tpl.
before installing this module i was doing something like this in my node.tpl:
$statistics = statistics_get($node->nid);
print format_plural($statistics['totalcount'], '1 read', '@count');
however, because i have a block in my page which loads the same node type to show a menu kind of thing... therefore everytime I refresh the page it increments it by 2.
That's why i decided to show only unqiue visits and installed advanced statistics module.
now, how can i print the numbers in my template??
Thanks alot in advance.
Sh