# Installation

This plugin can be installed either through the Plugin Store or through Composer.

# Plugin Store

  1. Go to Craft → Plugin Store and search for Analytics, then click Install.
  2. Then navigate to Settings → Analytics and follow the instructions to connect to Google Analytics.

# Composer

  1. Open your terminal and go to your Craft project:

    cd /path/to/project
    
  2. Install the plugin via Composer:

    composer require dukt/analytics
    
  3. In the Control Panel, go to Settings → Plugins and click the “Install” button for Analytics.

  4. Go to Settings → Analytics and follow the instructions to connect to Google Analytics.