{from_file:filename.txt} — inserts the contents of the file filename.txt from directory /var/macros/;

{se}

{device_type}

{device_model}

All values are encoded through urlencode() by default. If you want to insert the original value, add the underscore symbol—{_macro}.

Here are some examples of using macros:

http://targetwebsite.com/search.php?search={keyword}&from={referer}

http://targetwebsite.com/go.php?as={_referer}

http://targetwebsite.com/{keyword}.html

http://targetwebsite.com/{country_code}/index.html

The Macros of GET-parameters

All parameters which were sent to TDS, are wrapped into macro with the same name. For example, if you pass http://tds/group?utm_source=google then paste http://landing.com/?utm_source={utm_source} in the stream.

Creating Macros

All macro scripts are located in directory /application/macros/. There are also located built-in macros, you can see their code.