# Click Integration

## Click Path Process

User clicks on the advertisement gets redirected to mTrackit. The mTrackit records the click and the publisher information. Post this, the user is redirected to the actual landing page of the advertiser.&#x20;

## Tracking Parameters

{% hint style="success" %}
mTrackit URL provides options with parameters containing campaign and publisher information.
{% endhint %}

## &#x20;Click URL generator

The Click URL generator is used to generate a unique URL for a given campaign and publisher. The click url generated will be of the below format.

```
http://click.mtrackit.com/?campaignId={campaignid}&publisherId={publisherid}&sub_publisher_id={sub_pub}&landing_page_id={landing_page_id}&offer_id={offer_id}&aff_field1={}&aff_field2={}&aff_field3={}&aff_field4={}&aff_field5={}&transaction_id={}
```

Typically this URL will be configured in the publishers affiliate management platform.

The users click should get redirected to the above URL at the Publisher side integration code. The following are the various parameters sent as part of the Click URL.

## ​Click URL Parameters

| Click URL Parameters | Descriptions                                 |
| -------------------- | -------------------------------------------- |
| campaignId           | Campaign run by the advertiser               |
| publisherId          | Unique ID given to publisher                 |
| sub\_publisher\_id   | Unique ID for Sub publisher                  |
| landing\_page\_id    | IS THIS REQUIRED?                            |
| offer\_id            | ID given by Publisher for specific campaign  |
| aff\_field1          | Additional field reserved for publisher data |
| aff\_field2          | Additional field reserved for publisher data |
| aff\_field3          | Additional field reserved for publisher data |
| aff\_field4          | Additional field reserved for publisher data |
| aff\_field5          | Additional field reserved for publisher data |
| transaction\_id      | Unique ID generated at server side           |

The parameters aff\_field1 to aff\_field5 can be used to pass any additional affiliate / publisher data. These parameters will be available in the final consolidated mTrackIt report.

Transaction id, optionally can be used as an attribution parameter.

## Landing Page ?

Advertiser can choose a custom landing page based on the campaign and the publisher information. Eg route a specific publisher to a independent landing page. This allows the advertiser to control the traffic routing based on the campaign requirements as well as change the same without impacting publisher URLs.&#x20;

**Note:**&#x20;

1. All querystring parameters should be url-encoded which makes it easier to send as it is over the internet.&#x20;
2. Maximum acceptable length for any indivdual parameter is 255 characters.
