UTM tag generator

Create a micro-tagged link for an ad campaign

When to use UTM tags?

1) You are conducting an advertising campaign on Google, Yandex or social networks and want to find out where your users, customers or advertisers come from.

2) You use other methods to attract users and potential customers and want to learn more about where they come from on your website or page on a social network.

3) You create a mass mailing list of your subscribers using various services and want to find out how effective your mailing list is.

4) You buy advertising from bloggers, and want to know how effective the advertising was with the blogger or from which group the most subscribers for the blog or clients for your business came from.

Your page address

Traffic source

Required Parameters

utm_source
utm_medium
utm_campaign

Optional parameters

utm_content
utm_term

Result

Dynamic variables and how to use them

Dynamic variables allow you to substitute additional information in contextual advertising in order to find out, for example, from which device a click was received - from a mobile or from a computer.

They are called dynamic because they can change their meaning. For example, if you use a labelutm_term = {keyword}Yandex Direct will automatically replace {keyword} to the keyword phrase for which the impression occurred.

Most often, dynamic variables are used in the parameter utm_content, but you can set dynamic variables for other labels.

Key Dynamic Insertion Options: Google Adwords

Parameter What is substituted for {parameter}
{adgroupid} AdGroup ID Use it if you’ve set up tracking data at the account or campaign level and want to know which ad from which group was shown
{adposition} Ad position on the page. For example, the value 1t2 is deciphered as follows: page 1, display above the search results (top), position 2
{campaignid} Campaign id Use it if you’ve set up tracking data at the account level and want to know which ad from which campaign was shown
{creative} Unique Ad ID
{device} Type of device clicked
{feeditemid} ID of extension clicked by user
{keyword} The keyword that triggered the ad on the search network, or the closest keyword to appear on the Display Network
{loc_interest_ms} ID of the location specified in the user's search query
{loc_physical_ms} ID of the geographic location from which the click was received
{lpurl} The final URL. Encrypted, unless you specify {lpurl} at the beginning of the tracking template. If the {lpurl} parameter is not specified at the very beginning of the tracking template, the space and the characters?, =, ", #, \ T, 'and (space) are replaced by escape codes
{matchtype} Keyword match type for ad
{merchant_id} The identifier of the Google Merchant Center account to which the product listing ad belongs.
{placement} The site where the ad received the click. It matches your keywords or placement targeting conditions (depending on the targeting settings in the campaign)
{product_channel} Type of sales channel through which the product advertised in the ad is sold
{product_country} The country in which the product advertised in the ad is sold
{product_id} Product identifier advertised in the ad (from the Merchant Center data feed)
{product_language} The language in which the product information is displayed (according to the Merchant Center data feed)
{product_partition_id} Unique identifier of the product group to which the ad belongs
{store_code} For campaigns using the local sales channel, a unique store code is displayed here.
{targetid} Keyword ID (kwd), dynamic search ad (dsa), or remarketing list target (aud). For example, if you add a remarketing list with criterion identifier 456 to the ad group and target the keyword with identifier 123, the {targetid} parameter will be replaced by kwd-123: aud-456

The main parameters of dynamic insertion: Yandex.Direct

Parameter What is substituted for {parameter}
{ad_id}, {banner_id} Ad id
{addphrases} Has this impression been triggered by additional relevant phrases?
  • yes - display for an additional relevant phrase
  • no - display on one of the source phrases
{addphrasestext} Additional relevant phrase text
  • phrase text - when displayed with an additional relevant phrase
  • none - The impression was not triggered by an additional relevant phrase
{campaign_type} Campaign type
  • type1 - text and image ads
  • type2 - mobile app advertising
  • type3 - dynamic ads
  • type4 - smart banners
{campaign_id} Campaign Id
{creative_id} Designer Creative ID
{device_type} Type of device displayed
  • desktop
  • mobile
  • tablet
{gbid} Group id
{keyword} The key phrase by which the ad was shown (text-graphic or mobile app advertising) (without negative keywords)
{phrase_id} Passphrase ID for text or image ads
{retargeting_id} The identifier of the targeting condition for the audience that associates the ad group with the conditions for selecting an audience or interests in mobile applications
{coef_goal_context_id} Bid adjustment identifier for audience selection terms
{interest_id} Mobile app interest id
{adtarget_name} Dynamic ad targeting condition
{adtarget_id} Dynamic ad targeting condition id
{position} The exact position of the ad in the block. Passes only the position number by which it is impossible to determine the type of block where the ad is shown (use with {position_type})
  • block position number (e.g. 1)
  • 0 - the ad was shown on networks (YAN or external networks)
{position_type} Тип блока, если показ произошел на странице с результатами поиска Яндекса
  • premium — спецразмещение
  • other — блок справа или блок внизу
  • none — объявление было показано в сетях (РСЯ или внешние сети)
{source} Место показа
  • домен площадки (например, tilda.cc) — при показе в сетях (РСЯ или внешние сети)
  • none — при показе в поиске Яндекса
{source_type} Тип площадки, на которой произведен показ объявления
  • search — поиск
  • context — сети
{region_name} Регион, в котором было показано объявление
{region_id} ID of the region in which the ad was shown

Key Dynamic Insertion Options: Target My.com

Parameter What is substituted for {parameter}
{{advertiser_id}} advertiser id
{{campaign_id}} campaign id
{{campaign_name}} campaign name
{{banner_id}} banner id
{{geo}} id of the myTarget geo-tree region from which the transition was made
{{gender}} gender of the user who made the transition
{{age}} age of user who made the transition
{{random}} random number. Often used in links (audit pixels) for more accurate impression counting.
{{impression_weekday}} transfers the day of the week (for example, mon) on which the banner was displayed. Used in link label
{{impression_hour}} transmits the hour (for example, 23) in which Moscow time was displayed in 24-hour format
{{user_timezone}} transfers the time zone of the user (for example, +3) in which the display was made

Correcting errors when generating UTM tags

  • The UTM tag will contain only one character ?.
  • Each label parameter begins with one ampersand. &.
  • Automatically replace characters that interfere with analytics #, &, =.
  • Automatic duplicate removal http, https.
  • Lower case translation.
  • Escape sequences or transliteration of the Cyrillic alphabet of choice.