---
title: "Connect Grav with Matomo Analytics"
description: "After installing Matomo Analytics, Grav users will need to know the best way to integrate the two. Below we cover how to connect Matomo Analytics with Grav CMS + Admin Plugin with the piwik plugin..."
url: https://www.inmotionhosting.com/support/website/analytics/grav-matomo-analytics/
date: 2019-05-29
modified: 2021-08-16
author: "InMotion Hosting Contributor"
categories: ["Web Analytics"]
type: post
lang: en
---

# Connect Grav with Matomo Analytics

After [installing Matomo Analytics](/support/website/analytics/install-matomo-analytics/), Grav users will need to know the best way to integrate the two. Below we cover how to **connect Matomo Analytics with Grav CMS + Admin Plugin with the piwik plugin and SSH**.

## Connect Matomo Analytics

1. **Log into Grav**.
2. Select **Plugins** from the left.
3. **[Install the “*piwik*” plugin](/support/edu/wordpress/install-grav-plugin/)**. [![install piwik plugin](https://www.inmotionhosting.com/support/images/stories/grav/grav-23-install-plugin-piwik.png)](https://www.inmotionhosting.com/support/images/stories/grav/grav-23-install-plugin-piwik.png)
4. Press **Continue**.
5. On the piwik configuration page, [add the **Site ID**](/) and **Piwik (*Matomo*) URL** without HTTP/HTTPS. [![add Matomo site ID and URL](https://www.inmotionhosting.com/support/images/stories/grav/grav-24-piwik-configure.png)](https://www.inmotionhosting.com/support/images/stories/grav/grav-24-piwik-configure.png)

## Using SSH

1. [Login SSH](/support/server/ssh/do-you-provide-ssh-access/).
2. Navigate to the [Grav root directory](/support/website/where-to-upload-files/).
3. Install the piwik plugin with bin/gpm install piwik.
4. Copy the */piwik.yaml* to *users/config/plugins/* and [update the **Site ID**](/) and Piwik (Matomo) URL. enabled: true siteId: 0 sitePiWikURL: ''

Learn more about Grav in our [Support Center](https://getgrav.org/).
