From 2c010f57cc80fe50fb5ed188de46134f04865119 Mon Sep 17 00:00:00 2001 From: David Meiklejohn Date: Wed, 8 Jan 2025 11:44:03 +1000 Subject: [PATCH] feat: removed anonymousId mapping, added ACCOIL_ANALYTICS to features.ts --- .../v2/destinations/accoil_analytics/procWorkflow.yaml | 9 ++++----- src/features.ts | 1 + 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/cdk/v2/destinations/accoil_analytics/procWorkflow.yaml b/src/cdk/v2/destinations/accoil_analytics/procWorkflow.yaml index ed6f1c44c1c..a37d59e0c14 100644 --- a/src/cdk/v2/destinations/accoil_analytics/procWorkflow.yaml +++ b/src/cdk/v2/destinations/accoil_analytics/procWorkflow.yaml @@ -34,34 +34,33 @@ steps: condition: $.context.messageType == {{$.EventType.TRACK}} template: | $.context.payload.event = .message.event; - $.context.payload.userId = .message.().({{{{$.getGenericPaths("userId")}}}}) + $.context.payload.userId = .message.().({{{{$.getGenericPaths("userIdOnly")}}}}) $.context.payload.timestamp = .message.().({{{{$.getGenericPaths("timestamp")}}}}) - name: pagePayload condition: $.context.messageType == {{$.EventType.PAGE}} template: | - $.context.payload.userId = .message.().({{{{$.getGenericPaths("userId")}}}}); + $.context.payload.userId = .message.().({{{{$.getGenericPaths("userIdOnly")}}}}); $.context.payload.name = .message.name; $.context.payload.timestamp = .message.().({{{{$.getGenericPaths("timestamp")}}}}); - name: screenPayload condition: $.context.messageType == {{$.EventType.SCREEN}} template: | - $.context.payload.userId = .message.().({{{{$.getGenericPaths("userId")}}}}); + $.context.payload.userId = .message.().({{{{$.getGenericPaths("userIdOnly")}}}}); $.context.payload.name = .message.name; $.context.payload.timestamp = .message.().({{{{$.getGenericPaths("timestamp")}}}}); - name: identifyPayload condition: $.context.messageType == {{$.EventType.IDENTIFY}} template: | - $.context.payload.userId = .message.().({{{{$.getGenericPaths("userId")}}}}); + $.context.payload.userId = .message.().({{{{$.getGenericPaths("userIdOnly")}}}}); $.context.payload.traits = .message.traits ?? .message.context.traits; $.context.payload.timestamp = .message.().({{{{$.getGenericPaths("timestamp")}}}}); - name: groupPayload condition: $.context.messageType == {{$.EventType.GROUP}} template: | - $.context.payload.anonymousId = .message.anonymousId; $.context.payload.userId = .message.().({{{{$.getGenericPaths("userId")}}}}); $.context.payload.groupId = .message.groupId; $.context.payload.timestamp = .message.().({{{{$.getGenericPaths("timestamp")}}}}); diff --git a/src/features.ts b/src/features.ts index fb91ae28833..e8e6f84ba07 100644 --- a/src/features.ts +++ b/src/features.ts @@ -94,6 +94,7 @@ const defaultFeaturesConfig: FeaturesConfig = { INTERCOM_V2: true, LINKEDIN_AUDIENCE: true, TOPSORT: true, + ACCOIL_ANALYTICS: true, }, regulations: [ 'BRAZE',