# URL builder tool

We have an URL builder tool for URL generation fields like offer's URL or affiliate's Return URL. To activate it click on the wrench icon next to URL field.

<figure><img src="https://1577269430-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FoALtwEdZnRlulcbLezhJ%2Fuploads%2FzhOSHubI3pberHsEzUQl%2Fimage.png?alt=media&#x26;token=0d68b6d0-19fe-4747-8cc4-beb1bf7e7964" alt=""><figcaption></figcaption></figure>

Tool will display available variables that will be replaced by the script during the click registration. Clicking on any of them will copy variable into the url field where the cursor is located.

If URL will contain an address like <https://example.com/?aff={affiliate\\_id}\\&off={offer\\_id}> then during the click registration it will be transformed to something like <https://example.com/?aff=123\\&off=456> (ID's depend on passed affiliate and offer parameters).

Here are tool variables explanation:

* {affiliate\_id} - ID of passed affiliate to click
* {offer\_id} - ID of passed offer to click
* {lander\_id} - ID of passed lander to click
* {offer\_event\_slug} - offer event slug, sent by advertisers on non-CPC clicks
* {click\_id} - generated click ID during click registration
* {advertiser\_id} - ID of advertiser to whom belongs offer
* {email} - email parameter
* {lead\_username} - the name part got from email address (example: username got from <username@example.com>)
* {lead\_ip} - visitor IP address
* {country\_code} - visitor's two letter ISO country code
* {user\_device} - visitor device type: mobile or desktop
* {user\_agent} - visitor user agent
* {sub1-sub5} - sub parameters
* \<base64> - everything contained between open and closed base64 tags will be encoded using base64 algorithm
