How to configure Nonli for Google Analytics

Also available in:Français

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:

ParameterUsage
utm_sourceTraffic source
utm_mediumMarketing medium
utm_campaignCampaign name
utm_contentPost variation or detail
utm_termKeyword or additional identifier

2.1. Example UTM setup for Nonli#

text
1utm_source = {{ post.social_account.type }}
2utm_medium = social
3utm_campaign = nonli
4utm_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.

image
image

Was this article helpful?

Our support team is here to help you.