Skip to content

Commit

Permalink
feat: removed anonymousId mapping, added ACCOIL_ANALYTICS to features.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
accoilmj committed Jan 8, 2025
1 parent 9f2b0cb commit 2c010f5
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
9 changes: 4 additions & 5 deletions src/cdk/v2/destinations/accoil_analytics/procWorkflow.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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")}}}});
Expand Down
1 change: 1 addition & 0 deletions src/features.ts
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,7 @@ const defaultFeaturesConfig: FeaturesConfig = {
INTERCOM_V2: true,
LINKEDIN_AUDIENCE: true,
TOPSORT: true,
ACCOIL_ANALYTICS: true,
},
regulations: [
'BRAZE',
Expand Down

0 comments on commit 2c010f5

Please sign in to comment.