Supported Site-Tracking Macros

Greta
Greta
  • Updated

A macro is a placeholder that gets replaced with specific characters depending on the context. It only works where it is defined.

Site tracking macros help to pass information collected from Adform tracking points into third-party scripts.

For example, you may use macros for order ID or sales to share conversion information with the third-party pixels implemented in container tags. With this use, the third-party pixel not only fires from Adform container tags to register conversions on their side, but it includes information gathered in variables from Adform tracking points.

You can use Adform’s site tracking macros in tracking codes.

Site Tracking Macros

Adform provides a range of macros specifically for site tracking. The description for each includes any qualifiers. You use site tracking macros in container tags.

Note

All macros encode replaced values. You can use %% (double percent) as a separator instead of __ (double underscore). (For example, macros __ADFMUID__ and %%AADFMUID%% are equivalent). However, using __ avoids problems with URL encodings and other interactions.

Category

Macro

Description

Function

__ADFRND__

Randomly generated value

__ADFTIMESTAMP__

UTC timestamp

Mobile App Data

__ADFAPPVER__

Version of the mobile app

__ADFBUNDID__

Mobile Bundle ID

__ADFJSON__

App-specific JSON data

__ADFLAT__

Mobile limit ad-tracking status

__ADFMUID__

Mobile UID

__ADFOSNAME__

Mobile OS name

__ADFOSVER__

Mobile OS version

__ADFSDKVER__

Mobile SDK version

__ADFUA__

Mobile user agent

__ADFDEVMAKE__

Mobile device make (SDK traffic only)

__ADFDEVMODEL__

Mobile device model (SDK traffic only)

Tracking-Point Variables

__ADFAGE__

Age group

__ADFBSZ__

Basket size

__ADFCNTR__

Country

__ADFCUR__

Currency

__ADFGEN__

Gender

__ADFORDID__

Order ID

__ADFORDSTATUS__

Order status

__ADFPRCID__

Product category ID

__ADFPRCNT__

Product count

__ADFPRGR__

Product category name

__ADFPRID__

Product ID

__ADFPRNM__

Product name

__ADFPRSL__

Product sales

__ADFPRSTEP__

Product step

__ADFPRWEIGHT__

Product weight

__ADFSL__

Sales

__ADFSVx__

System variable x (x= 1 to 96)

__ADFSVNx__

System numeric variable x (x= 1 or 2)

__ADFVARx__

Custom variable x (x= 1 to 10)

User Context

__ADFCOUNTRY__

Country code

__ADFDEVID__

Advertising ID

__ADFDEVIDMD5__

MD5-hashed advertising ID

__ADFDEVIDSHA1__

SHA1-hashed advertising ID

__ADFLANG__

Language

__ADFPUBD__

Publisher data

__ADFPUBID__

Publisher ID

__ADFUID__

Adform Cookie ID

__ADFUSERIP__

User IP

__ADFUSERIPMSK__

Masked user IP

Ad-Serving Macros

Also, Adform provides a range of macros specifically for ad serving. For information, see Supported Ad-Serving Macros.

Was this article helpful?

/
How we can make it better?

Thank you for your feedback!