Setup Google Analytics Jekyll
If you own website/blog/portfolio site or anything that can be access in url and you want to track the traffic google this article maybe can help you.
In this article will be show how to set up analytics for a website (Universal Analytics) based on this Link
Google Analytics
Google Analytics is a web analytics service offered by Google that tracks and reports website traffic, currently as a platform inside the Google Marketing Platform brand.
Create an Analytics account
Your first step is to set up an Analytics account, unless you already have one. Skip to creating a property unless you want to create a separate account for this website.
- In Admin, in the Account column, click Create Account.
- Provide an account name. Configure the data-sharing settings to control which data you share with Google.
- Click Next to add the first property to the account.
Create a property
- Enter a name for the property.
- Click Show advanced options
-
Turn on the switch for Create a Universal Analytics property.
- Enter the website URL. Select the protocol (http or https).
-
At this point choose to create
- Click Next
- Click Create
Setup on you Jekyll
Im using minimal mistake theme, basically what we doing just modify _config.yml
Add this code to your config file
# Analytics
analytics:
provider : google-gtag # false (default), "google", "google-universal", "google-gtag", "custom"
google:
tracking_id :
anonymize_ip : false # true, false (default)
copy and paste your tracking ID in the file
If everting already setup you can check you dashboard