Skip to content

Commit

Permalink
feat: add clickId support for pinterest
Browse files Browse the repository at this point in the history
  • Loading branch information
ujjwal-ab committed Nov 1, 2023
1 parent d370b75 commit 43bc8f6
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/cdk/v2/destinations/pinterest_tag/procWorkflow.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,8 @@ steps:
"hashed_maids": .context.device.advertisingId,
"client_ip_address": .context.ip ?? .request_ip,
"client_user_agent": .context.userAgent,
"external_id": {{{{$.getGenericPaths("userId")}}}}
"external_id": {{{{$.getGenericPaths("userId")}}}},
"click_id": .properties.clickId
});
!.destination.Config.sendExternalId ? userFields = userFields{~["external_id"]} : null;
userFields = $.removeUndefinedAndNullAndEmptyValues(userFields);
Expand Down Expand Up @@ -185,14 +186,13 @@ steps:
- name: payload
template: |
$.outputs.eventNames.().({...$.outputs.basePayload, event_name: .})[]
- name: checkSendTestEventConfig
description: |
If sendTestEvent is enabled, we send test event to the destination
ref: https://help.pinterest.com/en/business/article/track-conversions-with-the-conversions-api
template: |
^.destination.Config.sendAsTestEvent ? {"test": true} : {}
^.destination.Config.sendAsTestEvent ? {"test": true} : {}
- name: buildResponseForBatchMode
description: In batchMode we return payload directly
Expand Down

0 comments on commit 43bc8f6

Please sign in to comment.