# Tracking # Set up tracking ### Tracking methods There are two primary tracking mechanisms for advertising: pixel tracking and postback tracking. Pixel tracking involves embedding a small piece of code (a pixel) on your website, which collects data when a user visits or completes an action. Postback tracking, on the other hand, uses server-to-server communication to track user actions, offering a more secure and accurate method by sending data directly from the advertiser's server to the tracking server. [Set up tracking pixel](https://docs.intent.ai/books/tracking/page/set-up-tracking-pixel "Set up tracking pixel") [Set up postback (s2s)](https://docs.intent.ai/books/tracking/page/set-up-postback-s2s-tracking "Set up postback (s2s) tracking")
To ensure the tracking setup, please verify by using the Debugger.
After setup is done, you can verify it's correctness in event debugger. [Verify tracking](https://docs.intent.ai/books/tracking/page/debugging-events "Debugging events") # Set up tracking pixel For pixel trackers, there is a general base code that must always be added to your website to initiate tracking, and additional specific event codes are used to track particular actions, such as purchases or sign-ups. ### General code In order to set up pixel based tracking - Log in to your Intent.ai account. - Go to any campaign, copy the code from Intent.ai DSP. - Add it to all the pages of the website.Please make sure there are no domain during user experience, if it’s unavoidable, contact supppot.
The code template looks like this: ```html ``` ### Event specific code Event specific code requires the general code to be set up, in order to set up event tracking - Log in to your Intent.ai account. - Go to any event campaign, copy the code from Intent.ai DSP. - Add it when a specific action happens.Please make sure there are no domain during user experience, if it’s unavoidable, contact support.
The code template looks like this: ```html ``` In this code event\_name should be replaced with the actual conversion event name.Please use lowercase latin letters, numbers only with underscores and no spaces.
# Set up postback (s2s) tracking Postback trackers use server-to-server communication to track user actions by sending data directly from the advertiser's server to the tracking server, ensuring secure and accurate tracking without relying on the user's browser. ### Tracker URL The tracking server accepts HTTP requests using GET, POST methods: [https://rtb-eu.intent.ai/analytics/events](https://rtb-eu.intent.ai/analytics/events?click_id=%7Bbid%7D&ip=%7Bip%7D&user_id=%7Buser_id%7D&creative_id=%7Bcrid%7D&ad_campaign_id=%7Bcid%7D)Additional query params must be also configured, please see the list below
### Query params**Name** | **Required** | **Description** |
click\_id | yes | ID of the click that the event should be attributed to |
event\_name | yes | The name of the conversion |
event\_value | no | The monetary value of the conversion. |
event\_currency | no | The event value currency, defaults to USD |
event\_timestamp | no | The unix timestamp of the event, defaults to the time received |
campaign\_name | no | The name of the campaign the event should be attributed to. |