How to Install Statcounter in Drupal


[image]drupal-logoStatCounter is a tool use for analytic purposes like tracking visitors, knowing which articles are popular and what keyword are people searching for among other things. Installing StatCounter is easy in most of the CMS like WordPress or blogger, however installation of it in Drupal requires a little extra effort than normal. Here are the steps.

Well, there are two ways to install StatCounter in Drupal. You may follow either method, but if you ask me, I’d recommend the first method.

  1. Using StatCounter module:

    Just install the StatCounter Module (http://drupal.org/project/statcounter) and activate it. Then under ‘Site configuration‘ find StatCounter. Configure it according to your wish and insert your StatCounter code there.

    Now from the ‘Site building‘ => ‘Blocks‘, just drag the StatCounter block to somewhere (preferably the footer) of your choice.

  2. By Create a custom block:

    Drupal provides a powerful block architecture that allows modules to create their own blocks or users to define a custom block. You can create a custom block for StatCounter tracking code by following the steps below:

    1. Goto admin => build  => block via the administration area.
    2. Click “Add block” at the top center of the page.
    3. Enter something like “StatCounter” for the description and paste the StatCounter tracking code in the body section.
    4. Now press “Save block.
    5. Locate the block in the list and set the “Region” combo to where you would like to display the code, most likely “footer.”

    Optionally you can set the scope in which the block will be displayed, but it can be more easily set using the StatCounter Module.

That’s it, so simple isn’t it? Have any difficulties still? Please comment and let us know.

Subscribe / Share

Article by Richie Sajan

Richie is a Computer Engg. student and the founder of techwithric.com. He blogs on softwares, wordpress, web-design, start-ups and random thoughts! He's also a author at Devil's Workshop. Follow him on twitter @richiesajan. . Richie Sajan has written 81 awesome posts. Richie Sajan tagged this post with: , , , , Read other articles by Richie Sajan
It's very calm over here, why not leave a comment?

Leave a Reply




Subscribe

Subscribe our RSS Feed to receive new softwares Or Subscribe by Email To receive our Updates directly in your Inbox.




Sponserer

MyFreeHouse
Hostgator
Payloadz