ad-server
 RudderStack
This guide explains how to set up Topsort as a destination in RudderStack. You can also check our documentation in Rudderstack’s Knowledge Base.
- 
Setup Instructions
- In the RudderStack dashboard, add your data source (website or app).
 - From the list of destinations, select Topsort.
 - Complete the following settings:
 
Setting Description Name Unique name for this destination. API Key Obtain this on Topsort > Settings > API Integration.  - 
Event Mapping
Click Set-up mapping in the dashboard to define how RudderStack events map to Topsort events. Example for mapping these events:
RudderStack event Topsort event Order Completed Purchase Product Clicked Click Product Added Click Product Viewed Impression Product List Viewed Impression Prevent double-counting by reviewing your event firing logic.
 - 
Tracking Events
Use
rudderanalytics.track()to send events to Topsort.Example:
rudderanalytics.track("Product Added", {product_id: "9578257311",sku: "8472-998-0112",name: "Sample Product"})Check the mapping of all fields of each event in the Rudderstack’s Knowledge Base