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

# Snapchat

> Connect Snapchat Ads to SegmentStream and import campaign cost data.

## Getting started

<Steps>
  <Step title="Navigate to Data Sources">
    Inside the admin panel navigate to the **Data Sources** page and click **+ NEW** on the top right corner.
  </Step>

  <Step title="Select Snapchat">
    Choose **Snapchat** from the list.
  </Step>

  <Step title="Authenticate">
    Click **Click to connect with Snapchat** and go through the authentication and setup flow.
  </Step>

  <Step title="Select account">
    Select the account from which you would like to import the cost data.
  </Step>

  <Step title="Save">
    Click **Save**.
  </Step>
</Steps>

## UTM tagging best practices

The Snapchat Ads API does not support extracting UTM tagging structures from ads. To ensure SegmentStream can link ad costs to session data, you will need to use [URL macro parameters](https://businesshelp.snapchat.com/s/article/add-url-macros?language=en_US) in your ad URLs.

<Steps>
  <Step title="Open URL parameters">
    In the **Ad Details** section of your ad setup, click on the **Build URL parameters** option.
  </Step>

  <Step title="Set campaign and ad IDs">
    We recommend passing the `{{campaign.id}}` value to the Campaign ID field, and `{{ad.id}}` to the Campaign content field. However, if you cannot alter the existing tags, you can skip this step and proceed to add custom parameters.
  </Step>

  <Step title="Add custom parameters">
    In the **Custom parameters** setting add `campaign_id` and `ad_id` with the values `{{campaign.id}}` and `{{ad.id}}` respectively. If you implement these custom parameters, there is no need to edit the Campaign ID and Campaign content fields.
  </Step>

  <Step title="Continue">
    Click **Continue**.
  </Step>
</Steps>

For more information on how to implement URL parameters in your ads, refer to the [Snapchat documentation](https://businesshelp.snapchat.com/s/article/add-url-macros?language=en_US).
