# Segment

Purchasely can send all your transactional events to Segment to enrich your users data collection.

### How to integrate Segment with Purchasely ?&#x20;

Please follow the instructions below on how to integrate the Purchasely with your Segment account.&#x20;

Step 1: In your Segment dashboard, click on Add a new source

![](https://lh3.googleusercontent.com/QfQO0a0xAZ5oV1-iXsu7hbB6b4B93z_gJotGRCQ15ydlWHsUXyFRy2juri3MGw22AHJC2gmqKhtQrMqK7dqjBDm4_jJ84QH4gUR1oYKdFbQJNzGsrCVmkOM3aUFS7JQ5kAy593cu)

Step 2: In the upcoming screen, Select the “HTTP API”

![](https://lh6.googleusercontent.com/IFmjXEqOesjk5cRCWgmXq8ebOw2zn7lKrzxC4o5n7a5hpf7OzUaolM6D_YmD5D7zKB2nwuezlYkcQZgLsvd7rGUSKQKK2CqVPmpBhVqkz5u5FHVpcBzBVfzSDs3G_VKjiqhOnm2S)

Step 3: Provide the name of your source

![](https://lh6.googleusercontent.com/772-JGkwLuFPLQd1POdVg5oM8R1A_Y99g23RPT0Nbfty42vTjgA7qJPGFNa-OA5EkFrJbjIR3knp5o1qzYuj2cHcV96vzJ4FZzM8V-bBQ7OXzKddDuzTme3p6jPTuIhi4Dkie6n_)

Step 4: Copy the Segment Write Key as shown in the screenshot below

![](https://lh3.googleusercontent.com/GOCEt9QgrdTwn1set7WT6WXd5fu7vOPuG2U-3elHT0vFphnuV-0M5fQWnbkmnCxR5LLzjxBe5i-NjlXiSYLB5sEVDLMWx6t2jftK8aFAxUFt0r1_L0UJU6rPQIWYkYw1G3iDTzdO)

Step 5: Finally in the Purchasely Console, navigate to the Integrations -> Segment, paste the write key & enable the integration

![](https://lh5.googleusercontent.com/Xy_TfSqdhSalmSNjeKjGo2W6PPUb44LsRpUKpo1FKrSQZrr7VHf98jq5JYspWaw_bKYaogJYiXfUKoQtcuy0L5vdGbW_ufBOmDVooYz_0jWqRgcNKUfF5-5S6sCVExYmmAeLRPjR)


---

# 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://purchasely.gitbook.io/purchasely/3.4/integrations/segment.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.
