From 1b340c287fe07d113d940ddc5cf99ae984ea4236 Mon Sep 17 00:00:00 2001 From: ariseus <33930674+garywei944@users.noreply.github.com> Date: Tue, 18 Jun 2024 10:04:21 -0400 Subject: [PATCH] Support pirsch.io for analytics (#2513) --- _config.yml | 2 ++ _includes/scripts/analytics.liquid | 8 ++++++++ 2 files changed, 10 insertions(+) diff --git a/_config.yml b/_config.yml index 91fc047b5ed0..bb2aa88dba28 100644 --- a/_config.yml +++ b/_config.yml @@ -129,6 +129,7 @@ contact_note: > # and follow the instructions for Google Sites. You will need to create a Google Analytics property and copy the Google tag ID. google_analytics: # your Google Analytics measurement ID (format: G-XXXXXXXXXX) cronitor_analytics: # cronitor RUM analytics site ID (format: XXXXXXXXX) +pirsch_analytics: # your Pirsch analytics site ID (length 32 characters) # For Google Search Console, see https://support.google.com/webmasters/answer/9008080?hl=en#meta_tag_verification&zippy=%2Chtml-tag google_site_verification: # your google-site-verification ID (Google Search Console) @@ -421,6 +422,7 @@ lazy_loading_images: true # enables lazy loading of images (recommended) enable_google_analytics: false # enables google analytics enable_cronitor_analytics: false # enables cronitor RUM analytics +enable_pirsch_analytics: false # enables Pirsch analytics (https://pirsch.io/) enable_google_verification: false # enables google site verification enable_bing_verification: false # enables bing site verification enable_masonry: true # enables automatic project cards arrangement diff --git a/_includes/scripts/analytics.liquid b/_includes/scripts/analytics.liquid index 886cfd3aa465..4419a2cecfe8 100644 --- a/_includes/scripts/analytics.liquid +++ b/_includes/scripts/analytics.liquid @@ -22,3 +22,11 @@ cronitor('config', { clientKey: '{{site.cronitor_analytics}}' }); {% endif %} +{% if site.enable_pirsch_analytics %} + +{% endif %}