Skip to main content

A quick intro to Macros

Below are listed the macros (sometimes know as tokens) used by Opticks. Macros are placeholders which will be replaced with actual data when a visit is processed.

In order to get the processed data, you should put these in macros into the Opticks Offer URL.

NameMacroDescription
Opticks click IDclick_idOptick's unique click id in form of "track_20XX..."
External IDexternal_idWhere Opticks stores id coming from traffic source
Subpublisher's IDsubpublisher_idID of the subpublisher from where the visit came
Campaign IDcampaign_idOptick's own campaign ID
Traffic Source IDtrafficsource_idOptick's own Traffic source ID
Var1var1User defined variable displayed on Opticks dashboard
Var2var2User defined variable displayed on Opticks dashboard
Var3var3User defined variable displayed on Opticks dashboard
Var 4var4User defined variable displayed on Opticks dashboard
Analysis Levelanalysis_levellow/medium/high. The Opticks risk level. We do not recommend relying on this macro because like all URL parameters, it can be changed by the end user. Instead, decrypt the OPT data and use the analysisLevel found there.
OPTOPTEncrypted JSON payload data
OPT-HMACOPT-HMACHMAC encrypted data
User agentuser-agentUser agent of visitor's browser
Other headershttp-headerStandard http headers, e.g. x-requested-with, referer, etc.
Other macrosyour-macrosAny macro you wish to add to the Opticks tracking link. Opticks will pass these on to the landing page if you include it in the offer URL or in data-