1. Where can you find the Google Analytics setup in Nonli?#
The Google Analytics setup is now documented in the complete dynamic URL parameters guide:
How to configure dynamic URL parameters for Google Analytics and Piano Analytics
2. Which UTM parameters should you use with Google Analytics?#
Google Analytics recognizes the following UTM parameters:
| Parameter | Usage |
|---|---|
utm_source | Traffic source |
utm_medium | Marketing medium |
utm_campaign | Campaign name |
utm_content | Post variation or detail |
utm_term | Keyword or additional identifier |
2.1. Example UTM setup for Nonli#
text
1utm_source = {{ post.social_account.type }}2utm_medium = social3utm_campaign = nonli4utm_content = {{ post.author|slugify }}5utm_term = {{ post.short_id }}In this example, |slugify is a filter applied to the returned value. It turns text such as France News Bot into france-news-bot, without spaces or special characters, so the value is clean in a URL. If the post comes from a bot, post.author contains the bot name.