> ## Documentation Index
> Fetch the complete documentation index at: https://docs.topsort.com/llms.txt
> Use this file to discover all available pages before exploring further.

# RudderStack

> Learn how to integrate Topsort Events with 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](https://www.rudderstack.com/docs/destinations/streaming-destinations/topsort/cloud-mode/).

**1. Setup Instructions**

1. In the RudderStack dashboard, add your data source (website or app).
2. From the list of destinations, select Topsort.
3. Complete the following settings:

| Setting | Description |
| - | - |
| Name | Unique name for this destination. |
| API Key | Obtain this on Topsort > Settings > API Integration. |

**2. Event Mapping**

Click Set-up mapping in the dashboard to define how [RudderStack events](https://www.rudderstack.com/docs/event-spec/ecommerce-events-spec/) 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.

**3. Tracking Events**

Use `rudderanalytics.track()` to send events to Topsort.

Example:

```javascript theme={null}
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

![Agustin - Integrations Team Member](https://docs.topsort.com/images/integration-team/agustin.webp)
![Amelia - Integrations Team Member](https://docs.topsort.com/images/integration-team/amelia.webp)
![Anais - Integrations Team Member](https://docs.topsort.com/images/integration-team/anais.webp)
![Bernardita - Integrations Team Member](https://docs.topsort.com/images/integration-team/bernardita.webp)
![Felipe - Integrations Team Member](https://docs.topsort.com/images/integration-team/felipe.webp)
![Gui - Integrations Team Member](https://docs.topsort.com/images/integration-team/gui.webp)
![Javiera - Integrations Team Member](https://docs.topsort.com/images/integration-team/javiera.webp)
![Linn - Integrations Team Member](https://docs.topsort.com/images/integration-team/linn.webp)
![Marc - Integrations Team Member](https://docs.topsort.com/images/integration-team/marc.webp)
![Marcio - Integrations Team Member](https://docs.topsort.com/images/integration-team/marcio.webp)
![Max - Integrations Team Member](https://docs.topsort.com/images/integration-team/max.webp)
![Natalie - Integrations Team Member](https://docs.topsort.com/images/integration-team/natalie.webp)
![Rodrigo - Integrations Team Member](https://docs.topsort.com/images/integration-team/rodrigo.webp)
![Tomás - Integrations Team Member](https://docs.topsort.com/images/integration-team/tomas.webp)

## Need help with your Topsort integration?

Talk to us, the integrations engineering team.

Reach us via **your dedicated messaging channel** or at
[support@topsort.com](mailto:support@topsort.com).

If you're not a customer yet,
[book a demo](https://www.topsort.com/book-a-demo) with our
sales team instead.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.