How to handle UTM Params in Flutter (Android)

Mukund Jogi
7Span
Published in
3 min readJul 8, 2022
Handle UTM Params Flutter — Mukund Jogi

Hi Flutter devs 🙋🏻‍♂️

What Is a= App Install Campaign?

First, let’s start with the basics. App install campaigns are user acquisition (UA) focused and include any strategies that drive a large volume of downloads in a short period of time. In addition to the installs from paid methods, these campaigns also contribute to organic app downloads.
Source : adaction.com

What is an app install campaign tracking?

Install tracking allows you to collect and send data from your mobile apps to your Analytics account and have it appear in your Mobile App Sources report.
Source : support.google.com

What is UTM?

“UTM” stands for “Urchin tracking module.” Urchin Software Corporation was acquired by Google in 2005, and their software laid the groundwork for what we now know as Google Analytics.

What are UTM Parameters?

UTM Parameters are text strings that can be appended to URLs which allow the tracking of those URLs when they are clicked. The use of UTM parameters provides custom tracking tailored to exactly fit unique campaign tracking requirements.

What UTM Parameters Can Track:

Social —

Adding UTM parameters to a social media advertisement allows you to determine which social effort was most effective. UTM parameters can be used to determine which content on which channel drove the most users to download an app.

Emails —

Adding UTM parameters to email links can be a highly effective method for determining which email campaigns were the most effective, as well as the best location for the placement of the link (top of the email or bottom).

In-App Advertisement —

In-App advertisements can be closely monitored allowing the determination of the most effective ad location, A/B testing designs, graphics, sizing and copy.

Examination of UTM Parameters:

Campaign Source —

The utm_source parameter tracks the location from which the traffic came. Usually this is the name of the network, website, or the name of the social channel as long as the parameter uniquely identifies the source.

Campaign Name —

The utm_campaign is used to identify the campaign.

Campaign Medium —

The utm_medium tracks how the traffic is getting to the Google Play Store rather than where the link actually lives.

Campaign Term —

The utm_term is primarily used to track keywords during a paid AdWords campaign. This parameter can also be used in display ad campaigns to identify aspects of an audience such as age or gender.

Campaign Content —

The utm_content tracks the specific ad or link location that sent the traffic to the Google Play store. The content tag may be used to provide the data needed to differentiate and test different versions of the same ad. This can be used for different ad placements, designs, wording or any other variable desired.

Build your url using Google Play URL Builder.

https://play.google.com/store/apps/details?id=com.yourpackage&referrer=utm_source%3Dgoogle%26utm_medium%3Dbanner%26utm_term%3Drunning-shoes%26utm_content%3Dbest-selling%26utm_campaign%3Dflat-50%26anid%3Dadmobhttps://play.google.com/store/apps/details?id=com.yourpackage&referrer=utm_source%3Dgoogle%26utm_medium%3Dbanner%26utm_term%3Dshorts%26utm_content%3D500-off%26utm_campaign%3Dflat-50%26anid%3Dadmob

For further clarity, utm_content and utm_term parameters may be utilized to determine which version of an ad version and which keywords drive the most users of the desired demographic to download your app.

Install Referrer

Install Referrer is a custom identifier which cannot be reset, that is specific only to Android. The unique string (custom ID) is sent to the Play Store when a user clicks on an ad and that ID is similar to Device IDs or Device Fingerprinting.

Install Referrer and Attribution:

Used in conjunction with other IDs, the Install Referrer is one of the most accurate methods for attribution (Close to 100%).

Let’s check what is needed to implement in flutter app.

First of all add this to your app/build.gradle and allow to sync the project.

MainActivity.kt for referrer receiver

Invoke ‘getUTMParam’ from the page you need to access UTMParams easily.

We did it folks.

Connect me on Twitter and LinkedIn. Follow me here for more updates.

Keep learning and sharing. Thank you

--

--

Mukund Jogi
7Span
Writer for

Team Lead, Flutter and Android Developer at 7Span