Search⌘ K

Integrate Google Analytics to the Website

Understand how to create a Google Analytics account, set up a tracking ID, and integrate it into your R-powered website. Learn to embed the tracking script, deploy updates via GitHub, and verify data collection to monitor your site's user activity through Google Analytics dashboards.

How we get started

If you don’t have a Google Analytics account, you can go to Google Analytics homepage and locate the “Start for free” button. Once we’ve signed up for Google Analytics, we’ll need to create an account, property, and tracking ID for our website. Placing the tracking ID into the config.yaml file and triggering a fresh website deployment will complete the Google Analytics integration and enable us to analyze the data immediately.

How to set up Google Analytics

We can follow these steps to integrate Google Analytics, or GA, into our website:

  1. First, we sign in to Google Analytics and click “Start measuring” to create an account.

  2. Under “Account setup,” provide an appropriate name (for example, ...