# Postback Integration

Tracknow integrates with your website to automatically transmit data for the specific events you want to track, ensuring they are accurately recorded in your Tracknow dashboard.

In this guide, we’ll outline how to configure automatic event tracking using postbacks.

This integration method requires you to detect the relevant events on your backend (server-side) and trigger a postback to Tracknow containing the associated event data.

***

### Prerequisites

This integration method requires you to enable passing our unique affiliate identifier `click_id` to your landing page.\
\
For instructions, click [here](https://docs.tracknow.io/integrations/passing-click_id-to-a-landing-page).

***

### Client Flow

1. Client clicks an affiliate link
2. Tracknow generates the unique affiliate identifier `click_id` and appends it to the landing page URL as a query parameter before the client is redirected to your landing page
3. Client lands on your website with his `click_id`
4. The client's `click_id` is stored in a cookie so that it is not lost while the client navigates between pages on your website
5. Client completes the action you wish to track
6. A postback URL is generated on your end and fired to your Tracknow dashboard

***

### Base URL

The postback base URL is:

```
https://{namespace}-tracking.tracknow.info/postback
```

{% hint style="info" %}
Replace the **{namespace}** placeholder with your actual Tracknow dashboard namespace.

It can be found on your main Tracknow dashboard menu.
{% endhint %}

***

### Parameters

The parameters define the event data you want to transmit to Tracknow.

They are appended to the base URL as query string parameters in `key=value` format. Multiple parameters are separated by the `&` symbol and the query string begins after the `?` symbol.

#### Example

```
https://{namespace}-tracking.tracknow.info/postback?key1=value1&key2=value2&key3=value3
```

#### Mandatory Parameters

Certain parameters must be included in every postback, as they are required for Tracknow to identify the associated campaign and the referring affiliate.

Additional parameters may also be mandatory depending on your configuration, such as when lifetime attribution is enabled.

For a complete list of supported parameters and detailed implementation guidelines, refer to the full parameter documentation [here](https://docs.tracknow.io/integrations/supported-parameters).


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.tracknow.io/integrations-and-tracking/postback-integration.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
