Segment
Estimated setup time
15 minutes
There are 2 ways to setup Aampe as a segment destination
Configure Aampe Destination
This guide assumes you have an Aampe account. If not, sign up here
-
Login to your Segment account at https://app.segment.com/
-
Select Destinations under Connections on the left side panel
-
Click on "Add Destination"
![segment_add_destination.png 1482](https://files.readme.io/7e29005-segment_add_destination.png)
-
Enter Aampe in the Filter Destinations searchbox.
-
Click on the Configure Aampe button, select the data source for your app events, then click on Next.
-
Enter a destination name of your choice and click on Save. We recommend naming it Aampe App Events
-
Login to Aampe Composer in another browser tab, then go to Configure -> App Events
![Screen Shot 2022-11-04 at 11.29.36 AM.png 744](https://files.readme.io/d904fed-Screen_Shot_2022-11-04_at_11.29.36_AM.png)
- Click on Add Integrations, select Segment, and then copy the Segment API key from the resulting page
![aampe_segment_api_key.jpeg 1018](https://files.readme.io/9b8f2e7-aampe_segment_api_key.jpeg)
- Paste this key into the API Key field under Connection Settings on the Segment website (this is where we left off at Step 6.)
![segment_api_key.png 1690](https://files.readme.io/5d0de31-segment_api_key.png)
Configure Google Cloud Storage Destination
Requirements:
- A Google Cloud bucket name. For example: aampe-staging-data-xxx
- A credentials file. For example: xxxxxxxx-4e120-14a6f2ac3c25.json
Aampe will provide both of these to you for setup
- Go to Segmentโs Connection > Destinations section
![segment_destinations.png 200](https://files.readme.io/3fd8f2b-segment_destinations.png)
- Click on Add Destination
- Search for Google Cloud Storage in the catalog that appears
![segment_catalog.png 1600](https://files.readme.io/548ec71-segment_catalog.png)
- Click on the Google Cloud Storage destination
- Click on Configure Google Cloud Storage.
![segment_cloud_storage.png 1600](https://files.readme.io/7007412-segment_cloud_storage.png)
- Select the source you wish to share with Aampe and then click on Confirm Source. Source will be your data source housing the event data
![segment_confirm_source.png 1600](https://files.readme.io/7943f7e-segment_confirm_source.png)
- You will then be redirected to a screen where you will provide the destination bucket details (provided by Aampe):
Bucket: the name of the bucket where the data will flow
GCS Private Key File: the content of the JSON with the access credentials to that bucket
![segment_bucket.png 1600](https://files.readme.io/ce2f59e-segment_bucket.png)
- After having input both details, you need to click on the toggle that enables this destination and the integration is completed
![segment_last_step.png 1600](https://files.readme.io/2312d6d-segment_last_step.png)
Updated almost 2 years ago