Skip to content

This page is available as Markdown at https://developers.klaviyo.com/en/v2025-01-15/reference/update_tracking_setting.md. An index of every page is at https://developers.klaviyo.com/llms.txt.

KlaviyoKlaviyoDevelopers
v2025-01-15

You're reading the reference for API revision 2025-01-15. The latest revision is 2026-10-15. See this page in the latest revision.

Update Tracking Setting

PATCHhttps://a.klaviyo.com/api/tracking-settings/{id}

Update the tracking setting with the given account ID.

Revision header
revision: 2025-01-15required
Scopes
tracking-settings:write
Rate limits
Burst: 10/sSteady: 150/m

Path parameters

  • id#stringrequired

    The id of the tracking setting (account ID).

Headers

  • revision#stringrequired

    API endpoint revision (format: YYYY-MM-DD[.suffix])

    2025-01-15

Request body

Content type: application/vnd.api+jsonrequired

  • data#objectrequired
    Show 3 fields
    • type#stringrequired
      Allowed values:
      • tracking-setting
    • id#stringrequired

      The id of the tracking setting (account ID).

    • attributes#objectrequired
      Show 7 fields
      • auto_add_parameters#booleannullable

        Whether tracking parameters are automatically added to campaigns and flows.

      • utm_source#object
        Show 2 fields
        • flow#oneOfnullable

          The value of the tracking parameter when applied to a flow.

          One of:

          1. Option 1: FlowTrackingSettingDynamicParam
            • type#stringrequired
              Allowed values:
              • dynamic
            • value#stringrequired

              The value of the tracking parameter

              Show 9 allowed values
              • email_subject
              • flow_id
              • flow_name
              • link_alt_text
              • message_name
              • message_name_id
              • message_type
              • profile_external_id
              • profile_id
          2. Option 2: FlowTrackingSettingStaticParam
            • type#stringrequired
              Allowed values:
              • static
            • value#stringrequired

              The value of the tracking parameter

        • campaign#oneOfnullable

          The value of the tracking parameter when applied to a campaign.

          One of:

          1. Option 1: CampaignTrackingSettingDynamicParam
            • type#stringrequired
              Allowed values:
              • dynamic
            • value#stringrequired

              The value of the tracking parameter

              Show 12 allowed values
              • campaign_id
              • campaign_name
              • campaign_name_id
              • campaign_name_send_day
              • email_subject
              • group_id
              • group_name
              • group_name_id
              • link_alt_text
              • message_type
              • profile_external_id
              • profile_id
          2. Option 2: CampaignTrackingSettingStaticParam
            • type#stringrequired
              Allowed values:
              • static
            • value#stringrequired

              The value of the tracking parameter

      • utm_medium#TrackingParamDTO

        Same fields as the first TrackingParamDTO above.

      • utm_campaign#TrackingParamDTO

        Same fields as the first TrackingParamDTO above.

      • utm_id#TrackingParamDTO

        Same fields as the first TrackingParamDTO above.

      • utm_term#TrackingParamDTO

        Same fields as the first TrackingParamDTO above.

      • custom_parameters#object[]nullable

        List of custom tracking parameters.

        Show 3 fields
        • flow#oneOfnullable

          The value of the tracking parameter when applied to a flow.

          One of:

          1. Option 1: FlowTrackingSettingDynamicParam

          2. Option 2: FlowTrackingSettingStaticParam

        • campaign#oneOfnullable

          The value of the tracking parameter when applied to a campaign.

          One of:

          1. Option 1: CampaignTrackingSettingDynamicParam

          2. Option 2: CampaignTrackingSettingStaticParam

        • name#stringrequired

          The name of the custom tracking parameter

Responses

200Success

Content type: application/vnd.api+json

  • data#objectrequired
    Show 4 fields
    • type#stringrequired
      Allowed values:
      • tracking-setting
    • id#stringrequired

      The id of the tracking setting (account ID).

    • attributes#objectrequired
      Show 7 fields
      • auto_add_parameters#booleanrequired

        Whether tracking parameters are automatically added to campaigns and flows.

      • utm_source#objectrequired
        Show 2 fields
        • flow#oneOfnullable

          The value of the tracking parameter when applied to a flow.

          One of:

          1. Option 1: FlowTrackingSettingDynamicParam
            • type#stringrequired
              Allowed values:
              • dynamic
            • value#stringrequired

              The value of the tracking parameter

              Show 9 allowed values
              • email_subject
              • flow_id
              • flow_name
              • link_alt_text
              • message_name
              • message_name_id
              • message_type
              • profile_external_id
              • profile_id
          2. Option 2: FlowTrackingSettingStaticParam
            • type#stringrequired
              Allowed values:
              • static
            • value#stringrequired

              The value of the tracking parameter

        • campaign#oneOfnullable

          The value of the tracking parameter when applied to a campaign.

          One of:

          1. Option 1: CampaignTrackingSettingDynamicParam
            • type#stringrequired
              Allowed values:
              • dynamic
            • value#stringrequired

              The value of the tracking parameter

              Show 12 allowed values
              • campaign_id
              • campaign_name
              • campaign_name_id
              • campaign_name_send_day
              • email_subject
              • group_id
              • group_name
              • group_name_id
              • link_alt_text
              • message_type
              • profile_external_id
              • profile_id
          2. Option 2: CampaignTrackingSettingStaticParam
            • type#stringrequired
              Allowed values:
              • static
            • value#stringrequired

              The value of the tracking parameter

      • utm_medium#TrackingParamDTOrequired

        Same fields as the first TrackingParamDTO above.

      • utm_campaign#TrackingParamDTO

        Same fields as the first TrackingParamDTO above.

      • utm_id#TrackingParamDTO

        Same fields as the first TrackingParamDTO above.

      • utm_term#TrackingParamDTO

        Same fields as the first TrackingParamDTO above.

      • custom_parameters#object[]nullable

        Additional custom tracking parameters.

        Show 3 fields
        • flow#oneOfnullable

          The value of the tracking parameter when applied to a flow.

          One of:

          1. Option 1: FlowTrackingSettingDynamicParam

          2. Option 2: FlowTrackingSettingStaticParam

        • campaign#oneOfnullable

          The value of the tracking parameter when applied to a campaign.

          One of:

          1. Option 1: CampaignTrackingSettingDynamicParam

          2. Option 2: CampaignTrackingSettingStaticParam

        • name#stringrequired

          The name of the custom tracking parameter

4XXClient Error

Content type: application/vnd.api+json

  • errors#object[]required
    Show 5 fields
    • id#stringrequired
    • code#stringrequired
    • title#stringrequired
    • detail#stringrequired
    • source#object
      Show 2 fields
      • pointer#string
      • parameter#string

5XXServer Error

Content type: application/vnd.api+json

  • errors#object[]required
    Show 5 fields
    • id#stringrequired
    • code#stringrequired
    • title#stringrequired
    • detail#stringrequired
    • source#object
      Show 2 fields
      • pointer#string
      • parameter#string