Digital garden theme utilizes the Hugo’s [internal template](internal templates) for Google analytics and so both Google analytics v3 and GA v4 (gtag) are supported.

Add your UA-PROPERTY_ID or G-MEASUREMENT_ID to config.toml

Google Analytics v3 (analytics.js)

googleAnalytics = 'UA-PROPERTY_ID'

Google Analytics v4 (gtag.js)

googleAnalytics = 'G-MEASUREMENT_ID'

Configure Metatags