Skip to main content

What are Macros & How to use them?

Macros/Tracking Tokens

Olessya avatar
Written by Olessya
Updated over 5 years ago

Macros or Tracking tokens: What are they and how to use them?

Macros or tracking tokens are a form of http protocol on a URL which allow you to track everything from the the click id to the name of the device that clicked on your ad. By adding them to your URL it allows you to track that specific attribute.  

Before we talk about macros you must understand parameters and values. A parameter is a dimension or label for what you want to track like country or source. Then it is defined by the value following. The macro holds the place of the value but then dynamically changes to reflect the right value for the parameter.

Let's look at an example.  If you added the following macros: {click_id} and {country} into your URL it would look similar to what is shown below.

When someone clicks on your ad, the macros would automatically adjust to provide the following information about that attribute.  If that person that click had a click id of 100 and was in the united states the macros would change to look like this.

These values will be what is tracked when you send it to something like a tracker.

How to implement them

You can add macros to your Tracking URL in the create campaigns page by simply clicking on the macros you want to track.  Following the example we used about, it would look like this.

You must include a parameter with a = before.

It's Important to align the macros you are tracking in Mobidea Push with those of your tracker to allow you to properly track your campaigns. Most trackers are already integrated with Mobidea Push and you might just have to add our template but it is always smart to double check that the macros you are recording on Mobidea Push are also be recorded on your tracker.

Available macros

All the macros or tracking tokens available on Mobidea Push:

  • {site_id} Sub Source of the supply: 88_unicorn

  • {supply_id} The ID of the supply, ex. 88

  • {bid} The CPC bid you paid for the click. ex. 0.015

  • {campaign_id} Your campaign ID from the ad. ex. 123456

  • {creativity_id} The creative ID from the ad that was clicked, ex. 123456

  • {deviceName} The name of the device that clicked, ex samsung_galaxy_s9

  • {country} The 2 digit country code from where the click came from. ex us

  • {city} The city from where the click came from, ex. new_york

  • {language} The set language of the device, ex. spanish

  • {bidcpm} The bid CPM you paid for the click, ex. 0.600

  • {format} The ad format type, ex. push

  • {user age} The time since the user subscribed to the push source, ex. 1

  • {source} (Deprecated) The source ID from the traffic supply. ex. 1234

Did this answer your question?