Support

Installation Guides

Drupal Install Guide

StatCounter provides free customisable hit counters, visitor tracking, web analytics and website stats for Drupal.

Drupal

Module Version: There is also an official drupal module available for StatCounter installation.
  1. Copy the StatCounter code.
  2. Log into your Drupal website.
  3. Under the "Admin" menu, click "Administer" then "Site Building" then "Blocks".

    Drupal - Administer

  4. Now click "Add Block".

    Drupal - Add Block

  5. Enter "StatCounter" as the "Block Description" and paste your StatCounter code into the "Block Body".

    Drupal - Block

  6. Make sure that your "Input Format" is "Full HTML" then scroll to the end of the page and click "Save Block".

    Drupal - Input Format

  7. Now that you have created a StatCounter Block, you need to add the block to the footer area of your website. Scroll down the page to locate your new StatCounter Block.
  8. Drag and Drop the StatCounter Block into the "footer" section.

    Drupal - Drag and Drop

  9. Click "Save Blocks" and that's it!
Your StatCounter will now begin recording visitor information and, if you chose the visible option, your counter will be visible on your website!

Troubleshooting

NOTE: If StatCounter CODE instead of a StatCounter COUNTER is being (incorrectly) displayed on your website, then you may need to configure the "Input Formats" of your Drupal website. Here's how:
  • Under the "Admin" menu, click "Administer" then "Site Configuration" then "Input Formats".

    Drupal - Administer

  • Make sure that your default format is set to "Full HTML" then click "configure" beside the Full HTML option.

    Drupal - Full HTML

  • UNcheck the box beside "HTML Corrector" then click "Save Configuration".

    Drupal - HTML Corrector

  • Your StatCounter should now be correctly displayed on your site.


    Drupal - StatCounter


To assist you further, we’ve also put together a video tutorial which you can see below…



Sign Up

Sign Up for a free StatCounter account using our Drupal installation guide.

Create a Free Account

Already a Member?

You can reinstall Drupal on your StatCounter project.


Installation Guides A - Z

Over 2 million websites use Statcounter

Create a Free Account