ℹ️ This article is specific to the New Agillic Content Designer. Information provided may not apply to previous versions of the Agillic Content Designer. If your solution hasn't been migrated to Agillic New Content Designer, please refer to this other article: All You Need to Know About the Google Analytics Integration in Agillic.
It's possible to set up an integration between your Agillic solution and your Google Analytics account. The integration allows you to automatically add pre-defined parameters to all external links from your content. Therefore, you know which of the visits to your website came from Agillic content, as well as which specific outbound communication or portal page the recipient clicked from.
As Google Analytics is a third-party service, Agillic isn't able to offer support on how their service should be used or set up on their sites. Therefore, we refer to the Google Analytics help centre or Google Analytics for developers where their documentation is available.
In this article, we'll go through the following:
- What Google Analytics is in relation to Agillic
- How to set up the Google Analytics integration
- How to change the UTM Campaign
What Google Analytics is in Relation to Agillic
In Agillic, you can set up an integration with Google Analytics. This integration will help auto-generate UTM parameters for your Google Analytics account to read. This allows you to get information about which visitors came from Agillic and which visitors came from outbound communications or portal pages.
The Google Analytics integration is set up under the Integrations section in the Settings module.
The UTM parameters use the following logic for calculation:
Name | Parameter name in URL | Description | Controlled by | Example of value |
Campaign Source | utm_source | Identifies the tracking to come from your Agillic instance | The setting in the Integrations section | "Agillic" |
Campaign Medium | utm_medium | Identifies the type of communication | Automatically set by Agillic | "Email", "SMS", or "web" |
Campaign Name | utm_campaign | Name of the specific communication | Set in the individual email/ page. By default the same name as in Agillic. | "Newsletter - Week 35" |
Campaign Content | utm_content | Names the specific promotion and proposition | Automatically set by Agillic | "PROMOTIONNAME_PROPOSITIONNAME" |
If you add a UTM parameter to a specific link, it will be used instead of the generated value.
For additional parameters, it's also possible to add global link URL parameters. You can learn how to setup Global Link URL Parameters here.
How to set up the Google Analytics Integration
- Log in on the Staging environment.
- Open the Settings module by selecting the settings icon in the top right corner of the screen.
- Under the Integrations section in the left sidebar, select Connectors.
- Scroll to the Google Analytics section.
- Check both boxes, enabling Google Analytics UTM parameters in links from both the Staging and Production environments. You can select the copy icon to replicate the settings for both environments.
- Fill in the UTM source in the UTM source name for Agillic field. This is usually set to Agillic to make it clear when a visit to your website comes from your Agillic instance. If you wish, you can create a comma-separated list of different UTM sources. Then, Agillic will show a drop-down menu on each outbound communication and portal page where you can choose which UTM source to use.
- Click the Save button.
The Google Analytics integration is now complete. From now on, any emails or SMS sent will automatically have the Google Analytics tracking applied.
Note that changes made to the settings only apply to the environment they were changed in. Therefore, the settings should also be changed in the other environment if you wish to publish from there.
How to change the UTM Campaign
When setting up a new email or Web Page, the UTM campaign for the links is set to the name of the item by default. To change the UTM campaign to another name, simply write in the UTM campaign field on the item.
- Create a new email or webpage
- Open the Email settings or Web Page settings accordions
- Change the UTM campaign to another name if needed