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:

  • {teaser_id}:  Teaser ID
  • {widget_id}: ID of the site from which the user came
  • {campaign_id}: Campaign ID in the MGID system
  • {category_id}: ID of the teaser category in the MGID system
  • {user_id}: User ID
  • {geo}: Geo (countries) of impressions selected in the campaign settings
  • {geo_region}: Geo (cities/regions) of impressions selected in the campaign settings
  • {click_id}: Click id
  • {click_price}: Price per click*
  • {ifa}: User device identifier for advertisers.

* 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}