Modified on: Fri, Jun 1, 2018 at 3:20 PM
UTM tagging is the a very common way for marketers to track web users and has become the standard tagging mechanism for Google Analytics. While Branch links do track analytics and attribution across web and app, we also support you adding your own tracking parameters to Branch links. There are a couple ways to do this:
Appending your analytics tags to Branch links as query params
You can simply add your analytics tags on the end of the Branch link like so:
When the user is redirected to web content, Branch will automatically apply the tags onto the end of the web url so that your web tracking is not disturbed. For the example link, the user is redirected to:
When the user is redirected to the app, Branch will automatically add these UTM parameters to the link data that is passed to your app in the payload.
The app should be set up to handle the analytics tags.
Here is an example of what that payload would look like for the example link:
Tips and Tricks
If you ever want to test where a user would get redirected by a Branch link without actually clicking on the link, you can use a redirect test like http://redirectdetective.com.
For the link in the example, you would enter this url in the input field on the redirect inspector: https://branch.app.link/mobilegrowthhandbook17?utm_campaign=campaign&utm_source=source
This would yield a result like this:
Automatically map UTM parameters to Branch analytics tags
By default, Branch will automatically map any appended UTM parameters to Branch analytics tags if there are no Branch analytics tags set.
If you would like UTM parameters to always override Branch analytics tags, simply enable it in on the link settings page of the Branch dashboard (link) under ‘Advanced Settings’.
The mappings are as follows:
Note: This only applies to dynamically created links, not links generated through the Dashboard, API or SDKs.
Did you find it helpful?Send feedback