1. Help Center Home
  2. Advertisers
  3. Conversion tracking: general

Macros. Setting up Non-standard Markup for Links to Track Traffic

If you use a traffic analysis system that does not process standard UTM parameters, you can specify the required markup that will be added at the end of each ad link by clicking on the "UTM Tracking Tags" option in the advertising campaign settings. 

Our system allows you to add macros to the teaser URL.

We can use the following macros:

  1. {teaser_id}:  Teaser ID
  2. {widget_id}: ID of the site from which the user came
  3. {campaign_id}: Campaign ID in the MGID system
  4. {category_id}: ID of the teaser category in the MGID system
  5. {user_id}: User ID
  6. {geo}: Geo (countries) of impressions selected in the campaign settings
  7. {geo_region}: Geo (cities/regions) of impressions selected in the campaign settings
  8. {click_id}: Click id
  9. {click_price}: Price per click*
  10. {ifa}: User device identifier for advertisers.
  11. {price_range}: Price range of the phone from which the click was made.
  12. {title}: Teaser title
This macro is only available for mobile devices. The format of the values that are transmitted to the macro:
  • Below150$
  • 150$to200$
  • ...
  • Above700$
  • Undefined

If the device type is desktop, tablet, smart tv, the transmitted value is "null".


* When you use the {click_price} macro, keep in mind that a click may not be counted in the MGID system during the data analysis post factum. Consequently, the expenses will not be written off from the advertiser's balance. We recommend using our API to transfer the actual API metrics. 

Allowed characters: 0-9, A-Z, a-z, a-z, A-Z, -, _, +, &, =, @, /,:, ^ .

The unchanged macro must be inserted at the place in the link where you want to see the value of the corresponding variable.

Examples of using macros in existing campaigns can seen below:

http://yourdomain.com/base.php?c=121&key=d0c1607d08bad2e6d7863430d1147d6d&keyword= {widget_id }&ad= {teaser_id}

http://www.yourdomain.com/en-2/?A=8598&B=5682&SubAffiliateID=at_200x200_500-2_ {teaser_id }_ {widget_id}

http://www.yourdomain.com/?id=461&tid= {teaser_id }&pid= {widget_id}

http://www.yourdomain.com/en-2/?A=8598&B=5682&SubAffiliateID=at_200x200_500-2_ {teaser_id }_ {widget_id}

http://yourdomain.com/_3K5dClZQ4U06nbr1audJf2Nd7ZgqdRLk/1/?sub_id= {widget_id} {teaser_id}