Skip to main content

How to install Visitor Analytics on Drupal

Two Options. Same Result.

We are now part of the Drupal community. You can add Visitor Analytics on your Drupal 7/8 site directly from Modules Market.

Basic Installation

How to install the module (once you have it as .zip or .tar.gz):

1. Go to your Drupal Dashboard

2. Go to Modules (Drupal 7) / Extend (Drupal8)

3. Make sure that Update Manager enabled (so you can install new modules) and Save configuration (only for Drupal 7)

4. Click on Install new module

5. Choose the .zip/.tar.gz file and Install it

6. Enable Visitor Analytics and Save configuration (only for Drupal 7)

7. Select Configure buttonright by the Visitor Analytics module

Visitor Analytics can be found in Configuration menu as well

Adding as script

If you do not want to install the module, you can simply add a script (our tracking code) to the source code of your website, following these steps:

1. Copy your Tracking code

2. Log into your Drupal account and select your project

3. Click on Structure button from the top left side

4. Select Block layout and then Custom block library

5. Click on Add custom block button

6. Give your block a name

7. At the bottom chance select the Text format to Full HTML

8. Select Source

9. Paste the Visitor Analytics tracking code into the text box

10. Hit the Save button

11. Click Block layout tab

12. Scroll down and click Place Block button next to Footer

13. Click Place Block button next to your freshly created block

14. Click on Save blocks button

You are all set now and can check your website statistics at any point in time.