[ GA4 ] URL builders : Collect campaign data with custom URLs
By lend utm campaign parameter to the destination URLs you employ in referral link and ad campaign , you can see which campaigns refer traffic . When a user clicks a referral link , the URL parameters are send to Analytics and the parameter value be visible in the Traffic acquisition report .
- Parameters
- URL builder
- See custom-campaign data
Add utm parameter to URL
You can add the following parameter to your destination URLs :
utm_id
: Campaign ID . Expend to identify a specific drive or promotion . This is a required key for GA4 data import . Employ the same IDs that you employ when uploading movement cost data .utm_source
: Referrer , for example : google , newsletter4 , billboardutm_medium
: Selling medium , for case : cpc , banner , emailutm_campaign
: Production , slogan , promo code , for instance : spring_saleutm_source_platform
: The program responsible for conduct traffic to a have Analytics property ( such as a buying platform that sets budgets and direct criterion or a platform that manage organic traffic datum ) . For example : Search Ads 360 or Display & Video 360 .utm_term
: Paid keywordutm_content
: Use to differentiate creatives . For example , if you have two call-to-action links within the same email content , you can apply utm_content and set different value for each so you can state which version is more effective .utm_creative_format
: Type of creative , for case : display , native , video , lookuputm_creative_format
is not currently report in Google Analytics 4 property .utm_marketing_tactic
: Targeting criteria applied to a cause , for instance : remarketing , prospectingutm_marketing_tactic
cost not currently describe in Google Analytics 4 properties .
Each parameter must be paired with a value that you ascribe . Each parameter-value pair then contains campaign-related information .
For case , you might use the following parameter-value pairs for yourSummer Salecampaign :
utm_source
=summer-mailerto identify traffic that results from yourSummer Saleemail campaignutm_medium
=emailto identify traffic from the email campaign vs. the in-app campaignutm_campaign
=summer-saleto identify the overall movement
If you used these parameters , your tradition campaign URL would be :
https : //www.example.com/ ? utm_source=summer-mailer & utm_medium=email & utm_campaign=summer-sale
When you add parameters to a URL , you should ever useutm_source
,utm_medium
, andutm_campaign
.
To learn about the traffic-source dimensions that show the parameter values , see URL builder : Collect campaign data with tradition URLs .
UTM parameter exist miss in the following dimensions :
- Bring page + query string
- Page path + query string
This think of UTM information is n’t captured in these dimensions and is rather populate in the Page location dimension .
URL builders
You can add parameters and values to your URLs manually , or you can use one of the following platform-specific URL-builder tool to create your URLs and append the parameter :
- Links to websites: Use the Campaign URL Builder .
- Android-app ads: Usage the Play Campaign URL Builder .
You must employ the Google Analytics for Firebase SDK , but you do n’t involve to cause change in the SDK for this feature to exploit .
Manual set up
If you desire to plant up your custom movement manually , make certain you separate the parameter from the URL with a question mark . List the parameter and value as pair break up by an adequate sign . Separate each parameter-value pair with an ampersand . For instance :
https : //www.example.com/?utm_source=email_campaign&utm_medium=email&utm_campaign=summer-sale
You can lend parameters to a URL in any order . Parameter value are case sensitive , e.g .utm_source=google
is different fromutm_source=Google
.
If you ‘re setting up URL parameter for a Universal Analytics site , then you hold to lend at leastutm_source
andutm_medium
.
If you ‘re adjust up URL parameters for a Google Analytics 4 site , then you have to add at least oneutm
parameter , but you can lendany utm
parameter .
Example URLs
http : //www.example.com/ ? utm_source=exampleblog & utm_medium=referral & utm_campaign=summer-sale
http : //www.example.com/ ? utm_source=newsletter1 & utm_medium=email & utm_campaign=summer-sale
http : //www.example.com/ ? utm_source=newsletter1 & utm_medium=email & utm_campaign=summer-sale & utm_content=toplink
See tradition campaign datum
You can seeSession source/medium,Session medium,Session author, andSession campaignin the Acquisition > Traffic learning report .