From 212d5f09d8addc618d4398029e62c9a18a9512cf Mon Sep 17 00:00:00 2001
From: Gauravudia <60897972+Gauravudia@users.noreply.github.com>
Date: Mon, 5 Feb 2024 12:09:56 +0530
Subject: [PATCH 1/3] feat: trade desk real time conversions (#3023)
* feat: initial commit
* refactor: added comments
* featL add payload builder utilities
* feat: add privacy settings and canonical names
* refactor: created separate transform.js for record and conversion use case
* feat: added getRevenue utility and unit testcases
* refactor: handle record/track type and added testcases
* fix: use map instead of forEach for async operations
* docs: add comments
* feat: review changes
* refactor: moved transform.js code logic to rtWorkflow
* feat: added generate exclusion list utility
* refactor: error message and function variable name
* refactor: import endpoint from config and added api links
* docs: add comments in response handler
* refactor: created separate validateConfig utility for both flows
* feat: updated category id mapping
* test: add generateExclusionList testcases
---
jest.default.config.js | 2 +-
.../v2/destinations/the_trade_desk/config.js | 61 +-
.../the_trade_desk/data/TTDCommonConfig.json | 22 +
.../the_trade_desk/data/TTDItemConfig.json | 22 +
.../the_trade_desk/rtWorkflow.yaml | 48 +-
.../the_trade_desk/transformConversion.js | 98 +
.../the_trade_desk/transformRecord.js | 113 +
.../v2/destinations/the_trade_desk/utils.js | 363 +-
.../destinations/the_trade_desk/utils.test.js | 614 +-
src/constants/destinationCanonicalNames.js | 10 +
src/constants/index.js | 1 +
.../the_trade_desk/networkHandler.js | 46 +-
src/v0/util/index.js | 36 +-
src/v0/util/index.test.js | 43 +-
.../clevertap/dataDelivery/data.ts | 401 +-
.../destinations/clickup/processor/data.ts | 1645 +-
.../criteo_audience/dataDelivery/data.ts | 906 +-
.../destinations/custify/processor/data.ts | 1365 +-
.../destinations/delighted/processor/data.ts | 1882 +-
.../destinations/drip/processor/data.ts | 2983 +--
.../freshmarketer/processor/data.ts | 6275 ++---
.../destinations/freshsales/processor/data.ts | 5354 +++--
.../destinations/ga/processor/data.ts | 20007 ++++++++--------
.../destinations/ga360/processor/data.ts | 18737 +++++++--------
.../destinations/gainsight/processor/data.ts | 1947 +-
.../gcs_datalake/processor/data.ts | 371 +-
.../dataDelivery/data.ts | 1406 +-
.../marketo_bulk_upload/processor/data.ts | 1002 +-
.../marketo_static_list/dataDelivery/data.ts | 617 +-
.../revenue_cat/processor/data.ts | 2160 +-
.../destinations/rockerbox/processor/data.ts | 1493 +-
.../destinations/segment/processor/data.ts | 1343 +-
.../dataDelivery/data.ts | 368 +-
.../processor/data.ts | 2753 ++-
.../destinations/splitio/processor/data.ts | 1818 +-
.../destinations/the_trade_desk/common.ts | 63 +
.../the_trade_desk/delivery/data.ts | 166 +
.../destinations/the_trade_desk/network.ts | 105 +-
.../the_trade_desk/router/data.ts | 1099 +-
.../tiktok_audience/processor/data.ts | 1568 +-
.../destinations/vero/processor/data.ts | 1624 +-
.../destinations/wootric/processor/data.ts | 3675 +--
test/test_reporter/reporter.ts | 4 +-
43 files changed, 43643 insertions(+), 40973 deletions(-)
create mode 100644 src/cdk/v2/destinations/the_trade_desk/data/TTDCommonConfig.json
create mode 100644 src/cdk/v2/destinations/the_trade_desk/data/TTDItemConfig.json
create mode 100644 src/cdk/v2/destinations/the_trade_desk/transformConversion.js
create mode 100644 src/cdk/v2/destinations/the_trade_desk/transformRecord.js
diff --git a/jest.default.config.js b/jest.default.config.js
index 59ca844902..d1b5390b9e 100644
--- a/jest.default.config.js
+++ b/jest.default.config.js
@@ -27,7 +27,7 @@ module.exports = {
coverageDirectory: 'reports/coverage',
// An array of regexp pattern strings used to skip coverage collection
- coveragePathIgnorePatterns: ['/node_modules/', '__tests__', 'warehouse/v0' ,'test'],
+ coveragePathIgnorePatterns: ['/node_modules/', '__tests__', 'warehouse/v0', 'test'],
// A list of reporter names that Jest uses when writing coverage reports
coverageReporters: ['json', 'text', 'lcov', 'clover'],
diff --git a/src/cdk/v2/destinations/the_trade_desk/config.js b/src/cdk/v2/destinations/the_trade_desk/config.js
index 9455c818fd..828bab3714 100644
--- a/src/cdk/v2/destinations/the_trade_desk/config.js
+++ b/src/cdk/v2/destinations/the_trade_desk/config.js
@@ -1,8 +1,11 @@
-const SUPPORTED_EVENT_TYPE = 'record';
+const { getMappingConfig } = require('../../../../v0/util');
+
+const SUPPORTED_EVENT_TYPE = ['record', 'track'];
const ACTION_TYPES = ['insert', 'delete'];
const DATA_PROVIDER_ID = 'rudderstack';
// ref:- https://partner.thetradedesk.com/v3/portal/data/doc/DataEnvironments
+// api ref:- https://partner.thetradedesk.com/v3/portal/data/doc/post-data-advertiser-external
const DATA_SERVERS_BASE_ENDPOINTS_MAP = {
apac: 'https://sin-data.adsrvr.org',
tokyo: 'https://tok-data.adsrvr.org',
@@ -12,10 +15,66 @@ const DATA_SERVERS_BASE_ENDPOINTS_MAP = {
china: 'https://data-cn2.adsrvr.cn',
};
+// ref:- https://partner.thetradedesk.com/v3/portal/data/doc/DataConversionEventsApi
+const REAL_TIME_CONVERSION_ENDPOINT = 'https://insight.adsrvr.org/track/realtimeconversion';
+
+const CONVERSION_SUPPORTED_ID_TYPES = [
+ 'TDID',
+ 'IDFA',
+ 'AAID',
+ 'DAID',
+ 'NAID',
+ 'IDL',
+ 'EUID',
+ 'UID2',
+];
+
+const ECOMM_EVENT_MAP = {
+ 'product added': {
+ event: 'addtocart',
+ rootLevelPriceSupported: true,
+ },
+ 'order completed': {
+ event: 'purchase',
+ itemsArray: true,
+ revenueFieldSupported: true,
+ },
+ 'product viewed': {
+ event: 'viewitem',
+ rootLevelPriceSupported: true,
+ },
+ 'checkout started': {
+ event: 'startcheckout',
+ itemsArray: true,
+ revenueFieldSupported: true,
+ },
+ 'cart viewed': {
+ event: 'viewcart',
+ itemsArray: true,
+ },
+ 'product added to wishlist': {
+ event: 'wishlistitem',
+ rootLevelPriceSupported: true,
+ },
+};
+
+const CONFIG_CATEGORIES = {
+ COMMON_CONFIGS: { name: 'TTDCommonConfig' },
+ ITEM_CONFIGS: { name: 'TTDItemConfig' },
+};
+
+const MAPPING_CONFIG = getMappingConfig(CONFIG_CATEGORIES, __dirname);
+
module.exports = {
SUPPORTED_EVENT_TYPE,
ACTION_TYPES,
DATA_PROVIDER_ID,
MAX_REQUEST_SIZE_IN_BYTES: 2500000,
DATA_SERVERS_BASE_ENDPOINTS_MAP,
+ CONVERSION_SUPPORTED_ID_TYPES,
+ CONFIG_CATEGORIES,
+ COMMON_CONFIGS: MAPPING_CONFIG[CONFIG_CATEGORIES.COMMON_CONFIGS.name],
+ ITEM_CONFIGS: MAPPING_CONFIG[CONFIG_CATEGORIES.ITEM_CONFIGS.name],
+ ECOMM_EVENT_MAP,
+ REAL_TIME_CONVERSION_ENDPOINT,
};
diff --git a/src/cdk/v2/destinations/the_trade_desk/data/TTDCommonConfig.json b/src/cdk/v2/destinations/the_trade_desk/data/TTDCommonConfig.json
new file mode 100644
index 0000000000..848d16b405
--- /dev/null
+++ b/src/cdk/v2/destinations/the_trade_desk/data/TTDCommonConfig.json
@@ -0,0 +1,22 @@
+[
+ {
+ "destKey": "currency",
+ "sourceKeys": "properties.currency"
+ },
+ {
+ "destKey": "client_ip",
+ "sourceKeys": ["context.ip", "request_ip"]
+ },
+ {
+ "destKey": "referrer_url",
+ "sourceKeys": "context.page.referrer"
+ },
+ {
+ "destKey": "imp",
+ "sourceKeys": "messageId"
+ },
+ {
+ "destKey": "order_id",
+ "sourceKeys": "properties.order_id"
+ }
+]
diff --git a/src/cdk/v2/destinations/the_trade_desk/data/TTDItemConfig.json b/src/cdk/v2/destinations/the_trade_desk/data/TTDItemConfig.json
new file mode 100644
index 0000000000..45aeb711ab
--- /dev/null
+++ b/src/cdk/v2/destinations/the_trade_desk/data/TTDItemConfig.json
@@ -0,0 +1,22 @@
+[
+ {
+ "destKey": "item_code",
+ "sourceKeys": ["product_id", "sku"]
+ },
+ {
+ "destKey": "name",
+ "sourceKeys": "name"
+ },
+ {
+ "destKey": "qty",
+ "sourceKeys": "quantity"
+ },
+ {
+ "destKey": "price",
+ "sourceKeys": "price"
+ },
+ {
+ "destKey": "cat",
+ "sourceKeys": "category_id"
+ }
+]
diff --git a/src/cdk/v2/destinations/the_trade_desk/rtWorkflow.yaml b/src/cdk/v2/destinations/the_trade_desk/rtWorkflow.yaml
index 0c8963e0ac..ee05ecd967 100644
--- a/src/cdk/v2/destinations/the_trade_desk/rtWorkflow.yaml
+++ b/src/cdk/v2/destinations/the_trade_desk/rtWorkflow.yaml
@@ -1,17 +1,47 @@
bindings:
- - name: processRouterDest
- path: ./utils
+ - name: EventType
+ path: ../../../../constants
+ - name: processRecordInputs
+ path: ./transformRecord
+ - name: processConversionInputs
+ path: ./transformConversion
+ - name: handleRtTfSingleEventError
+ path: ../../../../v0/util/index
+ - name: InstrumentationError
+ path: '@rudderstack/integrations-lib'
steps:
- - name: validateInput
+ - name: validateCommonConfig
+ description: |
+ validate common config for first party data and realtime conversion flow
template: |
- $.assert(Array.isArray(^) && ^.length > 0, "Invalid event array")
const config = ^[0].destination.Config
- $.assertConfig(config.audienceId, "Segment name is not present. Aborting")
$.assertConfig(config.advertiserId, "Advertiser ID is not present. Aborting")
- $.assertConfig(config.advertiserSecretKey, "Advertiser Secret Key is not present. Aborting")
- config.ttlInDays ? $.assertConfig(config.ttlInDays >=0 && config.ttlInDays <= 180, "TTL is out of range. Allowed values are 0 to 180 days")
- - name: processRouterDest
+ - name: validateInput
+ template: |
+ $.assert(Array.isArray(^) && ^.length > 0, "Invalid event array")
+
+ - name: processRecordEvents
+ template: |
+ $.processRecordInputs(^.{.message.type === $.EventType.RECORD}[], ^[0].destination)
+
+ - name: processConversionEvents
+ template: |
+ $.processConversionInputs(^.{.message.type === $.EventType.TRACK}[])
+
+ - name: failOtherEvents
+ template: |
+ const otherEvents = ^.{.message.type !== $.EventType.TRACK && .message.type !== $.EventType.RECORD}[]
+ let failedEvents = otherEvents.map(
+ function(event) {
+ const error = new $.InstrumentationError("Event type " + event.message.type + " is not supported");
+ $.handleRtTfSingleEventError(event, error, {})
+ }
+ )
+
+ failedEvents ?? []
+
+ - name: finalPayload
template: |
- $.processRouterDest(^)
+ [...$.outputs.processRecordEvents, ...$.outputs.processConversionEvents, ...$.outputs.failOtherEvents]
diff --git a/src/cdk/v2/destinations/the_trade_desk/transformConversion.js b/src/cdk/v2/destinations/the_trade_desk/transformConversion.js
new file mode 100644
index 0000000000..b282c43151
--- /dev/null
+++ b/src/cdk/v2/destinations/the_trade_desk/transformConversion.js
@@ -0,0 +1,98 @@
+const { InstrumentationError, ConfigurationError } = require('@rudderstack/integrations-lib');
+const {
+ defaultRequestConfig,
+ simpleProcessRouterDest,
+ defaultPostRequestConfig,
+ removeUndefinedAndNullValues,
+} = require('../../../../v0/util');
+const { EventType } = require('../../../../constants');
+const { REAL_TIME_CONVERSION_ENDPOINT } = require('./config');
+const {
+ prepareFromConfig,
+ prepareCommonPayload,
+ getRevenue,
+ prepareItemsPayload,
+ getAdvertisingId,
+ prepareCustomProperties,
+ populateEventName,
+ getDataProcessingOptions,
+ getPrivacySetting,
+ enrichTrackPayload,
+} = require('./utils');
+
+const responseBuilder = (payload) => {
+ const response = defaultRequestConfig();
+ response.endpoint = REAL_TIME_CONVERSION_ENDPOINT;
+ response.method = defaultPostRequestConfig.requestMethod;
+ response.body.JSON = payload;
+ return response;
+};
+
+const validateInputAndConfig = (message, destination) => {
+ const { Config } = destination;
+ if (!Config.trackerId) {
+ throw new ConfigurationError('Tracking Tag ID is not present. Aborting');
+ }
+
+ if (!message.type) {
+ throw new InstrumentationError('Event type is required');
+ }
+
+ const messageType = message.type.toLowerCase();
+ if (messageType !== EventType.TRACK) {
+ throw new InstrumentationError(`Event type "${messageType}" is not supported`);
+ }
+
+ if (!message.event) {
+ throw new InstrumentationError('Event name is not present. Aborting.');
+ }
+};
+
+const prepareTrackPayload = (message, destination) => {
+ const configPayload = prepareFromConfig(destination);
+ const commonPayload = prepareCommonPayload(message);
+ // prepare items array
+ const items = prepareItemsPayload(message);
+ const { id, type } = getAdvertisingId(message);
+ // get td1-td10 custom properties
+ const customProperties = prepareCustomProperties(message, destination);
+ const eventName = populateEventName(message, destination);
+ const value = getRevenue(message);
+ let payload = {
+ ...configPayload,
+ ...commonPayload,
+ event_name: eventName,
+ value,
+ items,
+ adid: id,
+ adid_type: type,
+ ...customProperties,
+ data_processing_option: getDataProcessingOptions(message),
+ privacy_settings: getPrivacySetting(message),
+ };
+
+ payload = enrichTrackPayload(message, payload);
+ return { data: [removeUndefinedAndNullValues(payload)] };
+};
+
+const trackResponseBuilder = (message, destination) => {
+ const payload = prepareTrackPayload(message, destination);
+ return responseBuilder(payload);
+};
+
+const processEvent = (message, destination) => {
+ validateInputAndConfig(message, destination);
+ return trackResponseBuilder(message, destination);
+};
+
+const process = (event) => processEvent(event.message, event.destination);
+
+const processConversionInputs = async (inputs, reqMetadata) => {
+ if (!inputs || inputs.length === 0) {
+ return [];
+ }
+ const respList = await simpleProcessRouterDest(inputs, process, reqMetadata);
+ return respList;
+};
+
+module.exports = { processConversionInputs };
diff --git a/src/cdk/v2/destinations/the_trade_desk/transformRecord.js b/src/cdk/v2/destinations/the_trade_desk/transformRecord.js
new file mode 100644
index 0000000000..d571e11b7a
--- /dev/null
+++ b/src/cdk/v2/destinations/the_trade_desk/transformRecord.js
@@ -0,0 +1,113 @@
+const { InstrumentationError, ConfigurationError } = require('@rudderstack/integrations-lib');
+const { BatchUtils } = require('@rudderstack/workflow-engine');
+const {
+ defaultPostRequestConfig,
+ defaultRequestConfig,
+ getSuccessRespEvents,
+ removeUndefinedAndNullValues,
+ handleRtTfSingleEventError,
+ isEmptyObject,
+} = require('../../../../v0/util');
+const { getTTLInMin, getFirstPartyEndpoint } = require('./utils');
+const tradeDeskConfig = require('./config');
+
+const { DATA_PROVIDER_ID } = tradeDeskConfig;
+
+const validateConfig = (config) => {
+ if (!config.advertiserSecretKey) {
+ throw new ConfigurationError('Advertiser Secret Key is not present. Aborting');
+ }
+
+ if (config.ttlInDays && !(config.ttlInDays >= 0 && config.ttlInDays <= 180)) {
+ throw new ConfigurationError('TTL is out of range. Allowed values are 0 to 180 days');
+ }
+
+ if (!config.audienceId) {
+ throw new ConfigurationError('Segment name/Audience ID is not present. Aborting');
+ }
+};
+
+const responseBuilder = (items, config) => {
+ const { advertiserId, dataServer } = config;
+
+ const payload = { DataProviderId: DATA_PROVIDER_ID, AdvertiserId: advertiserId, Items: items };
+
+ const response = defaultRequestConfig();
+ response.endpoint = getFirstPartyEndpoint(dataServer);
+ response.method = defaultPostRequestConfig.requestMethod;
+ response.body.JSON = removeUndefinedAndNullValues(payload);
+ return response;
+};
+
+const batchResponseBuilder = (items, config) => {
+ const response = [];
+ const itemsChunks = BatchUtils.chunkArrayBySizeAndLength(items, {
+ // TODO: use destructuring at the top of file once proper 'mocking' is implemented.
+ // eslint-disable-next-line unicorn/consistent-destructuring
+ maxSizeInBytes: tradeDeskConfig.MAX_REQUEST_SIZE_IN_BYTES,
+ });
+
+ itemsChunks.items.forEach((chunk) => {
+ response.push(responseBuilder(chunk, config));
+ });
+
+ return response;
+};
+
+const processRecordInputs = (inputs, destination) => {
+ const { Config } = destination;
+ const items = [];
+ const successMetadata = [];
+ const errorResponseList = [];
+
+ if (!inputs || inputs.length === 0) {
+ return [];
+ }
+
+ validateConfig(Config);
+
+ const invalidActionTypeError = new InstrumentationError(
+ 'Invalid action type. You can only add or remove IDs from the audience/segment',
+ );
+ const emptyFieldsError = new InstrumentationError('`fields` cannot be empty');
+ inputs.forEach((input) => {
+ const { fields, action } = input.message;
+ const isInsertOrDelete = action === 'insert' || action === 'delete';
+
+ if (!isInsertOrDelete) {
+ errorResponseList.push(handleRtTfSingleEventError(input, invalidActionTypeError, {}));
+ return;
+ }
+
+ if (isEmptyObject(fields)) {
+ errorResponseList.push(handleRtTfSingleEventError(input, emptyFieldsError, {}));
+ return;
+ }
+
+ successMetadata.push(input.metadata);
+ const data = [
+ {
+ Name: Config.audienceId,
+ TTLInMinutes: action === 'insert' ? getTTLInMin(Config.ttlInDays) : 0,
+ },
+ ];
+
+ Object.keys(fields).forEach((id) => {
+ const value = fields[id];
+ if (value) {
+ // adding only non empty ID's
+ items.push({ [id]: value, Data: data });
+ }
+ });
+ });
+
+ const payloads = batchResponseBuilder(items, Config);
+ if (payloads.length === 0) {
+ return errorResponseList;
+ }
+
+ const response = getSuccessRespEvents(payloads, successMetadata, destination, true);
+ return [response, ...errorResponseList];
+};
+
+module.exports = { processRecordInputs };
diff --git a/src/cdk/v2/destinations/the_trade_desk/utils.js b/src/cdk/v2/destinations/the_trade_desk/utils.js
index 632442d74e..64c5f2b78a 100644
--- a/src/cdk/v2/destinations/the_trade_desk/utils.js
+++ b/src/cdk/v2/destinations/the_trade_desk/utils.js
@@ -1,23 +1,37 @@
const lodash = require('lodash');
+const get = require('get-value');
const CryptoJS = require('crypto-js');
const { InstrumentationError, AbortedError } = require('@rudderstack/integrations-lib');
-const { BatchUtils } = require('@rudderstack/workflow-engine');
const {
- defaultPostRequestConfig,
- defaultRequestConfig,
- getSuccessRespEvents,
- removeUndefinedAndNullValues,
- handleRtTfSingleEventError,
- isEmptyObject,
+ constructPayload,
+ getHashFromArray,
+ isDefinedAndNotNull,
+ isAppleFamily,
+ getIntegrationsObj,
+ extractCustomFields,
+ generateExclusionList,
} = require('../../../../v0/util');
-const tradeDeskConfig = require('./config');
-
-const { DATA_PROVIDER_ID, DATA_SERVERS_BASE_ENDPOINTS_MAP } = tradeDeskConfig;
+const {
+ DATA_SERVERS_BASE_ENDPOINTS_MAP,
+ CONVERSION_SUPPORTED_ID_TYPES,
+ COMMON_CONFIGS,
+ ITEM_CONFIGS,
+ ECOMM_EVENT_MAP,
+} = require('./config');
-const ttlInMin = (ttl) => parseInt(ttl, 10) * 1440;
+const getTTLInMin = (ttl) => parseInt(ttl, 10) * 1440;
const getBaseEndpoint = (dataServer) => DATA_SERVERS_BASE_ENDPOINTS_MAP[dataServer];
const getFirstPartyEndpoint = (dataServer) => `${getBaseEndpoint(dataServer)}/data/advertiser`;
+const prepareCommonPayload = (message) => constructPayload(message, COMMON_CONFIGS);
+/**
+ * Generates a signature header for a given request using a secret key.
+ *
+ * @param {Object} request - The request object to generate the signature for.
+ * @param {string} secretKey - The secret key used to generate the signature.
+ * @returns {string} - The generated signature header.
+ * @throws {AbortedError} - If the secret key is missing.
+ */
const getSignatureHeader = (request, secretKey) => {
if (!secretKey) {
throw new AbortedError('Secret key is missing. Aborting');
@@ -27,92 +41,295 @@ const getSignatureHeader = (request, secretKey) => {
return base;
};
-const responseBuilder = (items, config) => {
- const { advertiserId, dataServer } = config;
+const prepareFromConfig = (destination) => ({
+ tracker_id: destination.Config?.trackerId,
+ adv: destination.Config?.advertiserId,
+});
- const payload = { DataProviderId: DATA_PROVIDER_ID, AdvertiserId: advertiserId, Items: items };
+/**
+ * Calculates the revenue based on the given message.
+ *
+ * @param {Object} message - The message object containing the event and properties.
+ * @returns {number} - The calculated revenue.
+ * @throws {InstrumentationError} - If the event is 'Order Completed' and revenue is not provided.
+ */
+const getRevenue = (message) => {
+ const { event, properties } = message;
+ let revenue = properties?.value;
+ const eventsMapInfo = ECOMM_EVENT_MAP[event.toLowerCase()];
+ if (eventsMapInfo?.rootLevelPriceSupported) {
+ const { price, quantity = 1 } = properties;
+ if (price && !Number.isNaN(parseFloat(price)) && !Number.isNaN(parseInt(quantity, 10))) {
+ revenue = parseFloat(price) * parseInt(quantity, 10);
+ }
+ } else if (eventsMapInfo?.revenueFieldSupported) {
+ revenue = properties?.revenue || revenue;
+ if (event.toLowerCase() === 'order completed' && !revenue) {
+ throw new InstrumentationError('value is required for `Order Completed` event');
+ }
+ }
- const response = defaultRequestConfig();
- response.endpoint = getFirstPartyEndpoint(dataServer);
- response.method = defaultPostRequestConfig.requestMethod;
- response.body.JSON = removeUndefinedAndNullValues(payload);
- return response;
+ return revenue;
};
-const batchResponseBuilder = (items, config) => {
- const response = [];
- const itemsChunks = BatchUtils.chunkArrayBySizeAndLength(items, {
- // TODO: use destructuring at the top of file once proper 'mocking' is implemented.
- // eslint-disable-next-line unicorn/consistent-destructuring
- maxSizeInBytes: tradeDeskConfig.MAX_REQUEST_SIZE_IN_BYTES,
- });
+/**
+ * Generates items from properties of a given message.
+ *
+ * @param {Object} message - The message object containing properties.
+ * @returns {Array} - An array of items generated from the properties.
+ */
+const prepareItemsFromProperties = (message) => {
+ const { properties } = message;
+ const items = [];
+ const item = constructPayload(properties, ITEM_CONFIGS);
+ items.push(item);
+ return items;
+};
- itemsChunks.items.forEach((chunk) => {
- response.push(responseBuilder(chunk, config));
+/**
+ * Generates items payload from products.
+ *
+ * @param {Object} message - The message object.
+ * @returns {Array} - The items payload.
+ */
+const prepareItemsFromProducts = (message) => {
+ const products = get(message, 'properties.products');
+ const items = [];
+ products.forEach((product) => {
+ const item = constructPayload(product, ITEM_CONFIGS);
+ const itemExclusionList = generateExclusionList(ITEM_CONFIGS);
+ extractCustomFields(product, item, 'root', itemExclusionList);
+ items.push(item);
});
+ return items;
+};
- return response;
+/**
+ * Generates items payload from root properties or products.
+ *
+ * @param {Object} message - The message object containing event and properties.
+ * @returns {Array} - The array of items payload.
+ */
+const prepareItemsPayload = (message) => {
+ const { event } = message;
+ let items;
+ const eventMapInfo = ECOMM_EVENT_MAP[event.toLowerCase()];
+ if (eventMapInfo?.itemsArray) {
+ items = prepareItemsFromProducts(message);
+ } else if (eventMapInfo) {
+ items = prepareItemsFromProperties(message);
+ }
+ return items;
};
-const processRecordInputs = (inputs, destination) => {
- const { Config } = destination;
- const items = [];
- const successMetadata = [];
- const errorResponseList = [];
+/**
+ * Retrieves the device advertising ID and type based on the provided message.
+ *
+ * @param {Object} message - The message object containing the context.
+ * @returns {Object} - An object containing the device advertising ID and type.
+ */
+const getDeviceAdvertisingId = (message) => {
+ const { context } = message;
+ const deviceId = context?.device?.advertisingId;
+ const osName = context?.os?.name?.toLowerCase();
- const invalidActionTypeError = new InstrumentationError('Invalid action type');
- const emptyFieldsError = new InstrumentationError('Fields cannot be empty');
+ let type;
+ switch (osName) {
+ case 'android':
+ type = 'AAID';
+ break;
+ case 'windows':
+ type = 'NAID';
+ break;
+ default:
+ type = isAppleFamily(osName) ? 'IDFA' : undefined;
+ break;
+ }
- inputs.forEach((input) => {
- const { fields, action } = input.message;
- const isInsertOrDelete = action === 'insert' || action === 'delete';
+ return { deviceId, type };
+};
- if (!isInsertOrDelete) {
- errorResponseList.push(handleRtTfSingleEventError(input, invalidActionTypeError, {}));
- return;
- }
+/**
+ * Retrieves the external ID object from the given message context.
+ *
+ * @param {Object} message - The message object containing the context.
+ * @returns {Object|undefined} - The external ID object, or undefined if not found.
+ */
+const getDestinationExternalIDObject = (message) => {
+ const { context } = message;
+ const externalIdArray = context?.externalId || [];
- if (isEmptyObject(fields)) {
- errorResponseList.push(handleRtTfSingleEventError(input, emptyFieldsError, {}));
- return;
- }
+ let externalIdObj;
- successMetadata.push(input.metadata);
- const data = [
- {
- Name: Config.audienceId,
- TTLInMinutes: action === 'insert' ? ttlInMin(Config.ttlInDays) : 0,
- },
- ];
+ if (Array.isArray(externalIdArray)) {
+ externalIdObj = externalIdArray.find(
+ (extIdObj) =>
+ CONVERSION_SUPPORTED_ID_TYPES.includes(extIdObj?.type?.toUpperCase()) && extIdObj?.id,
+ );
+ }
+ return externalIdObj;
+};
+
+/**
+ * Retrieves the advertising ID and type from the given message.
+ *
+ * @param {Object} message - The message object containing the context.
+ * @returns {Object} - An object containing the advertising ID and type.
+ * If the advertising ID and type are found in the device context, they are returned.
+ * If not, the external ID object is checked and if found, its ID and type are returned.
+ * If neither the device context nor the external ID object contain the required information,
+ * an object with null values for ID and type is returned.
+ */
+const getAdvertisingId = (message) => {
+ const { deviceId, type } = getDeviceAdvertisingId(message);
+ if (deviceId && type) {
+ return { id: deviceId, type };
+ }
+ const externalIdObj = getDestinationExternalIDObject(message);
+ if (externalIdObj?.id && externalIdObj?.type) {
+ return { id: externalIdObj.id, type: externalIdObj.type.toUpperCase() };
+ }
+
+ return { id: null, type: null };
+};
- Object.keys(fields).forEach((id) => {
- const value = fields[id];
+/**
+ * Prepares custom properties (td1-td10) for a given message and destination.
+ *
+ * @param {object} message - The message object.
+ * @param {object} destination - The destination object.
+ * @returns {object} - The prepared payload object.
+ */
+const prepareCustomProperties = (message, destination) => {
+ const { customProperties } = destination.Config;
+ const payload = {};
+ if (customProperties) {
+ customProperties.forEach((customProperty) => {
+ const { rudderProperty, tradeDeskProperty } = customProperty;
+ const value = get(message, rudderProperty);
if (value) {
- // adding only non empty ID's
- items.push({ [id]: value, Data: data });
+ payload[tradeDeskProperty] = value;
+ // unset the rudder property from the message, since it is already mapped to a trade desk property
+ lodash.unset(message, rudderProperty);
}
});
- });
+ }
+ return payload;
+};
+
+/**
+ * Retrieves the event name based on the provided message and destination.
+ *
+ * @param {object} message - The message object containing the event.
+ * @param {object} destination - The destination object containing the events mapping configuration.
+ * @returns {string} - The event name.
+ */
+const populateEventName = (message, destination) => {
+ let eventName;
+ const { event } = message;
+ const { eventsMapping } = destination.Config;
+
+ // if event is mapped on dashboard, use the mapped event name
+ if (Array.isArray(eventsMapping) && eventsMapping.length > 0) {
+ const keyMap = getHashFromArray(eventsMapping, 'from', 'to');
+ eventName = keyMap[event.toLowerCase()];
+ }
- const payloads = batchResponseBuilder(items, Config);
- if (payloads.length === 0) {
- return errorResponseList;
+ if (eventName) {
+ return eventName;
}
- const response = getSuccessRespEvents(payloads, successMetadata, destination, true);
- return [response, ...errorResponseList];
+ // if event is one of the supported ecommerce events, use the mapped trade desk event name
+ const eventMapInfo = ECOMM_EVENT_MAP[event.toLowerCase()];
+ if (isDefinedAndNotNull(eventMapInfo)) {
+ return eventMapInfo.event;
+ }
+
+ // else return the event name as it is
+ return event;
};
-const processRouterDest = (inputs) => {
- const respList = [];
- const { destination } = inputs[0];
- const groupedInputs = lodash.groupBy(inputs, (input) => input.message.type);
- if (groupedInputs.record) {
- const transformedRecordEvent = processRecordInputs(groupedInputs.record, destination);
- respList.push(...transformedRecordEvent);
+/**
+ * Retrieves the data processing options based on the provided message.
+ *
+ * @param {string} message - The message to process.
+ * @throws {InstrumentationError} - Throws an error if the region is not supported, if no policies are provided, if multiple policies are provided, or if the policy is not supported.
+ * @returns {Object} - The data processing options, including the policies and region.
+ */
+const getDataProcessingOptions = (message) => {
+ const integrationObj = getIntegrationsObj(message, 'THE_TRADE_DESK') || {};
+ let { policies } = integrationObj;
+ const { region } = integrationObj;
+ let dataProcessingOptions;
+
+ if (region && !region.toLowerCase().startsWith('us')) {
+ throw new InstrumentationError('Only US states are supported');
}
- return respList;
+ if (!policies || (Array.isArray(policies) && policies.length === 0)) {
+ policies = ['LDU'];
+ }
+
+ if (policies.length > 1) {
+ throw new InstrumentationError('Only one policy is allowed');
+ }
+
+ if (policies[0] !== 'LDU') {
+ throw new InstrumentationError('Only LDU policy is supported');
+ }
+
+ if (policies && region) {
+ dataProcessingOptions = { policies, region };
+ }
+
+ return dataProcessingOptions;
};
-module.exports = { getSignatureHeader, processRouterDest };
+const getPrivacySetting = (message) => {
+ const integrationObj = getIntegrationsObj(message, 'THE_TRADE_DESK');
+ return integrationObj?.privacy_settings;
+};
+
+/**
+ * Enriches the track payload with extra properties present in 'properties' other than the ones defined in TTDCommonConfig.json and TTDItemConfig.json
+ *
+ * @param {Object} message - The message object containing the event information.
+ * @param {Object} payload - The payload object to be enriched.
+ * @returns {Object} - The enriched payload object.
+ */
+const enrichTrackPayload = (message, payload) => {
+ let rawPayload = { ...payload };
+ const eventsMapInfo = ECOMM_EVENT_MAP[message.event.toLowerCase()];
+ // checking if event is an ecomm one and itemsArray/products support is not present. e.g Product Added event
+ if (eventsMapInfo && !eventsMapInfo.itemsArray) {
+ const itemExclusionList = generateExclusionList(ITEM_CONFIGS);
+ rawPayload = extractCustomFields(message, rawPayload, ['properties'], itemExclusionList);
+ } else {
+ // for custom events
+ rawPayload = extractCustomFields(
+ message,
+ rawPayload,
+ ['properties'],
+ ['products', 'revenue', 'value'],
+ );
+ }
+ return rawPayload;
+};
+
+module.exports = {
+ getTTLInMin,
+ getFirstPartyEndpoint,
+ getSignatureHeader,
+ prepareFromConfig,
+ getRevenue,
+ prepareCommonPayload,
+ prepareItemsPayload,
+ getDeviceAdvertisingId,
+ getDestinationExternalIDObject,
+ getAdvertisingId,
+ prepareCustomProperties,
+ populateEventName,
+ getDataProcessingOptions,
+ getPrivacySetting,
+ enrichTrackPayload,
+};
diff --git a/src/cdk/v2/destinations/the_trade_desk/utils.test.js b/src/cdk/v2/destinations/the_trade_desk/utils.test.js
index 81fd7cf17d..b489309956 100644
--- a/src/cdk/v2/destinations/the_trade_desk/utils.test.js
+++ b/src/cdk/v2/destinations/the_trade_desk/utils.test.js
@@ -1,5 +1,16 @@
-const { AbortedError } = require('@rudderstack/integrations-lib');
-const { getSignatureHeader } = require('./utils');
+const { AbortedError, InstrumentationError } = require('@rudderstack/integrations-lib');
+const {
+ getSignatureHeader,
+ getRevenue,
+ getDeviceAdvertisingId,
+ getDestinationExternalIDObject,
+ getAdvertisingId,
+ prepareCustomProperties,
+ populateEventName,
+ getDataProcessingOptions,
+ getPrivacySetting,
+ enrichTrackPayload,
+} = require('./utils');
describe('getSignatureHeader', () => {
it('should calculate the signature header for a valid request and secret key', () => {
@@ -47,3 +58,602 @@ describe('getSignatureHeader', () => {
}).toThrow(AbortedError);
});
});
+
+describe('getRevenue', () => {
+ it('should return revenue value from message properties for custom events', () => {
+ const message = {
+ event: 'customEvent',
+ properties: {
+ value: 100,
+ },
+ };
+ const result = getRevenue(message);
+ expect(result).toBe(100);
+ });
+
+ it('should calculate revenue based on price and quantity from message properties if ecomm event is supported for price calculation', () => {
+ const message = {
+ event: 'Product Added',
+ properties: {
+ price: 10,
+ quantity: 5,
+ },
+ };
+ const result = getRevenue(message);
+ expect(result).toBe(50);
+ });
+
+ it('should return revenue value from message properties if ecomm event is supported for revenue calculation', () => {
+ const message = {
+ event: 'Order Completed',
+ properties: {
+ revenue: 200,
+ },
+ };
+ const result = getRevenue(message);
+ expect(result).toBe(200);
+ });
+
+ it('should return default revenue value from properties.value for ecomm events', () => {
+ let message = {
+ event: 'Product Added',
+ properties: {
+ price: '',
+ value: 200,
+ },
+ };
+ let result = getRevenue(message);
+ expect(result).toBe(200);
+
+ message = {
+ event: 'Order Completed',
+ properties: {
+ value: 200,
+ },
+ };
+ result = getRevenue(message);
+ expect(result).toBe(200);
+ });
+
+ it('should throw an Instrumentation error if revenue is missing for `Order Completed` event', () => {
+ const message = {
+ event: 'Order Completed',
+ properties: {},
+ };
+ expect(() => {
+ getRevenue(message);
+ }).toThrow(InstrumentationError);
+ });
+});
+
+describe('getDeviceAdvertisingId', () => {
+ it('should return an object with deviceId and type properties when context.device.advertisingId and context.os.name are present', () => {
+ let message = {
+ context: {
+ device: {
+ advertisingId: '123456789',
+ },
+ os: {
+ name: 'android',
+ },
+ },
+ };
+ let result = getDeviceAdvertisingId(message);
+ expect(result).toEqual({ deviceId: '123456789', type: 'AAID' });
+
+ message = {
+ context: {
+ device: {
+ advertisingId: '123456789',
+ },
+ os: {
+ name: 'ios',
+ },
+ },
+ };
+ result = getDeviceAdvertisingId(message);
+ expect(result).toEqual({ deviceId: '123456789', type: 'IDFA' });
+
+ message = {
+ context: {
+ device: {
+ advertisingId: '123456789',
+ },
+ os: {
+ name: 'windows',
+ },
+ },
+ };
+ result = getDeviceAdvertisingId(message);
+ expect(result).toEqual({ deviceId: '123456789', type: 'NAID' });
+ });
+
+ it('should return an object with undefined type property when osName is not "android", "windows", or an Apple OS', () => {
+ const message = {
+ context: {
+ device: {
+ advertisingId: '123456789',
+ },
+ os: {
+ name: 'linux',
+ },
+ },
+ };
+ const result = getDeviceAdvertisingId(message);
+ expect(result).toEqual({ deviceId: '123456789', type: undefined });
+ });
+
+ it('should return an object with undefined deviceId and type properties when context is undefined', () => {
+ let message = {};
+ let result = getDeviceAdvertisingId(message);
+ expect(result).toEqual({ deviceId: undefined, type: undefined });
+
+ message = {
+ context: {},
+ };
+ result = getDeviceAdvertisingId(message);
+ expect(result).toEqual({ deviceId: undefined, type: undefined });
+
+ message = {
+ context: {
+ device: {},
+ },
+ };
+ result = getDeviceAdvertisingId(message);
+ expect(result).toEqual({ deviceId: undefined, type: undefined });
+ });
+});
+
+describe('getDestinationExternalIDObject', () => {
+ it('should return the external ID object when it exists in the message context', () => {
+ const message = {
+ context: {
+ externalId: [
+ { id: '123', type: 'daid' },
+ { id: '456', type: 'type123' },
+ ],
+ },
+ };
+ const result = getDestinationExternalIDObject(message);
+ expect(result).toEqual({ id: '123', type: 'daid' });
+ });
+
+ it('should return undefined when no external ID object exists in the message context', () => {
+ let message = {
+ context: {
+ externalId: [],
+ },
+ };
+ let result = getDestinationExternalIDObject(message);
+ expect(result).toBeUndefined();
+
+ message = {
+ context: {},
+ };
+ result = getDestinationExternalIDObject(message);
+ expect(result).toBeUndefined();
+ });
+
+ it('should return the first matching external ID object in the array', () => {
+ const message = {
+ context: {
+ externalId: [
+ { id: '', type: 'daid' },
+ { id: '456', type: 'tdid' },
+ { id: '789', type: 'UID2' },
+ ],
+ },
+ };
+ const result = getDestinationExternalIDObject(message);
+ expect(result).toEqual({ id: '456', type: 'tdid' });
+ });
+});
+
+describe('getAdvertisingId', () => {
+ it('should return an object with the ID and type when the message contains a valid device advertising ID and OS type', () => {
+ const message = {
+ context: {
+ device: {
+ advertisingId: '1234567890',
+ },
+ os: {
+ name: 'android',
+ },
+ },
+ };
+
+ const result = getAdvertisingId(message);
+ expect(result).toEqual({ id: '1234567890', type: 'AAID' });
+ });
+
+ it('should return an object with the ID and type when the message contains a valid external ID object with a supported type', () => {
+ const message = {
+ context: {
+ externalId: [
+ {
+ type: 'IDFA',
+ id: 'abcdefg',
+ },
+ ],
+ },
+ };
+
+ const result = getAdvertisingId(message);
+ expect(result).toEqual({ id: 'abcdefg', type: 'IDFA' });
+ });
+
+ it('should return an object with undefined ID and type when the message contains a valid external ID object with an unsupported type', () => {
+ let message = {
+ context: {
+ externalId: [
+ {
+ type: 'unsupported',
+ id: '1234567890',
+ },
+ ],
+ },
+ };
+
+ let result = getAdvertisingId(message);
+ expect(result).toEqual({ id: null, type: null });
+
+ message = {
+ context: {
+ device: {
+ advertisingId: '1234567890',
+ },
+ },
+ };
+
+ result = getAdvertisingId(message);
+ expect(result).toEqual({ id: null, type: null });
+ });
+
+ it('should return an object with undefined ID and type when the message contains an external ID object with a supported type but no ID or missing externalId', () => {
+ let message = {
+ context: {
+ externalId: [
+ {
+ type: 'IDFA',
+ },
+ ],
+ },
+ };
+ let result = getAdvertisingId(message);
+ expect(result).toEqual({ id: null, type: null });
+
+ message = {
+ context: {},
+ };
+ result = getAdvertisingId(message);
+ expect(result).toEqual({ id: null, type: null });
+ });
+});
+
+describe('prepareCustomProperties', () => {
+ it('should return an empty object when customProperties is an empty array', () => {
+ const message = {};
+ let destination = { Config: { customProperties: [] } };
+ let result = prepareCustomProperties(message, destination);
+ expect(result).toEqual({});
+
+ destination = { Config: { customProperties: [{ rudderProperty: '', tradeDeskProperty: '' }] } };
+ result = prepareCustomProperties(message, destination);
+ expect(result).toEqual({});
+
+ destination = { Config: { customProperties: undefined } };
+ result = prepareCustomProperties(message, destination);
+ expect(result).toEqual({});
+ });
+
+ it('should return an object with `tradeDeskProperty` as key and `rudderProperty` value as value when `rudderProperty` exists in message', () => {
+ const message = {
+ rudderProperty1: 'value1',
+ rudderProperty2: 'value2',
+ };
+ const destination = {
+ Config: {
+ customProperties: [
+ {
+ rudderProperty: 'rudderProperty1',
+ tradeDeskProperty: 'tradeDeskProperty1',
+ },
+ {
+ rudderProperty: 'rudderProperty2',
+ tradeDeskProperty: 'tradeDeskProperty2',
+ },
+ {
+ rudderProperty: 'rudderProperty3',
+ tradeDeskProperty: 'tradeDeskProperty3',
+ },
+ ],
+ },
+ };
+ const result = prepareCustomProperties(message, destination);
+ expect(result).toEqual({
+ tradeDeskProperty1: 'value1',
+ tradeDeskProperty2: 'value2',
+ });
+ });
+});
+
+describe('populateEventName', () => {
+ it('should return the eventName if it exists in the eventsMapping of destination.Config', () => {
+ const message = { event: 'someEvent' };
+ const destination = { Config: { eventsMapping: [{ from: 'someEvent', to: 'mappedEvent' }] } };
+ const result = populateEventName(message, destination);
+ expect(result).toBe('mappedEvent');
+ });
+
+ it('should return the eventName if it exists in the ECOMM_EVENT_MAP', () => {
+ const message = { event: 'product added' };
+ let destination = { Config: { eventsMapping: [{ from: 'someEvent', to: 'mappedEvent' }] } };
+ let result = populateEventName(message, destination);
+ expect(result).toBe('addtocart');
+
+ destination = { Config: { eventsMapping: [] } };
+ result = populateEventName(message, destination);
+ expect(result).toBe('addtocart');
+ });
+
+ it('should return undefined if eventsMapping is an empty array', () => {
+ const message = { event: 'someEvent' };
+ const destination = { Config: { eventsMapping: [] } };
+ const result = populateEventName(message, destination);
+ expect(result).toBe('someEvent');
+ });
+});
+
+describe('getDataProcessingOptions', () => {
+ it('should return an object with policies and region when provided a integrationObj in message', () => {
+ const message = {
+ integrations: {
+ All: true,
+ THE_TRADE_DESK: {
+ policies: ['LDU'],
+ region: 'US-CO',
+ },
+ },
+ };
+ const expected = {
+ policies: ['LDU'],
+ region: 'US-CO',
+ };
+ const result = getDataProcessingOptions(message);
+ expect(result).toEqual(expected);
+ });
+
+ it('should throw an InstrumentationError if the region is not a US state', () => {
+ const message = {
+ integrations: {
+ All: true,
+ THE_TRADE_DESK: {
+ policies: ['LDU'],
+ region: 'EU-abc',
+ },
+ },
+ };
+ expect(() => {
+ getDataProcessingOptions(message);
+ }).toThrow(InstrumentationError);
+ });
+
+ it('should throw an InstrumentationError if multiple policies are provided', () => {
+ const message = {
+ integrations: {
+ All: true,
+ THE_TRADE_DESK: {
+ policies: ['LDU', 'Policy2'],
+ region: 'US-CO',
+ },
+ },
+ };
+
+ expect(() => {
+ getDataProcessingOptions(message);
+ }).toThrow(InstrumentationError);
+ });
+
+ it('should throw an InstrumentationError if a policy other than `LDU` is provided', () => {
+ const message = {
+ integrations: {
+ All: true,
+ THE_TRADE_DESK: {
+ policies: ['Policy1'],
+ region: 'US-CO',
+ },
+ },
+ };
+
+ expect(() => {
+ getDataProcessingOptions(message);
+ }).toThrow(InstrumentationError);
+ });
+
+ it('should return an object with default policy `LDU` when policies are not provided', () => {
+ const message = {
+ integrations: {
+ All: true,
+ THE_TRADE_DESK: {
+ policies: [],
+ region: 'US-CO',
+ },
+ },
+ };
+
+ const expected = {
+ policies: ['LDU'],
+ region: 'US-CO',
+ };
+
+ expect(getDataProcessingOptions(message)).toEqual(expected);
+ });
+
+ it('should handle empty cases', () => {
+ let message = {
+ integrations: {
+ All: true,
+ THE_TRADE_DESK: {},
+ },
+ };
+
+ expect(getDataProcessingOptions(message)).toBeUndefined();
+
+ message = {
+ integrations: {
+ All: true,
+ },
+ };
+
+ expect(getDataProcessingOptions(message)).toBeUndefined();
+
+ message = {
+ integrations: {
+ All: true,
+ THE_TRADE_DESK: { region: 'US-CO' },
+ },
+ };
+
+ expect(getDataProcessingOptions(message)).toEqual({ policies: ['LDU'], region: 'US-CO' });
+ });
+});
+
+describe('getPrivacySetting', () => {
+ it('should return the privacy settings object when it exists in the integration object', () => {
+ const message = {
+ integrations: {
+ All: true,
+ THE_TRADE_DESK: {
+ privacy_settings: [
+ {
+ privacy_type: 'GDPR',
+ is_applicable: 1,
+ consent_string: 'ok',
+ },
+ ],
+ },
+ },
+ };
+ const expected = [
+ {
+ privacy_type: 'GDPR',
+ is_applicable: 1,
+ consent_string: 'ok',
+ },
+ ];
+ const result = getPrivacySetting(message);
+ expect(result).toEqual(expected);
+ });
+
+ it('should return null when the privacy settings object does not exist in the integration object', () => {
+ let message = { integrations: {} };
+ expect(getPrivacySetting(message)).toBeUndefined();
+
+ message = { integrations: { THE_TRADE_DESK: {} } };
+ expect(getPrivacySetting(message)).toBeUndefined();
+
+ message = { integrations: { THE_TRADE_DESK: { privacy_settings: null } } };
+ expect(getPrivacySetting(message)).toBeNull();
+ });
+});
+
+describe('enrichTrackPayload', () => {
+ it('should correctly enrich the payload with custom fields for ecomm events where product array is not supported', () => {
+ const message = {
+ event: 'Product Added',
+ properties: {
+ product_id: 'prd123',
+ sku: 'sku123',
+ brand: 'brand123',
+ property1: 'value1',
+ property2: 'value2',
+ },
+ };
+ const payload = {
+ items: [
+ {
+ item_code: 'prd123',
+ },
+ ],
+ property1: 'value1',
+ property2: 'value2',
+ };
+ const expectedPayload = {
+ items: [
+ {
+ item_code: 'prd123',
+ },
+ ],
+ brand: 'brand123',
+ property1: 'value1',
+ property2: 'value2',
+ };
+
+ const result = enrichTrackPayload(message, payload);
+ expect(result).toEqual(expectedPayload);
+ });
+
+ it('should correctly enrich the payload with custom fields when the for ecomm events with products array support', () => {
+ const message = {
+ event: 'order completed',
+ properties: {
+ order_id: 'ord123',
+ total: 52.0,
+ subtotal: 45.0,
+ revenue: 50.0,
+ products: [{ product_id: 'prd123', sku: 'sku123', brand: 'brand123' }],
+ property1: 'value1',
+ property2: 'value2',
+ },
+ };
+ const payload = {
+ order_id: 'ord123',
+ value: 50.0,
+ items: [{ item_code: 'prd123', brand: 'brand123' }],
+ property1: 'value1',
+ property2: 'value2',
+ };
+ const expectedPayload = {
+ order_id: 'ord123',
+ total: 52.0,
+ subtotal: 45.0,
+ value: 50.0,
+ items: [{ item_code: 'prd123', brand: 'brand123' }],
+ property1: 'value1',
+ property2: 'value2',
+ };
+
+ const result = enrichTrackPayload(message, payload);
+
+ expect(result).toEqual(expectedPayload);
+ });
+
+ it('should return the enriched payload for custom event', () => {
+ const message = {
+ event: 'someEvent',
+ properties: {
+ order_id: 'ord123',
+ property1: 'value1',
+ property2: 'value2',
+ },
+ };
+ const payload = {
+ order_id: 'ord123',
+ };
+ let expectedPayload = {
+ order_id: 'ord123',
+ property1: 'value1',
+ property2: 'value2',
+ };
+
+ let result = enrichTrackPayload(message, payload);
+ expect(result).toEqual(expectedPayload);
+
+ expectedPayload = {
+ order_id: 'ord123',
+ property1: 'value1',
+ property2: 'value2',
+ };
+ expect(enrichTrackPayload(message, {})).toEqual(expectedPayload);
+ });
+});
diff --git a/src/constants/destinationCanonicalNames.js b/src/constants/destinationCanonicalNames.js
index f019cc9fec..d1b2b24de0 100644
--- a/src/constants/destinationCanonicalNames.js
+++ b/src/constants/destinationCanonicalNames.js
@@ -141,6 +141,16 @@ const DestCanonicalNames = {
'TWITTER_ADS',
],
BRAZE: ['BRAZE', 'Braze', 'braze'],
+ THE_TRADE_DESK: [
+ 'THE_TRADE_DESK',
+ 'the_trade_desk',
+ 'The_Trade_Desk',
+ 'The Trade Desk',
+ 'thetradedesk',
+ 'theTradeDesk',
+ 'TheTradeDesk',
+ 'the trade desk',
+ ],
INTERCOM: ['INTERCOM', 'intercom', 'Intercom'],
};
diff --git a/src/constants/index.js b/src/constants/index.js
index a8976bc07e..f8ca53a94c 100644
--- a/src/constants/index.js
+++ b/src/constants/index.js
@@ -6,6 +6,7 @@ const EventType = {
ALIAS: 'alias',
GROUP: 'group',
RESET: 'reset',
+ RECORD: 'record',
};
const Address = {
diff --git a/src/v0/destinations/the_trade_desk/networkHandler.js b/src/v0/destinations/the_trade_desk/networkHandler.js
index ca5ac68be8..e9693e8132 100644
--- a/src/v0/destinations/the_trade_desk/networkHandler.js
+++ b/src/v0/destinations/the_trade_desk/networkHandler.js
@@ -8,28 +8,37 @@ const { getSignatureHeader } = require('../../../cdk/v2/destinations/the_trade_d
const { isHttpStatusSuccess } = require('../../util/index');
const tags = require('../../util/tags');
const { JSON_MIME_TYPE } = require('../../util/constant');
+const {
+ REAL_TIME_CONVERSION_ENDPOINT,
+} = require('../../../cdk/v2/destinations/the_trade_desk/config');
const proxyRequest = async (request) => {
const { endpoint, data, method, params, headers, config } = prepareProxyRequest(request);
-
- if (!config?.advertiserSecretKey) {
- throw new PlatformError('Advertiser secret key is missing in destination config. Aborting');
- }
-
- if (!process.env.THE_TRADE_DESK_DATA_PROVIDER_SECRET_KEY) {
- throw new PlatformError('Data provider secret key is missing. Aborting');
- }
-
- const ProxyHeaders = {
+ let ProxyHeaders = {
...headers,
- TtdSignature: getSignatureHeader(data, config.advertiserSecretKey),
- 'TtdSignature-dp': getSignatureHeader(
- data,
- process.env.THE_TRADE_DESK_DATA_PROVIDER_SECRET_KEY,
- ),
'Content-Type': JSON_MIME_TYPE,
};
+ // For first party data flow
+ if (endpoint !== REAL_TIME_CONVERSION_ENDPOINT) {
+ if (!config?.advertiserSecretKey) {
+ throw new PlatformError('Advertiser secret key is missing in destination config. Aborting');
+ }
+
+ if (!process.env.THE_TRADE_DESK_DATA_PROVIDER_SECRET_KEY) {
+ throw new PlatformError('Data provider secret key is missing. Aborting');
+ }
+
+ ProxyHeaders = {
+ ...ProxyHeaders,
+ TtdSignature: getSignatureHeader(data, config.advertiserSecretKey),
+ 'TtdSignature-dp': getSignatureHeader(
+ data,
+ process.env.THE_TRADE_DESK_DATA_PROVIDER_SECRET_KEY,
+ ),
+ };
+ }
+
const requestOptions = {
url: endpoint,
data,
@@ -48,7 +57,7 @@ const responseHandler = (destinationResponse) => {
// if the response from destination is not a success case build an explicit error
if (!isHttpStatusSuccess(status)) {
throw new NetworkError(
- `Request failed with status: ${status} due to ${response}`,
+ `Request failed with status: ${status} due to ${JSON.stringify(response)}`,
status,
{
[tags.TAG_NAMES.ERROR_TYPE]: getDynamicErrorType(status),
@@ -57,9 +66,10 @@ const responseHandler = (destinationResponse) => {
);
}
- // Trade desk returns 200 with an error in case of "Failed to parse TDID, DAID, UID2, IDL, EUID, or failed to decrypt UID2Token or EUIDToken"
+ // Trade desk first party data api returns 200 with an error in case of "Failed to parse TDID, DAID, UID2, IDL, EUID, or failed to decrypt UID2Token or EUIDToken"
// https://partner.thetradedesk.com/v3/portal/data/doc/post-data-advertiser-external
// {"FailedLines":[{"ErrorCode":"MissingUserId","Message":"Invalid DAID, item #1"}]}
+ // For real time conversion api we don't have separate response handling, trade desk always return 400 for bad events.
if ('FailedLines' in response && response.FailedLines.length > 0) {
throw new AbortedError(
`Request failed with status: ${status} due to ${JSON.stringify(response)}`,
@@ -69,7 +79,7 @@ const responseHandler = (destinationResponse) => {
}
// else successfully return status, message and original destination response
- // Trade desk returns 200 with empty object '{}' in response if all the events are processed successfully
+ // For first party api trade desk returns 200 with empty object '{}' in response if all the events are processed successfully
return {
status,
message,
diff --git a/src/v0/util/index.js b/src/v0/util/index.js
index c7a26b6a2f..49ef39969e 100644
--- a/src/v0/util/index.js
+++ b/src/v0/util/index.js
@@ -1279,6 +1279,31 @@ function getFullName(message) {
return fullName;
}
+/**
+ * Generates an exclusion list from mapping config.
+ *
+ * @param {Array} mappingConfig - The mapping config.
+ * [
+ * {
+ * "destKey": "item_code",
+ * "sourceKeys": [
+ * "product_id",
+ * "sku"
+ * ]
+ * },
+ * {
+ * "destKey": "name",
+ * "sourceKeys": "name"
+ * }
+ * ]
+ * @returns {Array} - The generated exclusion list.
+ * ["product_id", "sku", "name"]
+ */
+const generateExclusionList = (mappingConfig) =>
+ mappingConfig.flatMap((mapping) =>
+ Array.isArray(mapping.sourceKeys) ? [...mapping.sourceKeys] : [mapping.sourceKeys],
+ );
+
/**
* Extract fileds from message with exclusions
* Pass the keys of message for extraction and
@@ -1305,10 +1330,10 @@ function getFullName(message) {
* )
* -------------------------------------------
* The above call will map the fields other than the
- * exlusion list from the given keys to the destination payload
+ * exclusion list from the given keys to the destination payload
*
*/
-function extractCustomFields(message, destination, keys, exclusionFields) {
+function extractCustomFields(message, payload, keys, exclusionFields) {
const mappingKeys = [];
if (Array.isArray(keys)) {
keys.forEach((key) => {
@@ -1319,7 +1344,7 @@ function extractCustomFields(message, destination, keys, exclusionFields) {
});
mappingKeys.forEach((mappingKey) => {
if (!(typeof messageContext[mappingKey] === 'undefined')) {
- set(destination, mappingKey, get(messageContext, mappingKey));
+ set(payload, mappingKey, get(messageContext, mappingKey));
}
});
}
@@ -1330,14 +1355,14 @@ function extractCustomFields(message, destination, keys, exclusionFields) {
});
mappingKeys.forEach((mappingKey) => {
if (!(typeof message[mappingKey] === 'undefined')) {
- set(destination, mappingKey, get(message, mappingKey));
+ set(payload, mappingKey, get(message, mappingKey));
}
});
} else {
logger.debug('unable to parse keys');
}
- return destination;
+ return payload;
}
// Deleting nested properties from objects
@@ -2132,6 +2157,7 @@ module.exports = {
defaultPutRequestConfig,
defaultRequestConfig,
deleteObjectProperty,
+ generateExclusionList,
extractCustomFields,
flattenJson,
flattenMap,
diff --git a/src/v0/util/index.test.js b/src/v0/util/index.test.js
index a46b55fdd4..1c6b34eca6 100644
--- a/src/v0/util/index.test.js
+++ b/src/v0/util/index.test.js
@@ -2,7 +2,7 @@ const { TAG_NAMES } = require('@rudderstack/integrations-lib');
const utilities = require('.');
const { getFuncTestData } = require('../../../test/testHelper');
const { FilteredEventsError } = require('./errorTypes');
-const { hasCircularReference, flattenJson } = require('./index');
+const { hasCircularReference, flattenJson, generateExclusionList } = require('./index');
// Names of the utility functions to test
const functionNames = [
@@ -125,3 +125,44 @@ describe('tests for generateErrorObject', () => {
expect(outputErrObj.statTags).toEqual({});
});
});
+
+describe('generateExclusionList', () => {
+ it('should return an array of excluded keys when given a mapping config', () => {
+ const mappingConfig = [
+ {
+ destKey: 'item_code',
+ sourceKeys: ['product_id', 'sku'],
+ },
+ {
+ destKey: 'name',
+ sourceKeys: 'name',
+ },
+ ];
+ const expected = ['product_id', 'sku', 'name'];
+ const result = generateExclusionList(mappingConfig);
+ expect(result).toEqual(expected);
+ });
+
+ it('should return an empty array when the mapping config is empty', () => {
+ const mappingConfig = [];
+ const expected = [];
+ const result = generateExclusionList(mappingConfig);
+ expect(result).toEqual(expected);
+ });
+
+ it('should return an array with unique keys when the mapping config has duplicate destination keys', () => {
+ const mappingConfig = [
+ {
+ destKey: 'item_code',
+ sourceKeys: ['product_id'],
+ },
+ {
+ destKey: 'item_code',
+ sourceKeys: ['sku'],
+ },
+ ];
+ const expected = ['product_id', 'sku'];
+ const result = generateExclusionList(mappingConfig);
+ expect(result).toEqual(expected);
+ });
+});
diff --git a/test/integrations/destinations/clevertap/dataDelivery/data.ts b/test/integrations/destinations/clevertap/dataDelivery/data.ts
index 13a70d38c9..8032dd50c8 100644
--- a/test/integrations/destinations/clevertap/dataDelivery/data.ts
+++ b/test/integrations/destinations/clevertap/dataDelivery/data.ts
@@ -1,227 +1,230 @@
export const data = [
{
- "name": "clevertap",
- "description": "Test 0",
- "feature": "dataDelivery",
- "module": "destination",
- "version": "v0",
- "input": {
- "request": {
- "body": {
- "version": "1",
- "type": "REST",
- "method": "POST",
- "endpoint": "https://api.clevertap.com/1/upload/test1",
- "headers": {
- "X-CleverTap-Account-Id": "476550467",
- "X-CleverTap-Passcode": "fbee74a147828e2932c701d19dc1f2dcfa4ac0048be3aa3a88d427090a59dc1c0fa002f1",
- "Content-Type": "application/json"
+ name: 'clevertap',
+ description: 'Test 0',
+ feature: 'dataDelivery',
+ module: 'destination',
+ version: 'v0',
+ input: {
+ request: {
+ body: {
+ version: '1',
+ type: 'REST',
+ method: 'POST',
+ endpoint: 'https://api.clevertap.com/1/upload/test1',
+ headers: {
+ 'X-CleverTap-Account-Id': '476550467',
+ 'X-CleverTap-Passcode':
+ 'fbee74a147828e2932c701d19dc1f2dcfa4ac0048be3aa3a88d427090a59dc1c0fa002f1',
+ 'Content-Type': 'application/json',
},
- "body": {
- "JSON": {
- "d": [
+ body: {
+ JSON: {
+ d: [
{
- "type": "profile",
- "profileData": {
- "Email": "jamesDoe@gmail.com",
- "Name": "James Doe",
- "Phone": "92374162212",
- "Gender": "M",
- "Employed": true,
- "DOB": "1614775793",
- "Education": "Science",
- "Married": "Y",
- "Customer Type": "Prime",
- "graduate": true,
- "msg_push": true,
- "msgSms": true,
- "msgemail": true,
- "msgwhatsapp": false,
- "custom_tags": "[\"Test_User\",\"Interested_User\",\"DIY_Hobby\"]",
- "custom_mappings": "{\"Office\":\"Trastkiv\",\"Country\":\"Russia\"}",
- "address": "{\"city\":\"kolkata\",\"country\":\"India\",\"postalCode\":789223,\"state\":\"WB\",\"street\":\"\"}"
+ type: 'profile',
+ profileData: {
+ Email: 'jamesDoe@gmail.com',
+ Name: 'James Doe',
+ Phone: '92374162212',
+ Gender: 'M',
+ Employed: true,
+ DOB: '1614775793',
+ Education: 'Science',
+ Married: 'Y',
+ 'Customer Type': 'Prime',
+ graduate: true,
+ msg_push: true,
+ msgSms: true,
+ msgemail: true,
+ msgwhatsapp: false,
+ custom_tags: '["Test_User","Interested_User","DIY_Hobby"]',
+ custom_mappings: '{"Office":"Trastkiv","Country":"Russia"}',
+ address:
+ '{"city":"kolkata","country":"India","postalCode":789223,"state":"WB","street":""}',
},
- "identity": "anon_id"
- }
- ]
+ identity: 'anon_id',
+ },
+ ],
},
- "JSON_ARRAY": {},
- "XML": {},
- "FORM": {}
+ JSON_ARRAY: {},
+ XML: {},
+ FORM: {},
+ },
+ files: {},
+ params: {
+ destination: 'clevertap',
},
- "files": {},
- "params": {
- "destination": "clevertap"
- }
},
- "method": "POST"
- }
+ method: 'POST',
+ },
},
- "output": {
- "response": {
- "status": 200,
- "body": {
- "output": {
- "status": 200,
- "message": "Request Processed Successfully",
- "destinationResponse": {
- "response": {
- "status": "success",
- "processed": 1,
- "unprocessed": []
+ output: {
+ response: {
+ status: 200,
+ body: {
+ output: {
+ status: 200,
+ message: 'Request Processed Successfully',
+ destinationResponse: {
+ response: {
+ status: 'success',
+ processed: 1,
+ unprocessed: [],
},
- "status": 200
- }
- }
- }
- }
- }
+ status: 200,
+ },
+ },
+ },
+ },
+ },
},
{
- "name": "clevertap",
- "description": "Test 1",
- "feature": "dataDelivery",
- "module": "destination",
- "version": "v0",
- "input": {
- "request": {
- "body": {
- "body": {
- "XML": {},
- "JSON_ARRAY": {},
- "FORM": {},
- "JSON": {
- "d": [
+ name: 'clevertap',
+ description: 'Test 1',
+ feature: 'dataDelivery',
+ module: 'destination',
+ version: 'v0',
+ input: {
+ request: {
+ body: {
+ body: {
+ XML: {},
+ JSON_ARRAY: {},
+ FORM: {},
+ JSON: {
+ d: [
{
- "identity": "anon-id-new",
- "type": "event",
- "evtName": "Web Page Viewed: Rudder",
- "evtData": {
- "title": "Home",
- "path": "/"
- }
- }
- ]
- }
+ identity: 'anon-id-new',
+ type: 'event',
+ evtName: 'Web Page Viewed: Rudder',
+ evtData: {
+ title: 'Home',
+ path: '/',
+ },
+ },
+ ],
+ },
+ },
+ type: 'REST',
+ files: {},
+ method: 'POST',
+ headers: {
+ 'X-CleverTap-Account-Id': 'fakeId123',
+ 'X-CleverTap-Passcode': 'fakePasscode123',
+ 'Content-Type': 'application/json',
},
- "type": "REST",
- "files": {},
- "method": "POST",
- "headers": {
- "X-CleverTap-Account-Id": "fakeId123",
- "X-CleverTap-Passcode": "fakePasscode123",
- "Content-Type": "application/json"
+ version: '1',
+ endpoint: 'https://api.clevertap.com/1/upload/test2',
+ params: {
+ destination: 'clevertap',
},
- "version": "1",
- "endpoint": "https://api.clevertap.com/1/upload/test2",
- "params": {
- "destination": "clevertap"
- }
},
- "method": "POST"
- }
+ method: 'POST',
+ },
},
- "output": {
- "response": {
- "status": 401,
- "body": {
- "output": {
- "status": 401,
- "message": "Request failed with status: 401",
- "destinationResponse": {
- "response": {
- "status": "fail",
- "error": "Invalid Credentials",
- "code": 401
+ output: {
+ response: {
+ status: 401,
+ body: {
+ output: {
+ status: 401,
+ message: 'Request failed with status: 401',
+ destinationResponse: {
+ response: {
+ status: 'fail',
+ error: 'Invalid Credentials',
+ code: 401,
},
- "status": 401
+ status: 401,
},
- "statTags": {
- "destType": "CLEVERTAP",
- "errorCategory": "network",
- "destinationId": "Non-determininable",
- "workspaceId": "Non-determininable",
- "errorType": "aborted",
- "feature": "dataDelivery",
- "implementation": "native",
- "module": "destination"
- }
- }
- }
- }
- }
+ statTags: {
+ destType: 'CLEVERTAP',
+ errorCategory: 'network',
+ destinationId: 'Non-determininable',
+ workspaceId: 'Non-determininable',
+ errorType: 'aborted',
+ feature: 'dataDelivery',
+ implementation: 'native',
+ module: 'destination',
+ },
+ },
+ },
+ },
+ },
},
{
- "name": "clevertap",
- "description": "Test 2",
- "feature": "dataDelivery",
- "module": "destination",
- "version": "v0",
- "input": {
- "request": {
- "body": {
- "body": {
- "XML": {},
- "JSON_ARRAY": {},
- "FORM": {},
- "JSON": {
- "d": [
+ name: 'clevertap',
+ description: 'Test 2',
+ feature: 'dataDelivery',
+ module: 'destination',
+ version: 'v0',
+ input: {
+ request: {
+ body: {
+ body: {
+ XML: {},
+ JSON_ARRAY: {},
+ FORM: {},
+ JSON: {
+ d: [
{
- "identity": "anon-id-new",
- "type": "event",
- "evtData": {
- "title": "Home",
- "path": "/"
- }
- }
- ]
- }
+ identity: 'anon-id-new',
+ type: 'event',
+ evtData: {
+ title: 'Home',
+ path: '/',
+ },
+ },
+ ],
+ },
+ },
+ type: 'REST',
+ files: {},
+ method: 'POST',
+ headers: {
+ 'X-CleverTap-Account-Id': '476550467',
+ 'X-CleverTap-Passcode':
+ 'fbee74a147828e2932c701d19dc1f2dcfa4ac0048be3aa3a88d427090a59dc1c0fa002f1',
+ 'Content-Type': 'application/json',
},
- "type": "REST",
- "files": {},
- "method": "POST",
- "headers": {
- "X-CleverTap-Account-Id": "476550467",
- "X-CleverTap-Passcode": "fbee74a147828e2932c701d19dc1f2dcfa4ac0048be3aa3a88d427090a59dc1c0fa002f1",
- "Content-Type": "application/json"
+ version: '1',
+ endpoint: 'https://api.clevertap.com/1/upload/test3',
+ params: {
+ destination: 'clevertap',
},
- "version": "1",
- "endpoint": "https://api.clevertap.com/1/upload/test3",
- "params": {
- "destination": "clevertap"
- }
},
- "method": "POST"
- }
+ method: 'POST',
+ },
},
- "output": {
- "response": {
- "status": 400,
- "body": {
- "output": {
- "status": 400,
- "message": "Request failed with status: 200",
- "destinationResponse": {
- "response": {
- "status": "fail",
- "processed": 0,
- "unprocessed": []
+ output: {
+ response: {
+ status: 400,
+ body: {
+ output: {
+ status: 400,
+ message: 'Request failed with status: 200',
+ destinationResponse: {
+ response: {
+ status: 'fail',
+ processed: 0,
+ unprocessed: [],
},
- "status": 200
+ status: 200,
},
- "statTags": {
- "destType": "CLEVERTAP",
- "errorCategory": "network",
- "destinationId": "Non-determininable",
- "workspaceId": "Non-determininable",
- "errorType": "aborted",
- "feature": "dataDelivery",
- "implementation": "native",
- "module": "destination"
- }
- }
- }
- }
- }
- }
-]
+ statTags: {
+ destType: 'CLEVERTAP',
+ errorCategory: 'network',
+ destinationId: 'Non-determininable',
+ workspaceId: 'Non-determininable',
+ errorType: 'aborted',
+ feature: 'dataDelivery',
+ implementation: 'native',
+ module: 'destination',
+ },
+ },
+ },
+ },
+ },
+ },
+];
diff --git a/test/integrations/destinations/clickup/processor/data.ts b/test/integrations/destinations/clickup/processor/data.ts
index 4a79df2862..686bf670e2 100644
--- a/test/integrations/destinations/clickup/processor/data.ts
+++ b/test/integrations/destinations/clickup/processor/data.ts
@@ -1,829 +1,818 @@
export const data = [
- {
- "name": "clickup",
- "description": "Invalid priority",
- "feature": "processor",
- "module": "destination",
- "version": "v0",
- "input": {
- "request": {
- "body": [
- {
- "destination": {
- "Config": {
- "apiToken": "pk_123",
- "listId": "correctListId123"
- },
- "ID": "clickup-1234"
- },
- "message": {
- "type": "track",
- "event": "Product Viewed",
- "properties": {
- "priority": 0
- },
- "context": {},
- "rudderId": "553b5522-c575-40a7-8072-9741c5f9a647",
- "messageId": "831f1fa5-de84-4f22-880a-4c3f23fc3f04",
- "anonymousId": "bf412108-0357-4330-b119-7305e767823c"
- }
- }
- ]
- }
- },
- "output": {
- "response": {
- "status": 200,
- "body": [
- {
- "error": "Invalid value specified for priority. Value must be Integer and in range \"[1,4]\"",
- "statTags": {
- "destType": "CLICKUP",
- "errorCategory": "dataValidation",
- "errorType": "instrumentation",
- "feature": "processor",
- "implementation": "native",
- "module": "destination"
- },
- "statusCode": 400
- }
- ]
- }
- }
- },
- {
- "name": "clickup",
- "description": "Custom field: Invalid phone number",
- "feature": "processor",
- "module": "destination",
- "version": "v0",
- "input": {
- "request": {
- "body": [
- {
- "destination": {
- "Config": {
- "apiToken": "pk_123",
- "listId": "correctListId123",
- "keyToCustomFieldName": [
- {
- "from": "phone",
- "to": "Phone Number"
- }
- ]
- },
- "ID": "clickup-1234"
- },
- "message": {
- "type": "track",
- "event": "Product Viewed",
- "properties": {
- "phone": "9999999999"
- },
- "context": {},
- "rudderId": "553b5522-c575-40a7-8072-9741c5f9a647",
- "messageId": "831f1fa5-de84-4f22-880a-4c3f23fc3f04",
- "anonymousId": "bf412108-0357-4330-b119-7305e767823c"
- }
- }
- ]
- }
- },
- "output": {
- "response": {
- "status": 200,
- "body": [
- {
- "error": "The provided phone number is invalid",
- "statTags": {
- "destType": "CLICKUP",
- "errorCategory": "dataValidation",
- "errorType": "instrumentation",
- "feature": "processor",
- "implementation": "native",
- "module": "destination"
- },
- "statusCode": 400
- }
- ]
- }
- }
- },
- {
- "name": "clickup",
- "description": "Custom field: Invalid email",
- "feature": "processor",
- "module": "destination",
- "version": "v0",
- "input": {
- "request": {
- "body": [
- {
- "destination": {
- "Config": {
- "apiToken": "pk_123",
- "listId": "correctListId123",
- "keyToCustomFieldName": [
- {
- "from": "email",
- "to": "Email"
- }
- ]
- },
- "ID": "clickup-1234"
- },
- "message": {
- "type": "track",
- "event": "Product Viewed",
- "properties": {
- "email": "test.com"
- },
- "context": {},
- "rudderId": "553b5522-c575-40a7-8072-9741c5f9a647",
- "messageId": "831f1fa5-de84-4f22-880a-4c3f23fc3f04",
- "anonymousId": "bf412108-0357-4330-b119-7305e767823c"
- }
- }
- ]
- }
- },
- "output": {
- "response": {
- "status": 200,
- "body": [
- {
- "error": "The provided email is invalid",
- "statTags": {
- "destType": "CLICKUP",
- "errorCategory": "dataValidation",
- "errorType": "instrumentation",
- "feature": "processor",
- "implementation": "native",
- "module": "destination"
- },
- "statusCode": 400
- }
- ]
- }
- }
- },
- {
- "name": "clickup",
- "description": "Custom field: Invalid url",
- "feature": "processor",
- "module": "destination",
- "version": "v0",
- "input": {
- "request": {
- "body": [
- {
- "destination": {
- "Config": {
- "apiToken": "pk_123",
- "listId": "correctListId123",
- "keyToCustomFieldName": [
- {
- "from": "url",
- "to": "Url"
- }
- ]
- },
- "ID": "clickup-1234"
- },
- "message": {
- "type": "track",
- "event": "Product Viewed",
- "properties": {
- "url": "www.test.com"
- },
- "context": {},
- "rudderId": "553b5522-c575-40a7-8072-9741c5f9a647",
- "messageId": "831f1fa5-de84-4f22-880a-4c3f23fc3f04",
- "anonymousId": "bf412108-0357-4330-b119-7305e767823c"
- }
- }
- ]
- }
- },
- "output": {
- "response": {
- "status": 200,
- "body": [
- {
- "error": "The provided url is invalid",
- "statTags": {
- "destType": "CLICKUP",
- "errorCategory": "dataValidation",
- "errorType": "instrumentation",
- "feature": "processor",
- "implementation": "native",
- "module": "destination"
- },
- "statusCode": 400
- }
- ]
- }
- }
- },
- {
- "name": "clickup",
- "description": "Custom field: Invalid location latitude",
- "feature": "processor",
- "module": "destination",
- "version": "v0",
- "input": {
- "request": {
- "body": [
- {
- "destination": {
- "Config": {
- "apiToken": "pk_123",
- "listId": "correctListId123",
- "keyToCustomFieldName": [
- {
- "from": "location",
- "to": "Location"
- }
- ]
- },
- "ID": "clickup-1234"
- },
- "message": {
- "type": "track",
- "event": "Product Viewed",
- "properties": {
- "location": {
- "lat": -100,
- "lng": 124,
- "formattedAddress": "Gold Coast QLD, Australia"
- }
- },
- "context": {},
- "rudderId": "553b5522-c575-40a7-8072-9741c5f9a647",
- "messageId": "831f1fa5-de84-4f22-880a-4c3f23fc3f04",
- "anonymousId": "bf412108-0357-4330-b119-7305e767823c"
- }
- }
- ]
- }
- },
- "output": {
- "response": {
- "status": 200,
- "body": [
- {
- "error": "Invalid value specified for latitude. Latitude must be in range \"[-90, 90]\"",
- "statTags": {
- "destType": "CLICKUP",
- "errorCategory": "dataValidation",
- "errorType": "instrumentation",
- "feature": "processor",
- "implementation": "native",
- "module": "destination"
- },
- "statusCode": 400
- }
- ]
- }
- }
- },
- {
- "name": "clickup",
- "description": "Custom field: Invalid rating",
- "feature": "processor",
- "module": "destination",
- "version": "v0",
- "input": {
- "request": {
- "body": [
- {
- "destination": {
- "Config": {
- "apiToken": "pk_123",
- "listId": "correctListId123",
- "keyToCustomFieldName": [
- {
- "from": "rating",
- "to": "Rating"
- }
- ]
- },
- "ID": "clickup-1234"
- },
- "message": {
- "type": "track",
- "event": "Product Viewed",
- "properties": {
- "rating": "7"
- },
- "context": {},
- "rudderId": "553b5522-c575-40a7-8072-9741c5f9a647",
- "messageId": "831f1fa5-de84-4f22-880a-4c3f23fc3f04",
- "anonymousId": "bf412108-0357-4330-b119-7305e767823c"
- }
- }
- ]
- }
- },
- "output": {
- "response": {
- "status": 200,
- "body": [
- {
- "error": "Invalid value specified for rating. Value must be in range \"[0,5]\"",
- "statTags": {
- "destType": "CLICKUP",
- "errorCategory": "dataValidation",
- "errorType": "instrumentation",
- "feature": "processor",
- "implementation": "native",
- "module": "destination"
- },
- "statusCode": 400
- }
- ]
- }
- }
- },
- {
- "name": "clickup",
- "description": "Creating task with valid custom fields values",
- "feature": "processor",
- "module": "destination",
- "version": "v0",
- "input": {
- "request": {
- "body": [
- {
- "destination": {
- "Config": {
- "apiToken": "pk_123",
- "listId": "correctListId123",
- "keyToCustomFieldName": [
- {
- "from": "industry",
- "to": "Industry"
- },
- {
- "from": "Payment Status",
- "to": "Payment Status"
- },
- {
- "from": "labelKey",
- "to": "Labels"
- },
- {
- "from": "locationKey",
- "to": "Location"
- },
- {
- "from": "phone",
- "to": "Phone Number"
- },
- {
- "from": "email",
- "to": "Email"
- },
- {
- "from": "url",
- "to": "Url"
- },
- {
- "from": "rating",
- "to": "Rating"
- },
- {
- "from": "plan",
- "to": "Plan"
- },
- {
- "from": "contactTitle",
- "to": "Contact Title"
- },
- {
- "from": "date",
- "to": "Date"
- }
- ]
- },
- "ID": "clickup-1234"
- },
- "message": {
- "type": "track",
- "event": "Product Viewed",
- "properties": {
- "description": "Creating task with valid custom fields values",
- "tags": [
- "testing",
- "custom fields"
- ],
- "timeEstimate": 10800000,
- "status": "Ready",
- "priority": 1,
- "dueDate": "2022-02-25T13:39:21.032Z",
- "includeDueDateTime": true,
- "startDate": "2022-01-20T13:39:21.032Z",
- "includeStartDateTime": "true",
- "notifyAll": false,
- "industry": "Retail",
- "Payment Status": "Pending",
- "labelKey": [
- "option 1",
- "option 2",
- "option 3"
- ],
- "locationKey": {
- "lat": -20,
- "lng": 124,
- "formattedAddress": "Gold Coast QLD, Australia"
- },
- "phone": "+12233445567",
- "email": "test123@example.com",
- "url": "https://www.rudderstack.com/",
- "rating": 3,
- "plan": "Business",
- "contactTitle": "VP of Operations",
- "date": "2022-02-25T13:39:21.032Z"
- },
- "context": {},
- "rudderId": "553b5522-c575-40a7-8072-9741c5f9a647",
- "messageId": "831f1fa5-de84-4f22-880a-4c3f23fc3f04",
- "anonymousId": "bf412108-0357-4330-b119-7305e767823c"
- }
- }
- ]
- }
- },
- "output": {
- "response": {
- "status": 200,
- "body": [
- {
- "output": {
- "version": "1",
- "type": "REST",
- "method": "POST",
- "endpoint": "https://api.clickup.com/api/v2/list/correctListId123/task",
- "headers": {
- "Content-Type": "application/json",
- "Authorization": "pk_123"
- },
- "params": {},
- "body": {
- "JSON": {
- "name": "Product Viewed",
- "description": "Creating task with valid custom fields values",
- "tags": [
- "testing",
- "custom fields"
- ],
- "time_estimate": 10800000,
- "status": "Ready",
- "priority": 1,
- "due_date": 1645796361032,
- "due_date_time": true,
- "start_date": 1642685961032,
- "start_date_time": "true",
- "notify_all": false,
- "custom_fields": [
- {
- "id": "a5f5044a-cbad-4caf-bcbb-4cd32bd8db7c",
- "value": "c7f9b6f5-cd98-4609-af10-68a8710cc1bf"
- },
- {
- "id": "22eaffee-ffec-4c3b-bdae-56e69d55eecd",
- "value": "7afcb6fb-cec8-41d8-bf0c-039a9db28460"
- },
- {
- "id": "19d3ac4e-2b1e-4569-b33e-ff86c7d94d6e",
- "value": [
- "32c81c1c-cf53-4829-92f5-0f0270d27a45",
- "7e24f329-9dd9-4e68-b426-2c70af6f9347"
- ]
- },
- {
- "id": "ea6c1e48-2abf-4328-b228-79c213e147c8",
- "value": {
- "location": {
- "lat": -20,
- "lng": 124
- },
- "formatted_address": "Gold Coast QLD, Australia"
- }
- },
- {
- "id": "c9b83d91-b979-4b34-b4bd-88bf9cf2b9a6",
- "value": "+12233445567"
- },
- {
- "id": "ebe825fb-92de-41ce-a29c-25018da039b4",
- "value": "test123@example.com"
- },
- {
- "id": "b01b32fd-94d3-43e6-9f31-2c855ff169cd",
- "value": "https://www.rudderstack.com/"
- },
- {
- "id": "f431cda3-a575-4a05-ba8d-583d9b6cb2df",
- "value": 3
- },
- {
- "id": "4b7a29be-e261-4340-8f3f-e6de838473e5",
- "value": "c5032049-8c05-44e9-a000-3a071d457b8f"
- },
- {
- "id": "4bfebc00-9d4a-40d1-aef8-5a87b610186c",
- "value": "VP of Operations"
- },
- {
- "id": "666f74bf-6d87-41f3-8735-ccf0efe066dd",
- "value": 1645796361032
- }
- ]
- },
- "JSON_ARRAY": {},
- "XML": {},
- "FORM": {}
- },
- "files": {},
- "userId": ""
- },
- "statusCode": 200
- }
- ]
- }
- }
- },
- {
- "name": "clickup",
- "description": "Creating task with assignees",
- "feature": "processor",
- "module": "destination",
- "version": "v0",
- "input": {
- "request": {
- "body": [
- {
- "destination": {
- "Config": {
- "apiToken": "pk_123",
- "listId": "correctListId123"
- },
- "ID": "clickup-1234"
- },
- "message": {
- "type": "track",
- "event": "Product Viewed",
- "properties": {
- "taskName": "Transformer Testing"
- },
- "context": {
- "externalId": [
- {
- "type": "clickUpAssigneeId",
- "id": 61205104
- },
- {
- "type": "clickUpAssigneeId",
- "id": 61217234
- },
- {
- "type": "clickUpAssigneeId",
- "id": 61228575
- }
- ]
- },
- "rudderId": "553b5522-c575-40a7-8072-9741c5f9a647",
- "messageId": "831f1fa5-de84-4f22-880a-4c3f23fc3f04",
- "anonymousId": "bf412108-0357-4330-b119-7305e767823c"
- }
- }
- ]
- }
- },
- "output": {
- "response": {
- "status": 200,
- "body": [
- {
- "output": {
- "version": "1",
- "type": "REST",
- "method": "POST",
- "endpoint": "https://api.clickup.com/api/v2/list/correctListId123/task",
- "headers": {
- "Content-Type": "application/json",
- "Authorization": "pk_123"
- },
- "params": {},
- "body": {
- "JSON": {
- "name": "Transformer Testing",
- "assignees": [
- 61205104,
- 61217234,
- 61228575
- ]
- },
- "JSON_ARRAY": {},
- "XML": {},
- "FORM": {}
- },
- "files": {},
- "userId": ""
- },
- "statusCode": 200
- }
- ]
- }
- }
- },
- {
- "name": "clickup",
- "description": "Event filtering : Sending non whitelisted event when some events are whitelisted",
- "feature": "processor",
- "module": "destination",
- "version": "v0",
- "input": {
- "request": {
- "body": [
- {
- "destination": {
- "Config": {
- "apiToken": "pk_123",
- "listId": "correctListId123",
- "whitelistedEvents": [
- {
- "eventName": "Anonymous Page Visit"
- },
- {
- "eventName": "Product Viewed"
- },
- {
- "eventName": ""
- }
- ]
- },
- "ID": "clickup-1234"
- },
- "message": {
- "type": "track",
- "event": "Credit Card Added",
- "context": {},
- "rudderId": "553b5522-c575-40a7-8072-9741c5f9a647",
- "messageId": "831f1fa5-de84-4f22-880a-4c3f23fc3f04",
- "anonymousId": "bf412108-0357-4330-b119-7305e767823c"
- }
- }
- ]
- }
- },
- "output": {
- "response": {
- "status": 200,
- "body": [
- {
- "error": "The event was discarded as it was not allow listed in the destination configuration",
- "statTags": {
- "destType": "CLICKUP",
- "errorCategory": "dataValidation",
- "errorType": "instrumentation",
- "feature": "processor",
- "implementation": "native",
- "module": "destination"
- },
- "statusCode": 400
- }
- ]
- }
- }
- },
- {
- "name": "clickup",
- "description": "Event filtering : No event is whitelisted",
- "feature": "processor",
- "module": "destination",
- "version": "v0",
- "input": {
- "request": {
- "body": [
- {
- "destination": {
- "Config": {
- "apiToken": "pk_123",
- "listId": "correctListId123",
- "whitelistedEvents": [
- {
- "eventName": ""
- },
- {
- "eventName": ""
- },
- {
- "eventName": ""
- }
- ]
- },
- "ID": "clickup-1234"
- },
- "message": {
- "type": "track",
- "event": "Credit Card Added",
- "context": {},
- "rudderId": "553b5522-c575-40a7-8072-9741c5f9a647",
- "messageId": "831f1fa5-de84-4f22-880a-4c3f23fc3f04",
- "anonymousId": "bf412108-0357-4330-b119-7305e767823c"
- }
- }
- ]
- }
- },
- "output": {
- "response": {
- "status": 200,
- "body": [
- {
- "error": "The event was discarded as it was not allow listed in the destination configuration",
- "statTags": {
- "destType": "CLICKUP",
- "errorCategory": "dataValidation",
- "errorType": "instrumentation",
- "feature": "processor",
- "implementation": "native",
- "module": "destination"
- },
- "statusCode": 400
- }
- ]
- }
- }
- },
- {
- "name": "clickup",
- "description": "Creating task using listId from externalId array",
- "feature": "processor",
- "module": "destination",
- "version": "v0",
- "input": {
- "request": {
- "body": [
- {
- "destination": {
- "Config": {
- "apiToken": "pk_123",
- "listId": "correctListId123"
- },
- "ID": "clickup-1234"
- },
- "message": {
- "type": "track",
- "event": "anonymous page visit",
- "context": {
- "externalId": [
- {
- "type": "clickUpListId",
- "id": "correctListId456"
- }
- ]
- },
- "rudderId": "553b5522-c575-40a7-8072-9741c5f9a647",
- "messageId": "831f1fa5-de84-4f22-880a-4c3f23fc3f04",
- "anonymousId": "bf412108-0357-4330-b119-7305e767823c"
- }
- }
- ]
- }
- },
- "output": {
- "response": {
- "status": 200,
- "body": [
- {
- "output": {
- "version": "1",
- "type": "REST",
- "method": "POST",
- "endpoint": "https://api.clickup.com/api/v2/list/correctListId456/task",
- "headers": {
- "Content-Type": "application/json",
- "Authorization": "pk_123"
- },
- "params": {},
- "body": {
- "JSON": {
- "name": "anonymous page visit"
- },
- "JSON_ARRAY": {},
- "XML": {},
- "FORM": {}
- },
- "files": {},
- "userId": ""
- },
- "statusCode": 200
- }
- ]
- }
- }
- }
-]
+ {
+ name: 'clickup',
+ description: 'Invalid priority',
+ feature: 'processor',
+ module: 'destination',
+ version: 'v0',
+ input: {
+ request: {
+ body: [
+ {
+ destination: {
+ Config: {
+ apiToken: 'pk_123',
+ listId: 'correctListId123',
+ },
+ ID: 'clickup-1234',
+ },
+ message: {
+ type: 'track',
+ event: 'Product Viewed',
+ properties: {
+ priority: 0,
+ },
+ context: {},
+ rudderId: '553b5522-c575-40a7-8072-9741c5f9a647',
+ messageId: '831f1fa5-de84-4f22-880a-4c3f23fc3f04',
+ anonymousId: 'bf412108-0357-4330-b119-7305e767823c',
+ },
+ },
+ ],
+ },
+ },
+ output: {
+ response: {
+ status: 200,
+ body: [
+ {
+ error:
+ 'Invalid value specified for priority. Value must be Integer and in range "[1,4]"',
+ statTags: {
+ destType: 'CLICKUP',
+ errorCategory: 'dataValidation',
+ errorType: 'instrumentation',
+ feature: 'processor',
+ implementation: 'native',
+ module: 'destination',
+ },
+ statusCode: 400,
+ },
+ ],
+ },
+ },
+ },
+ {
+ name: 'clickup',
+ description: 'Custom field: Invalid phone number',
+ feature: 'processor',
+ module: 'destination',
+ version: 'v0',
+ input: {
+ request: {
+ body: [
+ {
+ destination: {
+ Config: {
+ apiToken: 'pk_123',
+ listId: 'correctListId123',
+ keyToCustomFieldName: [
+ {
+ from: 'phone',
+ to: 'Phone Number',
+ },
+ ],
+ },
+ ID: 'clickup-1234',
+ },
+ message: {
+ type: 'track',
+ event: 'Product Viewed',
+ properties: {
+ phone: '9999999999',
+ },
+ context: {},
+ rudderId: '553b5522-c575-40a7-8072-9741c5f9a647',
+ messageId: '831f1fa5-de84-4f22-880a-4c3f23fc3f04',
+ anonymousId: 'bf412108-0357-4330-b119-7305e767823c',
+ },
+ },
+ ],
+ },
+ },
+ output: {
+ response: {
+ status: 200,
+ body: [
+ {
+ error: 'The provided phone number is invalid',
+ statTags: {
+ destType: 'CLICKUP',
+ errorCategory: 'dataValidation',
+ errorType: 'instrumentation',
+ feature: 'processor',
+ implementation: 'native',
+ module: 'destination',
+ },
+ statusCode: 400,
+ },
+ ],
+ },
+ },
+ },
+ {
+ name: 'clickup',
+ description: 'Custom field: Invalid email',
+ feature: 'processor',
+ module: 'destination',
+ version: 'v0',
+ input: {
+ request: {
+ body: [
+ {
+ destination: {
+ Config: {
+ apiToken: 'pk_123',
+ listId: 'correctListId123',
+ keyToCustomFieldName: [
+ {
+ from: 'email',
+ to: 'Email',
+ },
+ ],
+ },
+ ID: 'clickup-1234',
+ },
+ message: {
+ type: 'track',
+ event: 'Product Viewed',
+ properties: {
+ email: 'test.com',
+ },
+ context: {},
+ rudderId: '553b5522-c575-40a7-8072-9741c5f9a647',
+ messageId: '831f1fa5-de84-4f22-880a-4c3f23fc3f04',
+ anonymousId: 'bf412108-0357-4330-b119-7305e767823c',
+ },
+ },
+ ],
+ },
+ },
+ output: {
+ response: {
+ status: 200,
+ body: [
+ {
+ error: 'The provided email is invalid',
+ statTags: {
+ destType: 'CLICKUP',
+ errorCategory: 'dataValidation',
+ errorType: 'instrumentation',
+ feature: 'processor',
+ implementation: 'native',
+ module: 'destination',
+ },
+ statusCode: 400,
+ },
+ ],
+ },
+ },
+ },
+ {
+ name: 'clickup',
+ description: 'Custom field: Invalid url',
+ feature: 'processor',
+ module: 'destination',
+ version: 'v0',
+ input: {
+ request: {
+ body: [
+ {
+ destination: {
+ Config: {
+ apiToken: 'pk_123',
+ listId: 'correctListId123',
+ keyToCustomFieldName: [
+ {
+ from: 'url',
+ to: 'Url',
+ },
+ ],
+ },
+ ID: 'clickup-1234',
+ },
+ message: {
+ type: 'track',
+ event: 'Product Viewed',
+ properties: {
+ url: 'www.test.com',
+ },
+ context: {},
+ rudderId: '553b5522-c575-40a7-8072-9741c5f9a647',
+ messageId: '831f1fa5-de84-4f22-880a-4c3f23fc3f04',
+ anonymousId: 'bf412108-0357-4330-b119-7305e767823c',
+ },
+ },
+ ],
+ },
+ },
+ output: {
+ response: {
+ status: 200,
+ body: [
+ {
+ error: 'The provided url is invalid',
+ statTags: {
+ destType: 'CLICKUP',
+ errorCategory: 'dataValidation',
+ errorType: 'instrumentation',
+ feature: 'processor',
+ implementation: 'native',
+ module: 'destination',
+ },
+ statusCode: 400,
+ },
+ ],
+ },
+ },
+ },
+ {
+ name: 'clickup',
+ description: 'Custom field: Invalid location latitude',
+ feature: 'processor',
+ module: 'destination',
+ version: 'v0',
+ input: {
+ request: {
+ body: [
+ {
+ destination: {
+ Config: {
+ apiToken: 'pk_123',
+ listId: 'correctListId123',
+ keyToCustomFieldName: [
+ {
+ from: 'location',
+ to: 'Location',
+ },
+ ],
+ },
+ ID: 'clickup-1234',
+ },
+ message: {
+ type: 'track',
+ event: 'Product Viewed',
+ properties: {
+ location: {
+ lat: -100,
+ lng: 124,
+ formattedAddress: 'Gold Coast QLD, Australia',
+ },
+ },
+ context: {},
+ rudderId: '553b5522-c575-40a7-8072-9741c5f9a647',
+ messageId: '831f1fa5-de84-4f22-880a-4c3f23fc3f04',
+ anonymousId: 'bf412108-0357-4330-b119-7305e767823c',
+ },
+ },
+ ],
+ },
+ },
+ output: {
+ response: {
+ status: 200,
+ body: [
+ {
+ error: 'Invalid value specified for latitude. Latitude must be in range "[-90, 90]"',
+ statTags: {
+ destType: 'CLICKUP',
+ errorCategory: 'dataValidation',
+ errorType: 'instrumentation',
+ feature: 'processor',
+ implementation: 'native',
+ module: 'destination',
+ },
+ statusCode: 400,
+ },
+ ],
+ },
+ },
+ },
+ {
+ name: 'clickup',
+ description: 'Custom field: Invalid rating',
+ feature: 'processor',
+ module: 'destination',
+ version: 'v0',
+ input: {
+ request: {
+ body: [
+ {
+ destination: {
+ Config: {
+ apiToken: 'pk_123',
+ listId: 'correctListId123',
+ keyToCustomFieldName: [
+ {
+ from: 'rating',
+ to: 'Rating',
+ },
+ ],
+ },
+ ID: 'clickup-1234',
+ },
+ message: {
+ type: 'track',
+ event: 'Product Viewed',
+ properties: {
+ rating: '7',
+ },
+ context: {},
+ rudderId: '553b5522-c575-40a7-8072-9741c5f9a647',
+ messageId: '831f1fa5-de84-4f22-880a-4c3f23fc3f04',
+ anonymousId: 'bf412108-0357-4330-b119-7305e767823c',
+ },
+ },
+ ],
+ },
+ },
+ output: {
+ response: {
+ status: 200,
+ body: [
+ {
+ error: 'Invalid value specified for rating. Value must be in range "[0,5]"',
+ statTags: {
+ destType: 'CLICKUP',
+ errorCategory: 'dataValidation',
+ errorType: 'instrumentation',
+ feature: 'processor',
+ implementation: 'native',
+ module: 'destination',
+ },
+ statusCode: 400,
+ },
+ ],
+ },
+ },
+ },
+ {
+ name: 'clickup',
+ description: 'Creating task with valid custom fields values',
+ feature: 'processor',
+ module: 'destination',
+ version: 'v0',
+ input: {
+ request: {
+ body: [
+ {
+ destination: {
+ Config: {
+ apiToken: 'pk_123',
+ listId: 'correctListId123',
+ keyToCustomFieldName: [
+ {
+ from: 'industry',
+ to: 'Industry',
+ },
+ {
+ from: 'Payment Status',
+ to: 'Payment Status',
+ },
+ {
+ from: 'labelKey',
+ to: 'Labels',
+ },
+ {
+ from: 'locationKey',
+ to: 'Location',
+ },
+ {
+ from: 'phone',
+ to: 'Phone Number',
+ },
+ {
+ from: 'email',
+ to: 'Email',
+ },
+ {
+ from: 'url',
+ to: 'Url',
+ },
+ {
+ from: 'rating',
+ to: 'Rating',
+ },
+ {
+ from: 'plan',
+ to: 'Plan',
+ },
+ {
+ from: 'contactTitle',
+ to: 'Contact Title',
+ },
+ {
+ from: 'date',
+ to: 'Date',
+ },
+ ],
+ },
+ ID: 'clickup-1234',
+ },
+ message: {
+ type: 'track',
+ event: 'Product Viewed',
+ properties: {
+ description: 'Creating task with valid custom fields values',
+ tags: ['testing', 'custom fields'],
+ timeEstimate: 10800000,
+ status: 'Ready',
+ priority: 1,
+ dueDate: '2022-02-25T13:39:21.032Z',
+ includeDueDateTime: true,
+ startDate: '2022-01-20T13:39:21.032Z',
+ includeStartDateTime: 'true',
+ notifyAll: false,
+ industry: 'Retail',
+ 'Payment Status': 'Pending',
+ labelKey: ['option 1', 'option 2', 'option 3'],
+ locationKey: {
+ lat: -20,
+ lng: 124,
+ formattedAddress: 'Gold Coast QLD, Australia',
+ },
+ phone: '+12233445567',
+ email: 'test123@example.com',
+ url: 'https://www.rudderstack.com/',
+ rating: 3,
+ plan: 'Business',
+ contactTitle: 'VP of Operations',
+ date: '2022-02-25T13:39:21.032Z',
+ },
+ context: {},
+ rudderId: '553b5522-c575-40a7-8072-9741c5f9a647',
+ messageId: '831f1fa5-de84-4f22-880a-4c3f23fc3f04',
+ anonymousId: 'bf412108-0357-4330-b119-7305e767823c',
+ },
+ },
+ ],
+ },
+ },
+ output: {
+ response: {
+ status: 200,
+ body: [
+ {
+ output: {
+ version: '1',
+ type: 'REST',
+ method: 'POST',
+ endpoint: 'https://api.clickup.com/api/v2/list/correctListId123/task',
+ headers: {
+ 'Content-Type': 'application/json',
+ Authorization: 'pk_123',
+ },
+ params: {},
+ body: {
+ JSON: {
+ name: 'Product Viewed',
+ description: 'Creating task with valid custom fields values',
+ tags: ['testing', 'custom fields'],
+ time_estimate: 10800000,
+ status: 'Ready',
+ priority: 1,
+ due_date: 1645796361032,
+ due_date_time: true,
+ start_date: 1642685961032,
+ start_date_time: 'true',
+ notify_all: false,
+ custom_fields: [
+ {
+ id: 'a5f5044a-cbad-4caf-bcbb-4cd32bd8db7c',
+ value: 'c7f9b6f5-cd98-4609-af10-68a8710cc1bf',
+ },
+ {
+ id: '22eaffee-ffec-4c3b-bdae-56e69d55eecd',
+ value: '7afcb6fb-cec8-41d8-bf0c-039a9db28460',
+ },
+ {
+ id: '19d3ac4e-2b1e-4569-b33e-ff86c7d94d6e',
+ value: [
+ '32c81c1c-cf53-4829-92f5-0f0270d27a45',
+ '7e24f329-9dd9-4e68-b426-2c70af6f9347',
+ ],
+ },
+ {
+ id: 'ea6c1e48-2abf-4328-b228-79c213e147c8',
+ value: {
+ location: {
+ lat: -20,
+ lng: 124,
+ },
+ formatted_address: 'Gold Coast QLD, Australia',
+ },
+ },
+ {
+ id: 'c9b83d91-b979-4b34-b4bd-88bf9cf2b9a6',
+ value: '+12233445567',
+ },
+ {
+ id: 'ebe825fb-92de-41ce-a29c-25018da039b4',
+ value: 'test123@example.com',
+ },
+ {
+ id: 'b01b32fd-94d3-43e6-9f31-2c855ff169cd',
+ value: 'https://www.rudderstack.com/',
+ },
+ {
+ id: 'f431cda3-a575-4a05-ba8d-583d9b6cb2df',
+ value: 3,
+ },
+ {
+ id: '4b7a29be-e261-4340-8f3f-e6de838473e5',
+ value: 'c5032049-8c05-44e9-a000-3a071d457b8f',
+ },
+ {
+ id: '4bfebc00-9d4a-40d1-aef8-5a87b610186c',
+ value: 'VP of Operations',
+ },
+ {
+ id: '666f74bf-6d87-41f3-8735-ccf0efe066dd',
+ value: 1645796361032,
+ },
+ ],
+ },
+ JSON_ARRAY: {},
+ XML: {},
+ FORM: {},
+ },
+ files: {},
+ userId: '',
+ },
+ statusCode: 200,
+ },
+ ],
+ },
+ },
+ },
+ {
+ name: 'clickup',
+ description: 'Creating task with assignees',
+ feature: 'processor',
+ module: 'destination',
+ version: 'v0',
+ input: {
+ request: {
+ body: [
+ {
+ destination: {
+ Config: {
+ apiToken: 'pk_123',
+ listId: 'correctListId123',
+ },
+ ID: 'clickup-1234',
+ },
+ message: {
+ type: 'track',
+ event: 'Product Viewed',
+ properties: {
+ taskName: 'Transformer Testing',
+ },
+ context: {
+ externalId: [
+ {
+ type: 'clickUpAssigneeId',
+ id: 61205104,
+ },
+ {
+ type: 'clickUpAssigneeId',
+ id: 61217234,
+ },
+ {
+ type: 'clickUpAssigneeId',
+ id: 61228575,
+ },
+ ],
+ },
+ rudderId: '553b5522-c575-40a7-8072-9741c5f9a647',
+ messageId: '831f1fa5-de84-4f22-880a-4c3f23fc3f04',
+ anonymousId: 'bf412108-0357-4330-b119-7305e767823c',
+ },
+ },
+ ],
+ },
+ },
+ output: {
+ response: {
+ status: 200,
+ body: [
+ {
+ output: {
+ version: '1',
+ type: 'REST',
+ method: 'POST',
+ endpoint: 'https://api.clickup.com/api/v2/list/correctListId123/task',
+ headers: {
+ 'Content-Type': 'application/json',
+ Authorization: 'pk_123',
+ },
+ params: {},
+ body: {
+ JSON: {
+ name: 'Transformer Testing',
+ assignees: [61205104, 61217234, 61228575],
+ },
+ JSON_ARRAY: {},
+ XML: {},
+ FORM: {},
+ },
+ files: {},
+ userId: '',
+ },
+ statusCode: 200,
+ },
+ ],
+ },
+ },
+ },
+ {
+ name: 'clickup',
+ description: 'Event filtering : Sending non whitelisted event when some events are whitelisted',
+ feature: 'processor',
+ module: 'destination',
+ version: 'v0',
+ input: {
+ request: {
+ body: [
+ {
+ destination: {
+ Config: {
+ apiToken: 'pk_123',
+ listId: 'correctListId123',
+ whitelistedEvents: [
+ {
+ eventName: 'Anonymous Page Visit',
+ },
+ {
+ eventName: 'Product Viewed',
+ },
+ {
+ eventName: '',
+ },
+ ],
+ },
+ ID: 'clickup-1234',
+ },
+ message: {
+ type: 'track',
+ event: 'Credit Card Added',
+ context: {},
+ rudderId: '553b5522-c575-40a7-8072-9741c5f9a647',
+ messageId: '831f1fa5-de84-4f22-880a-4c3f23fc3f04',
+ anonymousId: 'bf412108-0357-4330-b119-7305e767823c',
+ },
+ },
+ ],
+ },
+ },
+ output: {
+ response: {
+ status: 200,
+ body: [
+ {
+ error:
+ 'The event was discarded as it was not allow listed in the destination configuration',
+ statTags: {
+ destType: 'CLICKUP',
+ errorCategory: 'dataValidation',
+ errorType: 'instrumentation',
+ feature: 'processor',
+ implementation: 'native',
+ module: 'destination',
+ },
+ statusCode: 400,
+ },
+ ],
+ },
+ },
+ },
+ {
+ name: 'clickup',
+ description: 'Event filtering : No event is whitelisted',
+ feature: 'processor',
+ module: 'destination',
+ version: 'v0',
+ input: {
+ request: {
+ body: [
+ {
+ destination: {
+ Config: {
+ apiToken: 'pk_123',
+ listId: 'correctListId123',
+ whitelistedEvents: [
+ {
+ eventName: '',
+ },
+ {
+ eventName: '',
+ },
+ {
+ eventName: '',
+ },
+ ],
+ },
+ ID: 'clickup-1234',
+ },
+ message: {
+ type: 'track',
+ event: 'Credit Card Added',
+ context: {},
+ rudderId: '553b5522-c575-40a7-8072-9741c5f9a647',
+ messageId: '831f1fa5-de84-4f22-880a-4c3f23fc3f04',
+ anonymousId: 'bf412108-0357-4330-b119-7305e767823c',
+ },
+ },
+ ],
+ },
+ },
+ output: {
+ response: {
+ status: 200,
+ body: [
+ {
+ error:
+ 'The event was discarded as it was not allow listed in the destination configuration',
+ statTags: {
+ destType: 'CLICKUP',
+ errorCategory: 'dataValidation',
+ errorType: 'instrumentation',
+ feature: 'processor',
+ implementation: 'native',
+ module: 'destination',
+ },
+ statusCode: 400,
+ },
+ ],
+ },
+ },
+ },
+ {
+ name: 'clickup',
+ description: 'Creating task using listId from externalId array',
+ feature: 'processor',
+ module: 'destination',
+ version: 'v0',
+ input: {
+ request: {
+ body: [
+ {
+ destination: {
+ Config: {
+ apiToken: 'pk_123',
+ listId: 'correctListId123',
+ },
+ ID: 'clickup-1234',
+ },
+ message: {
+ type: 'track',
+ event: 'anonymous page visit',
+ context: {
+ externalId: [
+ {
+ type: 'clickUpListId',
+ id: 'correctListId456',
+ },
+ ],
+ },
+ rudderId: '553b5522-c575-40a7-8072-9741c5f9a647',
+ messageId: '831f1fa5-de84-4f22-880a-4c3f23fc3f04',
+ anonymousId: 'bf412108-0357-4330-b119-7305e767823c',
+ },
+ },
+ ],
+ },
+ },
+ output: {
+ response: {
+ status: 200,
+ body: [
+ {
+ output: {
+ version: '1',
+ type: 'REST',
+ method: 'POST',
+ endpoint: 'https://api.clickup.com/api/v2/list/correctListId456/task',
+ headers: {
+ 'Content-Type': 'application/json',
+ Authorization: 'pk_123',
+ },
+ params: {},
+ body: {
+ JSON: {
+ name: 'anonymous page visit',
+ },
+ JSON_ARRAY: {},
+ XML: {},
+ FORM: {},
+ },
+ files: {},
+ userId: '',
+ },
+ statusCode: 200,
+ },
+ ],
+ },
+ },
+ },
+];
diff --git a/test/integrations/destinations/criteo_audience/dataDelivery/data.ts b/test/integrations/destinations/criteo_audience/dataDelivery/data.ts
index 162e566365..fb5b689a96 100644
--- a/test/integrations/destinations/criteo_audience/dataDelivery/data.ts
+++ b/test/integrations/destinations/criteo_audience/dataDelivery/data.ts
@@ -1,530 +1,508 @@
export const data = [
{
- "name": "criteo_audience",
- "description": "Test 0",
- "feature": "dataDelivery",
- "module": "destination",
- "version": "v0",
- "input": {
- "request": {
- "body": {
- "version": "1",
- "type": "REST",
- "method": "PATCH",
- "endpoint": "https://api.criteo.com/2022-10/audiences/34894/contactlist",
- "headers": {
- "Authorization": "Bearer success_access_token",
- "Content-Type": "application/json",
- "Accept": "application/json"
+ name: 'criteo_audience',
+ description: 'Test 0',
+ feature: 'dataDelivery',
+ module: 'destination',
+ version: 'v0',
+ input: {
+ request: {
+ body: {
+ version: '1',
+ type: 'REST',
+ method: 'PATCH',
+ endpoint: 'https://api.criteo.com/2022-10/audiences/34894/contactlist',
+ headers: {
+ Authorization: 'Bearer success_access_token',
+ 'Content-Type': 'application/json',
+ Accept: 'application/json',
},
- "body": {
- "JSON": {
- "data": {
- "type": "ContactlistAmendment",
- "attributes": {
- "operation": "remove",
- "identifierType": "gum",
- "identifiers": [
- "sample_gum3"
- ],
- "internalIdentifiers": false,
- "gumCallerId": "329739"
- }
- }
+ body: {
+ JSON: {
+ data: {
+ type: 'ContactlistAmendment',
+ attributes: {
+ operation: 'remove',
+ identifierType: 'gum',
+ identifiers: ['sample_gum3'],
+ internalIdentifiers: false,
+ gumCallerId: '329739',
+ },
+ },
+ },
+ JSON_ARRAY: {},
+ XML: {},
+ FORM: {},
+ },
+ files: {},
+ params: {
+ destination: 'criteo_audience',
+ },
+ },
+ method: 'POST',
+ },
+ },
+ output: {
+ response: {
+ status: 200,
+ body: {
+ output: {
+ status: 200,
+ message: 'Request Processed Successfully',
+ destinationResponse: {
+ response: '',
+ status: 200,
},
- "JSON_ARRAY": {},
- "XML": {},
- "FORM": {}
},
- "files": {},
- "params": {
- "destination": "criteo_audience"
- }
},
- "method": "POST"
- }
+ },
},
- "output": {
- "response": {
- "status": 200,
- "body": {
- "output": {
- "status": 200,
- "message": "Request Processed Successfully",
- "destinationResponse": {
- "response": "",
- "status": 200
- }
- }
- }
- }
- }
},
{
- "name": "criteo_audience",
- "description": "Test 1",
- "feature": "dataDelivery",
- "module": "destination",
- "version": "v0",
- "input": {
- "request": {
- "body": {
- "version": "1",
- "type": "REST",
- "method": "PATCH",
- "endpoint": "https://api.criteo.com/2022-10/audiences/3485/contactlist",
- "headers": {
- "Authorization": "Bearer success_access_token",
- "Content-Type": "application/json",
- "Accept": "application/json"
+ name: 'criteo_audience',
+ description: 'Test 1',
+ feature: 'dataDelivery',
+ module: 'destination',
+ version: 'v0',
+ input: {
+ request: {
+ body: {
+ version: '1',
+ type: 'REST',
+ method: 'PATCH',
+ endpoint: 'https://api.criteo.com/2022-10/audiences/3485/contactlist',
+ headers: {
+ Authorization: 'Bearer success_access_token',
+ 'Content-Type': 'application/json',
+ Accept: 'application/json',
},
- "body": {
- "JSON": {
- "data": {
- "type": "ContactlistAmendment",
- "attributes": {
- "operation": "add",
- "identifierType": "madid",
- "identifiers": [
- "sample_madid",
- "sample_madid_1",
- "sample_madid_2"
- ],
- "internalIdentifiers": false
- }
- }
+ body: {
+ JSON: {
+ data: {
+ type: 'ContactlistAmendment',
+ attributes: {
+ operation: 'add',
+ identifierType: 'madid',
+ identifiers: ['sample_madid', 'sample_madid_1', 'sample_madid_2'],
+ internalIdentifiers: false,
+ },
+ },
},
- "JSON_ARRAY": {},
- "XML": {},
- "FORM": {}
+ JSON_ARRAY: {},
+ XML: {},
+ FORM: {},
+ },
+ files: {},
+ params: {
+ destination: 'criteo_audience',
},
- "files": {},
- "params": {
- "destination": "criteo_audience"
- }
},
- "method": "POST"
- }
+ method: 'POST',
+ },
},
- "output": {
- "response": {
- "status": 401,
- "body": {
- "output": {
- "status": 401,
- "authErrorCategory": "REFRESH_TOKEN",
- "destinationResponse": {
- "errors": [
+ output: {
+ response: {
+ status: 401,
+ body: {
+ output: {
+ status: 401,
+ authErrorCategory: 'REFRESH_TOKEN',
+ destinationResponse: {
+ errors: [
{
- "traceIdentifier": "80a1a0ba3981b04da847d05700752c77",
- "type": "authorization",
- "code": "authorization-token-expired",
- "instance": "/2022-10/audiences/123/contactlist",
- "title": "The authorization token has expired"
- }
- ]
+ traceIdentifier: '80a1a0ba3981b04da847d05700752c77',
+ type: 'authorization',
+ code: 'authorization-token-expired',
+ instance: '/2022-10/audiences/123/contactlist',
+ title: 'The authorization token has expired',
+ },
+ ],
},
- "message": "The authorization token has expired during criteo_audience response transformation",
- "statTags": {
- "destType": "CRITEO_AUDIENCE",
- "errorCategory": "network",
- "destinationId": "Non-determininable",
- "workspaceId": "Non-determininable",
- "errorType": "aborted",
- "feature": "dataDelivery",
- "implementation": "native",
- "module": "destination"
- }
- }
- }
- }
- }
+ message:
+ 'The authorization token has expired during criteo_audience response transformation',
+ statTags: {
+ destType: 'CRITEO_AUDIENCE',
+ errorCategory: 'network',
+ destinationId: 'Non-determininable',
+ workspaceId: 'Non-determininable',
+ errorType: 'aborted',
+ feature: 'dataDelivery',
+ implementation: 'native',
+ module: 'destination',
+ },
+ },
+ },
+ },
+ },
},
{
- "name": "criteo_audience",
- "description": "Test 2",
- "feature": "dataDelivery",
- "module": "destination",
- "version": "v0",
- "input": {
- "request": {
- "body": {
- "version": "1",
- "type": "REST",
- "method": "PATCH",
- "endpoint": "https://api.criteo.com/2022-10/audiences/34895/contactlist",
- "headers": {
- "Authorization": "Bearer success_access_token",
- "Content-Type": "application/json",
- "Accept": "application/json"
+ name: 'criteo_audience',
+ description: 'Test 2',
+ feature: 'dataDelivery',
+ module: 'destination',
+ version: 'v0',
+ input: {
+ request: {
+ body: {
+ version: '1',
+ type: 'REST',
+ method: 'PATCH',
+ endpoint: 'https://api.criteo.com/2022-10/audiences/34895/contactlist',
+ headers: {
+ Authorization: 'Bearer success_access_token',
+ 'Content-Type': 'application/json',
+ Accept: 'application/json',
},
- "body": {
- "JSON": {
- "data": {
- "type": "ContactlistAmendment",
- "attributes": {
- "operation": "add",
- "identifierType": "madid",
- "identifiers": [
- "sample_madid",
- "sample_madid_1",
- "sample_madid_2"
- ],
- "internalIdentifiers": false
- }
- }
+ body: {
+ JSON: {
+ data: {
+ type: 'ContactlistAmendment',
+ attributes: {
+ operation: 'add',
+ identifierType: 'madid',
+ identifiers: ['sample_madid', 'sample_madid_1', 'sample_madid_2'],
+ internalIdentifiers: false,
+ },
+ },
},
- "JSON_ARRAY": {},
- "XML": {},
- "FORM": {}
+ JSON_ARRAY: {},
+ XML: {},
+ FORM: {},
+ },
+ files: {},
+ params: {
+ destination: 'criteo_audience',
},
- "files": {},
- "params": {
- "destination": "criteo_audience"
- }
},
- "method": "POST"
- }
+ method: 'POST',
+ },
},
- "output": {
- "response": {
- "status": 401,
- "body": {
- "output": {
- "status": 401,
- "authErrorCategory": "REFRESH_TOKEN",
- "destinationResponse": {
- "errors": [
+ output: {
+ response: {
+ status: 401,
+ body: {
+ output: {
+ status: 401,
+ authErrorCategory: 'REFRESH_TOKEN',
+ destinationResponse: {
+ errors: [
{
- "traceIdentifier": "80a1a0ba3981b04da847d05700752c77",
- "type": "authorization",
- "code": "authorization-token-invalid",
- "instance": "/2022-10/audiences/123/contactlist",
- "title": "The authorization header is invalid"
- }
- ]
+ traceIdentifier: '80a1a0ba3981b04da847d05700752c77',
+ type: 'authorization',
+ code: 'authorization-token-invalid',
+ instance: '/2022-10/audiences/123/contactlist',
+ title: 'The authorization header is invalid',
+ },
+ ],
+ },
+ message:
+ 'The authorization header is invalid during criteo_audience response transformation',
+ statTags: {
+ destType: 'CRITEO_AUDIENCE',
+ errorCategory: 'network',
+ destinationId: 'Non-determininable',
+ workspaceId: 'Non-determininable',
+ errorType: 'aborted',
+ feature: 'dataDelivery',
+ implementation: 'native',
+ module: 'destination',
},
- "message": "The authorization header is invalid during criteo_audience response transformation",
- "statTags": {
- "destType": "CRITEO_AUDIENCE",
- "errorCategory": "network",
- "destinationId": "Non-determininable",
- "workspaceId": "Non-determininable",
- "errorType": "aborted",
- "feature": "dataDelivery",
- "implementation": "native",
- "module": "destination"
- }
- }
- }
- }
- }
+ },
+ },
+ },
+ },
},
{
- "name": "criteo_audience",
- "description": "Test 3",
- "feature": "dataDelivery",
- "module": "destination",
- "version": "v0",
- "input": {
- "request": {
- "body": {
- "version": "1",
- "type": "REST",
- "method": "PATCH",
- "endpoint": "https://api.criteo.com/2022-10/audiences/34896/contactlist",
- "headers": {
- "Authorization": "Bearer success_access_token",
- "Content-Type": "application/json",
- "Accept": "application/json"
+ name: 'criteo_audience',
+ description: 'Test 3',
+ feature: 'dataDelivery',
+ module: 'destination',
+ version: 'v0',
+ input: {
+ request: {
+ body: {
+ version: '1',
+ type: 'REST',
+ method: 'PATCH',
+ endpoint: 'https://api.criteo.com/2022-10/audiences/34896/contactlist',
+ headers: {
+ Authorization: 'Bearer success_access_token',
+ 'Content-Type': 'application/json',
+ Accept: 'application/json',
},
- "body": {
- "JSON": {
- "data": {
- "type": "ContactlistAmendment",
- "attributes": {
- "operation": "add",
- "identifierType": "madid",
- "identifiers": [
- "sample_madid",
- "sample_madid_1",
- "sample_madid_2"
- ],
- "internalIdentifiers": false
- }
- }
+ body: {
+ JSON: {
+ data: {
+ type: 'ContactlistAmendment',
+ attributes: {
+ operation: 'add',
+ identifierType: 'madid',
+ identifiers: ['sample_madid', 'sample_madid_1', 'sample_madid_2'],
+ internalIdentifiers: false,
+ },
+ },
},
- "JSON_ARRAY": {},
- "XML": {},
- "FORM": {}
+ JSON_ARRAY: {},
+ XML: {},
+ FORM: {},
+ },
+ files: {},
+ params: {
+ destination: 'criteo_audience',
},
- "files": {},
- "params": {
- "destination": "criteo_audience"
- }
},
- "method": "POST"
- }
+ method: 'POST',
+ },
},
- "output": {
- "response": {
- "status": 400,
- "body": {
- "output": {
- "message": "AudienceId is Invalid. Please Provide Valid AudienceId",
- "destinationResponse": {
- "response": {
- "errors": [
+ output: {
+ response: {
+ status: 400,
+ body: {
+ output: {
+ message: 'AudienceId is Invalid. Please Provide Valid AudienceId',
+ destinationResponse: {
+ response: {
+ errors: [
{
- "code": "audience-invalid",
- "traceIdentifier": "80a1a0ba3981b04da847d05700752c77",
- "type": "authorization"
- }
- ]
+ code: 'audience-invalid',
+ traceIdentifier: '80a1a0ba3981b04da847d05700752c77',
+ type: 'authorization',
+ },
+ ],
},
- "status": 404
+ status: 404,
},
- "statTags": {
- "destType": "CRITEO_AUDIENCE",
- "errorCategory": "network",
- "destinationId": "Non-determininable",
- "workspaceId": "Non-determininable",
- "errorType": "aborted",
- "feature": "dataDelivery",
- "implementation": "native",
- "meta": "instrumentation",
- "module": "destination"
+ statTags: {
+ destType: 'CRITEO_AUDIENCE',
+ errorCategory: 'network',
+ destinationId: 'Non-determininable',
+ workspaceId: 'Non-determininable',
+ errorType: 'aborted',
+ feature: 'dataDelivery',
+ implementation: 'native',
+ meta: 'instrumentation',
+ module: 'destination',
},
- "status": 400
- }
- }
- }
- }
+ status: 400,
+ },
+ },
+ },
+ },
},
{
- "name": "criteo_audience",
- "description": "Test 4",
- "feature": "dataDelivery",
- "module": "destination",
- "version": "v0",
- "input": {
- "request": {
- "body": {
- "version": "1",
- "type": "REST",
- "method": "PATCH",
- "endpoint": "https://api.criteo.com/2022-10/audiences/34897/contactlist",
- "headers": {
- "Authorization": "Bearer success_access_token",
- "Content-Type": "application/json",
- "Accept": "application/json"
+ name: 'criteo_audience',
+ description: 'Test 4',
+ feature: 'dataDelivery',
+ module: 'destination',
+ version: 'v0',
+ input: {
+ request: {
+ body: {
+ version: '1',
+ type: 'REST',
+ method: 'PATCH',
+ endpoint: 'https://api.criteo.com/2022-10/audiences/34897/contactlist',
+ headers: {
+ Authorization: 'Bearer success_access_token',
+ 'Content-Type': 'application/json',
+ Accept: 'application/json',
},
- "body": {
- "JSON": {
- "data": {
- "type": "ContactlistAmendment",
- "attributes": {
- "operation": "add",
- "identifierType": "madid",
- "identifiers": [
- "sample_madid",
- "sample_madid_1",
- "sample_madid_2"
- ],
- "internalIdentifiers": false
- }
- }
+ body: {
+ JSON: {
+ data: {
+ type: 'ContactlistAmendment',
+ attributes: {
+ operation: 'add',
+ identifierType: 'madid',
+ identifiers: ['sample_madid', 'sample_madid_1', 'sample_madid_2'],
+ internalIdentifiers: false,
+ },
+ },
},
- "JSON_ARRAY": {},
- "XML": {},
- "FORM": {}
+ JSON_ARRAY: {},
+ XML: {},
+ FORM: {},
+ },
+ files: {},
+ params: {
+ destination: 'criteo_audience',
},
- "files": {},
- "params": {
- "destination": "criteo_audience"
- }
},
- "method": "POST"
- }
+ method: 'POST',
+ },
},
- "output": {
- "response": {
- "status": 500,
- "body": {
- "output": {
- "destinationResponse": {
- "response": {
- "errors": [
+ output: {
+ response: {
+ status: 500,
+ body: {
+ output: {
+ destinationResponse: {
+ response: {
+ errors: [
{
- "code": "audience-invalid",
- "traceIdentifier": "80a1a0ba3981b04da847d05700752c77",
- "type": "authorization"
- }
- ]
+ code: 'audience-invalid',
+ traceIdentifier: '80a1a0ba3981b04da847d05700752c77',
+ type: 'authorization',
+ },
+ ],
},
- "status": 503
+ status: 503,
},
- "message": "Request Failed: during criteo_audience response transformation (Retryable)",
- "statTags": {
- "destType": "CRITEO_AUDIENCE",
- "errorCategory": "network",
- "destinationId": "Non-determininable",
- "workspaceId": "Non-determininable",
- "feature": "dataDelivery",
- "implementation": "native",
- "errorType": "retryable",
- "module": "destination"
+ message: 'Request Failed: during criteo_audience response transformation (Retryable)',
+ statTags: {
+ destType: 'CRITEO_AUDIENCE',
+ errorCategory: 'network',
+ destinationId: 'Non-determininable',
+ workspaceId: 'Non-determininable',
+ feature: 'dataDelivery',
+ implementation: 'native',
+ errorType: 'retryable',
+ module: 'destination',
},
- "status": 500
- }
- }
- }
- }
+ status: 500,
+ },
+ },
+ },
+ },
},
{
- "name": "criteo_audience",
- "description": "Test 5",
- "feature": "dataDelivery",
- "module": "destination",
- "version": "v0",
- "input": {
- "request": {
- "body": {
- "version": "1",
- "type": "REST",
- "method": "PATCH",
- "endpoint": "https://api.criteo.com/2022-10/audiences/34898/contactlist",
- "headers": {
- "Authorization": "Bearer success_access_token",
- "Content-Type": "application/json",
- "Accept": "application/json"
+ name: 'criteo_audience',
+ description: 'Test 5',
+ feature: 'dataDelivery',
+ module: 'destination',
+ version: 'v0',
+ input: {
+ request: {
+ body: {
+ version: '1',
+ type: 'REST',
+ method: 'PATCH',
+ endpoint: 'https://api.criteo.com/2022-10/audiences/34898/contactlist',
+ headers: {
+ Authorization: 'Bearer success_access_token',
+ 'Content-Type': 'application/json',
+ Accept: 'application/json',
},
- "body": {
- "JSON": {
- "data": {
- "type": "ContactlistAmendment",
- "attributes": {
- "operation": "add",
- "identifierType": "madid",
- "identifiers": [
- "sample_madid",
- "sample_madid_1",
- "sample_madid_2"
- ],
- "internalIdentifiers": false
- }
- }
+ body: {
+ JSON: {
+ data: {
+ type: 'ContactlistAmendment',
+ attributes: {
+ operation: 'add',
+ identifierType: 'madid',
+ identifiers: ['sample_madid', 'sample_madid_1', 'sample_madid_2'],
+ internalIdentifiers: false,
+ },
+ },
},
- "JSON_ARRAY": {},
- "XML": {},
- "FORM": {}
+ JSON_ARRAY: {},
+ XML: {},
+ FORM: {},
+ },
+ files: {},
+ params: {
+ destination: 'criteo_audience',
},
- "files": {},
- "params": {
- "destination": "criteo_audience"
- }
},
- "method": "POST"
- }
+ method: 'POST',
+ },
},
- "output": {
- "response": {
- "status": 429,
- "body": {
- "output": {
- "destinationResponse": {
- "response": {},
- "status": 429
+ output: {
+ response: {
+ status: 429,
+ body: {
+ output: {
+ destinationResponse: {
+ response: {},
+ status: 429,
},
- "message": "Request Failed: during criteo_audience response transformation - due to Request Limit exceeded, (Throttled)",
- "statTags": {
- "destType": "CRITEO_AUDIENCE",
- "errorCategory": "network",
- "destinationId": "Non-determininable",
- "workspaceId": "Non-determininable",
- "errorType": "throttled",
- "feature": "dataDelivery",
- "implementation": "native",
- "module": "destination"
+ message:
+ 'Request Failed: during criteo_audience response transformation - due to Request Limit exceeded, (Throttled)',
+ statTags: {
+ destType: 'CRITEO_AUDIENCE',
+ errorCategory: 'network',
+ destinationId: 'Non-determininable',
+ workspaceId: 'Non-determininable',
+ errorType: 'throttled',
+ feature: 'dataDelivery',
+ implementation: 'native',
+ module: 'destination',
},
- "status": 429
- }
- }
- }
- }
+ status: 429,
+ },
+ },
+ },
+ },
},
{
- "name": "criteo_audience",
- "description": "Test 6",
- "feature": "dataDelivery",
- "module": "destination",
- "version": "v0",
- "input": {
- "request": {
- "body": {
- "version": "1",
- "type": "REST",
- "method": "PATCH",
- "endpoint": "https://api.criteo.com/2022-10/audiences/34899/contactlist",
- "headers": {
- "Authorization": "Bearer success_access_token",
- "Content-Type": "application/json",
- "Accept": "application/json"
+ name: 'criteo_audience',
+ description: 'Test 6',
+ feature: 'dataDelivery',
+ module: 'destination',
+ version: 'v0',
+ input: {
+ request: {
+ body: {
+ version: '1',
+ type: 'REST',
+ method: 'PATCH',
+ endpoint: 'https://api.criteo.com/2022-10/audiences/34899/contactlist',
+ headers: {
+ Authorization: 'Bearer success_access_token',
+ 'Content-Type': 'application/json',
+ Accept: 'application/json',
},
- "body": {
- "JSON": {
- "data": {
- "type": "ContactlistAmendment",
- "attributes": {
- "operation": "add",
- "identifierType": "madid",
- "identifiers": [
- "sample_madid",
- "sample_madid_1",
- "sample_madid_2"
- ],
- "internalIdentifiers": false
- }
- }
+ body: {
+ JSON: {
+ data: {
+ type: 'ContactlistAmendment',
+ attributes: {
+ operation: 'add',
+ identifierType: 'madid',
+ identifiers: ['sample_madid', 'sample_madid_1', 'sample_madid_2'],
+ internalIdentifiers: false,
+ },
+ },
},
- "JSON_ARRAY": {},
- "XML": {},
- "FORM": {}
+ JSON_ARRAY: {},
+ XML: {},
+ FORM: {},
+ },
+ files: {},
+ params: {
+ destination: 'criteo_audience',
},
- "files": {},
- "params": {
- "destination": "criteo_audience"
- }
},
- "method": "POST"
- }
+ method: 'POST',
+ },
},
- "output": {
- "response": {
- "status": 400,
- "body": {
- "output": {
- "destinationResponse": {
- "response": {
- "message": "unknown error"
+ output: {
+ response: {
+ status: 400,
+ body: {
+ output: {
+ destinationResponse: {
+ response: {
+ message: 'unknown error',
},
- "status": 410
+ status: 410,
},
- "message": "Request Failed: during criteo_audience response transformation with status \"410\" due to \"{\"message\":\"unknown error\"}\", (Aborted) ",
- "statTags": {
- "destType": "CRITEO_AUDIENCE",
- "errorCategory": "network",
- "destinationId": "Non-determininable",
- "workspaceId": "Non-determininable",
- "errorType": "aborted",
- "feature": "dataDelivery",
- "implementation": "native",
- "module": "destination"
+ message:
+ 'Request Failed: during criteo_audience response transformation with status "410" due to "{"message":"unknown error"}", (Aborted) ',
+ statTags: {
+ destType: 'CRITEO_AUDIENCE',
+ errorCategory: 'network',
+ destinationId: 'Non-determininable',
+ workspaceId: 'Non-determininable',
+ errorType: 'aborted',
+ feature: 'dataDelivery',
+ implementation: 'native',
+ module: 'destination',
},
- "status": 400
- }
- }
- }
- }
- }
-]
+ status: 400,
+ },
+ },
+ },
+ },
+ },
+];
diff --git a/test/integrations/destinations/custify/processor/data.ts b/test/integrations/destinations/custify/processor/data.ts
index 8b6fc934f4..b5bd8bd753 100644
--- a/test/integrations/destinations/custify/processor/data.ts
+++ b/test/integrations/destinations/custify/processor/data.ts
@@ -1,695 +1,672 @@
export const data = [
- {
- "name": "custify",
- "description": "Identify Call with all traits and adding to company",
- "feature": "processor",
- "module": "destination",
- "version": "v0",
- "input": {
- "request": {
- "body": [
- {
- "destination": {
- "Config": {
- "apiKey": "apiKey_key_test_001",
- "sendAnonymousId": false
- },
- "ID": "custify-1234"
- },
- "message": {
- "type": "identify",
- "userId": "user_1234",
- "context": {
- "traits": {
- "email": "user111@gmail.com",
- "firstName": "New",
- "lastName": "User",
- "phone": 9830311522,
- "sessionCount": 23,
- "unsubscribedFromEmails": false,
- "unsubscribedFromCalls": false,
- "signed_up_at": "2022-04-27T13:56:13.012Z",
- "custom_prop1": "custom_value1",
- "custom_prop2": 123,
- "custom_prop3": false,
- "custom_prop4": {
- "test": "test"
- },
- "custom_prop5": [
- 1,
- 3,
- 4
- ],
- "createdAt": "2022-04-27T13:56:13.012Z",
- "company": {
- "id": "company_123"
- }
- }
- },
- "timestamp": "2022-04-27T13:56:13.012Z",
- "rudderId": "553b5522-c575-40a7-8072-9741c5f9a647",
- "messageId": "831f1fa5-de84-4f22-880a-4c3f23fc3f04",
- "anonymousId": "bf412108-0357-4330-b119-7305e767823c"
- }
- }
- ]
- }
- },
- "output": {
- "response": {
- "status": 200,
- "body": [
- {
- "output": {
- "version": "1",
- "type": "REST",
- "method": "POST",
- "endpoint": "https://api.custify.com/people",
- "headers": {
- "Content-Type": "application/json",
- "Authorization": "Bearer apiKey_key_test_001",
- "Accept": "application/json"
- },
- "params": {},
- "body": {
- "JSON": {
- "user_id": "user_1234",
- "email": "user111@gmail.com",
- "phone": 9830311522,
- "session_count": 23,
- "unsubscribed_from_emails": false,
- "unsubscribed_from_calls": false,
- "signed_up_at": "2022-04-27T13:56:13.012Z",
- "custom_attributes": {
- "firstName": "New",
- "lastName": "User",
- "sessionCount": 23,
- "unsubscribedFromEmails": false,
- "unsubscribedFromCalls": false,
- "custom_prop1": "custom_value1",
- "custom_prop2": 123,
- "custom_prop3": false,
- "createdAt": "2022-04-27T13:56:13.012Z"
- },
- "name": "New User",
- "companies": [
- {
- "company_id": "company_123",
- "remove": false
- }
- ]
- },
- "JSON_ARRAY": {},
- "XML": {},
- "FORM": {}
- },
- "files": {},
- "userId": "user_1234"
- },
- "statusCode": 200
- }
- ]
- }
- }
- },
- {
- "name": "custify",
- "description": "Identify Call removing the user from company",
- "feature": "processor",
- "module": "destination",
- "version": "v0",
- "input": {
- "request": {
- "body": [
- {
- "destination": {
- "Config": {
- "apiKey": "apiKey_key_test_001",
- "sendAnonymousId": false
- },
- "ID": "custify-1234"
- },
- "message": {
- "type": "identify",
- "userId": "user_1234",
- "context": {
- "traits": {
- "email": "user111@gmail.com",
- "firstName": "New",
- "lastName": "User",
- "phone": 9830311522,
- "sessionCount": 23,
- "unsubscribedFromEmails": false,
- "unsubscribedFromCalls": false,
- "signed_up_at": "2022-04-27T13:56:13.012Z",
- "custom_prop1": "custom_value1",
- "custom_prop2": 123,
- "custom_prop3": false,
- "custom_prop4": {
- "test": "test"
- },
- "custom_prop5": [
- 1,
- 3,
- 4
- ],
- "createdAt": "2022-04-27T13:56:13.012Z",
- "company": {
- "id": "company_123",
- "remove": true
- }
- }
- },
- "timestamp": "2022-04-27T13:56:13.012Z",
- "rudderId": "553b5522-c575-40a7-8072-9741c5f9a647",
- "messageId": "831f1fa5-de84-4f22-880a-4c3f23fc3f04",
- "anonymousId": "bf412108-0357-4330-b119-7305e767823c"
- }
- }
- ]
- }
- },
- "output": {
- "response": {
- "status": 200,
- "body": [
- {
- "output": {
- "version": "1",
- "type": "REST",
- "method": "POST",
- "endpoint": "https://api.custify.com/people",
- "headers": {
- "Content-Type": "application/json",
- "Authorization": "Bearer apiKey_key_test_001",
- "Accept": "application/json"
- },
- "params": {},
- "body": {
- "JSON": {
- "user_id": "user_1234",
- "email": "user111@gmail.com",
- "phone": 9830311522,
- "session_count": 23,
- "unsubscribed_from_emails": false,
- "unsubscribed_from_calls": false,
- "signed_up_at": "2022-04-27T13:56:13.012Z",
- "custom_attributes": {
- "firstName": "New",
- "lastName": "User",
- "sessionCount": 23,
- "unsubscribedFromEmails": false,
- "unsubscribedFromCalls": false,
- "custom_prop1": "custom_value1",
- "custom_prop2": 123,
- "custom_prop3": false,
- "createdAt": "2022-04-27T13:56:13.012Z"
- },
- "name": "New User",
- "companies": [
- {
- "company_id": "company_123",
- "remove": true
- }
- ]
- },
- "JSON_ARRAY": {},
- "XML": {},
- "FORM": {}
- },
- "files": {},
- "userId": "user_1234"
- },
- "statusCode": 200
- }
- ]
- }
- }
- },
- {
- "name": "custify",
- "description": "Identify Call without userId and email and anoymousId",
- "feature": "processor",
- "module": "destination",
- "version": "v0",
- "input": {
- "request": {
- "body": [
- {
- "destination": {
- "Config": {
- "apiKey": "apiKey_key_test_001",
- "sendAnonymousId": false
- },
- "ID": "custify-1234"
- },
- "message": {
- "type": "identify",
- "context": {
- "traits": {
- "firstName": "New",
- "lastName": "User",
- "phone": 9830311522,
- "sessionCount": 23,
- "unsubscribedFromEmails": false,
- "unsubscribedFromCalls": false,
- "signed_up_at": "2022-04-27T13:56:13.012Z",
- "custom_prop1": "custom_value1",
- "custom_prop2": 123,
- "custom_prop3": false,
- "custom_prop4": {
- "test": "test"
- },
- "custom_prop5": [
- 1,
- 3,
- 4
- ],
- "createdAt": "2022-04-27T13:56:13.012Z",
- "company": {
- "id": "company_123",
- "remove": true
- }
- }
- },
- "timestamp": "2022-04-27T13:56:13.012Z",
- "rudderId": "553b5522-c575-40a7-8072-9741c5f9a647",
- "messageId": "831f1fa5-de84-4f22-880a-4c3f23fc3f04"
- }
- }
- ]
- }
- },
- "output": {
- "response": {
- "status": 200,
- "body": [
- {
- "error": "Email or userId is mandatory",
- "statTags": {
- "destType": "CUSTIFY",
- "errorCategory": "dataValidation",
- "errorType": "instrumentation",
- "feature": "processor",
- "implementation": "native",
- "module": "destination"
- },
- "statusCode": 400
- }
- ]
- }
- }
- },
- {
- "name": "custify",
- "description": "Identify Call without userId and email and sendAnonymous is false",
- "feature": "processor",
- "module": "destination",
- "version": "v0",
- "input": {
- "request": {
- "body": [
- {
- "destination": {
- "Config": {
- "apiKey": "apiKey_key_test_001",
- "sendAnonymousId": false
- },
- "ID": "custify-1234"
- },
- "message": {
- "type": "identify",
- "context": {
- "traits": {
- "firstName": "New",
- "lastName": "User",
- "phone": 9830311522,
- "sessionCount": 23,
- "unsubscribedFromEmails": false,
- "unsubscribedFromCalls": false,
- "signed_up_at": "2022-04-27T13:56:13.012Z",
- "custom_prop1": "custom_value1",
- "custom_prop2": 123,
- "custom_prop3": false,
- "custom_prop4": {
- "test": "test"
- },
- "custom_prop5": [
- 1,
- 3,
- 4
- ],
- "createdAt": "2022-04-27T13:56:13.012Z",
- "company": {
- "id": "company_123",
- "remove": true
- }
- }
- },
- "anonymousId": "bf412108-0357-4330-b119-7305e767823c",
- "timestamp": "2022-04-27T13:56:13.012Z",
- "rudderId": "553b5522-c575-40a7-8072-9741c5f9a647",
- "messageId": "831f1fa5-de84-4f22-880a-4c3f23fc3f04"
- }
- }
- ]
- }
- },
- "output": {
- "response": {
- "status": 200,
- "body": [
- {
- "error": "Email or userId is mandatory",
- "statTags": {
- "destType": "CUSTIFY",
- "errorCategory": "dataValidation",
- "errorType": "instrumentation",
- "feature": "processor",
- "implementation": "native",
- "module": "destination"
- },
- "statusCode": 400
- }
- ]
- }
- }
- },
- {
- "name": "custify",
- "description": "Identify Call without userId and email and sendAnonymous is true",
- "feature": "processor",
- "module": "destination",
- "version": "v0",
- "input": {
- "request": {
- "body": [
- {
- "destination": {
- "Config": {
- "apiKey": "apiKey_key_test_001",
- "sendAnonymousId": true
- },
- "ID": "custify-1234"
- },
- "message": {
- "type": "identify",
- "context": {
- "traits": {
- "firstName": "New",
- "lastName": "User",
- "phone": 9830311522,
- "sessionCount": 23,
- "unsubscribedFromEmails": false,
- "unsubscribedFromCalls": false,
- "signed_up_at": "2022-04-27T13:56:13.012Z",
- "custom_prop1": "custom_value1",
- "custom_prop2": 123,
- "custom_prop3": false,
- "custom_prop4": {
- "test": "test"
- },
- "custom_prop5": [
- 1,
- 3,
- 4
- ],
- "createdAt": "2022-04-27T13:56:13.012Z",
- "company": {
- "id": "company_123",
- "remove": true
- }
- }
- },
- "anonymousId": "bf412108-0357-4330-b119-7305e767823c",
- "timestamp": "2022-04-27T13:56:13.012Z",
- "rudderId": "553b5522-c575-40a7-8072-9741c5f9a647",
- "messageId": "831f1fa5-de84-4f22-880a-4c3f23fc3f04"
- }
- }
- ]
- }
- },
- "output": {
- "response": {
- "status": 200,
- "body": [
- {
- "output": {
- "version": "1",
- "type": "REST",
- "method": "POST",
- "endpoint": "https://api.custify.com/people",
- "headers": {
- "Content-Type": "application/json",
- "Authorization": "Bearer apiKey_key_test_001",
- "Accept": "application/json"
- },
- "params": {},
- "body": {
- "JSON": {
- "phone": 9830311522,
- "session_count": 23,
- "unsubscribed_from_emails": false,
- "unsubscribed_from_calls": false,
- "signed_up_at": "2022-04-27T13:56:13.012Z",
- "custom_attributes": {
- "firstName": "New",
- "lastName": "User",
- "sessionCount": 23,
- "unsubscribedFromEmails": false,
- "unsubscribedFromCalls": false,
- "custom_prop1": "custom_value1",
- "custom_prop2": 123,
- "custom_prop3": false,
- "createdAt": "2022-04-27T13:56:13.012Z"
- },
- "user_id": "bf412108-0357-4330-b119-7305e767823c",
- "name": "New User",
- "companies": [
- {
- "company_id": "company_123",
- "remove": true
- }
- ]
- },
- "JSON_ARRAY": {},
- "XML": {},
- "FORM": {}
- },
- "files": {},
- "userId": "bf412108-0357-4330-b119-7305e767823c"
- },
- "statusCode": 200
- }
- ]
- }
- }
- },
- {
- "name": "custify",
- "description": "Track call with all properties",
- "feature": "processor",
- "module": "destination",
- "version": "v0",
- "input": {
- "request": {
- "body": [
- {
- "destination": {
- "Config": {
- "apiKey": "apiKey_key_test_001",
- "sendAnonymousId": false
- },
- "ID": "custify-1234"
- },
- "message": {
- "type": "track",
- "event": "Order Completed Version 2",
- "sentAt": "2021-08-26T14:16:47.321Z",
- "userId": "user_111",
- "context": {
- "library": {
- "name": "analytics-node",
- "version": "1.0.3"
- },
- "traits": {
- "email": "user111@gmail.com"
- },
- "page": {
- "url": "https://www.website.com/product/path"
- }
- },
- "rudderId": "70612f39-0607-45bb-8236-bf0995fde4fa",
- "_metadata": {
- "nodeVersion": "10.24.1"
- },
- "messageId": "node-84952e4eb9c6debbda735c49d08a8b31-fcbfed6a-38cf-42c5-881c-f590f59311b1",
- "properties": {
- "product": "Cube",
- "revenue": 9002,
- "organization_id": "company_123"
- },
- "originalTimestamp": "2021-08-26T14:16:47.317Z"
- }
- }
- ]
- }
- },
- "output": {
- "response": {
- "status": 200,
- "body": [
- {
- "output": {
- "version": "1",
- "type": "REST",
- "method": "POST",
- "endpoint": "https://api.custify.com/event",
- "headers": {
- "Content-Type": "application/json",
- "Authorization": "Bearer apiKey_key_test_001",
- "Accept": "application/json"
- },
- "params": {},
- "body": {
- "JSON": {
- "user_id": "user_111",
- "email": "user111@gmail.com",
- "name": "Order Completed Version 2",
- "created_at": "2021-08-26T14:16:47.317Z",
- "company_id": "company_123",
- "metadata": {
- "product": "Cube",
- "revenue": 9002,
- "organization_id": "company_123",
- "user_id": "user_111"
- }
- },
- "JSON_ARRAY": {},
- "XML": {},
- "FORM": {}
- },
- "files": {},
- "userId": "user_111"
- },
- "statusCode": 200
- }
- ]
- }
- }
- },
- {
- "name": "custify",
- "description": "Group call with all fields success scenario",
- "feature": "processor",
- "module": "destination",
- "version": "v0",
- "input": {
- "request": {
- "body": [
- {
- "destination": {
- "Config": {
- "apiKey": "apiKey_key_test_001",
- "sendAnonymousId": false
- },
- "ID": "custify-1234"
- },
- "message": {
- "type": "group",
- "userId": "user_111",
- "groupId": "company_222",
- "traits": {
- "name": "Absolute Company",
- "industry": " Absolute",
- "employees": 121,
- "size": 100,
- "website": "www.rudder.com",
- "plan": "GOLD",
- "monthly_revenue": 8000,
- "churned": false,
- "test_att1": "test_att_val1"
- },
- "context": {
- "traits": {
- "firstName": "Absolute",
- "lastName": "User",
- "phone": 9830311522,
- "session_count": 23,
- "signed_up_at": "2022-04-27T13:56:13.012Z",
- "custom_prop1": "custom_value1",
- "custom_prop2": 123,
- "custom_prop3": false,
- "custom_prop4": {
- "test": "test"
- },
- "custom_prop5": [
- 1,
- 3,
- 4
- ],
- "createdAt": "2022-04-27T13:56:13.012Z"
- },
- "ip": "14.5.67.21",
- "library": {
- "name": "http"
- }
- },
- "timestamp": "2020-01-21T00:21:34.208Z"
- }
- }
- ]
- }
- },
- "output": {
- "response": {
- "status": 200,
- "body": [
- {
- "output": {
- "version": "1",
- "type": "REST",
- "method": "POST",
- "endpoint": "https://api.custify.com/people",
- "headers": {
- "Content-Type": "application/json",
- "Authorization": "Bearer apiKey_key_test_001",
- "Accept": "application/json"
- },
- "params": {},
- "body": {
- "JSON": {
- "user_id": "user_111",
- "phone": 9830311522,
- "signed_up_at": "2020-01-21T00:21:34.208Z",
- "custom_attributes": {
- "firstName": "Absolute",
- "lastName": "User",
- "custom_prop1": "custom_value1",
- "custom_prop2": 123,
- "custom_prop3": false,
- "createdAt": "2022-04-27T13:56:13.012Z"
- },
- "name": "Absolute User",
- "companies": [
- {
- "company_id": "company_222",
- "remove": false
- }
- ]
- },
- "JSON_ARRAY": {},
- "XML": {},
- "FORM": {}
- },
- "files": {},
- "userId": "user_111"
- },
- "statusCode": 200
- }
- ]
- }
- }
- }
-]
+ {
+ name: 'custify',
+ description: 'Identify Call with all traits and adding to company',
+ feature: 'processor',
+ module: 'destination',
+ version: 'v0',
+ input: {
+ request: {
+ body: [
+ {
+ destination: {
+ Config: {
+ apiKey: 'apiKey_key_test_001',
+ sendAnonymousId: false,
+ },
+ ID: 'custify-1234',
+ },
+ message: {
+ type: 'identify',
+ userId: 'user_1234',
+ context: {
+ traits: {
+ email: 'user111@gmail.com',
+ firstName: 'New',
+ lastName: 'User',
+ phone: 9830311522,
+ sessionCount: 23,
+ unsubscribedFromEmails: false,
+ unsubscribedFromCalls: false,
+ signed_up_at: '2022-04-27T13:56:13.012Z',
+ custom_prop1: 'custom_value1',
+ custom_prop2: 123,
+ custom_prop3: false,
+ custom_prop4: {
+ test: 'test',
+ },
+ custom_prop5: [1, 3, 4],
+ createdAt: '2022-04-27T13:56:13.012Z',
+ company: {
+ id: 'company_123',
+ },
+ },
+ },
+ timestamp: '2022-04-27T13:56:13.012Z',
+ rudderId: '553b5522-c575-40a7-8072-9741c5f9a647',
+ messageId: '831f1fa5-de84-4f22-880a-4c3f23fc3f04',
+ anonymousId: 'bf412108-0357-4330-b119-7305e767823c',
+ },
+ },
+ ],
+ },
+ },
+ output: {
+ response: {
+ status: 200,
+ body: [
+ {
+ output: {
+ version: '1',
+ type: 'REST',
+ method: 'POST',
+ endpoint: 'https://api.custify.com/people',
+ headers: {
+ 'Content-Type': 'application/json',
+ Authorization: 'Bearer apiKey_key_test_001',
+ Accept: 'application/json',
+ },
+ params: {},
+ body: {
+ JSON: {
+ user_id: 'user_1234',
+ email: 'user111@gmail.com',
+ phone: 9830311522,
+ session_count: 23,
+ unsubscribed_from_emails: false,
+ unsubscribed_from_calls: false,
+ signed_up_at: '2022-04-27T13:56:13.012Z',
+ custom_attributes: {
+ firstName: 'New',
+ lastName: 'User',
+ sessionCount: 23,
+ unsubscribedFromEmails: false,
+ unsubscribedFromCalls: false,
+ custom_prop1: 'custom_value1',
+ custom_prop2: 123,
+ custom_prop3: false,
+ createdAt: '2022-04-27T13:56:13.012Z',
+ },
+ name: 'New User',
+ companies: [
+ {
+ company_id: 'company_123',
+ remove: false,
+ },
+ ],
+ },
+ JSON_ARRAY: {},
+ XML: {},
+ FORM: {},
+ },
+ files: {},
+ userId: 'user_1234',
+ },
+ statusCode: 200,
+ },
+ ],
+ },
+ },
+ },
+ {
+ name: 'custify',
+ description: 'Identify Call removing the user from company',
+ feature: 'processor',
+ module: 'destination',
+ version: 'v0',
+ input: {
+ request: {
+ body: [
+ {
+ destination: {
+ Config: {
+ apiKey: 'apiKey_key_test_001',
+ sendAnonymousId: false,
+ },
+ ID: 'custify-1234',
+ },
+ message: {
+ type: 'identify',
+ userId: 'user_1234',
+ context: {
+ traits: {
+ email: 'user111@gmail.com',
+ firstName: 'New',
+ lastName: 'User',
+ phone: 9830311522,
+ sessionCount: 23,
+ unsubscribedFromEmails: false,
+ unsubscribedFromCalls: false,
+ signed_up_at: '2022-04-27T13:56:13.012Z',
+ custom_prop1: 'custom_value1',
+ custom_prop2: 123,
+ custom_prop3: false,
+ custom_prop4: {
+ test: 'test',
+ },
+ custom_prop5: [1, 3, 4],
+ createdAt: '2022-04-27T13:56:13.012Z',
+ company: {
+ id: 'company_123',
+ remove: true,
+ },
+ },
+ },
+ timestamp: '2022-04-27T13:56:13.012Z',
+ rudderId: '553b5522-c575-40a7-8072-9741c5f9a647',
+ messageId: '831f1fa5-de84-4f22-880a-4c3f23fc3f04',
+ anonymousId: 'bf412108-0357-4330-b119-7305e767823c',
+ },
+ },
+ ],
+ },
+ },
+ output: {
+ response: {
+ status: 200,
+ body: [
+ {
+ output: {
+ version: '1',
+ type: 'REST',
+ method: 'POST',
+ endpoint: 'https://api.custify.com/people',
+ headers: {
+ 'Content-Type': 'application/json',
+ Authorization: 'Bearer apiKey_key_test_001',
+ Accept: 'application/json',
+ },
+ params: {},
+ body: {
+ JSON: {
+ user_id: 'user_1234',
+ email: 'user111@gmail.com',
+ phone: 9830311522,
+ session_count: 23,
+ unsubscribed_from_emails: false,
+ unsubscribed_from_calls: false,
+ signed_up_at: '2022-04-27T13:56:13.012Z',
+ custom_attributes: {
+ firstName: 'New',
+ lastName: 'User',
+ sessionCount: 23,
+ unsubscribedFromEmails: false,
+ unsubscribedFromCalls: false,
+ custom_prop1: 'custom_value1',
+ custom_prop2: 123,
+ custom_prop3: false,
+ createdAt: '2022-04-27T13:56:13.012Z',
+ },
+ name: 'New User',
+ companies: [
+ {
+ company_id: 'company_123',
+ remove: true,
+ },
+ ],
+ },
+ JSON_ARRAY: {},
+ XML: {},
+ FORM: {},
+ },
+ files: {},
+ userId: 'user_1234',
+ },
+ statusCode: 200,
+ },
+ ],
+ },
+ },
+ },
+ {
+ name: 'custify',
+ description: 'Identify Call without userId and email and anoymousId',
+ feature: 'processor',
+ module: 'destination',
+ version: 'v0',
+ input: {
+ request: {
+ body: [
+ {
+ destination: {
+ Config: {
+ apiKey: 'apiKey_key_test_001',
+ sendAnonymousId: false,
+ },
+ ID: 'custify-1234',
+ },
+ message: {
+ type: 'identify',
+ context: {
+ traits: {
+ firstName: 'New',
+ lastName: 'User',
+ phone: 9830311522,
+ sessionCount: 23,
+ unsubscribedFromEmails: false,
+ unsubscribedFromCalls: false,
+ signed_up_at: '2022-04-27T13:56:13.012Z',
+ custom_prop1: 'custom_value1',
+ custom_prop2: 123,
+ custom_prop3: false,
+ custom_prop4: {
+ test: 'test',
+ },
+ custom_prop5: [1, 3, 4],
+ createdAt: '2022-04-27T13:56:13.012Z',
+ company: {
+ id: 'company_123',
+ remove: true,
+ },
+ },
+ },
+ timestamp: '2022-04-27T13:56:13.012Z',
+ rudderId: '553b5522-c575-40a7-8072-9741c5f9a647',
+ messageId: '831f1fa5-de84-4f22-880a-4c3f23fc3f04',
+ },
+ },
+ ],
+ },
+ },
+ output: {
+ response: {
+ status: 200,
+ body: [
+ {
+ error: 'Email or userId is mandatory',
+ statTags: {
+ destType: 'CUSTIFY',
+ errorCategory: 'dataValidation',
+ errorType: 'instrumentation',
+ feature: 'processor',
+ implementation: 'native',
+ module: 'destination',
+ },
+ statusCode: 400,
+ },
+ ],
+ },
+ },
+ },
+ {
+ name: 'custify',
+ description: 'Identify Call without userId and email and sendAnonymous is false',
+ feature: 'processor',
+ module: 'destination',
+ version: 'v0',
+ input: {
+ request: {
+ body: [
+ {
+ destination: {
+ Config: {
+ apiKey: 'apiKey_key_test_001',
+ sendAnonymousId: false,
+ },
+ ID: 'custify-1234',
+ },
+ message: {
+ type: 'identify',
+ context: {
+ traits: {
+ firstName: 'New',
+ lastName: 'User',
+ phone: 9830311522,
+ sessionCount: 23,
+ unsubscribedFromEmails: false,
+ unsubscribedFromCalls: false,
+ signed_up_at: '2022-04-27T13:56:13.012Z',
+ custom_prop1: 'custom_value1',
+ custom_prop2: 123,
+ custom_prop3: false,
+ custom_prop4: {
+ test: 'test',
+ },
+ custom_prop5: [1, 3, 4],
+ createdAt: '2022-04-27T13:56:13.012Z',
+ company: {
+ id: 'company_123',
+ remove: true,
+ },
+ },
+ },
+ anonymousId: 'bf412108-0357-4330-b119-7305e767823c',
+ timestamp: '2022-04-27T13:56:13.012Z',
+ rudderId: '553b5522-c575-40a7-8072-9741c5f9a647',
+ messageId: '831f1fa5-de84-4f22-880a-4c3f23fc3f04',
+ },
+ },
+ ],
+ },
+ },
+ output: {
+ response: {
+ status: 200,
+ body: [
+ {
+ error: 'Email or userId is mandatory',
+ statTags: {
+ destType: 'CUSTIFY',
+ errorCategory: 'dataValidation',
+ errorType: 'instrumentation',
+ feature: 'processor',
+ implementation: 'native',
+ module: 'destination',
+ },
+ statusCode: 400,
+ },
+ ],
+ },
+ },
+ },
+ {
+ name: 'custify',
+ description: 'Identify Call without userId and email and sendAnonymous is true',
+ feature: 'processor',
+ module: 'destination',
+ version: 'v0',
+ input: {
+ request: {
+ body: [
+ {
+ destination: {
+ Config: {
+ apiKey: 'apiKey_key_test_001',
+ sendAnonymousId: true,
+ },
+ ID: 'custify-1234',
+ },
+ message: {
+ type: 'identify',
+ context: {
+ traits: {
+ firstName: 'New',
+ lastName: 'User',
+ phone: 9830311522,
+ sessionCount: 23,
+ unsubscribedFromEmails: false,
+ unsubscribedFromCalls: false,
+ signed_up_at: '2022-04-27T13:56:13.012Z',
+ custom_prop1: 'custom_value1',
+ custom_prop2: 123,
+ custom_prop3: false,
+ custom_prop4: {
+ test: 'test',
+ },
+ custom_prop5: [1, 3, 4],
+ createdAt: '2022-04-27T13:56:13.012Z',
+ company: {
+ id: 'company_123',
+ remove: true,
+ },
+ },
+ },
+ anonymousId: 'bf412108-0357-4330-b119-7305e767823c',
+ timestamp: '2022-04-27T13:56:13.012Z',
+ rudderId: '553b5522-c575-40a7-8072-9741c5f9a647',
+ messageId: '831f1fa5-de84-4f22-880a-4c3f23fc3f04',
+ },
+ },
+ ],
+ },
+ },
+ output: {
+ response: {
+ status: 200,
+ body: [
+ {
+ output: {
+ version: '1',
+ type: 'REST',
+ method: 'POST',
+ endpoint: 'https://api.custify.com/people',
+ headers: {
+ 'Content-Type': 'application/json',
+ Authorization: 'Bearer apiKey_key_test_001',
+ Accept: 'application/json',
+ },
+ params: {},
+ body: {
+ JSON: {
+ phone: 9830311522,
+ session_count: 23,
+ unsubscribed_from_emails: false,
+ unsubscribed_from_calls: false,
+ signed_up_at: '2022-04-27T13:56:13.012Z',
+ custom_attributes: {
+ firstName: 'New',
+ lastName: 'User',
+ sessionCount: 23,
+ unsubscribedFromEmails: false,
+ unsubscribedFromCalls: false,
+ custom_prop1: 'custom_value1',
+ custom_prop2: 123,
+ custom_prop3: false,
+ createdAt: '2022-04-27T13:56:13.012Z',
+ },
+ user_id: 'bf412108-0357-4330-b119-7305e767823c',
+ name: 'New User',
+ companies: [
+ {
+ company_id: 'company_123',
+ remove: true,
+ },
+ ],
+ },
+ JSON_ARRAY: {},
+ XML: {},
+ FORM: {},
+ },
+ files: {},
+ userId: 'bf412108-0357-4330-b119-7305e767823c',
+ },
+ statusCode: 200,
+ },
+ ],
+ },
+ },
+ },
+ {
+ name: 'custify',
+ description: 'Track call with all properties',
+ feature: 'processor',
+ module: 'destination',
+ version: 'v0',
+ input: {
+ request: {
+ body: [
+ {
+ destination: {
+ Config: {
+ apiKey: 'apiKey_key_test_001',
+ sendAnonymousId: false,
+ },
+ ID: 'custify-1234',
+ },
+ message: {
+ type: 'track',
+ event: 'Order Completed Version 2',
+ sentAt: '2021-08-26T14:16:47.321Z',
+ userId: 'user_111',
+ context: {
+ library: {
+ name: 'analytics-node',
+ version: '1.0.3',
+ },
+ traits: {
+ email: 'user111@gmail.com',
+ },
+ page: {
+ url: 'https://www.website.com/product/path',
+ },
+ },
+ rudderId: '70612f39-0607-45bb-8236-bf0995fde4fa',
+ _metadata: {
+ nodeVersion: '10.24.1',
+ },
+ messageId:
+ 'node-84952e4eb9c6debbda735c49d08a8b31-fcbfed6a-38cf-42c5-881c-f590f59311b1',
+ properties: {
+ product: 'Cube',
+ revenue: 9002,
+ organization_id: 'company_123',
+ },
+ originalTimestamp: '2021-08-26T14:16:47.317Z',
+ },
+ },
+ ],
+ },
+ },
+ output: {
+ response: {
+ status: 200,
+ body: [
+ {
+ output: {
+ version: '1',
+ type: 'REST',
+ method: 'POST',
+ endpoint: 'https://api.custify.com/event',
+ headers: {
+ 'Content-Type': 'application/json',
+ Authorization: 'Bearer apiKey_key_test_001',
+ Accept: 'application/json',
+ },
+ params: {},
+ body: {
+ JSON: {
+ user_id: 'user_111',
+ email: 'user111@gmail.com',
+ name: 'Order Completed Version 2',
+ created_at: '2021-08-26T14:16:47.317Z',
+ company_id: 'company_123',
+ metadata: {
+ product: 'Cube',
+ revenue: 9002,
+ organization_id: 'company_123',
+ user_id: 'user_111',
+ },
+ },
+ JSON_ARRAY: {},
+ XML: {},
+ FORM: {},
+ },
+ files: {},
+ userId: 'user_111',
+ },
+ statusCode: 200,
+ },
+ ],
+ },
+ },
+ },
+ {
+ name: 'custify',
+ description: 'Group call with all fields success scenario',
+ feature: 'processor',
+ module: 'destination',
+ version: 'v0',
+ input: {
+ request: {
+ body: [
+ {
+ destination: {
+ Config: {
+ apiKey: 'apiKey_key_test_001',
+ sendAnonymousId: false,
+ },
+ ID: 'custify-1234',
+ },
+ message: {
+ type: 'group',
+ userId: 'user_111',
+ groupId: 'company_222',
+ traits: {
+ name: 'Absolute Company',
+ industry: ' Absolute',
+ employees: 121,
+ size: 100,
+ website: 'www.rudder.com',
+ plan: 'GOLD',
+ monthly_revenue: 8000,
+ churned: false,
+ test_att1: 'test_att_val1',
+ },
+ context: {
+ traits: {
+ firstName: 'Absolute',
+ lastName: 'User',
+ phone: 9830311522,
+ session_count: 23,
+ signed_up_at: '2022-04-27T13:56:13.012Z',
+ custom_prop1: 'custom_value1',
+ custom_prop2: 123,
+ custom_prop3: false,
+ custom_prop4: {
+ test: 'test',
+ },
+ custom_prop5: [1, 3, 4],
+ createdAt: '2022-04-27T13:56:13.012Z',
+ },
+ ip: '14.5.67.21',
+ library: {
+ name: 'http',
+ },
+ },
+ timestamp: '2020-01-21T00:21:34.208Z',
+ },
+ },
+ ],
+ },
+ },
+ output: {
+ response: {
+ status: 200,
+ body: [
+ {
+ output: {
+ version: '1',
+ type: 'REST',
+ method: 'POST',
+ endpoint: 'https://api.custify.com/people',
+ headers: {
+ 'Content-Type': 'application/json',
+ Authorization: 'Bearer apiKey_key_test_001',
+ Accept: 'application/json',
+ },
+ params: {},
+ body: {
+ JSON: {
+ user_id: 'user_111',
+ phone: 9830311522,
+ signed_up_at: '2020-01-21T00:21:34.208Z',
+ custom_attributes: {
+ firstName: 'Absolute',
+ lastName: 'User',
+ custom_prop1: 'custom_value1',
+ custom_prop2: 123,
+ custom_prop3: false,
+ createdAt: '2022-04-27T13:56:13.012Z',
+ },
+ name: 'Absolute User',
+ companies: [
+ {
+ company_id: 'company_222',
+ remove: false,
+ },
+ ],
+ },
+ JSON_ARRAY: {},
+ XML: {},
+ FORM: {},
+ },
+ files: {},
+ userId: 'user_111',
+ },
+ statusCode: 200,
+ },
+ ],
+ },
+ },
+ },
+];
diff --git a/test/integrations/destinations/delighted/processor/data.ts b/test/integrations/destinations/delighted/processor/data.ts
index 3596d7ef80..7a5ad7de9d 100644
--- a/test/integrations/destinations/delighted/processor/data.ts
+++ b/test/integrations/destinations/delighted/processor/data.ts
@@ -1,937 +1,947 @@
export const data = [
- {
- "name": "delighted",
- "description": "Test 0",
- "feature": "processor",
- "module": "destination",
- "version": "v0",
- "input": {
- "request": {
- "body": [
- {
- "destination": {
- "Config": {
- "apiKey": "dummyApiKey",
- "channel": "email",
- "delay": 0,
- "eventNamesSettings": [
- {
- "event": ""
- }
- ]
- }
- },
- "message": {
- "channel": "web",
- "context": {
- "app": {
- "build": "1.0.0",
- "name": "RudderLabs JavaScript SDK",
- "namespace": "com.rudderlabs.javascript",
- "version": "1.0.0"
- },
- "library": {
- "name": "RudderLabs JavaScript SDK",
- "version": "1.0.0"
- },
- "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36",
- "locale": "en-US",
- "ip": "0.0.0.0",
- "os": {
- "name": "",
- "version": ""
- },
- "screen": {
- "density": 2
- }
- },
- "messageId": "84e26acc-56a5-4835-8233-591137fca468",
- "session_id": "3049dc4c-5a95-4ccd-a3e7-d74a7e411f22",
- "originalTimestamp": "2019-10-14T09:03:17.562Z",
- "type": "identify",
- "userId": "abc@123.com",
- "traits": {
- "firstName": "James",
- "lastName": "Doe",
- "phone": "+91237416221",
- "last_sent_at": "1626698350"
- },
- "integrations": {
- "All": true
- },
- "sentAt": "2019-10-14T09:03:22.563Z"
- }
- }
- ]
- }
- },
- "output": {
- "response": {
- "status": 200,
- "body": [
- {
- "output": {
- "version": "1",
- "type": "REST",
- "method": "POST",
- "endpoint": "https://api.delighted.com/v1/people.json",
- "headers": {
- "Authorization": "Basic ZHVtbXlBcGlLZXk=",
- "Content-Type": "application/json"
- },
- "params": {},
- "body": {
- "XML": {},
- "JSON_ARRAY": {},
- "FORM": {},
- "JSON": {
- "email": "abc@123.com",
- "send": false,
- "channel": "email",
- "delay": 0,
- "name": "James Doe",
- "phone_number": "+91237416221",
- "last_sent_at": "1626698350"
- }
- },
- "files": {},
- "userId": ""
- },
- "statusCode": 200
- }
- ]
- }
- }
- },
- {
- "name": "delighted",
- "description": "Test 1",
- "feature": "processor",
- "module": "destination",
- "version": "v0",
- "input": {
- "request": {
- "body": [
- {
- "destination": {
- "Config": {
- "apiKey": "dummyApiKey",
- "channel": "email",
- "delay": 0,
- "eventNamesSettings": [
- {
- "event": ""
- }
- ]
- }
- },
- "message": {
- "channel": "web",
- "context": {
- "app": {
- "build": "1.0.0",
- "name": "RudderLabs JavaScript SDK",
- "namespace": "com.rudderlabs.javascript",
- "version": "1.0.0"
- },
- "library": {
- "name": "RudderLabs JavaScript SDK",
- "version": "1.0.0"
- },
- "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36",
- "locale": "en-US",
- "ip": "0.0.0.0",
- "os": {
- "name": "",
- "version": ""
- },
- "screen": {
- "density": 2
- }
- },
- "messageId": "84e26acc-56a5-4835-8233-591137fca468",
- "session_id": "3049dc4c-5a95-4ccd-a3e7-d74a7e411f22",
- "originalTimestamp": "2019-10-14T09:03:17.562Z",
- "type": "alias",
- "previousId": "123@abc.com",
- "userId": "abc@123.com",
- "integrations": {
- "All": true
- },
- "sentAt": "2019-10-14T09:03:22.563Z"
- }
- }
- ]
- }
- },
- "output": {
- "response": {
- "status": 200,
- "body": [
- {
- "output": {
- "body": {
- "XML": {},
- "JSON_ARRAY": {},
- "FORM": {},
- "JSON": {
- "email": "123@abc.com",
- "email_update": "abc@123.com"
- }
- },
- "type": "REST",
- "files": {},
- "method": "POST",
- "params": {},
- "headers": {
- "Authorization": "Basic ZHVtbXlBcGlLZXk=",
- "Content-Type": "application/json"
- },
- "version": "1",
- "endpoint": "https://api.delighted.com/v1/people.json",
- "userId": ""
- },
- "statusCode": 200
- }
- ]
- }
- }
- },
- {
- "name": "delighted",
- "description": "Test 2",
- "feature": "processor",
- "module": "destination",
- "version": "v0",
- "input": {
- "request": {
- "body": [
- {
- "destination": {
- "Config": {
- "apiKey": "dummyApiKey",
- "channel": "email",
- "delay": 0,
- "eventNamesSettings": [
- {
- "event": "Product Reviewed"
- }
- ]
- }
- },
- "message": {
- "channel": "web",
- "context": {
- "app": {
- "build": "1.0.0",
- "name": "RudderLabs JavaScript SDK",
- "namespace": "com.rudderlabs.javascript",
- "version": "1.0.0"
- },
- "library": {
- "name": "RudderLabs JavaScript SDK",
- "version": "1.0.0"
- },
- "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36",
- "locale": "en-US",
- "ip": "0.0.0.0",
- "os": {
- "name": "",
- "version": ""
- },
- "screen": {
- "density": 2
- }
- },
- "messageId": "84e26acc-56a5-4835-8233-591137fca468",
- "session_id": "3049dc4c-5a95-4ccd-a3e7-d74a7e411f22",
- "originalTimestamp": "2019-10-14T09:03:17.562Z",
- "type": "track",
- "userId": "identified_user@email.com",
- "event": "Product Reviewed",
- "properties": {
- "review_id": "12345",
- "product_id": "123",
- "rating": 3,
- "review_body": "Average product, expected much more."
- },
- "integrations": {
- "All": true
- },
- "sentAt": "2019-10-14T09:03:22.563Z"
- }
- }
- ]
- }
- },
- "output": {
- "response": {
- "status": 200,
- "body": [
- {
- "output": {
- "body": {
- "XML": {},
- "JSON_ARRAY": {},
- "FORM": {},
- "JSON": {
- "properties": {
- "review_id": "12345",
- "product_id": "123",
- "rating": 3,
- "review_body": "Average product, expected much more."
- },
- "send": true,
- "channel": "email",
- "delay": 0,
- "email": "identified_user@email.com"
- }
- },
- "type": "REST",
- "files": {},
- "method": "POST",
- "params": {},
- "headers": {
- "Authorization": "Basic ZHVtbXlBcGlLZXk=",
- "Content-Type": "application/json"
- },
- "version": "1",
- "endpoint": "https://api.delighted.com/v1/people.json",
- "userId": ""
- },
- "statusCode": 200
- }
- ]
- }
- }
- },
- {
- "name": "delighted",
- "description": "Test 3",
- "feature": "processor",
- "module": "destination",
- "version": "v0",
- "input": {
- "request": {
- "body": [
- {
- "destination": {
- "Config": {
- "apiKey": "dummyApiKeyforfailure",
- "channel": "email",
- "delay": 0,
- "eventNamesSettings": [
- {
- "event": "Product Reviewed"
- }
- ]
- }
- },
- "message": {
- "channel": "web",
- "context": {
- "app": {
- "build": "1.0.0",
- "name": "RudderLabs JavaScript SDK",
- "namespace": "com.rudderlabs.javascript",
- "version": "1.0.0"
- },
- "library": {
- "name": "RudderLabs JavaScript SDK",
- "version": "1.0.0"
- },
- "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36",
- "locale": "en-US",
- "ip": "0.0.0.0",
- "os": {
- "name": "",
- "version": ""
- },
- "screen": {
- "density": 2
- }
- },
- "messageId": "84e26acc-56a5-4835-8233-591137fca468",
- "session_id": "3049dc4c-5a95-4ccd-a3e7-d74a7e411f22",
- "originalTimestamp": "2019-10-14T09:03:17.562Z",
- "type": "track",
- "userId": "unidentified_user@email.com",
- "event": "Product Reviewed",
- "properties": {
- "review_id": "12345",
- "product_id": "123",
- "rating": 3,
- "review_body": "Average product, expected much more."
- },
- "integrations": {
- "All": true
- },
- "sentAt": "2019-10-14T09:03:22.563Z"
- }
- }
- ]
- }
- },
- "output": {
- "response": {
- "status": 200,
- "body": [
- {
- "error": "user unidentified_user@email.com doesn't exist",
- "statTags": {
- "destType": "DELIGHTED",
- "errorCategory": "network",
- "errorType": "aborted",
- "feature": "processor",
- "implementation": "native",
- "meta": "instrumentation",
- "module": "destination"
- },
- "statusCode": 400
- }
- ]
- }
- }
- },
- {
- "name": "delighted",
- "description": "Test 4",
- "feature": "processor",
- "module": "destination",
- "version": "v0",
- "input": {
- "request": {
- "body": [
- {
- "destination": {
- "Config": {
- "apiKey": "dummyApiKey",
- "channel": "email",
- "delay": 0,
- "eventNamesSettings": [
- {
- "event": ""
- }
- ]
- }
- },
- "message": {
- "channel": "web",
- "context": {
- "app": {
- "build": "1.0.0",
- "name": "RudderLabs JavaScript SDK",
- "namespace": "com.rudderlabs.javascript",
- "version": "1.0.0"
- },
- "library": {
- "name": "RudderLabs JavaScript SDK",
- "version": "1.0.0"
- },
- "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36",
- "locale": "en-US",
- "ip": "0.0.0.0",
- "os": {
- "name": "",
- "version": ""
- },
- "screen": {
- "density": 2
- }
- },
- "messageId": "84e26acc-56a5-4835-8233-591137fca468",
- "session_id": "3049dc4c-5a95-4ccd-a3e7-d74a7e411f22",
- "originalTimestamp": "2019-10-14T09:03:17.562Z",
- "type": "track",
- "userId": "identified_user@email.com",
- "event": "Product Reviewed",
- "properties": {
- "review_id": "12345",
- "product_id": "123",
- "rating": 3,
- "review_body": "Average product, expected much more."
- },
- "integrations": {
- "All": true
- },
- "sentAt": "2019-10-14T09:03:22.563Z"
- }
- }
- ]
- }
- },
- "output": {
- "response": {
- "status": 200,
- "body": [
- {
- "error": "Event is not configured on your Rudderstack Dashboard",
- "statTags": {
- "destType": "DELIGHTED",
- "errorCategory": "dataValidation",
- "errorType": "configuration",
- "feature": "processor",
- "implementation": "native",
- "module": "destination"
- },
- "statusCode": 400
- }
- ]
- }
- }
- },
- {
- "name": "delighted",
- "description": "Test 5",
- "feature": "processor",
- "module": "destination",
- "version": "v0",
- "input": {
- "request": {
- "body": [
- {
- "destination": {
- "Config": {
- "apiKey": "dummyApiKey",
- "channel": "email",
- "delay": 0,
- "eventNamesSettings": [
- {
- "event": "Product Reviewed"
- }
- ]
- }
- },
- "message": {
- "channel": "web",
- "context": {
- "app": {
- "build": "1.0.0",
- "name": "RudderLabs JavaScript SDK",
- "namespace": "com.rudderlabs.javascript",
- "version": "1.0.0"
- },
- "library": {
- "name": "RudderLabs JavaScript SDK",
- "version": "1.0.0"
- },
- "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36",
- "locale": "en-US",
- "ip": "0.0.0.0",
- "os": {
- "name": "",
- "version": ""
- },
- "screen": {
- "density": 2
- }
- },
- "messageId": "84e26acc-56a5-4835-8233-591137fca468",
- "session_id": "3049dc4c-5a95-4ccd-a3e7-d74a7e411f22",
- "originalTimestamp": "2019-10-14T09:03:17.562Z",
- "type": "track",
- "anonymousId": "identified_user@email.com",
- "event": "Product Reviewed",
- "properties": {
- "review_id": "12345",
- "product_id": "123",
- "rating": 3,
- "review_body": "Average product, expected much more."
- },
- "integrations": {
- "All": true
- },
- "sentAt": "2019-10-14T09:03:22.563Z"
- }
- }
- ]
- }
- },
- "output": {
- "response": {
- "status": 200,
- "body": [
- {
- "error": "userId is required.",
- "statTags": {
- "destType": "DELIGHTED",
- "errorCategory": "dataValidation",
- "errorType": "instrumentation",
- "feature": "processor",
- "implementation": "native",
- "module": "destination"
- },
- "statusCode": 400
- }
- ]
- }
- }
- },
- {
- "name": "delighted",
- "description": "Test 6",
- "feature": "processor",
- "module": "destination",
- "version": "v0",
- "input": {
- "request": {
- "body": [
- {
- "destination": {
- "Config": {
- "apiKey": "dummyApiKey",
- "channel": "email",
- "delay": 0,
- "eventNamesSettings": [
- {
- "event": ""
- }
- ]
- }
- },
- "message": {
- "channel": "web",
- "context": {
- "app": {
- "build": "1.0.0",
- "name": "RudderLabs JavaScript SDK",
- "namespace": "com.rudderlabs.javascript",
- "version": "1.0.0"
- },
- "library": {
- "name": "RudderLabs JavaScript SDK",
- "version": "1.0.0"
- },
- "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36",
- "locale": "en-US",
- "ip": "0.0.0.0",
- "os": {
- "name": "",
- "version": ""
- },
- "screen": {
- "density": 2
- }
- },
- "messageId": "84e26acc-56a5-4835-8233-591137fca468",
- "session_id": "3049dc4c-5a95-4ccd-a3e7-d74a7e411f22",
- "originalTimestamp": "2019-10-14T09:03:17.562Z",
- "type": "alias",
- "previousId": "123@abc.com",
- "integrations": {
- "All": true
- },
- "sentAt": "2019-10-14T09:03:22.563Z"
- }
- }
- ]
- }
- },
- "output": {
- "response": {
- "status": 200,
- "body": [
- {
- "error": "userId is required.",
- "statTags": {
- "destType": "DELIGHTED",
- "errorCategory": "dataValidation",
- "errorType": "instrumentation",
- "feature": "processor",
- "implementation": "native",
- "module": "destination"
- },
- "statusCode": 400
- }
- ]
- }
- }
- },
- {
- "name": "delighted",
- "description": "Test 7",
- "feature": "processor",
- "module": "destination",
- "version": "v0",
- "input": {
- "request": {
- "body": [
- {
- "destination": {
- "Config": {
- "apiKey": "dummyApiKey",
- "channel": "email",
- "delay": 0,
- "eventNamesSettings": [
- {
- "event": ""
- }
- ]
- }
- },
- "message": {
- "channel": "web",
- "context": {
- "app": {
- "build": "1.0.0",
- "name": "RudderLabs JavaScript SDK",
- "namespace": "com.rudderlabs.javascript",
- "version": "1.0.0"
- },
- "library": {
- "name": "RudderLabs JavaScript SDK",
- "version": "1.0.0"
- },
- "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36",
- "externalId": [
- {
- "id": "sms",
- "type": "delightedChannelType"
- }
- ],
- "locale": "en-US",
- "ip": "0.0.0.0",
- "os": {
- "name": "",
- "version": ""
- },
- "screen": {
- "density": 2
- }
- },
- "messageId": "84e26acc-56a5-4835-8233-591137fca468",
- "session_id": "3049dc4c-5a95-4ccd-a3e7-d74a7e411f22",
- "originalTimestamp": "2019-10-14T09:03:17.562Z",
- "type": "alias",
- "userId": "abc@123.com",
- "previousId": "123@abc.com",
- "integrations": {
- "All": true
- },
- "sentAt": "2019-10-14T09:03:22.563Z"
- }
- }
- ]
- }
- },
- "output": {
- "response": {
- "status": 200,
- "body": [
- {
- "error": "User Id and Previous Id should be of same type i.e. phone/sms",
- "statTags": {
- "destType": "DELIGHTED",
- "errorCategory": "dataValidation",
- "errorType": "instrumentation",
- "feature": "processor",
- "implementation": "native",
- "module": "destination"
- },
- "statusCode": 400
- }
- ]
- }
- }
- },
- {
- "name": "delighted",
- "description": "Test 8",
- "feature": "processor",
- "module": "destination",
- "version": "v0",
- "input": {
- "request": {
- "body": [
- {
- "destination": {
- "Config": {
- "apiKey": "dummyApiKey",
- "channel": "email",
- "delay": 0,
- "eventNamesSettings": [
- {
- "event": ""
- }
- ]
- }
- },
- "message": {
- "channel": "web",
- "context": {
- "app": {
- "build": "1.0.0",
- "name": "RudderLabs JavaScript SDK",
- "namespace": "com.rudderlabs.javascript",
- "version": "1.0.0"
- },
- "library": {
- "name": "RudderLabs JavaScript SDK",
- "version": "1.0.0"
- },
- "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36",
- "externalId": [
- {
- "id": "sms",
- "type": "delightedChannelType"
- }
- ],
- "locale": "en-US",
- "ip": "0.0.0.0",
- "os": {
- "name": "",
- "version": ""
- },
- "screen": {
- "density": 2
- }
- },
- "messageId": "84e26acc-56a5-4835-8233-591137fca468",
- "session_id": "3049dc4c-5a95-4ccd-a3e7-d74a7e411f22",
- "originalTimestamp": "2019-10-14T09:03:17.562Z",
- "type": "identify",
- "userId": "abc@123.com",
- "traits": {
- "firstName": "James",
- "lastName": "Doe",
- "phone": "+91237416221",
- "last_sent_at": "1626698350"
- },
- "integrations": {
- "All": true
- },
- "sentAt": "2019-10-14T09:03:22.563Z"
- }
- }
- ]
- }
- },
- "output": {
- "response": {
- "status": 200,
- "body": [
- {
- "error": "Channel is set to sms. Enter correct phone number i.e. E.164",
- "statTags": {
- "destType": "DELIGHTED",
- "errorCategory": "dataValidation",
- "errorType": "instrumentation",
- "feature": "processor",
- "implementation": "native",
- "module": "destination"
- },
- "statusCode": 400
- }
- ]
- }
- }
- },
- {
- "name": "delighted",
- "description": "Test 9",
- "feature": "processor",
- "module": "destination",
- "version": "v0",
- "input": {
- "request": {
- "body": [
- {
- "destination": {
- "Config": {
- "apiKey": "dummyApiKey",
- "channel": "email",
- "delay": 0,
- "eventNamesSettings": [
- {
- "event": ""
- }
- ]
- }
- },
- "message": {
- "channel": "web",
- "context": {
- "app": {
- "build": "1.0.0",
- "name": "RudderLabs JavaScript SDK",
- "namespace": "com.rudderlabs.javascript",
- "version": "1.0.0"
- },
- "library": {
- "name": "RudderLabs JavaScript SDK",
- "version": "1.0.0"
- },
- "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36",
- "externalId": [
- {
- "id": "sms",
- "type": "delightedChannelType"
- }
- ],
- "locale": "en-US",
- "ip": "0.0.0.0",
- "os": {
- "name": "",
- "version": ""
- },
- "screen": {
- "density": 2
- }
- },
- "messageId": "84e26acc-56a5-4835-8233-591137fca468",
- "session_id": "3049dc4c-5a95-4ccd-a3e7-d74a7e411f22",
- "originalTimestamp": "2019-10-14T09:03:17.562Z",
- "type": "identify",
- "userId": "+911234567890",
- "traits": {
- "firstName": "James",
- "lastName": "Doe",
- "last_sent_at": "1626698350"
- },
- "integrations": {
- "All": true
- },
- "sentAt": "2019-10-14T09:03:22.563Z"
- }
- }
- ]
- }
- },
- "output": {
- "response": {
- "status": 200,
- "body": [
- {
- "output": {
- "version": "1",
- "type": "REST",
- "method": "POST",
- "endpoint": "https://api.delighted.com/v1/people.json",
- "headers": {
- "Authorization": "Basic ZHVtbXlBcGlLZXk=",
- "Content-Type": "application/json"
- },
- "params": {},
- "body": {
- "XML": {},
- "JSON_ARRAY": {},
- "FORM": {},
- "JSON": {
- "send": false,
- "channel": "sms",
- "delay": 0,
- "name": "James Doe",
- "phone_number": "+911234567890",
- "last_sent_at": "1626698350"
- }
- },
- "files": {},
- "userId": ""
- },
- "statusCode": 200
- }
- ]
- }
- }
- }
-]
+ {
+ name: 'delighted',
+ description: 'Test 0',
+ feature: 'processor',
+ module: 'destination',
+ version: 'v0',
+ input: {
+ request: {
+ body: [
+ {
+ destination: {
+ Config: {
+ apiKey: 'dummyApiKey',
+ channel: 'email',
+ delay: 0,
+ eventNamesSettings: [
+ {
+ event: '',
+ },
+ ],
+ },
+ },
+ message: {
+ channel: 'web',
+ context: {
+ app: {
+ build: '1.0.0',
+ name: 'RudderLabs JavaScript SDK',
+ namespace: 'com.rudderlabs.javascript',
+ version: '1.0.0',
+ },
+ library: {
+ name: 'RudderLabs JavaScript SDK',
+ version: '1.0.0',
+ },
+ userAgent:
+ 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36',
+ locale: 'en-US',
+ ip: '0.0.0.0',
+ os: {
+ name: '',
+ version: '',
+ },
+ screen: {
+ density: 2,
+ },
+ },
+ messageId: '84e26acc-56a5-4835-8233-591137fca468',
+ session_id: '3049dc4c-5a95-4ccd-a3e7-d74a7e411f22',
+ originalTimestamp: '2019-10-14T09:03:17.562Z',
+ type: 'identify',
+ userId: 'abc@123.com',
+ traits: {
+ firstName: 'James',
+ lastName: 'Doe',
+ phone: '+91237416221',
+ last_sent_at: '1626698350',
+ },
+ integrations: {
+ All: true,
+ },
+ sentAt: '2019-10-14T09:03:22.563Z',
+ },
+ },
+ ],
+ },
+ },
+ output: {
+ response: {
+ status: 200,
+ body: [
+ {
+ output: {
+ version: '1',
+ type: 'REST',
+ method: 'POST',
+ endpoint: 'https://api.delighted.com/v1/people.json',
+ headers: {
+ Authorization: 'Basic ZHVtbXlBcGlLZXk=',
+ 'Content-Type': 'application/json',
+ },
+ params: {},
+ body: {
+ XML: {},
+ JSON_ARRAY: {},
+ FORM: {},
+ JSON: {
+ email: 'abc@123.com',
+ send: false,
+ channel: 'email',
+ delay: 0,
+ name: 'James Doe',
+ phone_number: '+91237416221',
+ last_sent_at: '1626698350',
+ },
+ },
+ files: {},
+ userId: '',
+ },
+ statusCode: 200,
+ },
+ ],
+ },
+ },
+ },
+ {
+ name: 'delighted',
+ description: 'Test 1',
+ feature: 'processor',
+ module: 'destination',
+ version: 'v0',
+ input: {
+ request: {
+ body: [
+ {
+ destination: {
+ Config: {
+ apiKey: 'dummyApiKey',
+ channel: 'email',
+ delay: 0,
+ eventNamesSettings: [
+ {
+ event: '',
+ },
+ ],
+ },
+ },
+ message: {
+ channel: 'web',
+ context: {
+ app: {
+ build: '1.0.0',
+ name: 'RudderLabs JavaScript SDK',
+ namespace: 'com.rudderlabs.javascript',
+ version: '1.0.0',
+ },
+ library: {
+ name: 'RudderLabs JavaScript SDK',
+ version: '1.0.0',
+ },
+ userAgent:
+ 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36',
+ locale: 'en-US',
+ ip: '0.0.0.0',
+ os: {
+ name: '',
+ version: '',
+ },
+ screen: {
+ density: 2,
+ },
+ },
+ messageId: '84e26acc-56a5-4835-8233-591137fca468',
+ session_id: '3049dc4c-5a95-4ccd-a3e7-d74a7e411f22',
+ originalTimestamp: '2019-10-14T09:03:17.562Z',
+ type: 'alias',
+ previousId: '123@abc.com',
+ userId: 'abc@123.com',
+ integrations: {
+ All: true,
+ },
+ sentAt: '2019-10-14T09:03:22.563Z',
+ },
+ },
+ ],
+ },
+ },
+ output: {
+ response: {
+ status: 200,
+ body: [
+ {
+ output: {
+ body: {
+ XML: {},
+ JSON_ARRAY: {},
+ FORM: {},
+ JSON: {
+ email: '123@abc.com',
+ email_update: 'abc@123.com',
+ },
+ },
+ type: 'REST',
+ files: {},
+ method: 'POST',
+ params: {},
+ headers: {
+ Authorization: 'Basic ZHVtbXlBcGlLZXk=',
+ 'Content-Type': 'application/json',
+ },
+ version: '1',
+ endpoint: 'https://api.delighted.com/v1/people.json',
+ userId: '',
+ },
+ statusCode: 200,
+ },
+ ],
+ },
+ },
+ },
+ {
+ name: 'delighted',
+ description: 'Test 2',
+ feature: 'processor',
+ module: 'destination',
+ version: 'v0',
+ input: {
+ request: {
+ body: [
+ {
+ destination: {
+ Config: {
+ apiKey: 'dummyApiKey',
+ channel: 'email',
+ delay: 0,
+ eventNamesSettings: [
+ {
+ event: 'Product Reviewed',
+ },
+ ],
+ },
+ },
+ message: {
+ channel: 'web',
+ context: {
+ app: {
+ build: '1.0.0',
+ name: 'RudderLabs JavaScript SDK',
+ namespace: 'com.rudderlabs.javascript',
+ version: '1.0.0',
+ },
+ library: {
+ name: 'RudderLabs JavaScript SDK',
+ version: '1.0.0',
+ },
+ userAgent:
+ 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36',
+ locale: 'en-US',
+ ip: '0.0.0.0',
+ os: {
+ name: '',
+ version: '',
+ },
+ screen: {
+ density: 2,
+ },
+ },
+ messageId: '84e26acc-56a5-4835-8233-591137fca468',
+ session_id: '3049dc4c-5a95-4ccd-a3e7-d74a7e411f22',
+ originalTimestamp: '2019-10-14T09:03:17.562Z',
+ type: 'track',
+ userId: 'identified_user@email.com',
+ event: 'Product Reviewed',
+ properties: {
+ review_id: '12345',
+ product_id: '123',
+ rating: 3,
+ review_body: 'Average product, expected much more.',
+ },
+ integrations: {
+ All: true,
+ },
+ sentAt: '2019-10-14T09:03:22.563Z',
+ },
+ },
+ ],
+ },
+ },
+ output: {
+ response: {
+ status: 200,
+ body: [
+ {
+ output: {
+ body: {
+ XML: {},
+ JSON_ARRAY: {},
+ FORM: {},
+ JSON: {
+ properties: {
+ review_id: '12345',
+ product_id: '123',
+ rating: 3,
+ review_body: 'Average product, expected much more.',
+ },
+ send: true,
+ channel: 'email',
+ delay: 0,
+ email: 'identified_user@email.com',
+ },
+ },
+ type: 'REST',
+ files: {},
+ method: 'POST',
+ params: {},
+ headers: {
+ Authorization: 'Basic ZHVtbXlBcGlLZXk=',
+ 'Content-Type': 'application/json',
+ },
+ version: '1',
+ endpoint: 'https://api.delighted.com/v1/people.json',
+ userId: '',
+ },
+ statusCode: 200,
+ },
+ ],
+ },
+ },
+ },
+ {
+ name: 'delighted',
+ description: 'Test 3',
+ feature: 'processor',
+ module: 'destination',
+ version: 'v0',
+ input: {
+ request: {
+ body: [
+ {
+ destination: {
+ Config: {
+ apiKey: 'dummyApiKeyforfailure',
+ channel: 'email',
+ delay: 0,
+ eventNamesSettings: [
+ {
+ event: 'Product Reviewed',
+ },
+ ],
+ },
+ },
+ message: {
+ channel: 'web',
+ context: {
+ app: {
+ build: '1.0.0',
+ name: 'RudderLabs JavaScript SDK',
+ namespace: 'com.rudderlabs.javascript',
+ version: '1.0.0',
+ },
+ library: {
+ name: 'RudderLabs JavaScript SDK',
+ version: '1.0.0',
+ },
+ userAgent:
+ 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36',
+ locale: 'en-US',
+ ip: '0.0.0.0',
+ os: {
+ name: '',
+ version: '',
+ },
+ screen: {
+ density: 2,
+ },
+ },
+ messageId: '84e26acc-56a5-4835-8233-591137fca468',
+ session_id: '3049dc4c-5a95-4ccd-a3e7-d74a7e411f22',
+ originalTimestamp: '2019-10-14T09:03:17.562Z',
+ type: 'track',
+ userId: 'unidentified_user@email.com',
+ event: 'Product Reviewed',
+ properties: {
+ review_id: '12345',
+ product_id: '123',
+ rating: 3,
+ review_body: 'Average product, expected much more.',
+ },
+ integrations: {
+ All: true,
+ },
+ sentAt: '2019-10-14T09:03:22.563Z',
+ },
+ },
+ ],
+ },
+ },
+ output: {
+ response: {
+ status: 200,
+ body: [
+ {
+ error: "user unidentified_user@email.com doesn't exist",
+ statTags: {
+ destType: 'DELIGHTED',
+ errorCategory: 'network',
+ errorType: 'aborted',
+ feature: 'processor',
+ implementation: 'native',
+ meta: 'instrumentation',
+ module: 'destination',
+ },
+ statusCode: 400,
+ },
+ ],
+ },
+ },
+ },
+ {
+ name: 'delighted',
+ description: 'Test 4',
+ feature: 'processor',
+ module: 'destination',
+ version: 'v0',
+ input: {
+ request: {
+ body: [
+ {
+ destination: {
+ Config: {
+ apiKey: 'dummyApiKey',
+ channel: 'email',
+ delay: 0,
+ eventNamesSettings: [
+ {
+ event: '',
+ },
+ ],
+ },
+ },
+ message: {
+ channel: 'web',
+ context: {
+ app: {
+ build: '1.0.0',
+ name: 'RudderLabs JavaScript SDK',
+ namespace: 'com.rudderlabs.javascript',
+ version: '1.0.0',
+ },
+ library: {
+ name: 'RudderLabs JavaScript SDK',
+ version: '1.0.0',
+ },
+ userAgent:
+ 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36',
+ locale: 'en-US',
+ ip: '0.0.0.0',
+ os: {
+ name: '',
+ version: '',
+ },
+ screen: {
+ density: 2,
+ },
+ },
+ messageId: '84e26acc-56a5-4835-8233-591137fca468',
+ session_id: '3049dc4c-5a95-4ccd-a3e7-d74a7e411f22',
+ originalTimestamp: '2019-10-14T09:03:17.562Z',
+ type: 'track',
+ userId: 'identified_user@email.com',
+ event: 'Product Reviewed',
+ properties: {
+ review_id: '12345',
+ product_id: '123',
+ rating: 3,
+ review_body: 'Average product, expected much more.',
+ },
+ integrations: {
+ All: true,
+ },
+ sentAt: '2019-10-14T09:03:22.563Z',
+ },
+ },
+ ],
+ },
+ },
+ output: {
+ response: {
+ status: 200,
+ body: [
+ {
+ error: 'Event is not configured on your Rudderstack Dashboard',
+ statTags: {
+ destType: 'DELIGHTED',
+ errorCategory: 'dataValidation',
+ errorType: 'configuration',
+ feature: 'processor',
+ implementation: 'native',
+ module: 'destination',
+ },
+ statusCode: 400,
+ },
+ ],
+ },
+ },
+ },
+ {
+ name: 'delighted',
+ description: 'Test 5',
+ feature: 'processor',
+ module: 'destination',
+ version: 'v0',
+ input: {
+ request: {
+ body: [
+ {
+ destination: {
+ Config: {
+ apiKey: 'dummyApiKey',
+ channel: 'email',
+ delay: 0,
+ eventNamesSettings: [
+ {
+ event: 'Product Reviewed',
+ },
+ ],
+ },
+ },
+ message: {
+ channel: 'web',
+ context: {
+ app: {
+ build: '1.0.0',
+ name: 'RudderLabs JavaScript SDK',
+ namespace: 'com.rudderlabs.javascript',
+ version: '1.0.0',
+ },
+ library: {
+ name: 'RudderLabs JavaScript SDK',
+ version: '1.0.0',
+ },
+ userAgent:
+ 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36',
+ locale: 'en-US',
+ ip: '0.0.0.0',
+ os: {
+ name: '',
+ version: '',
+ },
+ screen: {
+ density: 2,
+ },
+ },
+ messageId: '84e26acc-56a5-4835-8233-591137fca468',
+ session_id: '3049dc4c-5a95-4ccd-a3e7-d74a7e411f22',
+ originalTimestamp: '2019-10-14T09:03:17.562Z',
+ type: 'track',
+ anonymousId: 'identified_user@email.com',
+ event: 'Product Reviewed',
+ properties: {
+ review_id: '12345',
+ product_id: '123',
+ rating: 3,
+ review_body: 'Average product, expected much more.',
+ },
+ integrations: {
+ All: true,
+ },
+ sentAt: '2019-10-14T09:03:22.563Z',
+ },
+ },
+ ],
+ },
+ },
+ output: {
+ response: {
+ status: 200,
+ body: [
+ {
+ error: 'userId is required.',
+ statTags: {
+ destType: 'DELIGHTED',
+ errorCategory: 'dataValidation',
+ errorType: 'instrumentation',
+ feature: 'processor',
+ implementation: 'native',
+ module: 'destination',
+ },
+ statusCode: 400,
+ },
+ ],
+ },
+ },
+ },
+ {
+ name: 'delighted',
+ description: 'Test 6',
+ feature: 'processor',
+ module: 'destination',
+ version: 'v0',
+ input: {
+ request: {
+ body: [
+ {
+ destination: {
+ Config: {
+ apiKey: 'dummyApiKey',
+ channel: 'email',
+ delay: 0,
+ eventNamesSettings: [
+ {
+ event: '',
+ },
+ ],
+ },
+ },
+ message: {
+ channel: 'web',
+ context: {
+ app: {
+ build: '1.0.0',
+ name: 'RudderLabs JavaScript SDK',
+ namespace: 'com.rudderlabs.javascript',
+ version: '1.0.0',
+ },
+ library: {
+ name: 'RudderLabs JavaScript SDK',
+ version: '1.0.0',
+ },
+ userAgent:
+ 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36',
+ locale: 'en-US',
+ ip: '0.0.0.0',
+ os: {
+ name: '',
+ version: '',
+ },
+ screen: {
+ density: 2,
+ },
+ },
+ messageId: '84e26acc-56a5-4835-8233-591137fca468',
+ session_id: '3049dc4c-5a95-4ccd-a3e7-d74a7e411f22',
+ originalTimestamp: '2019-10-14T09:03:17.562Z',
+ type: 'alias',
+ previousId: '123@abc.com',
+ integrations: {
+ All: true,
+ },
+ sentAt: '2019-10-14T09:03:22.563Z',
+ },
+ },
+ ],
+ },
+ },
+ output: {
+ response: {
+ status: 200,
+ body: [
+ {
+ error: 'userId is required.',
+ statTags: {
+ destType: 'DELIGHTED',
+ errorCategory: 'dataValidation',
+ errorType: 'instrumentation',
+ feature: 'processor',
+ implementation: 'native',
+ module: 'destination',
+ },
+ statusCode: 400,
+ },
+ ],
+ },
+ },
+ },
+ {
+ name: 'delighted',
+ description: 'Test 7',
+ feature: 'processor',
+ module: 'destination',
+ version: 'v0',
+ input: {
+ request: {
+ body: [
+ {
+ destination: {
+ Config: {
+ apiKey: 'dummyApiKey',
+ channel: 'email',
+ delay: 0,
+ eventNamesSettings: [
+ {
+ event: '',
+ },
+ ],
+ },
+ },
+ message: {
+ channel: 'web',
+ context: {
+ app: {
+ build: '1.0.0',
+ name: 'RudderLabs JavaScript SDK',
+ namespace: 'com.rudderlabs.javascript',
+ version: '1.0.0',
+ },
+ library: {
+ name: 'RudderLabs JavaScript SDK',
+ version: '1.0.0',
+ },
+ userAgent:
+ 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36',
+ externalId: [
+ {
+ id: 'sms',
+ type: 'delightedChannelType',
+ },
+ ],
+ locale: 'en-US',
+ ip: '0.0.0.0',
+ os: {
+ name: '',
+ version: '',
+ },
+ screen: {
+ density: 2,
+ },
+ },
+ messageId: '84e26acc-56a5-4835-8233-591137fca468',
+ session_id: '3049dc4c-5a95-4ccd-a3e7-d74a7e411f22',
+ originalTimestamp: '2019-10-14T09:03:17.562Z',
+ type: 'alias',
+ userId: 'abc@123.com',
+ previousId: '123@abc.com',
+ integrations: {
+ All: true,
+ },
+ sentAt: '2019-10-14T09:03:22.563Z',
+ },
+ },
+ ],
+ },
+ },
+ output: {
+ response: {
+ status: 200,
+ body: [
+ {
+ error: 'User Id and Previous Id should be of same type i.e. phone/sms',
+ statTags: {
+ destType: 'DELIGHTED',
+ errorCategory: 'dataValidation',
+ errorType: 'instrumentation',
+ feature: 'processor',
+ implementation: 'native',
+ module: 'destination',
+ },
+ statusCode: 400,
+ },
+ ],
+ },
+ },
+ },
+ {
+ name: 'delighted',
+ description: 'Test 8',
+ feature: 'processor',
+ module: 'destination',
+ version: 'v0',
+ input: {
+ request: {
+ body: [
+ {
+ destination: {
+ Config: {
+ apiKey: 'dummyApiKey',
+ channel: 'email',
+ delay: 0,
+ eventNamesSettings: [
+ {
+ event: '',
+ },
+ ],
+ },
+ },
+ message: {
+ channel: 'web',
+ context: {
+ app: {
+ build: '1.0.0',
+ name: 'RudderLabs JavaScript SDK',
+ namespace: 'com.rudderlabs.javascript',
+ version: '1.0.0',
+ },
+ library: {
+ name: 'RudderLabs JavaScript SDK',
+ version: '1.0.0',
+ },
+ userAgent:
+ 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36',
+ externalId: [
+ {
+ id: 'sms',
+ type: 'delightedChannelType',
+ },
+ ],
+ locale: 'en-US',
+ ip: '0.0.0.0',
+ os: {
+ name: '',
+ version: '',
+ },
+ screen: {
+ density: 2,
+ },
+ },
+ messageId: '84e26acc-56a5-4835-8233-591137fca468',
+ session_id: '3049dc4c-5a95-4ccd-a3e7-d74a7e411f22',
+ originalTimestamp: '2019-10-14T09:03:17.562Z',
+ type: 'identify',
+ userId: 'abc@123.com',
+ traits: {
+ firstName: 'James',
+ lastName: 'Doe',
+ phone: '+91237416221',
+ last_sent_at: '1626698350',
+ },
+ integrations: {
+ All: true,
+ },
+ sentAt: '2019-10-14T09:03:22.563Z',
+ },
+ },
+ ],
+ },
+ },
+ output: {
+ response: {
+ status: 200,
+ body: [
+ {
+ error: 'Channel is set to sms. Enter correct phone number i.e. E.164',
+ statTags: {
+ destType: 'DELIGHTED',
+ errorCategory: 'dataValidation',
+ errorType: 'instrumentation',
+ feature: 'processor',
+ implementation: 'native',
+ module: 'destination',
+ },
+ statusCode: 400,
+ },
+ ],
+ },
+ },
+ },
+ {
+ name: 'delighted',
+ description: 'Test 9',
+ feature: 'processor',
+ module: 'destination',
+ version: 'v0',
+ input: {
+ request: {
+ body: [
+ {
+ destination: {
+ Config: {
+ apiKey: 'dummyApiKey',
+ channel: 'email',
+ delay: 0,
+ eventNamesSettings: [
+ {
+ event: '',
+ },
+ ],
+ },
+ },
+ message: {
+ channel: 'web',
+ context: {
+ app: {
+ build: '1.0.0',
+ name: 'RudderLabs JavaScript SDK',
+ namespace: 'com.rudderlabs.javascript',
+ version: '1.0.0',
+ },
+ library: {
+ name: 'RudderLabs JavaScript SDK',
+ version: '1.0.0',
+ },
+ userAgent:
+ 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36',
+ externalId: [
+ {
+ id: 'sms',
+ type: 'delightedChannelType',
+ },
+ ],
+ locale: 'en-US',
+ ip: '0.0.0.0',
+ os: {
+ name: '',
+ version: '',
+ },
+ screen: {
+ density: 2,
+ },
+ },
+ messageId: '84e26acc-56a5-4835-8233-591137fca468',
+ session_id: '3049dc4c-5a95-4ccd-a3e7-d74a7e411f22',
+ originalTimestamp: '2019-10-14T09:03:17.562Z',
+ type: 'identify',
+ userId: '+911234567890',
+ traits: {
+ firstName: 'James',
+ lastName: 'Doe',
+ last_sent_at: '1626698350',
+ },
+ integrations: {
+ All: true,
+ },
+ sentAt: '2019-10-14T09:03:22.563Z',
+ },
+ },
+ ],
+ },
+ },
+ output: {
+ response: {
+ status: 200,
+ body: [
+ {
+ output: {
+ version: '1',
+ type: 'REST',
+ method: 'POST',
+ endpoint: 'https://api.delighted.com/v1/people.json',
+ headers: {
+ Authorization: 'Basic ZHVtbXlBcGlLZXk=',
+ 'Content-Type': 'application/json',
+ },
+ params: {},
+ body: {
+ XML: {},
+ JSON_ARRAY: {},
+ FORM: {},
+ JSON: {
+ send: false,
+ channel: 'sms',
+ delay: 0,
+ name: 'James Doe',
+ phone_number: '+911234567890',
+ last_sent_at: '1626698350',
+ },
+ },
+ files: {},
+ userId: '',
+ },
+ statusCode: 200,
+ },
+ ],
+ },
+ },
+ },
+];
diff --git a/test/integrations/destinations/drip/processor/data.ts b/test/integrations/destinations/drip/processor/data.ts
index 0159959d13..1874f932fa 100644
--- a/test/integrations/destinations/drip/processor/data.ts
+++ b/test/integrations/destinations/drip/processor/data.ts
@@ -1,1487 +1,1498 @@
export const data = [
- {
- "name": "drip",
- "description": "Test 0",
- "feature": "processor",
- "module": "destination",
- "version": "v0",
- "input": {
- "request": {
- "body": [
- {
- "destination": {
- "Config": {
- "apiKey": "dummyApiKey",
- "accountId": "1809802",
- "campaignId": "",
- "enableUserCreation": true
- }
- },
- "message": {
- "channel": "web",
- "context": {
- "app": {
- "build": "1.0.0",
- "name": "RudderLabs JavaScript SDK",
- "namespace": "com.rudderlabs.javascript",
- "version": "1.0.0"
- },
- "library": {
- "name": "RudderLabs JavaScript SDK",
- "version": "1.0.0"
- },
- "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36",
- "locale": "en-US",
- "ip": "0.0.0.0",
- "os": {
- "name": "",
- "version": ""
- },
- "screen": {
- "density": 2
- }
- },
- "messageId": "84e26acc-56a5-4835-8233-591137fca468",
- "session_id": "3049dc4c-5a95-4ccd-a3e7-d74a7e411f22",
- "originalTimestamp": "2019-10-14T09:03:17.562Z",
- "type": "identify",
- "traits": {
- "email": "test1@gmail.com",
- "firstName": "James",
- "lastName": "Doe",
- "phone": "237416221",
- "customFields": {
- "filter1": "filterval1"
- }
- },
- "integrations": {
- "All": true
- },
- "sentAt": "2019-10-14T09:03:22.563Z"
- }
- }
- ]
- }
- },
- "output": {
- "response": {
- "status": 200,
- "body": [
- {
- "output": {
- "version": "1",
- "type": "REST",
- "method": "POST",
- "endpoint": "https://api.getdrip.com/v2/1809802/subscribers",
- "headers": {
- "Authorization": "Basic ZHVtbXlBcGlLZXk=",
- "Content-Type": "application/json"
- },
- "params": {},
- "body": {
- "XML": {},
- "JSON_ARRAY": {},
- "FORM": {},
- "JSON": {
- "subscribers": [
- {
- "email": "test1@gmail.com",
- "first_name": "James",
- "last_name": "Doe",
- "phone": "237416221",
- "ip_address": "0.0.0.0",
- "custom_fields": {
- "filter1": "filterval1"
- }
- }
- ]
- }
- },
- "files": {},
- "userId": ""
- },
- "statusCode": 200
- }
- ]
- }
- }
- },
- {
- "name": "drip",
- "description": "Test 1",
- "feature": "processor",
- "module": "destination",
- "version": "v0",
- "input": {
- "request": {
- "body": [
- {
- "destination": {
- "Config": {
- "apiKey": "dummyApiKey",
- "accountId": "1809802",
- "campaignId": "",
- "enableUserCreation": true
- }
- },
- "message": {
- "channel": "web",
- "context": {
- "app": {
- "build": "1.0.0",
- "name": "RudderLabs JavaScript SDK",
- "namespace": "com.rudderlabs.javascript",
- "version": "1.0.0"
- },
- "library": {
- "name": "RudderLabs JavaScript SDK",
- "version": "1.0.0"
- },
- "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36",
- "locale": "en-US",
- "ip": "0.0.0.0",
- "os": {
- "name": "",
- "version": ""
- },
- "screen": {
- "density": 2
- }
- },
- "messageId": "84e26acc-56a5-4835-8233-591137fca468",
- "session_id": "3049dc4c-5a95-4ccd-a3e7-d74a7e411f22",
- "originalTimestamp": "2019-10-14T09:03:17.562Z",
- "type": "identify",
- "traits": {
- "email": "12324adfgs",
- "firstName": "James",
- "lastName": "Doe",
- "phone": "237416221",
- "customFields": {
- "filter1": "filterval1"
- }
- },
- "integrations": {
- "All": true
- },
- "sentAt": "2019-10-14T09:03:22.563Z"
- }
- }
- ]
- }
- },
- "output": {
- "response": {
- "status": 200,
- "body": [
- {
- "error": "dripId or email is required for the call",
- "statTags": {
- "destType": "DRIP",
- "errorCategory": "dataValidation",
- "errorType": "instrumentation",
- "feature": "processor",
- "implementation": "native",
- "module": "destination"
- },
- "statusCode": 400
- }
- ]
- }
- }
- },
- {
- "name": "drip",
- "description": "Test 2",
- "feature": "processor",
- "module": "destination",
- "version": "v0",
- "input": {
- "request": {
- "body": [
- {
- "destination": {
- "Config": {
- "apiKey": "dummyApiKey",
- "accountId": "1809802",
- "campaignId": "",
- "enableUserCreation": true
- }
- },
- "message": {
- "channel": "web",
- "context": {
- "app": {
- "build": "1.0.0",
- "name": "RudderLabs JavaScript SDK",
- "namespace": "com.rudderlabs.javascript",
- "version": "1.0.0"
- },
- "library": {
- "name": "RudderLabs JavaScript SDK",
- "version": "1.0.0"
- },
- "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36",
- "locale": "en-US",
- "ip": "0.0.0.0",
- "os": {
- "name": "",
- "version": ""
- },
- "screen": {
- "density": 2
- }
- },
- "messageId": "84e26acc-56a5-4835-8233-591137fca468",
- "session_id": "3049dc4c-5a95-4ccd-a3e7-d74a7e411f22",
- "originalTimestamp": "2019-10-14T09:03:17.562Z",
- "type": "identify",
- "traits": {
- "email": "test1@gmail.com",
- "name": "James Doe",
- "phone": "237416221",
- "filter1": "filterval1",
- "filter2": "filterval2"
- },
- "integrations": {
- "All": true
- },
- "sentAt": "2019-10-14T09:03:22.563Z"
- }
- }
- ]
- }
- },
- "output": {
- "response": {
- "status": 200,
- "body": [
- {
- "output": {
- "version": "1",
- "type": "REST",
- "method": "POST",
- "endpoint": "https://api.getdrip.com/v2/1809802/subscribers",
- "headers": {
- "Authorization": "Basic ZHVtbXlBcGlLZXk=",
- "Content-Type": "application/json"
- },
- "params": {},
- "body": {
- "XML": {},
- "JSON_ARRAY": {},
- "FORM": {},
- "JSON": {
- "subscribers": [
- {
- "email": "test1@gmail.com",
- "first_name": "James",
- "last_name": "Doe",
- "phone": "237416221",
- "ip_address": "0.0.0.0",
- "custom_fields": {
- "filter1": "filterval1",
- "filter2": "filterval2"
- }
- }
- ]
- }
- },
- "files": {},
- "userId": ""
- },
- "statusCode": 200
- }
- ]
- }
- }
- },
- {
- "name": "drip",
- "description": "Test 3",
- "feature": "processor",
- "module": "destination",
- "version": "v0",
- "input": {
- "request": {
- "body": [
- {
- "destination": {
- "Config": {
- "apiKey": "dummyApiKey",
- "accountId": "1809802",
- "campaignId": "915194776",
- "enableUserCreation": true
- }
- },
- "message": {
- "channel": "web",
- "context": {
- "app": {
- "build": "1.0.0",
- "name": "RudderLabs JavaScript SDK",
- "namespace": "com.rudderlabs.javascript",
- "version": "1.0.0"
- },
- "library": {
- "name": "RudderLabs JavaScript SDK",
- "version": "1.0.0"
- },
- "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36",
- "locale": "en-US",
- "ip": "0.0.0.0",
- "os": {
- "name": "",
- "version": ""
- },
- "screen": {
- "density": 2
- }
- },
- "messageId": "84e26acc-56a5-4835-8233-591137fca468",
- "session_id": "3049dc4c-5a95-4ccd-a3e7-d74a7e411f22",
- "originalTimestamp": "2019-10-14T09:03:17.562Z",
- "type": "identify",
- "traits": {
- "email": "test1@gmail.com",
- "name": "James Doe",
- "phone": "237416221",
- "filter1": "filterval1",
- "filter2": "filterval2",
- "tags": [
- "tag1",
- "tag2"
- ],
- "startingEmailIndex": 1
- },
- "integrations": {
- "All": true
- },
- "sentAt": "2019-10-14T09:03:22.563Z"
- }
- }
- ]
- }
- },
- "output": {
- "response": {
- "status": 200,
- "body": [
- {
- "output": {
- "version": "1",
- "type": "REST",
- "method": "POST",
- "endpoint": "https://api.getdrip.com/v2/1809802/campaigns/915194776/subscribers",
- "headers": {
- "Authorization": "Basic ZHVtbXlBcGlLZXk=",
- "Content-Type": "application/json"
- },
- "params": {},
- "body": {
- "XML": {},
- "JSON_ARRAY": {},
- "FORM": {},
- "JSON": {
- "subscribers": [
- {
- "email": "test1@gmail.com",
- "starting_email_index": 1
- }
- ]
- }
- },
- "files": {},
- "userId": ""
- },
- "statusCode": 200
- }
- ]
- }
- }
- },
- {
- "name": "drip",
- "description": "Test 4",
- "feature": "processor",
- "module": "destination",
- "version": "v0",
- "input": {
- "request": {
- "body": [
- {
- "destination": {
- "Config": {
- "apiKey": "dummyApiKey",
- "accountId": "1809802",
- "campaignId": "915194776",
- "enableUserCreation": true
- }
- },
- "message": {
- "channel": "web",
- "context": {
- "app": {
- "build": "1.0.0",
- "name": "RudderLabs JavaScript SDK",
- "namespace": "com.rudderlabs.javascript",
- "version": "1.0.0"
- },
- "library": {
- "name": "RudderLabs JavaScript SDK",
- "version": "1.0.0"
- },
- "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36",
- "locale": "en-US",
- "ip": "0.0.0.0",
- "os": {
- "name": "",
- "version": ""
- },
- "screen": {
- "density": 2
- }
- },
- "messageId": "84e26acc-56a5-4835-8233-591137fca468",
- "session_id": "3049dc4c-5a95-4ccd-a3e7-d74a7e411f22",
- "originalTimestamp": "2019-10-14T09:03:17.562Z",
- "type": "track",
- "event": "testing",
- "properties": {
- "email": "user1@gmail.com",
- "customFields": {
- "field1": "val1"
- }
- },
- "integrations": {
- "All": true
- },
- "sentAt": "2019-10-14T09:03:22.563Z"
- }
- }
- ]
- }
- },
- "output": {
- "response": {
- "status": 200,
- "body": [
- {
- "output": {
- "version": "1",
- "type": "REST",
- "method": "POST",
- "endpoint": "https://api.getdrip.com/v2/1809802/events",
- "headers": {
- "Authorization": "Basic ZHVtbXlBcGlLZXk=",
- "Content-Type": "application/json"
- },
- "params": {},
- "body": {
- "XML": {},
- "JSON_ARRAY": {},
- "FORM": {},
- "JSON": {
- "events": [
- {
- "email": "user1@gmail.com",
- "properties": {
- "field1": "val1"
- },
- "action": "testing",
- "occurred_at": "2019-10-14T09:03:17.562Z"
- }
- ]
- }
- },
- "files": {},
- "userId": ""
- },
- "statusCode": 200
- }
- ]
- }
- }
- },
- {
- "name": "drip",
- "description": "Test 5",
- "feature": "processor",
- "module": "destination",
- "version": "v0",
- "input": {
- "request": {
- "body": [
- {
- "destination": {
- "Config": {
- "apiKey": "dummyApiKey",
- "accountId": "1809802",
- "campaignId": "915194776",
- "enableUserCreation": true
- }
- },
- "message": {
- "channel": "web",
- "context": {
- "app": {
- "build": "1.0.0",
- "name": "RudderLabs JavaScript SDK",
- "namespace": "com.rudderlabs.javascript",
- "version": "1.0.0"
- },
- "library": {
- "name": "RudderLabs JavaScript SDK",
- "version": "1.0.0"
- },
- "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36",
- "locale": "en-US",
- "ip": "0.0.0.0",
- "os": {
- "name": "",
- "version": ""
- },
- "screen": {
- "density": 2
- }
- },
- "messageId": "84e26acc-56a5-4835-8233-591137fca468",
- "session_id": "3049dc4c-5a95-4ccd-a3e7-d74a7e411f22",
- "originalTimestamp": "2019-10-14T09:03:17.562Z",
- "type": "track",
- "event": "",
- "properties": {
- "email": "user1@gmail.com",
- "custom_fields": {
- "field1": "val1"
- }
- },
- "integrations": {
- "All": true
- },
- "sentAt": "2019-10-14T09:03:22.563Z"
- }
- }
- ]
- }
- },
- "output": {
- "response": {
- "status": 200,
- "body": [
- {
- "error": "Event name is required",
- "statTags": {
- "destType": "DRIP",
- "errorCategory": "dataValidation",
- "errorType": "instrumentation",
- "feature": "processor",
- "implementation": "native",
- "module": "destination"
- },
- "statusCode": 400
- }
- ]
- }
- }
- },
- {
- "name": "drip",
- "description": "Test 6",
- "feature": "processor",
- "module": "destination",
- "version": "v0",
- "input": {
- "request": {
- "body": [
- {
- "destination": {
- "Config": {
- "apiKey": "dummyApiKey",
- "accountId": "1809802",
- "campaignId": "915194776",
- "enableUserCreation": false
- }
- },
- "message": {
- "channel": "web",
- "context": {
- "app": {
- "build": "1.0.0",
- "name": "RudderLabs JavaScript SDK",
- "namespace": "com.rudderlabs.javascript",
- "version": "1.0.0"
- },
- "library": {
- "name": "RudderLabs JavaScript SDK",
- "version": "1.0.0"
- },
- "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36",
- "locale": "en-US",
- "ip": "0.0.0.0",
- "os": {
- "name": "",
- "version": ""
- },
- "screen": {
- "density": 2
- }
- },
- "messageId": "84e26acc-56a5-4835-8233-591137fca468",
- "session_id": "3049dc4c-5a95-4ccd-a3e7-d74a7e411f22",
- "originalTimestamp": "2019-10-14T09:03:17.562Z",
- "type": "track",
- "event": "testing",
- "properties": {
- "email": "identified_user@gmail.com",
- "customFields": {
- "field1": "val1"
- }
- },
- "integrations": {
- "All": true
- },
- "sentAt": "2019-10-14T09:03:22.563Z"
- }
- }
- ]
- }
- },
- "output": {
- "response": {
- "status": 200,
- "body": [
- {
- "output": {
- "version": "1",
- "type": "REST",
- "method": "POST",
- "endpoint": "https://api.getdrip.com/v2/1809802/events",
- "headers": {
- "Authorization": "Basic ZHVtbXlBcGlLZXk=",
- "Content-Type": "application/json"
- },
- "params": {},
- "body": {
- "XML": {},
- "JSON_ARRAY": {},
- "FORM": {},
- "JSON": {
- "events": [
- {
- "email": "identified_user@gmail.com",
- "properties": {
- "field1": "val1"
- },
- "action": "testing",
- "occurred_at": "2019-10-14T09:03:17.562Z"
- }
- ]
- }
- },
- "files": {},
- "userId": ""
- },
- "statusCode": 200
- }
- ]
- }
- }
- },
- {
- "name": "drip",
- "description": "Test 7",
- "feature": "processor",
- "module": "destination",
- "version": "v0",
- "input": {
- "request": {
- "body": [
- {
- "destination": {
- "Config": {
- "apiKey": "dummyApiKey",
- "accountId": "1809802",
- "campaignId": "915194776",
- "enableUserCreation": false
- }
- },
- "message": {
- "channel": "web",
- "context": {
- "app": {
- "build": "1.0.0",
- "name": "RudderLabs JavaScript SDK",
- "namespace": "com.rudderlabs.javascript",
- "version": "1.0.0"
- },
- "library": {
- "name": "RudderLabs JavaScript SDK",
- "version": "1.0.0"
- },
- "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36",
- "locale": "en-US",
- "ip": "0.0.0.0",
- "os": {
- "name": "",
- "version": ""
- },
- "screen": {
- "density": 2
- }
- },
- "messageId": "84e26acc-56a5-4835-8233-591137fca468",
- "session_id": "3049dc4c-5a95-4ccd-a3e7-d74a7e411f22",
- "originalTimestamp": "2019-10-14T09:03:17.562Z",
- "type": "track",
- "event": "testing",
- "properties": {
- "email": "identified_user@gmail.com",
- "field1": "val1"
- },
- "integrations": {
- "All": true
- },
- "sentAt": "2019-10-14T09:03:22.563Z"
- }
- }
- ]
- }
- },
- "output": {
- "response": {
- "status": 200,
- "body": [
- {
- "output": {
- "version": "1",
- "type": "REST",
- "method": "POST",
- "endpoint": "https://api.getdrip.com/v2/1809802/events",
- "headers": {
- "Authorization": "Basic ZHVtbXlBcGlLZXk=",
- "Content-Type": "application/json"
- },
- "params": {},
- "body": {
- "XML": {},
- "JSON_ARRAY": {},
- "FORM": {},
- "JSON": {
- "events": [
- {
- "email": "identified_user@gmail.com",
- "properties": {
- "field1": "val1"
- },
- "action": "testing",
- "occurred_at": "2019-10-14T09:03:17.562Z"
- }
- ]
- }
- },
- "files": {},
- "userId": ""
- },
- "statusCode": 200
- }
- ]
- }
- }
- },
- {
- "name": "drip",
- "description": "Test 8",
- "feature": "processor",
- "module": "destination",
- "version": "v0",
- "input": {
- "request": {
- "body": [
- {
- "destination": {
- "Config": {
- "apiKey": "dummyApiKey",
- "accountId": "1809802",
- "campaignId": "915194776",
- "enableUserCreation": false
- }
- },
- "message": {
- "channel": "web",
- "context": {
- "app": {
- "build": "1.0.0",
- "name": "RudderLabs JavaScript SDK",
- "namespace": "com.rudderlabs.javascript",
- "version": "1.0.0"
- },
- "library": {
- "name": "RudderLabs JavaScript SDK",
- "version": "1.0.0"
- },
- "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36",
- "locale": "en-US",
- "ip": "0.0.0.0",
- "os": {
- "name": "",
- "version": ""
- },
- "screen": {
- "density": 2
- }
- },
- "messageId": "84e26acc-56a5-4835-8233-591137fca468",
- "session_id": "3049dc4c-5a95-4ccd-a3e7-d74a7e411f22",
- "originalTimestamp": "2019-10-14T09:03:17.562Z",
- "type": "track",
- "event": "testing",
- "properties": {
- "email": "unidentified_user@gmail.com",
- "field1": "val1"
- },
- "integrations": {
- "All": true
- },
- "sentAt": "2019-10-14T09:03:22.563Z"
- }
- }
- ]
- }
- },
- "output": {
- "response": {
- "status": 200,
- "body": [
- {
- "error": "Error occurred while checking user : error response not found",
- "statTags": {
- "destType": "DRIP",
- "errorCategory": "network",
- "errorType": "aborted",
- "feature": "processor",
- "implementation": "native",
- "module": "destination"
- },
- "statusCode": 400
- }
- ]
- }
- }
- },
- {
- "name": "drip",
- "description": "Test 9",
- "feature": "processor",
- "module": "destination",
- "version": "v0",
- "input": {
- "request": {
- "body": [
- {
- "destination": {
- "Config": {
- "apiKey": "dummyApiKey",
- "accountId": "1809802",
- "campaignId": "915194776",
- "enableUserCreation": false
- }
- },
- "message": {
- "channel": "web",
- "context": {
- "app": {
- "build": "1.0.0",
- "name": "RudderLabs JavaScript SDK",
- "namespace": "com.rudderlabs.javascript",
- "version": "1.0.0"
- },
- "library": {
- "name": "RudderLabs JavaScript SDK",
- "version": "1.0.0"
- },
- "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36",
- "locale": "en-US",
- "ip": "0.0.0.0",
- "os": {
- "name": "",
- "version": ""
- },
- "screen": {
- "density": 2
- }
- },
- "messageId": "84e26acc-56a5-4835-8233-591137fca468",
- "session_id": "3049dc4c-5a95-4ccd-a3e7-d74a7e411f22",
- "originalTimestamp": "2019-10-14T09:03:17.562Z",
- "type": "track",
- "event": "checkout started",
- "properties": {
- "email": "identified_user@gmail.com",
- "field1": "val1",
- "affiliation": "my_custom_order",
- "order_id": "456445746"
- },
- "integrations": {
- "All": true
- },
- "sentAt": "2019-10-14T09:03:22.563Z"
- }
- }
- ]
- }
- },
- "output": {
- "response": {
- "status": 200,
- "body": [
- {
- "output": {
- "version": "1",
- "type": "REST",
- "method": "POST",
- "endpoint": "https://api.getdrip.com/v3/1809802/shopper_activity/order",
- "headers": {
- "Authorization": "Basic ZHVtbXlBcGlLZXk=",
- "Content-Type": "application/json"
- },
- "params": {},
- "body": {
- "XML": {},
- "JSON_ARRAY": {},
- "FORM": {},
- "JSON": {
- "action": "placed",
- "email": "identified_user@gmail.com",
- "occurred_at": "2019-10-14T09:03:17.562Z",
- "order_id": "456445746",
- "provider": "my_custom_order"
- }
- },
- "files": {},
- "userId": ""
- },
- "statusCode": 200
- }
- ]
- }
- }
- },
- {
- "name": "drip",
- "description": "Test 10",
- "feature": "processor",
- "module": "destination",
- "version": "v0",
- "input": {
- "request": {
- "body": [
- {
- "destination": {
- "Config": {
- "apiKey": "dummyApiKey",
- "accountId": "1809802",
- "campaignId": "915194776",
- "enableUserCreation": false
- }
- },
- "message": {
- "channel": "web",
- "context": {
- "app": {
- "build": "1.0.0",
- "name": "RudderLabs JavaScript SDK",
- "namespace": "com.rudderlabs.javascript",
- "version": "1.0.0"
- },
- "library": {
- "name": "RudderLabs JavaScript SDK",
- "version": "1.0.0"
- },
- "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36",
- "locale": "en-US",
- "ip": "0.0.0.0",
- "os": {
- "name": "",
- "version": ""
- },
- "screen": {
- "density": 2
- }
- },
- "messageId": "84e26acc-56a5-4835-8233-591137fca468",
- "session_id": "3049dc4c-5a95-4ccd-a3e7-d74a7e411f22",
- "originalTimestamp": "2019-10-14T09:03:17.562Z",
- "type": "track",
- "event": "checkout started",
- "properties": {
- "email": "identified_user@gmail.com",
- "field1": "val1",
- "affiliation": "my_custom_order",
- "order_id": "456445746",
- "products": [
- {
- "name": "shirt",
- "price": 11.16
- }
- ]
- },
- "integrations": {
- "All": true
- },
- "sentAt": "2019-10-14T09:03:22.563Z"
- }
- }
- ]
- }
- },
- "output": {
- "response": {
- "status": 200,
- "body": [
- {
- "output": {
- "version": "1",
- "type": "REST",
- "method": "POST",
- "endpoint": "https://api.getdrip.com/v3/1809802/shopper_activity/order",
- "headers": {
- "Authorization": "Basic ZHVtbXlBcGlLZXk=",
- "Content-Type": "application/json"
- },
- "params": {},
- "body": {
- "XML": {},
- "JSON_ARRAY": {},
- "FORM": {},
- "JSON": {
- "action": "placed",
- "email": "identified_user@gmail.com",
- "occurred_at": "2019-10-14T09:03:17.562Z",
- "order_id": "456445746",
- "provider": "my_custom_order",
- "items": [
- {
- "name": "shirt",
- "price": 11.16
- }
- ]
- }
- },
- "files": {},
- "userId": ""
- },
- "statusCode": 200
- }
- ]
- }
- }
- },
- {
- "name": "drip",
- "description": "Test 11",
- "feature": "processor",
- "module": "destination",
- "version": "v0",
- "input": {
- "request": {
- "body": [
- {
- "destination": {
- "Config": {
- "apiKey": "dummyApiKey",
- "accountId": "1809802",
- "campaignId": "915194776",
- "enableUserCreation": false
- }
- },
- "message": {
- "channel": "web",
- "context": {
- "app": {
- "build": "1.0.0",
- "name": "RudderLabs JavaScript SDK",
- "namespace": "com.rudderlabs.javascript",
- "version": "1.0.0"
- },
- "library": {
- "name": "RudderLabs JavaScript SDK",
- "version": "1.0.0"
- },
- "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36",
- "locale": "en-US",
- "ip": "0.0.0.0",
- "os": {
- "name": "",
- "version": ""
- },
- "screen": {
- "density": 2
- }
- },
- "messageId": "84e26acc-56a5-4835-8233-591137fca468",
- "session_id": "3049dc4c-5a95-4ccd-a3e7-d74a7e411f22",
- "originalTimestamp": "2019-10-14T09:03:17.562Z",
- "type": "track",
- "event": "checkout",
- "properties": {
- "email": "identified_user@gmail.com",
- "field1": "val1",
- "customFields": {
- "field2": "val2"
- }
- },
- "integrations": {
- "All": true
- },
- "sentAt": "2019-10-14T09:03:22.563Z"
- }
- }
- ]
- }
- },
- "output": {
- "response": {
- "status": 200,
- "body": [
- {
- "output": {
- "version": "1",
- "type": "REST",
- "method": "POST",
- "endpoint": "https://api.getdrip.com/v2/1809802/events",
- "headers": {
- "Authorization": "Basic ZHVtbXlBcGlLZXk=",
- "Content-Type": "application/json"
- },
- "params": {},
- "body": {
- "XML": {},
- "JSON_ARRAY": {},
- "FORM": {},
- "JSON": {
- "events": [
- {
- "action": "checkout",
- "email": "identified_user@gmail.com",
- "occurred_at": "2019-10-14T09:03:17.562Z",
- "properties": {
- "field2": "val2"
- }
- }
- ]
- }
- },
- "files": {},
- "userId": ""
- },
- "statusCode": 200
- }
- ]
- }
- }
- },
- {
- "name": "drip",
- "description": "Test 12",
- "feature": "processor",
- "module": "destination",
- "version": "v0",
- "input": {
- "request": {
- "body": [
- {
- "destination": {
- "Config": {
- "apiKey": "dummyApiKey",
- "accountId": "1809802",
- "campaignId": "",
- "enableUserCreation": true
- }
- },
- "message": {
- "type": "identify",
- "event": "identify",
- "userId": "user@1",
- "channel": "mobile",
- "context": {
- "os": {
- "name": "Android",
- "version": "13"
- },
- "app": {
- "name": "rudderstack",
- "build": "5425",
- "version": "2.4.1"
- },
- "device": {
- "id": "8b048b94cbec4fcf",
- "name": "o1q",
- "type": "Android",
- "model": "SM-G991U",
- "manufacturer": "samsung"
- },
- "locale": "en-US",
- "traits": {
- "id": "ruddertest@gmail.com",
- "email": "ruddertest@gmail.com",
- "title": "Social Impact Program Manager",
- "skills": [
- {
- "id": 134,
- "name": "Business Development",
- "tagGroupId": 2,
- "parentTagId": 134,
- "huddleVisible": false,
- "onboardVisible": false
- },
- {
- "id": 96,
- "name": "Communications",
- "tagGroupId": 2,
- "parentTagId": 96,
- "huddleVisible": true,
- "onboardVisible": true
- },
- {
- "id": 489,
- "name": "Construction",
- "tagGroupId": 2,
- "parentTagId": 489,
- "huddleVisible": false,
- "onboardVisible": false
- },
- {
- "id": 671,
- "name": "Data Analysis",
- "tagGroupId": 2,
- "parentTagId": 671,
- "huddleVisible": false,
- "onboardVisible": false
- },
- {
- "id": 676,
- "name": "Engineering: Mechanical",
- "tagGroupId": 2,
- "parentTagId": 676,
- "huddleVisible": false,
- "onboardVisible": false
- },
- {
- "id": 189,
- "name": "Operations",
- "tagGroupId": 2,
- "parentTagId": 189,
- "huddleVisible": true,
- "onboardVisible": true
- },
- {
- "id": 194,
- "name": "Product Management",
- "tagGroupId": 2,
- "parentTagId": 194,
- "huddleVisible": true,
- "onboardVisible": true
- },
- {
- "id": 195,
- "name": "Program Management",
- "tagGroupId": 2,
- "parentTagId": 195,
- "huddleVisible": false,
- "onboardVisible": false
- },
- {
- "id": 199,
- "name": "R&D",
- "tagGroupId": 2,
- "parentTagId": 199,
- "huddleVisible": false,
- "onboardVisible": false
- },
- {
- "id": 102,
- "name": "Sales",
- "tagGroupId": 2,
- "parentTagId": 102,
- "huddleVisible": true,
- "onboardVisible": true
- }
- ],
- "userId": "ruddertest@gmail.com",
- "address": "Chicago, IL, USA",
- "industry": "Education",
- "lastName": "test",
- "lastname": "test",
- "verified": false,
- "firstName": "rudder",
- "firstname": "rudder",
- "interests": [
- {
- "id": 649,
- "name": "Adaptation",
- "tagGroupId": 4,
- "parentTagId": 745,
- "huddleVisible": false,
- "onboardVisible": false
- },
- {
- "id": 663,
- "name": "Carbon removal and sequestration",
- "tagGroupId": 4,
- "parentTagId": 761,
- "huddleVisible": false,
- "onboardVisible": false
- },
- {
- "id": 664,
- "name": "Clean Energy and Energy Efficiency",
- "tagGroupId": 4,
- "parentTagId": 259,
- "huddleVisible": false,
- "onboardVisible": false
- },
- {
- "id": 654,
- "name": "Climate Science and Earth Systems",
- "tagGroupId": 4,
- "parentTagId": 744,
- "huddleVisible": false,
- "onboardVisible": false
- },
- {
- "id": 650,
- "name": "Corporate Sustainability",
- "tagGroupId": 4,
- "parentTagId": 650,
- "huddleVisible": false,
- "onboardVisible": false
- },
- {
- "id": 651,
- "name": "Finance & Risk",
- "tagGroupId": 4,
- "parentTagId": 651,
- "huddleVisible": false,
- "onboardVisible": false
- },
- {
- "id": 652,
- "name": "Food and Agriculture",
- "tagGroupId": 4,
- "parentTagId": 652,
- "huddleVisible": false,
- "onboardVisible": false
- },
- {
- "id": 665,
- "name": "Transport",
- "tagGroupId": 4,
- "parentTagId": 665,
- "huddleVisible": false,
- "onboardVisible": false
- }
- ],
- "isDeleted": false,
- "anonymousId": "8b048b94cbec4fcf",
- "jobFunction": "Program manager",
- "reminderType": 1,
- "jobPreferences": {
- "motivationStr": "I am looking for a job in climate change.,I want to learn about climate change.,I’d like to connect with other climate enthusiasts.",
- "searchUrgency": "As soon as possible",
- "maxCompensation": 0,
- "minCompensation": 0
- },
- "visibilityType": "public",
- "Linkedin-Signin": true,
- "hubbleOnboarded": false,
- "sharePreference": false,
- "notificationType": 0,
- "shortDescription": "Social Impact Program Manager",
- "jobProfileComplete": false,
- "noOfMonthExperience": 0,
- "onboarding_completed": "Yes"
- },
- "library": {
- "name": "com.rudderstack.android.sdk.core",
- "version": "1.8.1"
- },
- "timezone": "America/Chicago",
- "sessionId": 1681096824,
- "userAgent": "Dalvik/2.1.0 (Linux; U; Android 13; SM-G991U Build/TP1A.220624.014)"
- },
- "rudderId": "f701966c-5568-4500-92ba-4e9023c8fe31",
- "messageId": "77b53247-177f-4ca3-a6b4-aa7558fec280",
- "request_ip": "75.209.176.135",
- "anonymousId": "8b048b94cbec4fcf",
- "integrations": {
- "All": true
- }
- }
- }
- ]
- }
- },
- "output": {
- "response": {
- "status": 200,
- "body": [
- {
- "output": {
- "version": "1",
- "type": "REST",
- "method": "POST",
- "endpoint": "https://api.getdrip.com/v2/1809802/subscribers",
- "headers": {
- "Authorization": "Basic ZHVtbXlBcGlLZXk=",
- "Content-Type": "application/json"
- },
- "params": {},
- "body": {
- "XML": {},
- "JSON_ARRAY": {},
- "FORM": {},
- "JSON": {
- "subscribers": [
- {
- "email": "ruddertest@gmail.com",
- "user_id": "user@1",
- "address1": "Chicago, IL, USA",
- "last_name": "test",
- "first_name": "rudder",
- "custom_fields": {
- "title": "Social Impact Program Manager",
- "industry": "Education",
- "verified": false,
- "isDeleted": false,
- "jobFunction": "Program manager",
- "reminderType": 1,
- "jobPreferences": {
- "motivationStr": "I am looking for a job in climate change.,I want to learn about climate change.,I’d like to connect with other climate enthusiasts.",
- "searchUrgency": "As soon as possible",
- "maxCompensation": 0,
- "minCompensation": 0
- },
- "visibilityType": "public",
- "hubbleOnboarded": false,
- "sharePreference": false,
- "notificationType": 0,
- "shortDescription": "Social Impact Program Manager",
- "jobProfileComplete": false,
- "noOfMonthExperience": 0,
- "onboarding_completed": "Yes"
- }
- }
- ]
- }
- },
- "files": {},
- "userId": ""
- },
- "statusCode": 200
- }
- ]
- }
- }
- }
-]
+ {
+ name: 'drip',
+ description: 'Test 0',
+ feature: 'processor',
+ module: 'destination',
+ version: 'v0',
+ input: {
+ request: {
+ body: [
+ {
+ destination: {
+ Config: {
+ apiKey: 'dummyApiKey',
+ accountId: '1809802',
+ campaignId: '',
+ enableUserCreation: true,
+ },
+ },
+ message: {
+ channel: 'web',
+ context: {
+ app: {
+ build: '1.0.0',
+ name: 'RudderLabs JavaScript SDK',
+ namespace: 'com.rudderlabs.javascript',
+ version: '1.0.0',
+ },
+ library: {
+ name: 'RudderLabs JavaScript SDK',
+ version: '1.0.0',
+ },
+ userAgent:
+ 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36',
+ locale: 'en-US',
+ ip: '0.0.0.0',
+ os: {
+ name: '',
+ version: '',
+ },
+ screen: {
+ density: 2,
+ },
+ },
+ messageId: '84e26acc-56a5-4835-8233-591137fca468',
+ session_id: '3049dc4c-5a95-4ccd-a3e7-d74a7e411f22',
+ originalTimestamp: '2019-10-14T09:03:17.562Z',
+ type: 'identify',
+ traits: {
+ email: 'test1@gmail.com',
+ firstName: 'James',
+ lastName: 'Doe',
+ phone: '237416221',
+ customFields: {
+ filter1: 'filterval1',
+ },
+ },
+ integrations: {
+ All: true,
+ },
+ sentAt: '2019-10-14T09:03:22.563Z',
+ },
+ },
+ ],
+ },
+ },
+ output: {
+ response: {
+ status: 200,
+ body: [
+ {
+ output: {
+ version: '1',
+ type: 'REST',
+ method: 'POST',
+ endpoint: 'https://api.getdrip.com/v2/1809802/subscribers',
+ headers: {
+ Authorization: 'Basic ZHVtbXlBcGlLZXk=',
+ 'Content-Type': 'application/json',
+ },
+ params: {},
+ body: {
+ XML: {},
+ JSON_ARRAY: {},
+ FORM: {},
+ JSON: {
+ subscribers: [
+ {
+ email: 'test1@gmail.com',
+ first_name: 'James',
+ last_name: 'Doe',
+ phone: '237416221',
+ ip_address: '0.0.0.0',
+ custom_fields: {
+ filter1: 'filterval1',
+ },
+ },
+ ],
+ },
+ },
+ files: {},
+ userId: '',
+ },
+ statusCode: 200,
+ },
+ ],
+ },
+ },
+ },
+ {
+ name: 'drip',
+ description: 'Test 1',
+ feature: 'processor',
+ module: 'destination',
+ version: 'v0',
+ input: {
+ request: {
+ body: [
+ {
+ destination: {
+ Config: {
+ apiKey: 'dummyApiKey',
+ accountId: '1809802',
+ campaignId: '',
+ enableUserCreation: true,
+ },
+ },
+ message: {
+ channel: 'web',
+ context: {
+ app: {
+ build: '1.0.0',
+ name: 'RudderLabs JavaScript SDK',
+ namespace: 'com.rudderlabs.javascript',
+ version: '1.0.0',
+ },
+ library: {
+ name: 'RudderLabs JavaScript SDK',
+ version: '1.0.0',
+ },
+ userAgent:
+ 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36',
+ locale: 'en-US',
+ ip: '0.0.0.0',
+ os: {
+ name: '',
+ version: '',
+ },
+ screen: {
+ density: 2,
+ },
+ },
+ messageId: '84e26acc-56a5-4835-8233-591137fca468',
+ session_id: '3049dc4c-5a95-4ccd-a3e7-d74a7e411f22',
+ originalTimestamp: '2019-10-14T09:03:17.562Z',
+ type: 'identify',
+ traits: {
+ email: '12324adfgs',
+ firstName: 'James',
+ lastName: 'Doe',
+ phone: '237416221',
+ customFields: {
+ filter1: 'filterval1',
+ },
+ },
+ integrations: {
+ All: true,
+ },
+ sentAt: '2019-10-14T09:03:22.563Z',
+ },
+ },
+ ],
+ },
+ },
+ output: {
+ response: {
+ status: 200,
+ body: [
+ {
+ error: 'dripId or email is required for the call',
+ statTags: {
+ destType: 'DRIP',
+ errorCategory: 'dataValidation',
+ errorType: 'instrumentation',
+ feature: 'processor',
+ implementation: 'native',
+ module: 'destination',
+ },
+ statusCode: 400,
+ },
+ ],
+ },
+ },
+ },
+ {
+ name: 'drip',
+ description: 'Test 2',
+ feature: 'processor',
+ module: 'destination',
+ version: 'v0',
+ input: {
+ request: {
+ body: [
+ {
+ destination: {
+ Config: {
+ apiKey: 'dummyApiKey',
+ accountId: '1809802',
+ campaignId: '',
+ enableUserCreation: true,
+ },
+ },
+ message: {
+ channel: 'web',
+ context: {
+ app: {
+ build: '1.0.0',
+ name: 'RudderLabs JavaScript SDK',
+ namespace: 'com.rudderlabs.javascript',
+ version: '1.0.0',
+ },
+ library: {
+ name: 'RudderLabs JavaScript SDK',
+ version: '1.0.0',
+ },
+ userAgent:
+ 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36',
+ locale: 'en-US',
+ ip: '0.0.0.0',
+ os: {
+ name: '',
+ version: '',
+ },
+ screen: {
+ density: 2,
+ },
+ },
+ messageId: '84e26acc-56a5-4835-8233-591137fca468',
+ session_id: '3049dc4c-5a95-4ccd-a3e7-d74a7e411f22',
+ originalTimestamp: '2019-10-14T09:03:17.562Z',
+ type: 'identify',
+ traits: {
+ email: 'test1@gmail.com',
+ name: 'James Doe',
+ phone: '237416221',
+ filter1: 'filterval1',
+ filter2: 'filterval2',
+ },
+ integrations: {
+ All: true,
+ },
+ sentAt: '2019-10-14T09:03:22.563Z',
+ },
+ },
+ ],
+ },
+ },
+ output: {
+ response: {
+ status: 200,
+ body: [
+ {
+ output: {
+ version: '1',
+ type: 'REST',
+ method: 'POST',
+ endpoint: 'https://api.getdrip.com/v2/1809802/subscribers',
+ headers: {
+ Authorization: 'Basic ZHVtbXlBcGlLZXk=',
+ 'Content-Type': 'application/json',
+ },
+ params: {},
+ body: {
+ XML: {},
+ JSON_ARRAY: {},
+ FORM: {},
+ JSON: {
+ subscribers: [
+ {
+ email: 'test1@gmail.com',
+ first_name: 'James',
+ last_name: 'Doe',
+ phone: '237416221',
+ ip_address: '0.0.0.0',
+ custom_fields: {
+ filter1: 'filterval1',
+ filter2: 'filterval2',
+ },
+ },
+ ],
+ },
+ },
+ files: {},
+ userId: '',
+ },
+ statusCode: 200,
+ },
+ ],
+ },
+ },
+ },
+ {
+ name: 'drip',
+ description: 'Test 3',
+ feature: 'processor',
+ module: 'destination',
+ version: 'v0',
+ input: {
+ request: {
+ body: [
+ {
+ destination: {
+ Config: {
+ apiKey: 'dummyApiKey',
+ accountId: '1809802',
+ campaignId: '915194776',
+ enableUserCreation: true,
+ },
+ },
+ message: {
+ channel: 'web',
+ context: {
+ app: {
+ build: '1.0.0',
+ name: 'RudderLabs JavaScript SDK',
+ namespace: 'com.rudderlabs.javascript',
+ version: '1.0.0',
+ },
+ library: {
+ name: 'RudderLabs JavaScript SDK',
+ version: '1.0.0',
+ },
+ userAgent:
+ 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36',
+ locale: 'en-US',
+ ip: '0.0.0.0',
+ os: {
+ name: '',
+ version: '',
+ },
+ screen: {
+ density: 2,
+ },
+ },
+ messageId: '84e26acc-56a5-4835-8233-591137fca468',
+ session_id: '3049dc4c-5a95-4ccd-a3e7-d74a7e411f22',
+ originalTimestamp: '2019-10-14T09:03:17.562Z',
+ type: 'identify',
+ traits: {
+ email: 'test1@gmail.com',
+ name: 'James Doe',
+ phone: '237416221',
+ filter1: 'filterval1',
+ filter2: 'filterval2',
+ tags: ['tag1', 'tag2'],
+ startingEmailIndex: 1,
+ },
+ integrations: {
+ All: true,
+ },
+ sentAt: '2019-10-14T09:03:22.563Z',
+ },
+ },
+ ],
+ },
+ },
+ output: {
+ response: {
+ status: 200,
+ body: [
+ {
+ output: {
+ version: '1',
+ type: 'REST',
+ method: 'POST',
+ endpoint: 'https://api.getdrip.com/v2/1809802/campaigns/915194776/subscribers',
+ headers: {
+ Authorization: 'Basic ZHVtbXlBcGlLZXk=',
+ 'Content-Type': 'application/json',
+ },
+ params: {},
+ body: {
+ XML: {},
+ JSON_ARRAY: {},
+ FORM: {},
+ JSON: {
+ subscribers: [
+ {
+ email: 'test1@gmail.com',
+ starting_email_index: 1,
+ },
+ ],
+ },
+ },
+ files: {},
+ userId: '',
+ },
+ statusCode: 200,
+ },
+ ],
+ },
+ },
+ },
+ {
+ name: 'drip',
+ description: 'Test 4',
+ feature: 'processor',
+ module: 'destination',
+ version: 'v0',
+ input: {
+ request: {
+ body: [
+ {
+ destination: {
+ Config: {
+ apiKey: 'dummyApiKey',
+ accountId: '1809802',
+ campaignId: '915194776',
+ enableUserCreation: true,
+ },
+ },
+ message: {
+ channel: 'web',
+ context: {
+ app: {
+ build: '1.0.0',
+ name: 'RudderLabs JavaScript SDK',
+ namespace: 'com.rudderlabs.javascript',
+ version: '1.0.0',
+ },
+ library: {
+ name: 'RudderLabs JavaScript SDK',
+ version: '1.0.0',
+ },
+ userAgent:
+ 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36',
+ locale: 'en-US',
+ ip: '0.0.0.0',
+ os: {
+ name: '',
+ version: '',
+ },
+ screen: {
+ density: 2,
+ },
+ },
+ messageId: '84e26acc-56a5-4835-8233-591137fca468',
+ session_id: '3049dc4c-5a95-4ccd-a3e7-d74a7e411f22',
+ originalTimestamp: '2019-10-14T09:03:17.562Z',
+ type: 'track',
+ event: 'testing',
+ properties: {
+ email: 'user1@gmail.com',
+ customFields: {
+ field1: 'val1',
+ },
+ },
+ integrations: {
+ All: true,
+ },
+ sentAt: '2019-10-14T09:03:22.563Z',
+ },
+ },
+ ],
+ },
+ },
+ output: {
+ response: {
+ status: 200,
+ body: [
+ {
+ output: {
+ version: '1',
+ type: 'REST',
+ method: 'POST',
+ endpoint: 'https://api.getdrip.com/v2/1809802/events',
+ headers: {
+ Authorization: 'Basic ZHVtbXlBcGlLZXk=',
+ 'Content-Type': 'application/json',
+ },
+ params: {},
+ body: {
+ XML: {},
+ JSON_ARRAY: {},
+ FORM: {},
+ JSON: {
+ events: [
+ {
+ email: 'user1@gmail.com',
+ properties: {
+ field1: 'val1',
+ },
+ action: 'testing',
+ occurred_at: '2019-10-14T09:03:17.562Z',
+ },
+ ],
+ },
+ },
+ files: {},
+ userId: '',
+ },
+ statusCode: 200,
+ },
+ ],
+ },
+ },
+ },
+ {
+ name: 'drip',
+ description: 'Test 5',
+ feature: 'processor',
+ module: 'destination',
+ version: 'v0',
+ input: {
+ request: {
+ body: [
+ {
+ destination: {
+ Config: {
+ apiKey: 'dummyApiKey',
+ accountId: '1809802',
+ campaignId: '915194776',
+ enableUserCreation: true,
+ },
+ },
+ message: {
+ channel: 'web',
+ context: {
+ app: {
+ build: '1.0.0',
+ name: 'RudderLabs JavaScript SDK',
+ namespace: 'com.rudderlabs.javascript',
+ version: '1.0.0',
+ },
+ library: {
+ name: 'RudderLabs JavaScript SDK',
+ version: '1.0.0',
+ },
+ userAgent:
+ 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36',
+ locale: 'en-US',
+ ip: '0.0.0.0',
+ os: {
+ name: '',
+ version: '',
+ },
+ screen: {
+ density: 2,
+ },
+ },
+ messageId: '84e26acc-56a5-4835-8233-591137fca468',
+ session_id: '3049dc4c-5a95-4ccd-a3e7-d74a7e411f22',
+ originalTimestamp: '2019-10-14T09:03:17.562Z',
+ type: 'track',
+ event: '',
+ properties: {
+ email: 'user1@gmail.com',
+ custom_fields: {
+ field1: 'val1',
+ },
+ },
+ integrations: {
+ All: true,
+ },
+ sentAt: '2019-10-14T09:03:22.563Z',
+ },
+ },
+ ],
+ },
+ },
+ output: {
+ response: {
+ status: 200,
+ body: [
+ {
+ error: 'Event name is required',
+ statTags: {
+ destType: 'DRIP',
+ errorCategory: 'dataValidation',
+ errorType: 'instrumentation',
+ feature: 'processor',
+ implementation: 'native',
+ module: 'destination',
+ },
+ statusCode: 400,
+ },
+ ],
+ },
+ },
+ },
+ {
+ name: 'drip',
+ description: 'Test 6',
+ feature: 'processor',
+ module: 'destination',
+ version: 'v0',
+ input: {
+ request: {
+ body: [
+ {
+ destination: {
+ Config: {
+ apiKey: 'dummyApiKey',
+ accountId: '1809802',
+ campaignId: '915194776',
+ enableUserCreation: false,
+ },
+ },
+ message: {
+ channel: 'web',
+ context: {
+ app: {
+ build: '1.0.0',
+ name: 'RudderLabs JavaScript SDK',
+ namespace: 'com.rudderlabs.javascript',
+ version: '1.0.0',
+ },
+ library: {
+ name: 'RudderLabs JavaScript SDK',
+ version: '1.0.0',
+ },
+ userAgent:
+ 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36',
+ locale: 'en-US',
+ ip: '0.0.0.0',
+ os: {
+ name: '',
+ version: '',
+ },
+ screen: {
+ density: 2,
+ },
+ },
+ messageId: '84e26acc-56a5-4835-8233-591137fca468',
+ session_id: '3049dc4c-5a95-4ccd-a3e7-d74a7e411f22',
+ originalTimestamp: '2019-10-14T09:03:17.562Z',
+ type: 'track',
+ event: 'testing',
+ properties: {
+ email: 'identified_user@gmail.com',
+ customFields: {
+ field1: 'val1',
+ },
+ },
+ integrations: {
+ All: true,
+ },
+ sentAt: '2019-10-14T09:03:22.563Z',
+ },
+ },
+ ],
+ },
+ },
+ output: {
+ response: {
+ status: 200,
+ body: [
+ {
+ output: {
+ version: '1',
+ type: 'REST',
+ method: 'POST',
+ endpoint: 'https://api.getdrip.com/v2/1809802/events',
+ headers: {
+ Authorization: 'Basic ZHVtbXlBcGlLZXk=',
+ 'Content-Type': 'application/json',
+ },
+ params: {},
+ body: {
+ XML: {},
+ JSON_ARRAY: {},
+ FORM: {},
+ JSON: {
+ events: [
+ {
+ email: 'identified_user@gmail.com',
+ properties: {
+ field1: 'val1',
+ },
+ action: 'testing',
+ occurred_at: '2019-10-14T09:03:17.562Z',
+ },
+ ],
+ },
+ },
+ files: {},
+ userId: '',
+ },
+ statusCode: 200,
+ },
+ ],
+ },
+ },
+ },
+ {
+ name: 'drip',
+ description: 'Test 7',
+ feature: 'processor',
+ module: 'destination',
+ version: 'v0',
+ input: {
+ request: {
+ body: [
+ {
+ destination: {
+ Config: {
+ apiKey: 'dummyApiKey',
+ accountId: '1809802',
+ campaignId: '915194776',
+ enableUserCreation: false,
+ },
+ },
+ message: {
+ channel: 'web',
+ context: {
+ app: {
+ build: '1.0.0',
+ name: 'RudderLabs JavaScript SDK',
+ namespace: 'com.rudderlabs.javascript',
+ version: '1.0.0',
+ },
+ library: {
+ name: 'RudderLabs JavaScript SDK',
+ version: '1.0.0',
+ },
+ userAgent:
+ 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36',
+ locale: 'en-US',
+ ip: '0.0.0.0',
+ os: {
+ name: '',
+ version: '',
+ },
+ screen: {
+ density: 2,
+ },
+ },
+ messageId: '84e26acc-56a5-4835-8233-591137fca468',
+ session_id: '3049dc4c-5a95-4ccd-a3e7-d74a7e411f22',
+ originalTimestamp: '2019-10-14T09:03:17.562Z',
+ type: 'track',
+ event: 'testing',
+ properties: {
+ email: 'identified_user@gmail.com',
+ field1: 'val1',
+ },
+ integrations: {
+ All: true,
+ },
+ sentAt: '2019-10-14T09:03:22.563Z',
+ },
+ },
+ ],
+ },
+ },
+ output: {
+ response: {
+ status: 200,
+ body: [
+ {
+ output: {
+ version: '1',
+ type: 'REST',
+ method: 'POST',
+ endpoint: 'https://api.getdrip.com/v2/1809802/events',
+ headers: {
+ Authorization: 'Basic ZHVtbXlBcGlLZXk=',
+ 'Content-Type': 'application/json',
+ },
+ params: {},
+ body: {
+ XML: {},
+ JSON_ARRAY: {},
+ FORM: {},
+ JSON: {
+ events: [
+ {
+ email: 'identified_user@gmail.com',
+ properties: {
+ field1: 'val1',
+ },
+ action: 'testing',
+ occurred_at: '2019-10-14T09:03:17.562Z',
+ },
+ ],
+ },
+ },
+ files: {},
+ userId: '',
+ },
+ statusCode: 200,
+ },
+ ],
+ },
+ },
+ },
+ {
+ name: 'drip',
+ description: 'Test 8',
+ feature: 'processor',
+ module: 'destination',
+ version: 'v0',
+ input: {
+ request: {
+ body: [
+ {
+ destination: {
+ Config: {
+ apiKey: 'dummyApiKey',
+ accountId: '1809802',
+ campaignId: '915194776',
+ enableUserCreation: false,
+ },
+ },
+ message: {
+ channel: 'web',
+ context: {
+ app: {
+ build: '1.0.0',
+ name: 'RudderLabs JavaScript SDK',
+ namespace: 'com.rudderlabs.javascript',
+ version: '1.0.0',
+ },
+ library: {
+ name: 'RudderLabs JavaScript SDK',
+ version: '1.0.0',
+ },
+ userAgent:
+ 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36',
+ locale: 'en-US',
+ ip: '0.0.0.0',
+ os: {
+ name: '',
+ version: '',
+ },
+ screen: {
+ density: 2,
+ },
+ },
+ messageId: '84e26acc-56a5-4835-8233-591137fca468',
+ session_id: '3049dc4c-5a95-4ccd-a3e7-d74a7e411f22',
+ originalTimestamp: '2019-10-14T09:03:17.562Z',
+ type: 'track',
+ event: 'testing',
+ properties: {
+ email: 'unidentified_user@gmail.com',
+ field1: 'val1',
+ },
+ integrations: {
+ All: true,
+ },
+ sentAt: '2019-10-14T09:03:22.563Z',
+ },
+ },
+ ],
+ },
+ },
+ output: {
+ response: {
+ status: 200,
+ body: [
+ {
+ error: 'Error occurred while checking user : error response not found',
+ statTags: {
+ destType: 'DRIP',
+ errorCategory: 'network',
+ errorType: 'aborted',
+ feature: 'processor',
+ implementation: 'native',
+ module: 'destination',
+ },
+ statusCode: 400,
+ },
+ ],
+ },
+ },
+ },
+ {
+ name: 'drip',
+ description: 'Test 9',
+ feature: 'processor',
+ module: 'destination',
+ version: 'v0',
+ input: {
+ request: {
+ body: [
+ {
+ destination: {
+ Config: {
+ apiKey: 'dummyApiKey',
+ accountId: '1809802',
+ campaignId: '915194776',
+ enableUserCreation: false,
+ },
+ },
+ message: {
+ channel: 'web',
+ context: {
+ app: {
+ build: '1.0.0',
+ name: 'RudderLabs JavaScript SDK',
+ namespace: 'com.rudderlabs.javascript',
+ version: '1.0.0',
+ },
+ library: {
+ name: 'RudderLabs JavaScript SDK',
+ version: '1.0.0',
+ },
+ userAgent:
+ 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36',
+ locale: 'en-US',
+ ip: '0.0.0.0',
+ os: {
+ name: '',
+ version: '',
+ },
+ screen: {
+ density: 2,
+ },
+ },
+ messageId: '84e26acc-56a5-4835-8233-591137fca468',
+ session_id: '3049dc4c-5a95-4ccd-a3e7-d74a7e411f22',
+ originalTimestamp: '2019-10-14T09:03:17.562Z',
+ type: 'track',
+ event: 'checkout started',
+ properties: {
+ email: 'identified_user@gmail.com',
+ field1: 'val1',
+ affiliation: 'my_custom_order',
+ order_id: '456445746',
+ },
+ integrations: {
+ All: true,
+ },
+ sentAt: '2019-10-14T09:03:22.563Z',
+ },
+ },
+ ],
+ },
+ },
+ output: {
+ response: {
+ status: 200,
+ body: [
+ {
+ output: {
+ version: '1',
+ type: 'REST',
+ method: 'POST',
+ endpoint: 'https://api.getdrip.com/v3/1809802/shopper_activity/order',
+ headers: {
+ Authorization: 'Basic ZHVtbXlBcGlLZXk=',
+ 'Content-Type': 'application/json',
+ },
+ params: {},
+ body: {
+ XML: {},
+ JSON_ARRAY: {},
+ FORM: {},
+ JSON: {
+ action: 'placed',
+ email: 'identified_user@gmail.com',
+ occurred_at: '2019-10-14T09:03:17.562Z',
+ order_id: '456445746',
+ provider: 'my_custom_order',
+ },
+ },
+ files: {},
+ userId: '',
+ },
+ statusCode: 200,
+ },
+ ],
+ },
+ },
+ },
+ {
+ name: 'drip',
+ description: 'Test 10',
+ feature: 'processor',
+ module: 'destination',
+ version: 'v0',
+ input: {
+ request: {
+ body: [
+ {
+ destination: {
+ Config: {
+ apiKey: 'dummyApiKey',
+ accountId: '1809802',
+ campaignId: '915194776',
+ enableUserCreation: false,
+ },
+ },
+ message: {
+ channel: 'web',
+ context: {
+ app: {
+ build: '1.0.0',
+ name: 'RudderLabs JavaScript SDK',
+ namespace: 'com.rudderlabs.javascript',
+ version: '1.0.0',
+ },
+ library: {
+ name: 'RudderLabs JavaScript SDK',
+ version: '1.0.0',
+ },
+ userAgent:
+ 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36',
+ locale: 'en-US',
+ ip: '0.0.0.0',
+ os: {
+ name: '',
+ version: '',
+ },
+ screen: {
+ density: 2,
+ },
+ },
+ messageId: '84e26acc-56a5-4835-8233-591137fca468',
+ session_id: '3049dc4c-5a95-4ccd-a3e7-d74a7e411f22',
+ originalTimestamp: '2019-10-14T09:03:17.562Z',
+ type: 'track',
+ event: 'checkout started',
+ properties: {
+ email: 'identified_user@gmail.com',
+ field1: 'val1',
+ affiliation: 'my_custom_order',
+ order_id: '456445746',
+ products: [
+ {
+ name: 'shirt',
+ price: 11.16,
+ },
+ ],
+ },
+ integrations: {
+ All: true,
+ },
+ sentAt: '2019-10-14T09:03:22.563Z',
+ },
+ },
+ ],
+ },
+ },
+ output: {
+ response: {
+ status: 200,
+ body: [
+ {
+ output: {
+ version: '1',
+ type: 'REST',
+ method: 'POST',
+ endpoint: 'https://api.getdrip.com/v3/1809802/shopper_activity/order',
+ headers: {
+ Authorization: 'Basic ZHVtbXlBcGlLZXk=',
+ 'Content-Type': 'application/json',
+ },
+ params: {},
+ body: {
+ XML: {},
+ JSON_ARRAY: {},
+ FORM: {},
+ JSON: {
+ action: 'placed',
+ email: 'identified_user@gmail.com',
+ occurred_at: '2019-10-14T09:03:17.562Z',
+ order_id: '456445746',
+ provider: 'my_custom_order',
+ items: [
+ {
+ name: 'shirt',
+ price: 11.16,
+ },
+ ],
+ },
+ },
+ files: {},
+ userId: '',
+ },
+ statusCode: 200,
+ },
+ ],
+ },
+ },
+ },
+ {
+ name: 'drip',
+ description: 'Test 11',
+ feature: 'processor',
+ module: 'destination',
+ version: 'v0',
+ input: {
+ request: {
+ body: [
+ {
+ destination: {
+ Config: {
+ apiKey: 'dummyApiKey',
+ accountId: '1809802',
+ campaignId: '915194776',
+ enableUserCreation: false,
+ },
+ },
+ message: {
+ channel: 'web',
+ context: {
+ app: {
+ build: '1.0.0',
+ name: 'RudderLabs JavaScript SDK',
+ namespace: 'com.rudderlabs.javascript',
+ version: '1.0.0',
+ },
+ library: {
+ name: 'RudderLabs JavaScript SDK',
+ version: '1.0.0',
+ },
+ userAgent:
+ 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36',
+ locale: 'en-US',
+ ip: '0.0.0.0',
+ os: {
+ name: '',
+ version: '',
+ },
+ screen: {
+ density: 2,
+ },
+ },
+ messageId: '84e26acc-56a5-4835-8233-591137fca468',
+ session_id: '3049dc4c-5a95-4ccd-a3e7-d74a7e411f22',
+ originalTimestamp: '2019-10-14T09:03:17.562Z',
+ type: 'track',
+ event: 'checkout',
+ properties: {
+ email: 'identified_user@gmail.com',
+ field1: 'val1',
+ customFields: {
+ field2: 'val2',
+ },
+ },
+ integrations: {
+ All: true,
+ },
+ sentAt: '2019-10-14T09:03:22.563Z',
+ },
+ },
+ ],
+ },
+ },
+ output: {
+ response: {
+ status: 200,
+ body: [
+ {
+ output: {
+ version: '1',
+ type: 'REST',
+ method: 'POST',
+ endpoint: 'https://api.getdrip.com/v2/1809802/events',
+ headers: {
+ Authorization: 'Basic ZHVtbXlBcGlLZXk=',
+ 'Content-Type': 'application/json',
+ },
+ params: {},
+ body: {
+ XML: {},
+ JSON_ARRAY: {},
+ FORM: {},
+ JSON: {
+ events: [
+ {
+ action: 'checkout',
+ email: 'identified_user@gmail.com',
+ occurred_at: '2019-10-14T09:03:17.562Z',
+ properties: {
+ field2: 'val2',
+ },
+ },
+ ],
+ },
+ },
+ files: {},
+ userId: '',
+ },
+ statusCode: 200,
+ },
+ ],
+ },
+ },
+ },
+ {
+ name: 'drip',
+ description: 'Test 12',
+ feature: 'processor',
+ module: 'destination',
+ version: 'v0',
+ input: {
+ request: {
+ body: [
+ {
+ destination: {
+ Config: {
+ apiKey: 'dummyApiKey',
+ accountId: '1809802',
+ campaignId: '',
+ enableUserCreation: true,
+ },
+ },
+ message: {
+ type: 'identify',
+ event: 'identify',
+ userId: 'user@1',
+ channel: 'mobile',
+ context: {
+ os: {
+ name: 'Android',
+ version: '13',
+ },
+ app: {
+ name: 'rudderstack',
+ build: '5425',
+ version: '2.4.1',
+ },
+ device: {
+ id: '8b048b94cbec4fcf',
+ name: 'o1q',
+ type: 'Android',
+ model: 'SM-G991U',
+ manufacturer: 'samsung',
+ },
+ locale: 'en-US',
+ traits: {
+ id: 'ruddertest@gmail.com',
+ email: 'ruddertest@gmail.com',
+ title: 'Social Impact Program Manager',
+ skills: [
+ {
+ id: 134,
+ name: 'Business Development',
+ tagGroupId: 2,
+ parentTagId: 134,
+ huddleVisible: false,
+ onboardVisible: false,
+ },
+ {
+ id: 96,
+ name: 'Communications',
+ tagGroupId: 2,
+ parentTagId: 96,
+ huddleVisible: true,
+ onboardVisible: true,
+ },
+ {
+ id: 489,
+ name: 'Construction',
+ tagGroupId: 2,
+ parentTagId: 489,
+ huddleVisible: false,
+ onboardVisible: false,
+ },
+ {
+ id: 671,
+ name: 'Data Analysis',
+ tagGroupId: 2,
+ parentTagId: 671,
+ huddleVisible: false,
+ onboardVisible: false,
+ },
+ {
+ id: 676,
+ name: 'Engineering: Mechanical',
+ tagGroupId: 2,
+ parentTagId: 676,
+ huddleVisible: false,
+ onboardVisible: false,
+ },
+ {
+ id: 189,
+ name: 'Operations',
+ tagGroupId: 2,
+ parentTagId: 189,
+ huddleVisible: true,
+ onboardVisible: true,
+ },
+ {
+ id: 194,
+ name: 'Product Management',
+ tagGroupId: 2,
+ parentTagId: 194,
+ huddleVisible: true,
+ onboardVisible: true,
+ },
+ {
+ id: 195,
+ name: 'Program Management',
+ tagGroupId: 2,
+ parentTagId: 195,
+ huddleVisible: false,
+ onboardVisible: false,
+ },
+ {
+ id: 199,
+ name: 'R&D',
+ tagGroupId: 2,
+ parentTagId: 199,
+ huddleVisible: false,
+ onboardVisible: false,
+ },
+ {
+ id: 102,
+ name: 'Sales',
+ tagGroupId: 2,
+ parentTagId: 102,
+ huddleVisible: true,
+ onboardVisible: true,
+ },
+ ],
+ userId: 'ruddertest@gmail.com',
+ address: 'Chicago, IL, USA',
+ industry: 'Education',
+ lastName: 'test',
+ lastname: 'test',
+ verified: false,
+ firstName: 'rudder',
+ firstname: 'rudder',
+ interests: [
+ {
+ id: 649,
+ name: 'Adaptation',
+ tagGroupId: 4,
+ parentTagId: 745,
+ huddleVisible: false,
+ onboardVisible: false,
+ },
+ {
+ id: 663,
+ name: 'Carbon removal and sequestration',
+ tagGroupId: 4,
+ parentTagId: 761,
+ huddleVisible: false,
+ onboardVisible: false,
+ },
+ {
+ id: 664,
+ name: 'Clean Energy and Energy Efficiency',
+ tagGroupId: 4,
+ parentTagId: 259,
+ huddleVisible: false,
+ onboardVisible: false,
+ },
+ {
+ id: 654,
+ name: 'Climate Science and Earth Systems',
+ tagGroupId: 4,
+ parentTagId: 744,
+ huddleVisible: false,
+ onboardVisible: false,
+ },
+ {
+ id: 650,
+ name: 'Corporate Sustainability',
+ tagGroupId: 4,
+ parentTagId: 650,
+ huddleVisible: false,
+ onboardVisible: false,
+ },
+ {
+ id: 651,
+ name: 'Finance & Risk',
+ tagGroupId: 4,
+ parentTagId: 651,
+ huddleVisible: false,
+ onboardVisible: false,
+ },
+ {
+ id: 652,
+ name: 'Food and Agriculture',
+ tagGroupId: 4,
+ parentTagId: 652,
+ huddleVisible: false,
+ onboardVisible: false,
+ },
+ {
+ id: 665,
+ name: 'Transport',
+ tagGroupId: 4,
+ parentTagId: 665,
+ huddleVisible: false,
+ onboardVisible: false,
+ },
+ ],
+ isDeleted: false,
+ anonymousId: '8b048b94cbec4fcf',
+ jobFunction: 'Program manager',
+ reminderType: 1,
+ jobPreferences: {
+ motivationStr:
+ 'I am looking for a job in climate change.,I want to learn about climate change.,I’d like to connect with other climate enthusiasts.',
+ searchUrgency: 'As soon as possible',
+ maxCompensation: 0,
+ minCompensation: 0,
+ },
+ visibilityType: 'public',
+ 'Linkedin-Signin': true,
+ hubbleOnboarded: false,
+ sharePreference: false,
+ notificationType: 0,
+ shortDescription: 'Social Impact Program Manager',
+ jobProfileComplete: false,
+ noOfMonthExperience: 0,
+ onboarding_completed: 'Yes',
+ },
+ library: {
+ name: 'com.rudderstack.android.sdk.core',
+ version: '1.8.1',
+ },
+ timezone: 'America/Chicago',
+ sessionId: 1681096824,
+ userAgent: 'Dalvik/2.1.0 (Linux; U; Android 13; SM-G991U Build/TP1A.220624.014)',
+ },
+ rudderId: 'f701966c-5568-4500-92ba-4e9023c8fe31',
+ messageId: '77b53247-177f-4ca3-a6b4-aa7558fec280',
+ request_ip: '75.209.176.135',
+ anonymousId: '8b048b94cbec4fcf',
+ integrations: {
+ All: true,
+ },
+ },
+ },
+ ],
+ },
+ },
+ output: {
+ response: {
+ status: 200,
+ body: [
+ {
+ output: {
+ version: '1',
+ type: 'REST',
+ method: 'POST',
+ endpoint: 'https://api.getdrip.com/v2/1809802/subscribers',
+ headers: {
+ Authorization: 'Basic ZHVtbXlBcGlLZXk=',
+ 'Content-Type': 'application/json',
+ },
+ params: {},
+ body: {
+ XML: {},
+ JSON_ARRAY: {},
+ FORM: {},
+ JSON: {
+ subscribers: [
+ {
+ email: 'ruddertest@gmail.com',
+ user_id: 'user@1',
+ address1: 'Chicago, IL, USA',
+ last_name: 'test',
+ first_name: 'rudder',
+ custom_fields: {
+ title: 'Social Impact Program Manager',
+ industry: 'Education',
+ verified: false,
+ isDeleted: false,
+ jobFunction: 'Program manager',
+ reminderType: 1,
+ jobPreferences: {
+ motivationStr:
+ 'I am looking for a job in climate change.,I want to learn about climate change.,I’d like to connect with other climate enthusiasts.',
+ searchUrgency: 'As soon as possible',
+ maxCompensation: 0,
+ minCompensation: 0,
+ },
+ visibilityType: 'public',
+ hubbleOnboarded: false,
+ sharePreference: false,
+ notificationType: 0,
+ shortDescription: 'Social Impact Program Manager',
+ jobProfileComplete: false,
+ noOfMonthExperience: 0,
+ onboarding_completed: 'Yes',
+ },
+ },
+ ],
+ },
+ },
+ files: {},
+ userId: '',
+ },
+ statusCode: 200,
+ },
+ ],
+ },
+ },
+ },
+];
diff --git a/test/integrations/destinations/freshmarketer/processor/data.ts b/test/integrations/destinations/freshmarketer/processor/data.ts
index c05dedef1f..ed920faef0 100644
--- a/test/integrations/destinations/freshmarketer/processor/data.ts
+++ b/test/integrations/destinations/freshmarketer/processor/data.ts
@@ -1,3130 +1,3147 @@
export const data = [
- {
- "name": "freshmarketer",
- "description": "Identify call for creating new user",
- "feature": "processor",
- "module": "destination",
- "version": "v0",
- "input": {
- "request": {
- "body": [
- {
- "destination": {
- "Config": {
- "apiKey": "dummyApiKey",
- "domain": "rudderstack-476952domain3105.myfreshworks.com"
- }
- },
- "message": {
- "messageId": "ec5481b6-a926-4d2e-b293-0b3a77c4d3be",
- "originalTimestamp": "2022-06-22T10:57:58Z",
- "anonymousId": "ea5cfab2-3961-4d8a-8187-3d1858c99099",
- "context": {
- "app": {
- "build": "1.0.0",
- "name": "RudderLabs JavaScript SDK",
- "namespace": "com.rudderlabs.javascript",
- "version": "1.0.0"
- },
- "device": {
- "advertisingId": "T0T0T072-5e28-45a1-9eda-ce22a3e36d1a",
- "id": "3f034872-5e28-45a1-9eda-ce22a3e36d1a",
- "manufacturer": "Google",
- "model": "AOSP on IA Emulator",
- "name": "generic_x86_arm",
- "type": "ios",
- "attTrackingStatus": 3
- },
- "library": {
- "name": "RudderLabs JavaScript SDK",
- "version": "1.0.0"
- },
- "locale": "en-US",
- "os": {
- "name": "iOS",
- "version": "14.4.1"
- },
- "screen": {
- "density": 2
- }
- },
- "traits": {
- "email": "testuser@google.com",
- "first_name": "Rk",
- "last_name": "Mishra",
- "mobileNumber": "1-926-555-9504",
- "lifecycleStageId": 71010794467,
- "phone": "9988776655",
- "owner_id": "70000090119"
- },
- "type": "identify",
- "sentAt": "2022-04-22T10:57:58Z"
- }
- }
- ]
- }
- },
- "output": {
- "response": {
- "status": 200,
- "body": [
- {
- "output": {
- "body": {
- "XML": {},
- "FORM": {},
- "JSON": {
- "contact": {
- "emails": "testuser@google.com",
- "last_name": "Mishra",
- "created_at": "2022-06-22T10:57:58Z",
- "first_name": "Rk",
- "updated_at": "2022-06-22T10:57:58Z",
- "external_id": "ea5cfab2-3961-4d8a-8187-3d1858c99099",
- "work_number": "9988776655",
- "mobile_number": "1-926-555-9504",
- "lifecycle_stage_id": 71010794467
- },
- "unique_identifier": {
- "emails": "testuser@google.com"
- }
- },
- "JSON_ARRAY": {}
- },
- "type": "REST",
- "files": {},
- "method": "POST",
- "params": {},
- "headers": {
- "Content-Type": "application/json",
- "Authorization": "Token token=dummyApiKey"
- },
- "version": "1",
- "endpoint": "https://rudderstack-476952domain3105.myfreshworks.com/crm/sales/api/contacts/upsert",
- "userId": ""
- },
- "statusCode": 200
- }
- ]
- }
- }
- },
- {
- "name": "freshmarketer",
- "description": "Identify call with numbers in lifecycleStageId, ownerId",
- "feature": "processor",
- "module": "destination",
- "version": "v0",
- "input": {
- "request": {
- "body": [
- {
- "destination": {
- "Config": {
- "apiKey": "dummyApiKey",
- "domain": "rudderstack-476952domain3105.myfreshworks.com"
- }
- },
- "message": {
- "messageId": "ec5481b6-a926-4d2e-b293-0b3a77c4d3be",
- "originalTimestamp": "2022-06-22T10:57:58Z",
- "anonymousId": "ea5cfab2-3961-4d8a-8187-3d1858c99099",
- "context": {
- "app": {
- "build": "1.0.0",
- "name": "RudderLabs JavaScript SDK",
- "namespace": "com.rudderlabs.javascript",
- "version": "1.0.0"
- },
- "device": {
- "advertisingId": "T0T0T072-5e28-45a1-9eda-ce22a3e36d1a",
- "id": "3f034872-5e28-45a1-9eda-ce22a3e36d1a",
- "manufacturer": "Google",
- "model": "AOSP on IA Emulator",
- "name": "generic_x86_arm",
- "type": "ios",
- "attTrackingStatus": 3
- },
- "library": {
- "name": "RudderLabs JavaScript SDK",
- "version": "1.0.0"
- },
- "locale": "en-US",
- "os": {
- "name": "iOS",
- "version": "14.4.1"
- },
- "screen": {
- "density": 2
- }
- },
- "traits": {
- "email": "testuser@google.com",
- "first_name": "Rk",
- "last_name": "Mishra",
- "mobileNumber": "1-926-555-9504",
- "lifecycleStageId": 71010794467,
- "phone": "9988776655",
- "owner_id": "70000090119"
- },
- "type": "identify",
- "sentAt": "2022-04-22T10:57:58Z"
- }
- }
- ]
- }
- },
- "output": {
- "response": {
- "status": 200,
- "body": [
- {
- "output": {
- "body": {
- "XML": {},
- "FORM": {},
- "JSON": {
- "contact": {
- "emails": "testuser@google.com",
- "last_name": "Mishra",
- "created_at": "2022-06-22T10:57:58Z",
- "first_name": "Rk",
- "updated_at": "2022-06-22T10:57:58Z",
- "external_id": "ea5cfab2-3961-4d8a-8187-3d1858c99099",
- "work_number": "9988776655",
- "mobile_number": "1-926-555-9504",
- "lifecycle_stage_id": 71010794467
- },
- "unique_identifier": {
- "emails": "testuser@google.com"
- }
- },
- "JSON_ARRAY": {}
- },
- "type": "REST",
- "files": {},
- "method": "POST",
- "params": {},
- "headers": {
- "Content-Type": "application/json",
- "Authorization": "Token token=dummyApiKey"
- },
- "version": "1",
- "endpoint": "https://rudderstack-476952domain3105.myfreshworks.com/crm/sales/api/contacts/upsert",
- "userId": ""
- },
- "statusCode": 200
- }
- ]
- }
- }
- },
- {
- "name": "freshmarketer",
- "description": "Identify call with wrong data type in lifecycleStageId, ownerId",
- "feature": "processor",
- "module": "destination",
- "version": "v0",
- "input": {
- "request": {
- "body": [
- {
- "destination": {
- "Config": {
- "apiKey": "dummyApiKey",
- "domain": "rudderstack-476952domain3105.myfreshworks.com"
- }
- },
- "message": {
- "messageId": "ec5481b6-a926-4d2e-b293-0b3a77c4d3be",
- "originalTimestamp": "2022-06-22T10:57:58Z",
- "anonymousId": "ea5cfab2-3961-4d8a-8187-3d1858c99099",
- "context": {
- "app": {
- "build": "1.0.0",
- "name": "RudderLabs JavaScript SDK",
- "namespace": "com.rudderlabs.javascript",
- "version": "1.0.0"
- },
- "device": {
- "advertisingId": "T0T0T072-5e28-45a1-9eda-ce22a3e36d1a",
- "id": "3f034872-5e28-45a1-9eda-ce22a3e36d1a",
- "manufacturer": "Google",
- "model": "AOSP on IA Emulator",
- "name": "generic_x86_arm",
- "type": "ios",
- "attTrackingStatus": 3
- },
- "library": {
- "name": "RudderLabs JavaScript SDK",
- "version": "1.0.0"
- },
- "locale": "en-US",
- "os": {
- "name": "iOS",
- "version": "14.4.1"
- },
- "screen": {
- "density": 2
- }
- },
- "traits": {
- "email": "testuser@google.com",
- "first_name": "Rk",
- "last_name": "Mishra",
- "mobileNumber": "1-926-555-9504",
- "lifecycleStageId": "rudderSample",
- "phone": "9988776655",
- "ownerId": "rudderSample"
- },
- "type": "identify",
- "sentAt": "2022-04-22T10:57:58Z"
- }
- }
- ]
- }
- },
- "output": {
- "response": {
- "status": 200,
- "body": [
- {
- "error": "owner_id,lifecycle_stage_id: invalid number format",
- "statTags": {
- "destType": "FRESHMARKETER",
- "errorCategory": "dataValidation",
- "errorType": "instrumentation",
- "feature": "processor",
- "implementation": "native",
- "module": "destination"
- },
- "statusCode": 400
- }
- ]
- }
- }
- },
- {
- "name": "freshmarketer",
- "description": "Identify call, email is not provided.",
- "feature": "processor",
- "module": "destination",
- "version": "v0",
- "input": {
- "request": {
- "body": [
- {
- "destination": {
- "Config": {
- "apiKey": "dummyApiKey",
- "domain": "rudderstack-476952domain3105.myfreshworks.com"
- }
- },
- "message": {
- "messageId": "ec5481b6-a926-4d2e-b293-0b3a77c4d3be",
- "originalTimestamp": "2022-06-22T10:57:58Z",
- "anonymousId": "ea5cfab2-3961-4d8a-8187-3d1858c99099",
- "context": {
- "app": {
- "build": "1.0.0",
- "name": "RudderLabs JavaScript SDK",
- "namespace": "com.rudderlabs.javascript",
- "version": "1.0.0"
- },
- "device": {
- "advertisingId": "T0T0T072-5e28-45a1-9eda-ce22a3e36d1a",
- "id": "3f034872-5e28-45a1-9eda-ce22a3e36d1a",
- "manufacturer": "Google",
- "model": "AOSP on IA Emulator",
- "name": "generic_x86_arm",
- "type": "ios",
- "attTrackingStatus": 3
- },
- "library": {
- "name": "RudderLabs JavaScript SDK",
- "version": "1.0.0"
- },
- "locale": "en-US",
- "os": {
- "name": "iOS",
- "version": "14.4.1"
- },
- "screen": {
- "density": 2
- }
- },
- "traits": {
- "first_name": "Rk",
- "last_name": "Mishra",
- "mobileNumber": "1-926-555-9504",
- "lifecycleStageId": "rudderSample",
- "phone": "9988776655",
- "owner_id": "rudderSample"
- },
- "type": "identify",
- "sentAt": "2022-04-22T10:57:58Z"
- }
- }
- ]
- }
- },
- "output": {
- "response": {
- "status": 200,
- "body": [
- {
- "error": "Missing required value from \"email\"",
- "statTags": {
- "destType": "FRESHMARKETER",
- "errorCategory": "dataValidation",
- "errorType": "instrumentation",
- "feature": "processor",
- "implementation": "native",
- "module": "destination"
- },
- "statusCode": 400
- }
- ]
- }
- }
- },
- {
- "name": "freshmarketer",
- "description": "Group call: testing with mock api",
- "feature": "processor",
- "module": "destination",
- "version": "v0",
- "input": {
- "request": {
- "body": [
- {
- "destination": {
- "Config": {
- "apiKey": "dummyApiKey",
- "domain": "domain-rudder.myfreshworks.com"
- }
- },
- "message": {
- "messageId": "sadjb-1e2r3fhgb-12bvbbj",
- "originalTimestamp": "2022-06-22T10:57:58Z",
- "anonymousId": "ea5cfab2-3961-4d8a-8187-3d1858c99090",
- "context": {
- "app": {
- "build": "1.0.0",
- "name": "RudderLabs JavaScript SDK",
- "namespace": "com.rudderlabs.javascript",
- "version": "1.0.0"
- },
- "device": {
- "advertisingId": "T0T0T072-5e28-45a1-9eda-ce22a3e36d1a",
- "id": "3f034872-5e28-45a1-9eda-ce22a3e36d1a",
- "manufacturer": "Google",
- "model": "AOSP on IA Emulator",
- "name": "generic_x86_arm",
- "type": "ios",
- "attTrackingStatus": 3
- },
- "library": {
- "name": "RudderLabs JavaScript SDK",
- "version": "1.0.0"
- },
- "locale": "en-US",
- "os": {
- "name": "iOS",
- "version": "14.4.1"
- },
- "screen": {
- "density": 2
- },
- "traits": {
- "email": "testuser@google.com"
- }
- },
- "traits": {
- "groupType": "accounts",
- "name": "Mark Twain",
- "phone": "919191919191",
- "numberOfEmployees": 51,
- "annualRevenue": 1000,
- "address": "Red Colony",
- "city": "Colony",
- "state": "Haryana"
- },
- "type": "group",
- "sentAt": "2022-04-22T10:57:58Z"
- }
- }
- ]
- }
- },
- "output": {
- "response": {
- "status": 200,
- "body": [
- {
- "output": {
- "body": {
- "XML": {},
- "FORM": {},
- "JSON": {
- "contact": {
- "sales_accounts": [
- {
- "id": 70003771198,
- "name": "div-quer",
- "avatar": null,
- "partial": true,
- "website": null,
- "is_primary": true,
- "last_contacted": null,
- "record_type_id": "71010794477"
- },
- {
- "id": 70003825177,
- "name": "BisleriGroup",
- "avatar": null,
- "partial": true,
- "website": null,
- "is_primary": false,
- "last_contacted": null,
- "record_type_id": "71010794477"
- },
- {
- "id": 70003771396,
- "is_primary": false
- }
- ]
- },
- "unique_identifier": {
- "emails": "testuser@google.com"
- }
- },
- "JSON_ARRAY": {}
- },
- "type": "REST",
- "files": {},
- "method": "POST",
- "params": {},
- "headers": {
- "Content-Type": "application/json",
- "Authorization": "Token token=dummyApiKey"
- },
- "version": "1",
- "endpoint": "https://domain-rudder.myfreshworks.com/crm/sales/api/contacts/upsert",
- "userId": ""
- },
- "statusCode": 200
- }
- ]
- }
- }
- },
- {
- "name": "freshmarketer",
- "description": "Group call: name is required field.",
- "feature": "processor",
- "module": "destination",
- "version": "v0",
- "input": {
- "request": {
- "body": [
- {
- "destination": {
- "Config": {
- "apiKey": "dummyApiKey",
- "domain": "domain-rudder.myfreshworks.com"
- }
- },
- "message": {
- "messageId": "sadjb-1e2r3fhgb-12bvbbj",
- "originalTimestamp": "2022-06-22T10:57:58Z",
- "anonymousId": "ea5cfab2-3961-4d8a-8187-3d1858c99090",
- "context": {
- "app": {
- "build": "1.0.0",
- "name": "RudderLabs JavaScript SDK",
- "namespace": "com.rudderlabs.javascript",
- "version": "1.0.0"
- },
- "device": {
- "advertisingId": "T0T0T072-5e28-45a1-9eda-ce22a3e36d1a",
- "id": "3f034872-5e28-45a1-9eda-ce22a3e36d1a",
- "manufacturer": "Google",
- "model": "AOSP on IA Emulator",
- "name": "generic_x86_arm",
- "type": "ios",
- "attTrackingStatus": 3
- },
- "library": {
- "name": "RudderLabs JavaScript SDK",
- "version": "1.0.0"
- },
- "locale": "en-US",
- "os": {
- "name": "iOS",
- "version": "14.4.1"
- },
- "screen": {
- "density": 2
- },
- "traits": {
- "email": "testuser@google.com"
- }
- },
- "traits": {
- "groupType": "accounts",
- "phone": "919191919191",
- "numberOfEmployees": 51,
- "annualRevenue": 1000,
- "address": "Red Colony",
- "city": "Colony",
- "state": "Haryana"
- },
- "type": "group",
- "sentAt": "2022-04-22T10:57:58Z"
- }
- }
- ]
- }
- },
- "output": {
- "response": {
- "status": 200,
- "body": [
- {
- "error": "Missing required value from \"name\"",
- "statTags": {
- "destType": "FRESHMARKETER",
- "errorCategory": "dataValidation",
- "errorType": "instrumentation",
- "feature": "processor",
- "implementation": "native",
- "module": "destination"
- },
- "statusCode": 400
- }
- ]
- }
- }
- },
- {
- "name": "freshmarketer",
- "description": "missing message type",
- "feature": "processor",
- "module": "destination",
- "version": "v0",
- "input": {
- "request": {
- "body": [
- {
- "destination": {
- "Config": {
- "apiKey": "dummyApiKey",
- "domain": "domain-rudder.myfreshworks.com"
- }
- },
- "message": {
- "messageId": "sadjb-1e2r3fhgb-12bvbbj",
- "originalTimestamp": "2022-06-22T10:57:58Z",
- "anonymousId": "ea5cfab2-3961-4d8a-8187-3d1858c99090",
- "context": {
- "app": {
- "build": "1.0.0",
- "name": "RudderLabs JavaScript SDK",
- "namespace": "com.rudderlabs.javascript",
- "version": "1.0.0"
- },
- "device": {
- "advertisingId": "T0T0T072-5e28-45a1-9eda-ce22a3e36d1a",
- "id": "3f034872-5e28-45a1-9eda-ce22a3e36d1a",
- "manufacturer": "Google",
- "model": "AOSP on IA Emulator",
- "name": "generic_x86_arm",
- "type": "ios",
- "attTrackingStatus": 3
- },
- "library": {
- "name": "RudderLabs JavaScript SDK",
- "version": "1.0.0"
- },
- "locale": "en-US",
- "os": {
- "name": "iOS",
- "version": "14.4.1"
- },
- "screen": {
- "density": 2
- },
- "traits": {
- "email": "testuser4google.com"
- }
- },
- "traits": {
- "name": "Mark Twain",
- "phone": "919191919191",
- "numberOfEmployees": 51,
- "annualRevenue": 1000,
- "address": "Red Colony",
- "city": "Colony",
- "state": "Haryana"
- },
- "sentAt": "2022-04-22T10:57:58Z"
- }
- }
- ]
- }
- },
- "output": {
- "response": {
- "status": 200,
- "body": [
- {
- "error": "Message Type is not present. Aborting message.",
- "statTags": {
- "destType": "FRESHMARKETER",
- "errorCategory": "dataValidation",
- "errorType": "instrumentation",
- "feature": "processor",
- "implementation": "native",
- "module": "destination"
- },
- "statusCode": 400
- }
- ]
- }
- }
- },
- {
- "name": "freshmarketer",
- "description": "Wrong message type",
- "feature": "processor",
- "module": "destination",
- "version": "v0",
- "input": {
- "request": {
- "body": [
- {
- "destination": {
- "Config": {
- "apiKey": "dummyApiKey",
- "domain": "domain-rudder.myfreshworks.com"
- }
- },
- "message": {
- "messageId": "sadjb-1e2r3fhgb-12bvbbj",
- "originalTimestamp": "2022-06-22T10:57:58Z",
- "anonymousId": "ea5cfab2-3961-4d8a-8187-3d1858c99090",
- "context": {
- "app": {
- "build": "1.0.0",
- "name": "RudderLabs JavaScript SDK",
- "namespace": "com.rudderlabs.javascript",
- "version": "1.0.0"
- },
- "device": {
- "advertisingId": "T0T0T072-5e28-45a1-9eda-ce22a3e36d1a",
- "id": "3f034872-5e28-45a1-9eda-ce22a3e36d1a",
- "manufacturer": "Google",
- "model": "AOSP on IA Emulator",
- "name": "generic_x86_arm",
- "type": "ios",
- "attTrackingStatus": 3
- },
- "library": {
- "name": "RudderLabs JavaScript SDK",
- "version": "1.0.0"
- },
- "locale": "en-US",
- "os": {
- "name": "iOS",
- "version": "14.4.1"
- },
- "screen": {
- "density": 2
- },
- "traits": {
- "email": "testuser4google.com"
- }
- },
- "traits": {
- "name": "Mark Twain",
- "phone": "919191919191",
- "numberOfEmployees": 51,
- "annualRevenue": 1000,
- "address": "Red Colony",
- "city": "Colony",
- "state": "Haryana"
- },
- "type": "page",
- "sentAt": "2022-04-22T10:57:58Z"
- }
- }
- ]
- }
- },
- "output": {
- "response": {
- "status": 200,
- "body": [
- {
- "error": "message type page not supported",
- "statTags": {
- "destType": "FRESHMARKETER",
- "errorCategory": "dataValidation",
- "errorType": "instrumentation",
- "feature": "processor",
- "implementation": "native",
- "module": "destination"
- },
- "statusCode": 400
- }
- ]
- }
- }
- },
- {
- "name": "freshmarketer",
- "description": "Group call: user email is missing",
- "feature": "processor",
- "module": "destination",
- "version": "v0",
- "input": {
- "request": {
- "body": [
- {
- "destination": {
- "Config": {
- "apiKey": "dummyApiKey",
- "domain": "domain-rudder.myfreshworks.com"
- }
- },
- "message": {
- "messageId": "sadjb-1e2r3fhgb-12bvbbj",
- "originalTimestamp": "2022-06-22T10:57:58Z",
- "anonymousId": "ea5cfab2-3961-4d8a-8187-3d1858c99090",
- "context": {
- "app": {
- "build": "1.0.0",
- "name": "RudderLabs JavaScript SDK",
- "namespace": "com.rudderlabs.javascript",
- "version": "1.0.0"
- },
- "device": {
- "advertisingId": "T0T0T072-5e28-45a1-9eda-ce22a3e36d1a",
- "id": "3f034872-5e28-45a1-9eda-ce22a3e36d1a",
- "manufacturer": "Google",
- "model": "AOSP on IA Emulator",
- "name": "generic_x86_arm",
- "type": "ios",
- "attTrackingStatus": 3
- },
- "library": {
- "name": "RudderLabs JavaScript SDK",
- "version": "1.0.0"
- },
- "locale": "en-US",
- "os": {
- "name": "iOS",
- "version": "14.4.1"
- },
- "screen": {
- "density": 2
- },
- "traits": {}
- },
- "traits": {
- "groupType": "accounts",
- "name": "div-quer",
- "phone": "919191919191",
- "numberOfEmployees": 51,
- "annualRevenue": 1000,
- "address": "Red Colony",
- "city": "Lal colony",
- "state": "Haryana"
- },
- "type": "group",
- "sentAt": "2022-04-22T10:57:58Z"
- }
- }
- ]
- }
- },
- "output": {
- "response": {
- "status": 200,
- "body": [
- {
- "output": {
- "body": {
- "XML": {},
- "FORM": {},
- "JSON": {
- "sales_account": {
- "city": "Lal colony",
- "name": "div-quer",
- "phone": "919191919191",
- "state": "Haryana",
- "address": "Red Colony",
- "created_at": "2022-06-22T10:57:58Z",
- "updated_at": "2022-06-22T10:57:58Z",
- "annual_revenue": 1000,
- "number_of_employees": 51
- },
- "unique_identifier": {
- "name": "div-quer"
- }
- },
- "JSON_ARRAY": {}
- },
- "type": "REST",
- "files": {},
- "method": "POST",
- "params": {},
- "headers": {
- "Content-Type": "application/json",
- "Authorization": "Token token=dummyApiKey"
- },
- "version": "1",
- "endpoint": "https://domain-rudder.myfreshworks.com/crm/sales/api/sales_accounts/upsert",
- "userId": ""
- },
- "statusCode": 200
- }
- ]
- }
- }
- },
- {
- "name": "freshmarketer",
- "description": "Identify call: Email is not present",
- "feature": "processor",
- "module": "destination",
- "version": "v0",
- "input": {
- "request": {
- "body": [
- {
- "message": {
- "messageId": "ec5481b6-a926-4d2e-b293-0b3a77c4d3be",
- "originalTimestamp": "2022-06-22T10:57:58Z",
- "anonymousId": "ea5cfab2-3961-4d8a-8187-3d1858c99099",
- "context": {
- "app": {
- "build": "1.0.0",
- "name": "RudderLabs JavaScript SDK",
- "namespace": "com.rudderlabs.javascript",
- "version": "1.0.0"
- },
- "device": {
- "advertisingId": "T0T0T072-5e28-45a1-9eda-ce22a3e36d1a",
- "id": "3f034872-5e28-45a1-9eda-ce22a3e36d1a",
- "manufacturer": "Google",
- "model": "AOSP on IA Emulator",
- "name": "generic_x86_arm",
- "type": "ios",
- "attTrackingStatus": 3
- },
- "library": {
- "name": "RudderLabs JavaScript SDK",
- "version": "1.0.0"
- },
- "locale": "en-US",
- "os": {
- "name": "iOS",
- "version": "14.4.1"
- },
- "screen": {
- "density": 2
- }
- },
- "traits": {
- "first_name": "Rk",
- "last_name": "Narayan",
- "mobileNumber": "1-926-555-9504",
- "phone": "9988776655"
- },
- "type": "identify",
- "sentAt": "2022-04-22T10:57:58Z"
- },
- "destination": {
- "Config": {
- "apiKey": "dummyApiKey",
- "domain": "domain-rudder.myfreshworks.com"
- }
- }
- }
- ]
- }
- },
- "output": {
- "response": {
- "status": 200,
- "body": [
- {
- "error": "Missing required value from \"email\"",
- "statTags": {
- "destType": "FRESHMARKETER",
- "errorCategory": "dataValidation",
- "errorType": "instrumentation",
- "feature": "processor",
- "implementation": "native",
- "module": "destination"
- },
- "statusCode": 400
- }
- ]
- }
- }
- },
- {
- "name": "freshmarketer",
- "description": "Track call, event is not supported.",
- "feature": "processor",
- "module": "destination",
- "version": "v0",
- "input": {
- "request": {
- "body": [
- {
- "message": {
- "channel": "web",
- "context": {
- "app": {
- "build": "1.0.0",
- "name": "RudderLabs JavaScript SDK",
- "namespace": "com.rudderlabs.javascript",
- "version": "1.1.5"
- },
- "traits": {
- "name": "Shehan Study",
- "category": "SampleIdentify",
- "email": "test@rudderstack.com",
- "plan": "Open source",
- "logins": 5,
- "createdAt": 1599264000
- },
- "library": {
- "name": "RudderLabs JavaScript SDK",
- "version": "1.1.5"
- },
- "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/85.0.4183.121 Safari/537.36",
- "locale": "en-US",
- "os": {
- "name": "",
- "version": ""
- },
- "screen": {
- "density": 0.8999999761581421
- },
- "campaign": {
- "source": "google",
- "medium": "medium",
- "term": "keyword",
- "content": "some content",
- "name": "some campaign",
- "test": "other value"
- },
- "page": {
- "path": "/destinations/amplitude",
- "referrer": "",
- "search": "",
- "title": "",
- "url": "https://docs.rudderstack.com/destinations/amplitude",
- "category": "destination",
- "initial_referrer": "https://docs.rudderstack.com",
- "initial_referring_domain": "docs.rudderstack.com"
- }
- },
- "type": "track",
- "messageId": "dd46338d-5f83-493b-bd28-3b48f55d0be8",
- "originalTimestamp": "2020-10-20T08:14:28.778Z",
- "anonymousId": "my-anonymous-id-new",
- "userId": "newUserIdAlias",
- "properties": {
- "product_name": "Shirt",
- "brand": "Wrogn"
- },
- "event": "Add to Cart",
- "previousId": "sampleusrRudder3",
- "sentAt": "2020-10-20T08:14:28.778Z"
- },
- "destination": {
- "Config": {
- "apiKey": "dummyApiKey",
- "domain": "domain-rudder.myfreshworks.com"
- }
- }
- }
- ]
- }
- },
- "output": {
- "response": {
- "status": 200,
- "body": [
- {
- "error": "event name Add to Cart is not supported. Aborting!",
- "statTags": {
- "destType": "FRESHMARKETER",
- "errorCategory": "dataValidation",
- "errorType": "instrumentation",
- "feature": "processor",
- "implementation": "native",
- "module": "destination"
- },
- "statusCode": 400
- }
- ]
- }
- }
- },
- {
- "name": "freshmarketer",
- "description": "Track call: some required properties is missing for sales_activity",
- "feature": "processor",
- "module": "destination",
- "version": "v0",
- "input": {
- "request": {
- "body": [
- {
- "message": {
- "channel": "web",
- "context": {
- "app": {
- "build": "1.0.0",
- "name": "RudderLabs JavaScript SDK",
- "namespace": "com.rudderlabs.javascript",
- "version": "1.1.5"
- },
- "traits": {
- "name": "Shehan Study",
- "category": "SampleIdentify",
- "email": "test@rudderstack.com",
- "plan": "Open source",
- "logins": 5,
- "createdAt": 1599264000
- },
- "library": {
- "name": "RudderLabs JavaScript SDK",
- "version": "1.1.5"
- },
- "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/85.0.4183.121 Safari/537.36",
- "locale": "en-US",
- "os": {
- "name": "",
- "version": ""
- },
- "screen": {
- "density": 0.8999999761581421
- },
- "campaign": {
- "source": "google",
- "medium": "medium",
- "term": "keyword",
- "content": "some content",
- "name": "some campaign",
- "test": "other value"
- },
- "page": {
- "path": "/destinations/amplitude",
- "referrer": "",
- "search": "",
- "title": "",
- "url": "https://docs.rudderstack.com/destinations/amplitude",
- "category": "destination",
- "initial_referrer": "https://docs.rudderstack.com",
- "initial_referring_domain": "docs.rudderstack.com"
- }
- },
- "type": "track",
- "messageId": "dd46338d-5f83-493b-bd28-3b48f55d0be8",
- "originalTimestamp": "2020-10-20T08:14:28.778Z",
- "anonymousId": "my-anonymous-id-new",
- "userId": "newUserIdAlias",
- "email": "test@rudderstack.com",
- "properties": {
- "product_name": "Shirt",
- "brand": "Wrogn"
- },
- "event": "sales_activity",
- "previousId": "sampleusrRudder3",
- "sentAt": "2020-10-20T08:14:28.778Z"
- },
- "destination": {
- "Config": {
- "apiKey": "dummyApiKey",
- "domain": "domain-rudder.myfreshworks.com"
- }
- }
- }
- ]
- }
- },
- "output": {
- "response": {
- "status": 200,
- "body": [
- {
- "error": "Missing required value from \"properties.title\"",
- "statTags": {
- "destType": "FRESHMARKETER",
- "errorCategory": "dataValidation",
- "errorType": "instrumentation",
- "feature": "processor",
- "implementation": "native",
- "module": "destination"
- },
- "statusCode": 400
- }
- ]
- }
- }
- },
- {
- "name": "freshmarketer",
- "description": "Track call: for salesActivityName",
- "feature": "processor",
- "module": "destination",
- "version": "v0",
- "input": {
- "request": {
- "body": [
- {
- "message": {
- "channel": "web",
- "context": {
- "app": {
- "build": "1.0.0",
- "name": "RudderLabs JavaScript SDK",
- "namespace": "com.rudderlabs.javascript",
- "version": "1.1.5"
- },
- "traits": {
- "name": "Shehan Study",
- "category": "SampleIdentify",
- "email": "test@rudderstack.com",
- "plan": "Open source",
- "logins": 5,
- "createdAt": 1599264000
- },
- "library": {
- "name": "RudderLabs JavaScript SDK",
- "version": "1.1.5"
- },
- "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/85.0.4183.121 Safari/537.36",
- "locale": "en-US",
- "os": {
- "name": "",
- "version": ""
- },
- "screen": {
- "density": 0.8999999761581421
- },
- "campaign": {
- "source": "google",
- "medium": "medium",
- "term": "keyword",
- "content": "some content",
- "name": "some campaign",
- "test": "other value"
- },
- "page": {
- "path": "/destinations/amplitude",
- "referrer": "",
- "search": "",
- "title": "",
- "url": "https://docs.rudderstack.com/destinations/amplitude",
- "category": "destination",
- "initial_referrer": "https://docs.rudderstack.com",
- "initial_referring_domain": "docs.rudderstack.com"
- },
- "externalId": {
- "type": "Contact"
- }
- },
- "type": "track",
- "messageId": "dd46338d-5f83-493b-bd28-3b48f55d0be8",
- "originalTimestamp": "2020-10-20T08:14:28.778Z",
- "anonymousId": "my-anonymous-id-new",
- "userId": "newUserIdAlias",
- "email": "test@rudderstack.com",
- "properties": {
- "product_name": "Shirt",
- "brand": "Wrogn",
- "salesActivityName": "own-calender",
- "title": "new Contact",
- "startDate": "2021-05-04T17:00:00+05:30",
- "endDate": "2022-06-04T17:30:00+05:30",
- "ownerId": "70054866612"
- },
- "event": "sales_activity",
- "previousId": "sampleusrRudder3",
- "sentAt": "2020-10-20T08:14:28.778Z"
- },
- "destination": {
- "Config": {
- "apiKey": "dummyApiKey",
- "domain": "domain-rudder.myfreshworks.com"
- }
- }
- }
- ]
- }
- },
- "output": {
- "response": {
- "status": 200,
- "body": [
- {
- "output": {
- "body": {
- "XML": {},
- "FORM": {},
- "JSON": {
- "sales_activity": {
- "title": "new Contact",
- "end_date": "2022-06-04T17:30:00+05:30",
- "owner_id": "70054866612",
- "start_date": "2021-05-04T17:00:00+05:30",
- "created_at": "2020-10-20T08:14:28.778Z",
- "updated_at": "2020-10-20T08:14:28.778Z",
- "targetable_id": 70054866612,
- "targetable_type": "Contact",
- "sales_activity_name": "own-calender",
- "sales_activity_type_id": 70000666879
- }
- },
- "JSON_ARRAY": {}
- },
- "type": "REST",
- "files": {},
- "method": "POST",
- "params": {},
- "headers": {
- "Content-Type": "application/json",
- "Authorization": "Token token=dummyApiKey"
- },
- "version": "1",
- "endpoint": "https://domain-rudder.myfreshworks.com/crm/sales/api/sales_activities",
- "userId": ""
- },
- "statusCode": 200
- }
- ]
- }
- }
- },
- {
- "name": "freshmarketer",
- "description": "Track call: lifecycle_stage_id",
- "feature": "processor",
- "module": "destination",
- "version": "v0",
- "input": {
- "request": {
- "body": [
- {
- "message": {
- "channel": "web",
- "context": {
- "app": {
- "build": "1.0.0",
- "name": "RudderLabs JavaScript SDK",
- "namespace": "com.rudderlabs.javascript",
- "version": "1.1.5"
- },
- "traits": {
- "name": "Shehan Study",
- "category": "SampleIdentify",
- "plan": "Open source",
- "logins": 5,
- "createdAt": 1599264000
- },
- "library": {
- "name": "RudderLabs JavaScript SDK",
- "version": "1.1.5"
- },
- "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/85.0.4183.121 Safari/537.36",
- "locale": "en-US",
- "os": {
- "name": "",
- "version": ""
- },
- "screen": {
- "density": 0.8999999761581421
- },
- "campaign": {
- "source": "google",
- "medium": "medium",
- "term": "keyword",
- "content": "some content",
- "name": "some campaign",
- "test": "other value"
- },
- "page": {
- "path": "/destinations/amplitude",
- "referrer": "",
- "search": "",
- "title": "",
- "url": "https://docs.rudderstack.com/destinations/amplitude",
- "category": "destination",
- "initial_referrer": "https://docs.rudderstack.com",
- "initial_referring_domain": "docs.rudderstack.com"
- }
- },
- "type": "track",
- "messageId": "dd46338d-5f83-493b-bd28-3b48f55d0be8",
- "originalTimestamp": "2020-10-20T08:14:28.778Z",
- "anonymousId": "my-anonymous-id-new",
- "userId": "newUserIdAlias",
- "properties": {
- "email": "jamessampleton3@gmail.com",
- "lifecycleStageId": "71012139273",
- "title": "new Contact",
- "startDate": "2021-05-04T17:00:00+05:30",
- "endDate": "2022-06-04T17:30:00+05:30",
- "ownerId": "70054866612",
- "targetableType": "Contact"
- },
- "event": "lifecycle_stage",
- "previousId": "sampleusrRudder3",
- "sentAt": "2020-10-20T08:14:28.778Z"
- },
- "destination": {
- "Config": {
- "apiKey": "dummyApiKey",
- "domain": "domain-rudder.myfreshworks.com"
- }
- }
- }
- ]
- }
- },
- "output": {
- "response": {
- "status": 200,
- "body": [
- {
- "output": {
- "version": "1",
- "type": "REST",
- "method": "POST",
- "endpoint": "https://domain-rudder.myfreshworks.com/crm/sales/api/contacts/upsert",
- "headers": {
- "Authorization": "Token token=dummyApiKey",
- "Content-Type": "application/json"
- },
- "params": {},
- "body": {
- "JSON": {
- "contact": {
- "lifecycle_stage_id": "71012139273"
- },
- "unique_identifier": {
- "emails": "jamessampleton3@gmail.com"
- }
- },
- "JSON_ARRAY": {},
- "XML": {},
- "FORM": {}
- },
- "files": {},
- "userId": ""
- },
- "statusCode": 200
- }
- ]
- }
- }
- },
- {
- "name": "freshmarketer",
- "description": "Track call: In lifecycle stage, email is missing",
- "feature": "processor",
- "module": "destination",
- "version": "v0",
- "input": {
- "request": {
- "body": [
- {
- "message": {
- "channel": "web",
- "context": {
- "app": {
- "build": "1.0.0",
- "name": "RudderLabs JavaScript SDK",
- "namespace": "com.rudderlabs.javascript",
- "version": "1.1.5"
- },
- "traits": {
- "name": "Shehan Study",
- "category": "SampleIdentify",
- "plan": "Open source",
- "logins": 5,
- "createdAt": 1599264000
- },
- "library": {
- "name": "RudderLabs JavaScript SDK",
- "version": "1.1.5"
- },
- "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/85.0.4183.121 Safari/537.36",
- "locale": "en-US",
- "os": {
- "name": "",
- "version": ""
- },
- "screen": {
- "density": 0.8999999761581421
- },
- "campaign": {
- "source": "google",
- "medium": "medium",
- "term": "keyword",
- "content": "some content",
- "name": "some campaign",
- "test": "other value"
- },
- "page": {
- "path": "/destinations/amplitude",
- "referrer": "",
- "search": "",
- "title": "",
- "url": "https://docs.rudderstack.com/destinations/amplitude",
- "category": "destination",
- "initial_referrer": "https://docs.rudderstack.com",
- "initial_referring_domain": "docs.rudderstack.com"
- }
- },
- "type": "track",
- "messageId": "dd46338d-5f83-493b-bd28-3b48f55d0be8",
- "originalTimestamp": "2020-10-20T08:14:28.778Z",
- "anonymousId": "my-anonymous-id-new",
- "userId": "newUserIdAlias",
- "properties": {
- "lifecycleStageId": "71012139273",
- "title": "new Contact",
- "startDate": "2021-05-04T17:00:00+05:30",
- "endDate": "2022-06-04T17:30:00+05:30",
- "ownerId": "70054866612",
- "targetableType": "Contact"
- },
- "event": "lifecycle_stage",
- "previousId": "sampleusrRudder3",
- "sentAt": "2020-10-20T08:14:28.778Z"
- },
- "destination": {
- "Config": {
- "apiKey": "dummyApiKey",
- "domain": "domain-rudder.myfreshworks.com"
- }
- }
- }
- ]
- }
- },
- "output": {
- "response": {
- "status": 200,
- "body": [
- {
- "error": "email is required for updating life Cycle Stages. Aborting!",
- "statTags": {
- "destType": "FRESHMARKETER",
- "errorCategory": "dataValidation",
- "errorType": "instrumentation",
- "feature": "processor",
- "implementation": "native",
- "module": "destination"
- },
- "statusCode": 400
- }
- ]
- }
- }
- },
- {
- "name": "freshmarketer",
- "description": "Track call: Either of lifecycleStageName or lifecycleStageId is required",
- "feature": "processor",
- "module": "destination",
- "version": "v0",
- "input": {
- "request": {
- "body": [
- {
- "message": {
- "channel": "web",
- "context": {
- "app": {
- "build": "1.0.0",
- "name": "RudderLabs JavaScript SDK",
- "namespace": "com.rudderlabs.javascript",
- "version": "1.1.5"
- },
- "traits": {
- "name": "Shehan Study",
- "category": "SampleIdentify",
- "email": "test@rudderstack.com",
- "plan": "Open source",
- "logins": 5,
- "createdAt": 1599264000
- },
- "library": {
- "name": "RudderLabs JavaScript SDK",
- "version": "1.1.5"
- },
- "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/85.0.4183.121 Safari/537.36",
- "locale": "en-US",
- "os": {
- "name": "",
- "version": ""
- },
- "screen": {
- "density": 0.8999999761581421
- },
- "campaign": {
- "source": "google",
- "medium": "medium",
- "term": "keyword",
- "content": "some content",
- "name": "some campaign",
- "test": "other value"
- },
- "page": {
- "path": "/destinations/amplitude",
- "referrer": "",
- "search": "",
- "title": "",
- "url": "https://docs.rudderstack.com/destinations/amplitude",
- "category": "destination",
- "initial_referrer": "https://docs.rudderstack.com",
- "initial_referring_domain": "docs.rudderstack.com"
- }
- },
- "type": "track",
- "messageId": "dd46338d-5f83-493b-bd28-3b48f55d0be8",
- "originalTimestamp": "2020-10-20T08:14:28.778Z",
- "anonymousId": "my-anonymous-id-new",
- "userId": "newUserIdAlias",
- "email": "jamessampleton3@gmail.com",
- "properties": {
- "title": "new Contact",
- "startDate": "2021-05-04T17:00:00+05:30",
- "endDate": "2022-06-04T17:30:00+05:30",
- "ownerId": "70054866612",
- "targetableType": "Contact"
- },
- "event": "lifecycle_stage",
- "previousId": "sampleusrRudder3",
- "sentAt": "2020-10-20T08:14:28.778Z"
- },
- "destination": {
- "Config": {
- "apiKey": "dummyApiKey",
- "domain": "domain-rudder.myfreshworks.com"
- }
- }
- }
- ]
- }
- },
- "output": {
- "response": {
- "status": 200,
- "body": [
- {
- "error": "Either of lifecycleStageName or lifecycleStageId is required. Aborting!",
- "statTags": {
- "destType": "FRESHMARKETER",
- "errorCategory": "dataValidation",
- "errorType": "instrumentation",
- "feature": "processor",
- "implementation": "native",
- "module": "destination"
- },
- "statusCode": 400
- }
- ]
- }
- }
- },
- {
- "name": "freshmarketer",
- "description": "Track call: Either of sales activity name or sales activity type id is required",
- "feature": "processor",
- "module": "destination",
- "version": "v0",
- "input": {
- "request": {
- "body": [
- {
- "message": {
- "channel": "web",
- "context": {
- "app": {
- "build": "1.0.0",
- "name": "RudderLabs JavaScript SDK",
- "namespace": "com.rudderlabs.javascript",
- "version": "1.1.5"
- },
- "traits": {
- "name": "Shehan Study",
- "category": "SampleIdentify",
- "email": "test@rudderstack.com",
- "plan": "Open source",
- "logins": 5,
- "createdAt": 1599264000
- },
- "library": {
- "name": "RudderLabs JavaScript SDK",
- "version": "1.1.5"
- },
- "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/85.0.4183.121 Safari/537.36",
- "locale": "en-US",
- "os": {
- "name": "",
- "version": ""
- },
- "screen": {
- "density": 0.8999999761581421
- },
- "campaign": {
- "source": "google",
- "medium": "medium",
- "term": "keyword",
- "content": "some content",
- "name": "some campaign",
- "test": "other value"
- },
- "page": {
- "path": "/destinations/amplitude",
- "referrer": "",
- "search": "",
- "title": "",
- "url": "https://docs.rudderstack.com/destinations/amplitude",
- "category": "destination",
- "initial_referrer": "https://docs.rudderstack.com",
- "initial_referring_domain": "docs.rudderstack.com"
- },
- "externalId": {
- "type": "Contact"
- }
- },
- "type": "track",
- "messageId": "dd46338d-5f83-493b-bd28-3b48f55d0be8",
- "originalTimestamp": "2020-10-20T08:14:28.778Z",
- "anonymousId": "my-anonymous-id-new",
- "userId": "newUserIdAlias",
- "email": "test@rudderstack.com",
- "properties": {
- "product_name": "Shirt",
- "brand": "Wrogn",
- "title": "new Contact",
- "startDate": "2021-05-04T17:00:00+05:30",
- "endDate": "2022-06-04T17:30:00+05:30",
- "ownerId": "70054866612"
- },
- "event": "sales_activity",
- "previousId": "sampleusrRudder3",
- "sentAt": "2020-10-20T08:14:28.778Z"
- },
- "destination": {
- "Config": {
- "apiKey": "dummyApiKey",
- "domain": "domain-rudder.myfreshworks.com"
- }
- }
- }
- ]
- }
- },
- "output": {
- "response": {
- "status": 200,
- "body": [
- {
- "error": "Either of sales activity name or sales activity type id is required. Aborting!",
- "statTags": {
- "destType": "FRESHMARKETER",
- "errorCategory": "dataValidation",
- "errorType": "instrumentation",
- "feature": "processor",
- "implementation": "native",
- "module": "destination"
- },
- "statusCode": 400
- }
- ]
- }
- }
- },
- {
- "name": "freshmarketer",
- "description": "Track call: Either of email or targetable_id is required for creating sales activity.",
- "feature": "processor",
- "module": "destination",
- "version": "v0",
- "input": {
- "request": {
- "body": [
- {
- "message": {
- "channel": "web",
- "context": {
- "app": {
- "build": "1.0.0",
- "name": "RudderLabs JavaScript SDK",
- "namespace": "com.rudderlabs.javascript",
- "version": "1.1.5"
- },
- "traits": {
- "name": "Shehan Study",
- "category": "SampleIdentify",
- "plan": "Open source",
- "logins": 5,
- "createdAt": 1599264000
- },
- "library": {
- "name": "RudderLabs JavaScript SDK",
- "version": "1.1.5"
- },
- "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/85.0.4183.121 Safari/537.36",
- "locale": "en-US",
- "os": {
- "name": "",
- "version": ""
- },
- "screen": {
- "density": 0.8999999761581421
- },
- "campaign": {
- "source": "google",
- "medium": "medium",
- "term": "keyword",
- "content": "some content",
- "name": "some campaign",
- "test": "other value"
- },
- "page": {
- "path": "/destinations/amplitude",
- "referrer": "",
- "search": "",
- "title": "",
- "url": "https://docs.rudderstack.com/destinations/amplitude",
- "category": "destination",
- "initial_referrer": "https://docs.rudderstack.com",
- "initial_referring_domain": "docs.rudderstack.com"
- },
- "externalId": {
- "type": "Contact"
- }
- },
- "type": "track",
- "messageId": "dd46338d-5f83-493b-bd28-3b48f55d0be8",
- "originalTimestamp": "2020-10-20T08:14:28.778Z",
- "anonymousId": "my-anonymous-id-new",
- "userId": "newUserIdAlias",
- "properties": {
- "product_name": "Shirt",
- "brand": "Wrogn",
- "salesActivityName": "own-calender",
- "title": "new Contact",
- "startDate": "2021-05-04T17:00:00+05:30",
- "endDate": "2022-06-04T17:30:00+05:30",
- "ownerId": "70054866612"
- },
- "event": "sales_activity",
- "previousId": "sampleusrRudder3",
- "sentAt": "2020-10-20T08:14:28.778Z"
- },
- "destination": {
- "Config": {
- "apiKey": "dummyApiKey",
- "domain": "domain-rudder.myfreshworks.com"
- }
- }
- }
- ]
- }
- },
- "output": {
- "response": {
- "status": 200,
- "body": [
- {
- "error": "Either of email or targetable_id is required for creating sales activity. Aborting!",
- "statTags": {
- "destType": "FRESHMARKETER",
- "errorCategory": "dataValidation",
- "errorType": "instrumentation",
- "feature": "processor",
- "implementation": "native",
- "module": "destination"
- },
- "statusCode": 400
- }
- ]
- }
- }
- },
- {
- "name": "freshmarketer",
- "description": "Track call: sales activity with salesActivityTypeId",
- "feature": "processor",
- "module": "destination",
- "version": "v0",
- "input": {
- "request": {
- "body": [
- {
- "message": {
- "channel": "web",
- "context": {
- "app": {
- "build": "1.0.0",
- "name": "RudderLabs JavaScript SDK",
- "namespace": "com.rudderlabs.javascript",
- "version": "1.1.5"
- },
- "traits": {
- "name": "Shehan Study",
- "category": "SampleIdentify",
- "email": "test@rudderstack.com",
- "plan": "Open source",
- "logins": 5,
- "createdAt": 1599264000
- },
- "library": {
- "name": "RudderLabs JavaScript SDK",
- "version": "1.1.5"
- },
- "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/85.0.4183.121 Safari/537.36",
- "locale": "en-US",
- "os": {
- "name": "",
- "version": ""
- },
- "screen": {
- "density": 0.8999999761581421
- },
- "campaign": {
- "source": "google",
- "medium": "medium",
- "term": "keyword",
- "content": "some content",
- "name": "some campaign",
- "test": "other value"
- },
- "page": {
- "path": "/destinations/amplitude",
- "referrer": "",
- "search": "",
- "title": "",
- "url": "https://docs.rudderstack.com/destinations/amplitude",
- "category": "destination",
- "initial_referrer": "https://docs.rudderstack.com",
- "initial_referring_domain": "docs.rudderstack.com"
- },
- "externalId": {
- "type": "Contact"
- }
- },
- "type": "track",
- "messageId": "dd46338d-5f83-493b-bd28-3b48f55d0be8",
- "originalTimestamp": "2020-10-20T08:14:28.778Z",
- "anonymousId": "my-anonymous-id-new",
- "userId": "newUserIdAlias",
- "email": "jamessampleton3@gmail.com",
- "properties": {
- "salesActivityTypeId": "70000663932",
- "title": "new Contact",
- "startDate": "2021-05-04T17:00:00+05:30",
- "endDate": "2022-06-04T17:30:00+05:30",
- "ownerId": "70054866612"
- },
- "event": "sales_activity",
- "previousId": "sampleusrRudder3",
- "sentAt": "2020-10-20T08:14:28.778Z"
- },
- "destination": {
- "Config": {
- "apiKey": "dummyApiKey",
- "domain": "domain-rudder.myfreshworks.com"
- }
- }
- }
- ]
- }
- },
- "output": {
- "response": {
- "status": 200,
- "body": [
- {
- "output": {
- "body": {
- "XML": {},
- "FORM": {},
- "JSON": {
- "sales_activity": {
- "title": "new Contact",
- "end_date": "2022-06-04T17:30:00+05:30",
- "owner_id": "70054866612",
- "start_date": "2021-05-04T17:00:00+05:30",
- "created_at": "2020-10-20T08:14:28.778Z",
- "updated_at": "2020-10-20T08:14:28.778Z",
- "targetable_id": 70054866612,
- "targetable_type": "Contact",
- "sales_activity_type_id": "70000663932"
- }
- },
- "JSON_ARRAY": {}
- },
- "type": "REST",
- "files": {},
- "method": "POST",
- "params": {},
- "headers": {
- "Content-Type": "application/json",
- "Authorization": "Token token=dummyApiKey"
- },
- "version": "1",
- "endpoint": "https://domain-rudder.myfreshworks.com/crm/sales/api/sales_activities",
- "userId": ""
- },
- "statusCode": 200
- }
- ]
- }
- }
- },
- {
- "name": "freshmarketer",
- "description": "Track call: updated sales activity with salesActivityTypeId and targetableId",
- "feature": "processor",
- "module": "destination",
- "version": "v0",
- "input": {
- "request": {
- "body": [
- {
- "message": {
- "channel": "web",
- "context": {
- "app": {
- "build": "1.0.0",
- "name": "RudderLabs JavaScript SDK",
- "namespace": "com.rudderlabs.javascript",
- "version": "1.1.5"
- },
- "traits": {
- "name": "Shehan Study",
- "category": "SampleIdentify",
- "email": "test@rudderstack.com",
- "plan": "Open source",
- "logins": 5,
- "createdAt": 1599264000
- },
- "library": {
- "name": "RudderLabs JavaScript SDK",
- "version": "1.1.5"
- },
- "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/85.0.4183.121 Safari/537.36",
- "locale": "en-US",
- "os": {
- "name": "",
- "version": ""
- },
- "screen": {
- "density": 0.8999999761581421
- },
- "campaign": {
- "source": "google",
- "medium": "medium",
- "term": "keyword",
- "content": "some content",
- "name": "some campaign",
- "test": "other value"
- },
- "page": {
- "path": "/destinations/amplitude",
- "referrer": "",
- "search": "",
- "title": "",
- "url": "https://docs.rudderstack.com/destinations/amplitude",
- "category": "destination",
- "initial_referrer": "https://docs.rudderstack.com",
- "initial_referring_domain": "docs.rudderstack.com"
- },
- "externalId": {
- "id": "70052305908",
- "type": "Contact"
- }
- },
- "type": "track",
- "messageId": "dd46338d-5f83-493b-bd28-3b48f55d0be8",
- "originalTimestamp": "2020-10-20T08:14:28.778Z",
- "anonymousId": "my-anonymous-id-new",
- "userId": "newUserIdAlias",
- "properties": {
- "salesActivityTypeId": "70000663932",
- "title": "new Contact",
- "startDate": "2021-05-04T17:00:00+05:30",
- "endDate": "2022-06-04T17:30:00+05:30",
- "ownerId": "70054866612"
- },
- "event": "sales_activity",
- "previousId": "sampleusrRudder3",
- "sentAt": "2020-10-20T08:14:28.778Z"
- },
- "destination": {
- "Config": {
- "apiKey": "dummyApiKey",
- "domain": "domain-rudder.myfreshworks.com"
- }
- }
- }
- ]
- }
- },
- "output": {
- "response": {
- "status": 200,
- "body": [
- {
- "output": {
- "body": {
- "XML": {},
- "FORM": {},
- "JSON": {
- "sales_activity": {
- "title": "new Contact",
- "end_date": "2022-06-04T17:30:00+05:30",
- "owner_id": "70054866612",
- "start_date": "2021-05-04T17:00:00+05:30",
- "created_at": "2020-10-20T08:14:28.778Z",
- "updated_at": "2020-10-20T08:14:28.778Z",
- "targetable_id": "70052305908",
- "targetable_type": "Contact",
- "sales_activity_type_id": "70000663932"
- }
- },
- "JSON_ARRAY": {}
- },
- "type": "REST",
- "files": {},
- "method": "POST",
- "params": {},
- "headers": {
- "Content-Type": "application/json",
- "Authorization": "Token token=dummyApiKey"
- },
- "version": "1",
- "endpoint": "https://domain-rudder.myfreshworks.com/crm/sales/api/sales_activities",
- "userId": ""
- },
- "statusCode": 200
- }
- ]
- }
- }
- },
- {
- "name": "freshmarketer",
- "description": "Unsupported message Type",
- "feature": "processor",
- "module": "destination",
- "version": "v0",
- "input": {
- "request": {
- "body": [
- {
- "message": {
- "channel": "web",
- "type": "page",
- "messageId": "dd46338d-5f83-493b-bd28-3b48f55d0be8",
- "originalTimestamp": "2020-10-20T08:14:28.778Z",
- "anonymousId": "my-anonymous-id-new",
- "userId": "newUserIdAlias",
- "email": "jamessampleton3@gmail.com",
- "properties": {
- "lifecycleStageId": "71012139273",
- "title": "new Contact",
- "startDate": "2021-05-04T17:00:00+05:30",
- "endDate": "2022-06-04T17:30:00+05:30",
- "ownerId": "70054866612",
- "targetableType": "Contact"
- },
- "event": "lifecycle_stage",
- "previousId": "sampleusrRudder3",
- "sentAt": "2020-10-20T08:14:28.778Z"
- },
- "destination": {
- "Config": {
- "apiKey": "dummyApiKey",
- "domain": "domain-rudder.myfreshworks.com"
- }
- }
- }
- ]
- }
- },
- "output": {
- "response": {
- "status": 200,
- "body": [
- {
- "error": "message type page not supported",
- "statTags": {
- "destType": "FRESHMARKETER",
- "errorCategory": "dataValidation",
- "errorType": "instrumentation",
- "feature": "processor",
- "implementation": "native",
- "module": "destination"
- },
- "statusCode": 400
- }
- ]
- }
- }
- },
- {
- "name": "freshmarketer",
- "description": "Group call: email is required for adding contacts to marketing lists",
- "feature": "processor",
- "module": "destination",
- "version": "v0",
- "input": {
- "request": {
- "body": [
- {
- "message": {
- "messageId": "sadjb-1e2r3fhgb-12bvbbj",
- "originalTimestamp": "2022-06-22T10:57:58Z",
- "anonymousId": "ea5cfab2-3961-4d8a-8187-3d1858c99090",
- "traits": {
- "groupType": "marketing_lists"
- },
- "type": "group",
- "sentAt": "2022-04-22T10:57:58Z"
- },
- "destination": {
- "Config": {
- "apiKey": "dummyApiKey",
- "domain": "domain-rudder.myfreshworks.com"
- }
- }
- }
- ]
- }
- },
- "output": {
- "response": {
- "status": 200,
- "body": [
- {
- "error": "email is required for adding in the marketing lists. Aborting!",
- "statTags": {
- "destType": "FRESHMARKETER",
- "errorCategory": "dataValidation",
- "errorType": "instrumentation",
- "feature": "processor",
- "implementation": "native",
- "module": "destination"
- },
- "statusCode": 400
- }
- ]
- }
- }
- },
- {
- "name": "freshmarketer",
- "description": "Group call: group type is not present",
- "feature": "processor",
- "module": "destination",
- "version": "v0",
- "input": {
- "request": {
- "body": [
- {
- "message": {
- "messageId": "sadjb-1e2r3fhgb-12bvbbj",
- "originalTimestamp": "2022-06-22T10:57:58Z",
- "anonymousId": "ea5cfab2-3961-4d8a-8187-3d1858c99090",
- "traits": {
- "name": "Mark Twain",
- "phone": "919191919191",
- "numberOfEmployees": 51,
- "annualRevenue": 1000,
- "address": "Red Colony",
- "city": "Colony",
- "state": "Haryana"
- },
- "type": "group",
- "sentAt": "2022-04-22T10:57:58Z"
- },
- "destination": {
- "Config": {
- "apiKey": "dummyApiKey",
- "domain": "domain-rudder.myfreshworks.com"
- }
- }
- }
- ]
- }
- },
- "output": {
- "response": {
- "status": 200,
- "body": [
- {
- "error": "groupType is required for Group call",
- "statTags": {
- "destType": "FRESHMARKETER",
- "errorCategory": "dataValidation",
- "errorType": "instrumentation",
- "feature": "processor",
- "implementation": "native",
- "module": "destination"
- },
- "statusCode": 400
- }
- ]
- }
- }
- },
- {
- "name": "freshmarketer",
- "description": "Group call: add contacts in existing marketing lists",
- "feature": "processor",
- "module": "destination",
- "version": "v0",
- "input": {
- "request": {
- "body": [
- {
- "message": {
- "messageId": "sadjb-1e2r3fhgb-12bvbbj",
- "originalTimestamp": "2022-06-22T10:57:58Z",
- "anonymousId": "ea5cfab2-3961-4d8a-8187-3d1858c99090",
- "context": {
- "app": {
- "build": "1.0.0",
- "name": "RudderLabs JavaScript SDK",
- "namespace": "com.rudderlabs.javascript",
- "version": "1.0.0"
- },
- "device": {
- "advertisingId": "T0T0T072-5e28-45a1-9eda-ce22a3e36d1a",
- "id": "3f034872-5e28-45a1-9eda-ce22a3e36d1a",
- "manufacturer": "Google",
- "model": "AOSP on IA Emulator",
- "name": "generic_x86_arm",
- "type": "ios",
- "attTrackingStatus": 3
- },
- "library": {
- "name": "RudderLabs JavaScript SDK",
- "version": "1.0.0"
- },
- "locale": "en-US",
- "os": {
- "name": "iOS",
- "version": "14.4.1"
- },
- "screen": {
- "density": 2
- },
- "traits": {
- "email": "jamessampleton1@gmail.com"
- }
- },
- "traits": {
- "groupType": "marketing_lists",
- "listName": "Voda 5G",
- "address": "Red Colony",
- "city": "Colony",
- "state": "Haryana"
- },
- "type": "group",
- "sentAt": "2022-04-22T10:57:58Z"
- },
- "destination": {
- "Config": {
- "apiKey": "dummyApiKey",
- "domain": "domain-rudder.myfreshworks.com"
- }
- }
- }
- ]
- }
- },
- "output": {
- "response": {
- "status": 200,
- "body": [
- {
- "output": {
- "body": {
- "XML": {},
- "FORM": {},
- "JSON": {
- "ids": [
- 70054866612
- ]
- },
- "JSON_ARRAY": {}
- },
- "type": "REST",
- "files": {},
- "method": "PUT",
- "params": {},
- "headers": {
- "Content-Type": "application/json",
- "Authorization": "Token token=dummyApiKey"
- },
- "version": "1",
- "endpoint": "https://domain-rudder.myfreshworks.com/crm/sales/api/lists/70000059716/add_contacts",
- "userId": ""
- },
- "statusCode": 200
- }
- ]
- }
- }
- },
- {
- "name": "freshmarketer",
- "description": "Group call: groupType is not supported",
- "feature": "processor",
- "module": "destination",
- "version": "v0",
- "input": {
- "request": {
- "body": [
- {
- "message": {
- "messageId": "sadjb-1e2r3fhgb-12bvbbj",
- "originalTimestamp": "2022-06-22T10:57:58Z",
- "anonymousId": "ea5cfab2-3961-4d8a-8187-3d1858c99090",
- "traits": {
- "groupType": "marketing",
- "listName": "Voda 5G",
- "address": "Red Colony",
- "city": "Colony",
- "state": "Haryana"
- },
- "type": "group",
- "sentAt": "2022-04-22T10:57:58Z"
- },
- "destination": {
- "Config": {
- "apiKey": "dummyApiKey",
- "domain": "domain-rudder.myfreshworks.com"
- }
- }
- }
- ]
- }
- },
- "output": {
- "response": {
- "status": 200,
- "body": [
- {
- "error": "groupType marketing is not supported. Aborting!",
- "statTags": {
- "destType": "FRESHMARKETER",
- "errorCategory": "dataValidation",
- "errorType": "instrumentation",
- "feature": "processor",
- "implementation": "native",
- "module": "destination"
- },
- "statusCode": 400
- }
- ]
- }
- }
- },
- {
- "name": "freshmarketer",
- "description": "Group call: listId or listName is required",
- "feature": "processor",
- "module": "destination",
- "version": "v0",
- "input": {
- "request": {
- "body": [
- {
- "message": {
- "messageId": "sadjb-1e2r3fhgb-12bvbbj",
- "originalTimestamp": "2022-06-22T10:57:58Z",
- "anonymousId": "ea5cfab2-3961-4d8a-8187-3d1858c99090",
- "context": {
- "traits": {
- "email": "jamessampleton1@gmail.com"
- }
- },
- "traits": {
- "groupType": "marketing_lists",
- "address": "Red Colony",
- "city": "Colony",
- "state": "Haryana"
- },
- "type": "group",
- "sentAt": "2022-04-22T10:57:58Z"
- },
- "destination": {
- "Config": {
- "apiKey": "dummyApiKey",
- "domain": "domain-rudder.myfreshworks.com"
- }
- }
- }
- ]
- }
- },
- "output": {
- "response": {
- "status": 200,
- "body": [
- {
- "error": "listId or listName is required. Aborting!",
- "statTags": {
- "destType": "FRESHMARKETER",
- "errorCategory": "dataValidation",
- "errorType": "instrumentation",
- "feature": "processor",
- "implementation": "native",
- "module": "destination"
- },
- "statusCode": 400
- }
- ]
- }
- }
- },
- {
- "name": "freshmarketer",
- "description": "Group call: add marketing lists with listId",
- "feature": "processor",
- "module": "destination",
- "version": "v0",
- "input": {
- "request": {
- "body": [
- {
- "message": {
- "messageId": "sadjb-1e2r3fhgb-12bvbbj",
- "originalTimestamp": "2022-06-22T10:57:58Z",
- "anonymousId": "ea5cfab2-3961-4d8a-8187-3d1858c99090",
- "context": {
- "app": {
- "build": "1.0.0",
- "name": "RudderLabs JavaScript SDK",
- "namespace": "com.rudderlabs.javascript",
- "version": "1.0.0"
- },
- "device": {
- "advertisingId": "T0T0T072-5e28-45a1-9eda-ce22a3e36d1a",
- "id": "3f034872-5e28-45a1-9eda-ce22a3e36d1a",
- "manufacturer": "Google",
- "model": "AOSP on IA Emulator",
- "name": "generic_x86_arm",
- "type": "ios",
- "attTrackingStatus": 3
- },
- "library": {
- "name": "RudderLabs JavaScript SDK",
- "version": "1.0.0"
- },
- "locale": "en-US",
- "os": {
- "name": "iOS",
- "version": "14.4.1"
- },
- "screen": {
- "density": 2
- },
- "traits": {
- "email": "jamessampleton1@gmail.com"
- }
- },
- "traits": {
- "listId": "70000058627",
- "groupType": "marketing_lists",
- "address": "Red Colony",
- "city": "Colony",
- "state": "Haryana"
- },
- "type": "group",
- "sentAt": "2022-04-22T10:57:58Z"
- },
- "destination": {
- "Config": {
- "apiKey": "dummyApiKey",
- "domain": "domain-rudder.myfreshworks.com"
- }
- }
- }
- ]
- }
- },
- "output": {
- "response": {
- "status": 200,
- "body": [
- {
- "output": {
- "body": {
- "XML": {},
- "FORM": {},
- "JSON": {
- "ids": [
- 70054866612
- ]
- },
- "JSON_ARRAY": {}
- },
- "type": "REST",
- "files": {},
- "method": "PUT",
- "params": {},
- "headers": {
- "Content-Type": "application/json",
- "Authorization": "Token token=dummyApiKey"
- },
- "version": "1",
- "endpoint": "https://domain-rudder.myfreshworks.com/crm/sales/api/lists/70000058627/add_contacts",
- "userId": ""
- },
- "statusCode": 200
- }
- ]
- }
- }
- },
- {
- "name": "freshmarketer",
- "description": "Track call: with wrong sales activity name",
- "feature": "processor",
- "module": "destination",
- "version": "v0",
- "input": {
- "request": {
- "body": [
- {
- "message": {
- "channel": "web",
- "context": {
- "app": {
- "build": "1.0.0",
- "name": "RudderLabs JavaScript SDK",
- "namespace": "com.rudderlabs.javascript",
- "version": "1.1.5"
- },
- "traits": {
- "name": "Shehan Study",
- "category": "SampleIdentify",
- "email": "test@rudderstack.com",
- "plan": "Open source",
- "logins": 5,
- "createdAt": 1599264000
- },
- "library": {
- "name": "RudderLabs JavaScript SDK",
- "version": "1.1.5"
- },
- "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/85.0.4183.121 Safari/537.36",
- "locale": "en-US",
- "os": {
- "name": "",
- "version": ""
- },
- "screen": {
- "density": 0.8999999761581421
- },
- "campaign": {
- "source": "google",
- "medium": "medium",
- "term": "keyword",
- "content": "some content",
- "name": "some campaign",
- "test": "other value"
- },
- "page": {
- "path": "/destinations/amplitude",
- "referrer": "",
- "search": "",
- "title": "",
- "url": "https://docs.rudderstack.com/destinations/amplitude",
- "category": "destination",
- "initial_referrer": "https://docs.rudderstack.com",
- "initial_referring_domain": "docs.rudderstack.com"
- },
- "externalId": {
- "type": "Contact"
- }
- },
- "type": "track",
- "messageId": "dd46338d-5f83-493b-bd28-3b48f55d0be8",
- "originalTimestamp": "2020-10-20T08:14:28.778Z",
- "anonymousId": "my-anonymous-id-new",
- "userId": "newUserIdAlias",
- "email": "test@rudderstack.com",
- "properties": {
- "product_name": "Shirt",
- "brand": "Wrogn",
- "salesActivityName": "own-list",
- "title": "new Contact",
- "startDate": "2021-05-04T17:00:00+05:30",
- "endDate": "2022-06-04T17:30:00+05:30",
- "ownerId": "70054866612"
- },
- "event": "sales_activity",
- "previousId": "sampleusrRudder3",
- "sentAt": "2020-10-20T08:14:28.778Z"
- },
- "destination": {
- "Config": {
- "apiKey": "dummyApiKey",
- "domain": "domain-rudder.myfreshworks.com"
- }
- }
- }
- ]
- }
- },
- "output": {
- "response": {
- "status": 200,
- "body": [
- {
- "error": "sales Activity own-list doesn't exists. Aborting!",
- "statTags": {
- "destType": "FRESHMARKETER",
- "errorCategory": "dataValidation",
- "errorType": "instrumentation",
- "feature": "processor",
- "implementation": "native",
- "module": "destination"
- },
- "statusCode": 400
- }
- ]
- }
- }
- },
- {
- "name": "freshmarketer",
- "description": "Track call: update contacts with sales Activity name",
- "feature": "processor",
- "module": "destination",
- "version": "v0",
- "input": {
- "request": {
- "body": [
- {
- "message": {
- "channel": "web",
- "context": {
- "app": {
- "build": "1.0.0",
- "name": "RudderLabs JavaScript SDK",
- "namespace": "com.rudderlabs.javascript",
- "version": "1.1.5"
- },
- "traits": {
- "name": "Shehan Study",
- "category": "SampleIdentify",
- "plan": "Open source",
- "logins": 5,
- "createdAt": 1599264000
- },
- "library": {
- "name": "RudderLabs JavaScript SDK",
- "version": "1.1.5"
- },
- "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/85.0.4183.121 Safari/537.36",
- "locale": "en-US",
- "os": {
- "name": "",
- "version": ""
- },
- "screen": {
- "density": 0.8999999761581421
- },
- "campaign": {
- "source": "google",
- "medium": "medium",
- "term": "keyword",
- "content": "some content",
- "name": "some campaign",
- "test": "other value"
- },
- "page": {
- "path": "/destinations/amplitude",
- "referrer": "",
- "search": "",
- "title": "",
- "url": "https://docs.rudderstack.com/destinations/amplitude",
- "category": "destination",
- "initial_referrer": "https://docs.rudderstack.com",
- "initial_referring_domain": "docs.rudderstack.com"
- }
- },
- "type": "track",
- "messageId": "dd46338d-5f83-493b-bd28-3b48f55d0be8",
- "originalTimestamp": "2020-10-20T08:14:28.778Z",
- "anonymousId": "my-anonymous-id-new",
- "userId": "newUserIdAlias",
- "properties": {
- "email": "jamessampleton6@gmail.com",
- "lifecycleStageName": "final Customer",
- "title": "new Contact",
- "startDate": "2021-05-04T17:00:00+05:30",
- "endDate": "2022-06-04T17:30:00+05:30",
- "ownerId": "70054866612",
- "targetableType": "Contact"
- },
- "event": "lifecycle_stage",
- "previousId": "sampleusrRudder3",
- "sentAt": "2020-10-20T08:14:28.778Z"
- },
- "destination": {
- "Config": {
- "apiKey": "dummyApiKey",
- "domain": "domain-rudder.myfreshworks.com"
- }
- }
- }
- ]
- }
- },
- "output": {
- "response": {
- "status": 200,
- "body": [
- {
- "output": {
- "body": {
- "XML": {},
- "FORM": {},
- "JSON": {
- "contact": {
- "lifecycle_stage_id": 71012806409
- },
- "unique_identifier": {
- "emails": "jamessampleton6@gmail.com"
- }
- },
- "JSON_ARRAY": {}
- },
- "type": "REST",
- "files": {},
- "method": "POST",
- "params": {},
- "headers": {
- "Content-Type": "application/json",
- "Authorization": "Token token=dummyApiKey"
- },
- "version": "1",
- "endpoint": "https://domain-rudder.myfreshworks.com/crm/sales/api/contacts/upsert",
- "userId": ""
- },
- "statusCode": 200
- }
- ]
- }
- }
- },
- {
- "name": "freshmarketer",
- "description": "Track call: with wrong lifecycleStageName",
- "feature": "processor",
- "module": "destination",
- "version": "v0",
- "input": {
- "request": {
- "body": [
- {
- "message": {
- "channel": "web",
- "context": {
- "app": {
- "build": "1.0.0",
- "name": "RudderLabs JavaScript SDK",
- "namespace": "com.rudderlabs.javascript",
- "version": "1.1.5"
- },
- "traits": {
- "name": "Shehan Study",
- "category": "SampleIdentify",
- "plan": "Open source",
- "logins": 5,
- "createdAt": 1599264000
- },
- "library": {
- "name": "RudderLabs JavaScript SDK",
- "version": "1.1.5"
- },
- "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/85.0.4183.121 Safari/537.36",
- "locale": "en-US",
- "os": {
- "name": "",
- "version": ""
- },
- "screen": {
- "density": 0.8999999761581421
- },
- "campaign": {
- "source": "google",
- "medium": "medium",
- "term": "keyword",
- "content": "some content",
- "name": "some campaign",
- "test": "other value"
- },
- "page": {
- "path": "/destinations/amplitude",
- "referrer": "",
- "search": "",
- "title": "",
- "url": "https://docs.rudderstack.com/destinations/amplitude",
- "category": "destination",
- "initial_referrer": "https://docs.rudderstack.com",
- "initial_referring_domain": "docs.rudderstack.com"
- }
- },
- "type": "track",
- "messageId": "dd46338d-5f83-493b-bd28-3b48f55d0be8",
- "originalTimestamp": "2020-10-20T08:14:28.778Z",
- "anonymousId": "my-anonymous-id-new",
- "userId": "newUserIdAlias",
- "properties": {
- "email": "jamessampleton6@gmail.com",
- "lifecycleStageName": "final ExCustomer",
- "title": "new Contact",
- "startDate": "2021-05-04T17:00:00+05:30",
- "endDate": "2022-06-04T17:30:00+05:30",
- "ownerId": "70054866612",
- "targetableType": "Contact"
- },
- "event": "lifecycle_stage",
- "previousId": "sampleusrRudder3",
- "sentAt": "2020-10-20T08:14:28.778Z"
- },
- "destination": {
- "Config": {
- "apiKey": "dummyApiKey",
- "domain": "domain-rudder.myfreshworks.com"
- }
- }
- }
- ]
- }
- },
- "output": {
- "response": {
- "status": 200,
- "body": [
- {
- "error": "failed to fetch lifeCycleStages with final ExCustomer",
- "statTags": {
- "destType": "FRESHMARKETER",
- "errorCategory": "network",
- "errorType": "aborted",
- "feature": "processor",
- "implementation": "native",
- "meta": "instrumentation",
- "module": "destination"
- },
- "statusCode": 400
- }
- ]
- }
- }
- },
- {
- "name": "freshmarketer",
- "description": "Track call: Multiplexing",
- "feature": "processor",
- "module": "destination",
- "version": "v0",
- "input": {
- "request": {
- "body": [
- {
- "message": {
- "channel": "web",
- "context": {
- "app": {
- "build": "1.0.0",
- "name": "RudderLabs JavaScript SDK",
- "namespace": "com.rudderlabs.javascript",
- "version": "1.1.5"
- },
- "traits": {
- "name": "Shehan Study",
- "category": "SampleIdentify",
- "email": "test@rudderstack.com",
- "plan": "Open source",
- "logins": 5,
- "createdAt": 1599264000
- },
- "library": {
- "name": "RudderLabs JavaScript SDK",
- "version": "1.1.5"
- },
- "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/85.0.4183.121 Safari/537.36",
- "locale": "en-US",
- "os": {
- "name": "",
- "version": ""
- },
- "screen": {
- "density": 0.8999999761581421
- },
- "campaign": {
- "source": "google",
- "medium": "medium",
- "term": "keyword",
- "content": "some content",
- "name": "some campaign",
- "test": "other value"
- },
- "page": {
- "path": "/destinations/amplitude",
- "referrer": "",
- "search": "",
- "title": "",
- "url": "https://docs.rudderstack.com/destinations/amplitude",
- "category": "destination",
- "initial_referrer": "https://docs.rudderstack.com",
- "initial_referring_domain": "docs.rudderstack.com"
- },
- "externalId": {
- "type": "Contact"
- }
- },
- "type": "track",
- "messageId": "dd46338d-5f83-493b-bd28-3b48f55d0be8",
- "originalTimestamp": "2020-10-20T08:14:28.778Z",
- "anonymousId": "my-anonymous-id-new",
- "userId": "newUserIdAlias",
- "email": "test@rudderstack.com",
- "properties": {
- "product_name": "Shirt",
- "brand": "Wrogn",
- "salesActivityName": "own-calender",
- "title": "new Contact",
- "startDate": "2021-05-04T17:00:00+05:30",
- "endDate": "2022-06-04T17:30:00+05:30",
- "ownerId": "70054866612",
- "lifecycleStageId": "71012139273"
- },
- "event": "test_activity",
- "previousId": "sampleusrRudder3",
- "sentAt": "2020-10-20T08:14:28.778Z"
- },
- "destination": {
- "Config": {
- "apiKey": "dummyApiKey",
- "domain": "domain-rudder.myfreshworks.com",
- "rudderEventsToFreshmarketerEvents": [
- {
- "from": "test_activity",
- "to": "sales_activity"
- },
- {
- "from": "test_activity",
- "to": "lifecycle_stage"
- },
- {
- "from": "test_event",
- "to": "lifecycle_stage"
- }
- ]
- }
- }
- }
- ]
- }
- },
- "output": {
- "response": {
- "status": 200,
- "body": [
- {
- "output": {
- "body": {
- "XML": {},
- "FORM": {},
- "JSON": {
- "sales_activity": {
- "title": "new Contact",
- "end_date": "2022-06-04T17:30:00+05:30",
- "owner_id": "70054866612",
- "start_date": "2021-05-04T17:00:00+05:30",
- "created_at": "2020-10-20T08:14:28.778Z",
- "updated_at": "2020-10-20T08:14:28.778Z",
- "targetable_id": 70054866612,
- "targetable_type": "Contact",
- "sales_activity_name": "own-calender",
- "sales_activity_type_id": 70000666879
- }
- },
- "JSON_ARRAY": {}
- },
- "type": "REST",
- "files": {},
- "method": "POST",
- "userId": "",
- "params": {},
- "headers": {
- "Content-Type": "application/json",
- "Authorization": "Token token=dummyApiKey"
- },
- "version": "1",
- "endpoint": "https://domain-rudder.myfreshworks.com/crm/sales/api/sales_activities"
- },
- "statusCode": 200
- },
- {
- "output": {
- "body": {
- "JSON": {
- "contact": {
- "lifecycle_stage_id": "71012139273"
- },
- "unique_identifier": {
- "emails": "test@rudderstack.com"
- }
- },
- "JSON_ARRAY": {},
- "XML": {},
- "FORM": {}
- },
- "type": "REST",
- "files": {},
- "userId": "",
- "method": "POST",
- "params": {},
- "headers": {
- "Authorization": "Token token=dummyApiKey",
- "Content-Type": "application/json"
- },
- "version": "1",
- "endpoint": "https://domain-rudder.myfreshworks.com/crm/sales/api/contacts/upsert"
- },
- "statusCode": 200
- }
- ]
- }
- }
- }
-]
+ {
+ name: 'freshmarketer',
+ description: 'Identify call for creating new user',
+ feature: 'processor',
+ module: 'destination',
+ version: 'v0',
+ input: {
+ request: {
+ body: [
+ {
+ destination: {
+ Config: {
+ apiKey: 'dummyApiKey',
+ domain: 'rudderstack-476952domain3105.myfreshworks.com',
+ },
+ },
+ message: {
+ messageId: 'ec5481b6-a926-4d2e-b293-0b3a77c4d3be',
+ originalTimestamp: '2022-06-22T10:57:58Z',
+ anonymousId: 'ea5cfab2-3961-4d8a-8187-3d1858c99099',
+ context: {
+ app: {
+ build: '1.0.0',
+ name: 'RudderLabs JavaScript SDK',
+ namespace: 'com.rudderlabs.javascript',
+ version: '1.0.0',
+ },
+ device: {
+ advertisingId: 'T0T0T072-5e28-45a1-9eda-ce22a3e36d1a',
+ id: '3f034872-5e28-45a1-9eda-ce22a3e36d1a',
+ manufacturer: 'Google',
+ model: 'AOSP on IA Emulator',
+ name: 'generic_x86_arm',
+ type: 'ios',
+ attTrackingStatus: 3,
+ },
+ library: {
+ name: 'RudderLabs JavaScript SDK',
+ version: '1.0.0',
+ },
+ locale: 'en-US',
+ os: {
+ name: 'iOS',
+ version: '14.4.1',
+ },
+ screen: {
+ density: 2,
+ },
+ },
+ traits: {
+ email: 'testuser@google.com',
+ first_name: 'Rk',
+ last_name: 'Mishra',
+ mobileNumber: '1-926-555-9504',
+ lifecycleStageId: 71010794467,
+ phone: '9988776655',
+ owner_id: '70000090119',
+ },
+ type: 'identify',
+ sentAt: '2022-04-22T10:57:58Z',
+ },
+ },
+ ],
+ },
+ },
+ output: {
+ response: {
+ status: 200,
+ body: [
+ {
+ output: {
+ body: {
+ XML: {},
+ FORM: {},
+ JSON: {
+ contact: {
+ emails: 'testuser@google.com',
+ last_name: 'Mishra',
+ created_at: '2022-06-22T10:57:58Z',
+ first_name: 'Rk',
+ updated_at: '2022-06-22T10:57:58Z',
+ external_id: 'ea5cfab2-3961-4d8a-8187-3d1858c99099',
+ work_number: '9988776655',
+ mobile_number: '1-926-555-9504',
+ lifecycle_stage_id: 71010794467,
+ },
+ unique_identifier: {
+ emails: 'testuser@google.com',
+ },
+ },
+ JSON_ARRAY: {},
+ },
+ type: 'REST',
+ files: {},
+ method: 'POST',
+ params: {},
+ headers: {
+ 'Content-Type': 'application/json',
+ Authorization: 'Token token=dummyApiKey',
+ },
+ version: '1',
+ endpoint:
+ 'https://rudderstack-476952domain3105.myfreshworks.com/crm/sales/api/contacts/upsert',
+ userId: '',
+ },
+ statusCode: 200,
+ },
+ ],
+ },
+ },
+ },
+ {
+ name: 'freshmarketer',
+ description: 'Identify call with numbers in lifecycleStageId, ownerId',
+ feature: 'processor',
+ module: 'destination',
+ version: 'v0',
+ input: {
+ request: {
+ body: [
+ {
+ destination: {
+ Config: {
+ apiKey: 'dummyApiKey',
+ domain: 'rudderstack-476952domain3105.myfreshworks.com',
+ },
+ },
+ message: {
+ messageId: 'ec5481b6-a926-4d2e-b293-0b3a77c4d3be',
+ originalTimestamp: '2022-06-22T10:57:58Z',
+ anonymousId: 'ea5cfab2-3961-4d8a-8187-3d1858c99099',
+ context: {
+ app: {
+ build: '1.0.0',
+ name: 'RudderLabs JavaScript SDK',
+ namespace: 'com.rudderlabs.javascript',
+ version: '1.0.0',
+ },
+ device: {
+ advertisingId: 'T0T0T072-5e28-45a1-9eda-ce22a3e36d1a',
+ id: '3f034872-5e28-45a1-9eda-ce22a3e36d1a',
+ manufacturer: 'Google',
+ model: 'AOSP on IA Emulator',
+ name: 'generic_x86_arm',
+ type: 'ios',
+ attTrackingStatus: 3,
+ },
+ library: {
+ name: 'RudderLabs JavaScript SDK',
+ version: '1.0.0',
+ },
+ locale: 'en-US',
+ os: {
+ name: 'iOS',
+ version: '14.4.1',
+ },
+ screen: {
+ density: 2,
+ },
+ },
+ traits: {
+ email: 'testuser@google.com',
+ first_name: 'Rk',
+ last_name: 'Mishra',
+ mobileNumber: '1-926-555-9504',
+ lifecycleStageId: 71010794467,
+ phone: '9988776655',
+ owner_id: '70000090119',
+ },
+ type: 'identify',
+ sentAt: '2022-04-22T10:57:58Z',
+ },
+ },
+ ],
+ },
+ },
+ output: {
+ response: {
+ status: 200,
+ body: [
+ {
+ output: {
+ body: {
+ XML: {},
+ FORM: {},
+ JSON: {
+ contact: {
+ emails: 'testuser@google.com',
+ last_name: 'Mishra',
+ created_at: '2022-06-22T10:57:58Z',
+ first_name: 'Rk',
+ updated_at: '2022-06-22T10:57:58Z',
+ external_id: 'ea5cfab2-3961-4d8a-8187-3d1858c99099',
+ work_number: '9988776655',
+ mobile_number: '1-926-555-9504',
+ lifecycle_stage_id: 71010794467,
+ },
+ unique_identifier: {
+ emails: 'testuser@google.com',
+ },
+ },
+ JSON_ARRAY: {},
+ },
+ type: 'REST',
+ files: {},
+ method: 'POST',
+ params: {},
+ headers: {
+ 'Content-Type': 'application/json',
+ Authorization: 'Token token=dummyApiKey',
+ },
+ version: '1',
+ endpoint:
+ 'https://rudderstack-476952domain3105.myfreshworks.com/crm/sales/api/contacts/upsert',
+ userId: '',
+ },
+ statusCode: 200,
+ },
+ ],
+ },
+ },
+ },
+ {
+ name: 'freshmarketer',
+ description: 'Identify call with wrong data type in lifecycleStageId, ownerId',
+ feature: 'processor',
+ module: 'destination',
+ version: 'v0',
+ input: {
+ request: {
+ body: [
+ {
+ destination: {
+ Config: {
+ apiKey: 'dummyApiKey',
+ domain: 'rudderstack-476952domain3105.myfreshworks.com',
+ },
+ },
+ message: {
+ messageId: 'ec5481b6-a926-4d2e-b293-0b3a77c4d3be',
+ originalTimestamp: '2022-06-22T10:57:58Z',
+ anonymousId: 'ea5cfab2-3961-4d8a-8187-3d1858c99099',
+ context: {
+ app: {
+ build: '1.0.0',
+ name: 'RudderLabs JavaScript SDK',
+ namespace: 'com.rudderlabs.javascript',
+ version: '1.0.0',
+ },
+ device: {
+ advertisingId: 'T0T0T072-5e28-45a1-9eda-ce22a3e36d1a',
+ id: '3f034872-5e28-45a1-9eda-ce22a3e36d1a',
+ manufacturer: 'Google',
+ model: 'AOSP on IA Emulator',
+ name: 'generic_x86_arm',
+ type: 'ios',
+ attTrackingStatus: 3,
+ },
+ library: {
+ name: 'RudderLabs JavaScript SDK',
+ version: '1.0.0',
+ },
+ locale: 'en-US',
+ os: {
+ name: 'iOS',
+ version: '14.4.1',
+ },
+ screen: {
+ density: 2,
+ },
+ },
+ traits: {
+ email: 'testuser@google.com',
+ first_name: 'Rk',
+ last_name: 'Mishra',
+ mobileNumber: '1-926-555-9504',
+ lifecycleStageId: 'rudderSample',
+ phone: '9988776655',
+ ownerId: 'rudderSample',
+ },
+ type: 'identify',
+ sentAt: '2022-04-22T10:57:58Z',
+ },
+ },
+ ],
+ },
+ },
+ output: {
+ response: {
+ status: 200,
+ body: [
+ {
+ error: 'owner_id,lifecycle_stage_id: invalid number format',
+ statTags: {
+ destType: 'FRESHMARKETER',
+ errorCategory: 'dataValidation',
+ errorType: 'instrumentation',
+ feature: 'processor',
+ implementation: 'native',
+ module: 'destination',
+ },
+ statusCode: 400,
+ },
+ ],
+ },
+ },
+ },
+ {
+ name: 'freshmarketer',
+ description: 'Identify call, email is not provided.',
+ feature: 'processor',
+ module: 'destination',
+ version: 'v0',
+ input: {
+ request: {
+ body: [
+ {
+ destination: {
+ Config: {
+ apiKey: 'dummyApiKey',
+ domain: 'rudderstack-476952domain3105.myfreshworks.com',
+ },
+ },
+ message: {
+ messageId: 'ec5481b6-a926-4d2e-b293-0b3a77c4d3be',
+ originalTimestamp: '2022-06-22T10:57:58Z',
+ anonymousId: 'ea5cfab2-3961-4d8a-8187-3d1858c99099',
+ context: {
+ app: {
+ build: '1.0.0',
+ name: 'RudderLabs JavaScript SDK',
+ namespace: 'com.rudderlabs.javascript',
+ version: '1.0.0',
+ },
+ device: {
+ advertisingId: 'T0T0T072-5e28-45a1-9eda-ce22a3e36d1a',
+ id: '3f034872-5e28-45a1-9eda-ce22a3e36d1a',
+ manufacturer: 'Google',
+ model: 'AOSP on IA Emulator',
+ name: 'generic_x86_arm',
+ type: 'ios',
+ attTrackingStatus: 3,
+ },
+ library: {
+ name: 'RudderLabs JavaScript SDK',
+ version: '1.0.0',
+ },
+ locale: 'en-US',
+ os: {
+ name: 'iOS',
+ version: '14.4.1',
+ },
+ screen: {
+ density: 2,
+ },
+ },
+ traits: {
+ first_name: 'Rk',
+ last_name: 'Mishra',
+ mobileNumber: '1-926-555-9504',
+ lifecycleStageId: 'rudderSample',
+ phone: '9988776655',
+ owner_id: 'rudderSample',
+ },
+ type: 'identify',
+ sentAt: '2022-04-22T10:57:58Z',
+ },
+ },
+ ],
+ },
+ },
+ output: {
+ response: {
+ status: 200,
+ body: [
+ {
+ error: 'Missing required value from "email"',
+ statTags: {
+ destType: 'FRESHMARKETER',
+ errorCategory: 'dataValidation',
+ errorType: 'instrumentation',
+ feature: 'processor',
+ implementation: 'native',
+ module: 'destination',
+ },
+ statusCode: 400,
+ },
+ ],
+ },
+ },
+ },
+ {
+ name: 'freshmarketer',
+ description: 'Group call: testing with mock api',
+ feature: 'processor',
+ module: 'destination',
+ version: 'v0',
+ input: {
+ request: {
+ body: [
+ {
+ destination: {
+ Config: {
+ apiKey: 'dummyApiKey',
+ domain: 'domain-rudder.myfreshworks.com',
+ },
+ },
+ message: {
+ messageId: 'sadjb-1e2r3fhgb-12bvbbj',
+ originalTimestamp: '2022-06-22T10:57:58Z',
+ anonymousId: 'ea5cfab2-3961-4d8a-8187-3d1858c99090',
+ context: {
+ app: {
+ build: '1.0.0',
+ name: 'RudderLabs JavaScript SDK',
+ namespace: 'com.rudderlabs.javascript',
+ version: '1.0.0',
+ },
+ device: {
+ advertisingId: 'T0T0T072-5e28-45a1-9eda-ce22a3e36d1a',
+ id: '3f034872-5e28-45a1-9eda-ce22a3e36d1a',
+ manufacturer: 'Google',
+ model: 'AOSP on IA Emulator',
+ name: 'generic_x86_arm',
+ type: 'ios',
+ attTrackingStatus: 3,
+ },
+ library: {
+ name: 'RudderLabs JavaScript SDK',
+ version: '1.0.0',
+ },
+ locale: 'en-US',
+ os: {
+ name: 'iOS',
+ version: '14.4.1',
+ },
+ screen: {
+ density: 2,
+ },
+ traits: {
+ email: 'testuser@google.com',
+ },
+ },
+ traits: {
+ groupType: 'accounts',
+ name: 'Mark Twain',
+ phone: '919191919191',
+ numberOfEmployees: 51,
+ annualRevenue: 1000,
+ address: 'Red Colony',
+ city: 'Colony',
+ state: 'Haryana',
+ },
+ type: 'group',
+ sentAt: '2022-04-22T10:57:58Z',
+ },
+ },
+ ],
+ },
+ },
+ output: {
+ response: {
+ status: 200,
+ body: [
+ {
+ output: {
+ body: {
+ XML: {},
+ FORM: {},
+ JSON: {
+ contact: {
+ sales_accounts: [
+ {
+ id: 70003771198,
+ name: 'div-quer',
+ avatar: null,
+ partial: true,
+ website: null,
+ is_primary: true,
+ last_contacted: null,
+ record_type_id: '71010794477',
+ },
+ {
+ id: 70003825177,
+ name: 'BisleriGroup',
+ avatar: null,
+ partial: true,
+ website: null,
+ is_primary: false,
+ last_contacted: null,
+ record_type_id: '71010794477',
+ },
+ {
+ id: 70003771396,
+ is_primary: false,
+ },
+ ],
+ },
+ unique_identifier: {
+ emails: 'testuser@google.com',
+ },
+ },
+ JSON_ARRAY: {},
+ },
+ type: 'REST',
+ files: {},
+ method: 'POST',
+ params: {},
+ headers: {
+ 'Content-Type': 'application/json',
+ Authorization: 'Token token=dummyApiKey',
+ },
+ version: '1',
+ endpoint: 'https://domain-rudder.myfreshworks.com/crm/sales/api/contacts/upsert',
+ userId: '',
+ },
+ statusCode: 200,
+ },
+ ],
+ },
+ },
+ },
+ {
+ name: 'freshmarketer',
+ description: 'Group call: name is required field.',
+ feature: 'processor',
+ module: 'destination',
+ version: 'v0',
+ input: {
+ request: {
+ body: [
+ {
+ destination: {
+ Config: {
+ apiKey: 'dummyApiKey',
+ domain: 'domain-rudder.myfreshworks.com',
+ },
+ },
+ message: {
+ messageId: 'sadjb-1e2r3fhgb-12bvbbj',
+ originalTimestamp: '2022-06-22T10:57:58Z',
+ anonymousId: 'ea5cfab2-3961-4d8a-8187-3d1858c99090',
+ context: {
+ app: {
+ build: '1.0.0',
+ name: 'RudderLabs JavaScript SDK',
+ namespace: 'com.rudderlabs.javascript',
+ version: '1.0.0',
+ },
+ device: {
+ advertisingId: 'T0T0T072-5e28-45a1-9eda-ce22a3e36d1a',
+ id: '3f034872-5e28-45a1-9eda-ce22a3e36d1a',
+ manufacturer: 'Google',
+ model: 'AOSP on IA Emulator',
+ name: 'generic_x86_arm',
+ type: 'ios',
+ attTrackingStatus: 3,
+ },
+ library: {
+ name: 'RudderLabs JavaScript SDK',
+ version: '1.0.0',
+ },
+ locale: 'en-US',
+ os: {
+ name: 'iOS',
+ version: '14.4.1',
+ },
+ screen: {
+ density: 2,
+ },
+ traits: {
+ email: 'testuser@google.com',
+ },
+ },
+ traits: {
+ groupType: 'accounts',
+ phone: '919191919191',
+ numberOfEmployees: 51,
+ annualRevenue: 1000,
+ address: 'Red Colony',
+ city: 'Colony',
+ state: 'Haryana',
+ },
+ type: 'group',
+ sentAt: '2022-04-22T10:57:58Z',
+ },
+ },
+ ],
+ },
+ },
+ output: {
+ response: {
+ status: 200,
+ body: [
+ {
+ error: 'Missing required value from "name"',
+ statTags: {
+ destType: 'FRESHMARKETER',
+ errorCategory: 'dataValidation',
+ errorType: 'instrumentation',
+ feature: 'processor',
+ implementation: 'native',
+ module: 'destination',
+ },
+ statusCode: 400,
+ },
+ ],
+ },
+ },
+ },
+ {
+ name: 'freshmarketer',
+ description: 'missing message type',
+ feature: 'processor',
+ module: 'destination',
+ version: 'v0',
+ input: {
+ request: {
+ body: [
+ {
+ destination: {
+ Config: {
+ apiKey: 'dummyApiKey',
+ domain: 'domain-rudder.myfreshworks.com',
+ },
+ },
+ message: {
+ messageId: 'sadjb-1e2r3fhgb-12bvbbj',
+ originalTimestamp: '2022-06-22T10:57:58Z',
+ anonymousId: 'ea5cfab2-3961-4d8a-8187-3d1858c99090',
+ context: {
+ app: {
+ build: '1.0.0',
+ name: 'RudderLabs JavaScript SDK',
+ namespace: 'com.rudderlabs.javascript',
+ version: '1.0.0',
+ },
+ device: {
+ advertisingId: 'T0T0T072-5e28-45a1-9eda-ce22a3e36d1a',
+ id: '3f034872-5e28-45a1-9eda-ce22a3e36d1a',
+ manufacturer: 'Google',
+ model: 'AOSP on IA Emulator',
+ name: 'generic_x86_arm',
+ type: 'ios',
+ attTrackingStatus: 3,
+ },
+ library: {
+ name: 'RudderLabs JavaScript SDK',
+ version: '1.0.0',
+ },
+ locale: 'en-US',
+ os: {
+ name: 'iOS',
+ version: '14.4.1',
+ },
+ screen: {
+ density: 2,
+ },
+ traits: {
+ email: 'testuser4google.com',
+ },
+ },
+ traits: {
+ name: 'Mark Twain',
+ phone: '919191919191',
+ numberOfEmployees: 51,
+ annualRevenue: 1000,
+ address: 'Red Colony',
+ city: 'Colony',
+ state: 'Haryana',
+ },
+ sentAt: '2022-04-22T10:57:58Z',
+ },
+ },
+ ],
+ },
+ },
+ output: {
+ response: {
+ status: 200,
+ body: [
+ {
+ error: 'Message Type is not present. Aborting message.',
+ statTags: {
+ destType: 'FRESHMARKETER',
+ errorCategory: 'dataValidation',
+ errorType: 'instrumentation',
+ feature: 'processor',
+ implementation: 'native',
+ module: 'destination',
+ },
+ statusCode: 400,
+ },
+ ],
+ },
+ },
+ },
+ {
+ name: 'freshmarketer',
+ description: 'Wrong message type',
+ feature: 'processor',
+ module: 'destination',
+ version: 'v0',
+ input: {
+ request: {
+ body: [
+ {
+ destination: {
+ Config: {
+ apiKey: 'dummyApiKey',
+ domain: 'domain-rudder.myfreshworks.com',
+ },
+ },
+ message: {
+ messageId: 'sadjb-1e2r3fhgb-12bvbbj',
+ originalTimestamp: '2022-06-22T10:57:58Z',
+ anonymousId: 'ea5cfab2-3961-4d8a-8187-3d1858c99090',
+ context: {
+ app: {
+ build: '1.0.0',
+ name: 'RudderLabs JavaScript SDK',
+ namespace: 'com.rudderlabs.javascript',
+ version: '1.0.0',
+ },
+ device: {
+ advertisingId: 'T0T0T072-5e28-45a1-9eda-ce22a3e36d1a',
+ id: '3f034872-5e28-45a1-9eda-ce22a3e36d1a',
+ manufacturer: 'Google',
+ model: 'AOSP on IA Emulator',
+ name: 'generic_x86_arm',
+ type: 'ios',
+ attTrackingStatus: 3,
+ },
+ library: {
+ name: 'RudderLabs JavaScript SDK',
+ version: '1.0.0',
+ },
+ locale: 'en-US',
+ os: {
+ name: 'iOS',
+ version: '14.4.1',
+ },
+ screen: {
+ density: 2,
+ },
+ traits: {
+ email: 'testuser4google.com',
+ },
+ },
+ traits: {
+ name: 'Mark Twain',
+ phone: '919191919191',
+ numberOfEmployees: 51,
+ annualRevenue: 1000,
+ address: 'Red Colony',
+ city: 'Colony',
+ state: 'Haryana',
+ },
+ type: 'page',
+ sentAt: '2022-04-22T10:57:58Z',
+ },
+ },
+ ],
+ },
+ },
+ output: {
+ response: {
+ status: 200,
+ body: [
+ {
+ error: 'message type page not supported',
+ statTags: {
+ destType: 'FRESHMARKETER',
+ errorCategory: 'dataValidation',
+ errorType: 'instrumentation',
+ feature: 'processor',
+ implementation: 'native',
+ module: 'destination',
+ },
+ statusCode: 400,
+ },
+ ],
+ },
+ },
+ },
+ {
+ name: 'freshmarketer',
+ description: 'Group call: user email is missing',
+ feature: 'processor',
+ module: 'destination',
+ version: 'v0',
+ input: {
+ request: {
+ body: [
+ {
+ destination: {
+ Config: {
+ apiKey: 'dummyApiKey',
+ domain: 'domain-rudder.myfreshworks.com',
+ },
+ },
+ message: {
+ messageId: 'sadjb-1e2r3fhgb-12bvbbj',
+ originalTimestamp: '2022-06-22T10:57:58Z',
+ anonymousId: 'ea5cfab2-3961-4d8a-8187-3d1858c99090',
+ context: {
+ app: {
+ build: '1.0.0',
+ name: 'RudderLabs JavaScript SDK',
+ namespace: 'com.rudderlabs.javascript',
+ version: '1.0.0',
+ },
+ device: {
+ advertisingId: 'T0T0T072-5e28-45a1-9eda-ce22a3e36d1a',
+ id: '3f034872-5e28-45a1-9eda-ce22a3e36d1a',
+ manufacturer: 'Google',
+ model: 'AOSP on IA Emulator',
+ name: 'generic_x86_arm',
+ type: 'ios',
+ attTrackingStatus: 3,
+ },
+ library: {
+ name: 'RudderLabs JavaScript SDK',
+ version: '1.0.0',
+ },
+ locale: 'en-US',
+ os: {
+ name: 'iOS',
+ version: '14.4.1',
+ },
+ screen: {
+ density: 2,
+ },
+ traits: {},
+ },
+ traits: {
+ groupType: 'accounts',
+ name: 'div-quer',
+ phone: '919191919191',
+ numberOfEmployees: 51,
+ annualRevenue: 1000,
+ address: 'Red Colony',
+ city: 'Lal colony',
+ state: 'Haryana',
+ },
+ type: 'group',
+ sentAt: '2022-04-22T10:57:58Z',
+ },
+ },
+ ],
+ },
+ },
+ output: {
+ response: {
+ status: 200,
+ body: [
+ {
+ output: {
+ body: {
+ XML: {},
+ FORM: {},
+ JSON: {
+ sales_account: {
+ city: 'Lal colony',
+ name: 'div-quer',
+ phone: '919191919191',
+ state: 'Haryana',
+ address: 'Red Colony',
+ created_at: '2022-06-22T10:57:58Z',
+ updated_at: '2022-06-22T10:57:58Z',
+ annual_revenue: 1000,
+ number_of_employees: 51,
+ },
+ unique_identifier: {
+ name: 'div-quer',
+ },
+ },
+ JSON_ARRAY: {},
+ },
+ type: 'REST',
+ files: {},
+ method: 'POST',
+ params: {},
+ headers: {
+ 'Content-Type': 'application/json',
+ Authorization: 'Token token=dummyApiKey',
+ },
+ version: '1',
+ endpoint:
+ 'https://domain-rudder.myfreshworks.com/crm/sales/api/sales_accounts/upsert',
+ userId: '',
+ },
+ statusCode: 200,
+ },
+ ],
+ },
+ },
+ },
+ {
+ name: 'freshmarketer',
+ description: 'Identify call: Email is not present',
+ feature: 'processor',
+ module: 'destination',
+ version: 'v0',
+ input: {
+ request: {
+ body: [
+ {
+ message: {
+ messageId: 'ec5481b6-a926-4d2e-b293-0b3a77c4d3be',
+ originalTimestamp: '2022-06-22T10:57:58Z',
+ anonymousId: 'ea5cfab2-3961-4d8a-8187-3d1858c99099',
+ context: {
+ app: {
+ build: '1.0.0',
+ name: 'RudderLabs JavaScript SDK',
+ namespace: 'com.rudderlabs.javascript',
+ version: '1.0.0',
+ },
+ device: {
+ advertisingId: 'T0T0T072-5e28-45a1-9eda-ce22a3e36d1a',
+ id: '3f034872-5e28-45a1-9eda-ce22a3e36d1a',
+ manufacturer: 'Google',
+ model: 'AOSP on IA Emulator',
+ name: 'generic_x86_arm',
+ type: 'ios',
+ attTrackingStatus: 3,
+ },
+ library: {
+ name: 'RudderLabs JavaScript SDK',
+ version: '1.0.0',
+ },
+ locale: 'en-US',
+ os: {
+ name: 'iOS',
+ version: '14.4.1',
+ },
+ screen: {
+ density: 2,
+ },
+ },
+ traits: {
+ first_name: 'Rk',
+ last_name: 'Narayan',
+ mobileNumber: '1-926-555-9504',
+ phone: '9988776655',
+ },
+ type: 'identify',
+ sentAt: '2022-04-22T10:57:58Z',
+ },
+ destination: {
+ Config: {
+ apiKey: 'dummyApiKey',
+ domain: 'domain-rudder.myfreshworks.com',
+ },
+ },
+ },
+ ],
+ },
+ },
+ output: {
+ response: {
+ status: 200,
+ body: [
+ {
+ error: 'Missing required value from "email"',
+ statTags: {
+ destType: 'FRESHMARKETER',
+ errorCategory: 'dataValidation',
+ errorType: 'instrumentation',
+ feature: 'processor',
+ implementation: 'native',
+ module: 'destination',
+ },
+ statusCode: 400,
+ },
+ ],
+ },
+ },
+ },
+ {
+ name: 'freshmarketer',
+ description: 'Track call, event is not supported.',
+ feature: 'processor',
+ module: 'destination',
+ version: 'v0',
+ input: {
+ request: {
+ body: [
+ {
+ message: {
+ channel: 'web',
+ context: {
+ app: {
+ build: '1.0.0',
+ name: 'RudderLabs JavaScript SDK',
+ namespace: 'com.rudderlabs.javascript',
+ version: '1.1.5',
+ },
+ traits: {
+ name: 'Shehan Study',
+ category: 'SampleIdentify',
+ email: 'test@rudderstack.com',
+ plan: 'Open source',
+ logins: 5,
+ createdAt: 1599264000,
+ },
+ library: {
+ name: 'RudderLabs JavaScript SDK',
+ version: '1.1.5',
+ },
+ userAgent:
+ 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/85.0.4183.121 Safari/537.36',
+ locale: 'en-US',
+ os: {
+ name: '',
+ version: '',
+ },
+ screen: {
+ density: 0.8999999761581421,
+ },
+ campaign: {
+ source: 'google',
+ medium: 'medium',
+ term: 'keyword',
+ content: 'some content',
+ name: 'some campaign',
+ test: 'other value',
+ },
+ page: {
+ path: '/destinations/amplitude',
+ referrer: '',
+ search: '',
+ title: '',
+ url: 'https://docs.rudderstack.com/destinations/amplitude',
+ category: 'destination',
+ initial_referrer: 'https://docs.rudderstack.com',
+ initial_referring_domain: 'docs.rudderstack.com',
+ },
+ },
+ type: 'track',
+ messageId: 'dd46338d-5f83-493b-bd28-3b48f55d0be8',
+ originalTimestamp: '2020-10-20T08:14:28.778Z',
+ anonymousId: 'my-anonymous-id-new',
+ userId: 'newUserIdAlias',
+ properties: {
+ product_name: 'Shirt',
+ brand: 'Wrogn',
+ },
+ event: 'Add to Cart',
+ previousId: 'sampleusrRudder3',
+ sentAt: '2020-10-20T08:14:28.778Z',
+ },
+ destination: {
+ Config: {
+ apiKey: 'dummyApiKey',
+ domain: 'domain-rudder.myfreshworks.com',
+ },
+ },
+ },
+ ],
+ },
+ },
+ output: {
+ response: {
+ status: 200,
+ body: [
+ {
+ error: 'event name Add to Cart is not supported. Aborting!',
+ statTags: {
+ destType: 'FRESHMARKETER',
+ errorCategory: 'dataValidation',
+ errorType: 'instrumentation',
+ feature: 'processor',
+ implementation: 'native',
+ module: 'destination',
+ },
+ statusCode: 400,
+ },
+ ],
+ },
+ },
+ },
+ {
+ name: 'freshmarketer',
+ description: 'Track call: some required properties is missing for sales_activity',
+ feature: 'processor',
+ module: 'destination',
+ version: 'v0',
+ input: {
+ request: {
+ body: [
+ {
+ message: {
+ channel: 'web',
+ context: {
+ app: {
+ build: '1.0.0',
+ name: 'RudderLabs JavaScript SDK',
+ namespace: 'com.rudderlabs.javascript',
+ version: '1.1.5',
+ },
+ traits: {
+ name: 'Shehan Study',
+ category: 'SampleIdentify',
+ email: 'test@rudderstack.com',
+ plan: 'Open source',
+ logins: 5,
+ createdAt: 1599264000,
+ },
+ library: {
+ name: 'RudderLabs JavaScript SDK',
+ version: '1.1.5',
+ },
+ userAgent:
+ 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/85.0.4183.121 Safari/537.36',
+ locale: 'en-US',
+ os: {
+ name: '',
+ version: '',
+ },
+ screen: {
+ density: 0.8999999761581421,
+ },
+ campaign: {
+ source: 'google',
+ medium: 'medium',
+ term: 'keyword',
+ content: 'some content',
+ name: 'some campaign',
+ test: 'other value',
+ },
+ page: {
+ path: '/destinations/amplitude',
+ referrer: '',
+ search: '',
+ title: '',
+ url: 'https://docs.rudderstack.com/destinations/amplitude',
+ category: 'destination',
+ initial_referrer: 'https://docs.rudderstack.com',
+ initial_referring_domain: 'docs.rudderstack.com',
+ },
+ },
+ type: 'track',
+ messageId: 'dd46338d-5f83-493b-bd28-3b48f55d0be8',
+ originalTimestamp: '2020-10-20T08:14:28.778Z',
+ anonymousId: 'my-anonymous-id-new',
+ userId: 'newUserIdAlias',
+ email: 'test@rudderstack.com',
+ properties: {
+ product_name: 'Shirt',
+ brand: 'Wrogn',
+ },
+ event: 'sales_activity',
+ previousId: 'sampleusrRudder3',
+ sentAt: '2020-10-20T08:14:28.778Z',
+ },
+ destination: {
+ Config: {
+ apiKey: 'dummyApiKey',
+ domain: 'domain-rudder.myfreshworks.com',
+ },
+ },
+ },
+ ],
+ },
+ },
+ output: {
+ response: {
+ status: 200,
+ body: [
+ {
+ error: 'Missing required value from "properties.title"',
+ statTags: {
+ destType: 'FRESHMARKETER',
+ errorCategory: 'dataValidation',
+ errorType: 'instrumentation',
+ feature: 'processor',
+ implementation: 'native',
+ module: 'destination',
+ },
+ statusCode: 400,
+ },
+ ],
+ },
+ },
+ },
+ {
+ name: 'freshmarketer',
+ description: 'Track call: for salesActivityName',
+ feature: 'processor',
+ module: 'destination',
+ version: 'v0',
+ input: {
+ request: {
+ body: [
+ {
+ message: {
+ channel: 'web',
+ context: {
+ app: {
+ build: '1.0.0',
+ name: 'RudderLabs JavaScript SDK',
+ namespace: 'com.rudderlabs.javascript',
+ version: '1.1.5',
+ },
+ traits: {
+ name: 'Shehan Study',
+ category: 'SampleIdentify',
+ email: 'test@rudderstack.com',
+ plan: 'Open source',
+ logins: 5,
+ createdAt: 1599264000,
+ },
+ library: {
+ name: 'RudderLabs JavaScript SDK',
+ version: '1.1.5',
+ },
+ userAgent:
+ 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/85.0.4183.121 Safari/537.36',
+ locale: 'en-US',
+ os: {
+ name: '',
+ version: '',
+ },
+ screen: {
+ density: 0.8999999761581421,
+ },
+ campaign: {
+ source: 'google',
+ medium: 'medium',
+ term: 'keyword',
+ content: 'some content',
+ name: 'some campaign',
+ test: 'other value',
+ },
+ page: {
+ path: '/destinations/amplitude',
+ referrer: '',
+ search: '',
+ title: '',
+ url: 'https://docs.rudderstack.com/destinations/amplitude',
+ category: 'destination',
+ initial_referrer: 'https://docs.rudderstack.com',
+ initial_referring_domain: 'docs.rudderstack.com',
+ },
+ externalId: {
+ type: 'Contact',
+ },
+ },
+ type: 'track',
+ messageId: 'dd46338d-5f83-493b-bd28-3b48f55d0be8',
+ originalTimestamp: '2020-10-20T08:14:28.778Z',
+ anonymousId: 'my-anonymous-id-new',
+ userId: 'newUserIdAlias',
+ email: 'test@rudderstack.com',
+ properties: {
+ product_name: 'Shirt',
+ brand: 'Wrogn',
+ salesActivityName: 'own-calender',
+ title: 'new Contact',
+ startDate: '2021-05-04T17:00:00+05:30',
+ endDate: '2022-06-04T17:30:00+05:30',
+ ownerId: '70054866612',
+ },
+ event: 'sales_activity',
+ previousId: 'sampleusrRudder3',
+ sentAt: '2020-10-20T08:14:28.778Z',
+ },
+ destination: {
+ Config: {
+ apiKey: 'dummyApiKey',
+ domain: 'domain-rudder.myfreshworks.com',
+ },
+ },
+ },
+ ],
+ },
+ },
+ output: {
+ response: {
+ status: 200,
+ body: [
+ {
+ output: {
+ body: {
+ XML: {},
+ FORM: {},
+ JSON: {
+ sales_activity: {
+ title: 'new Contact',
+ end_date: '2022-06-04T17:30:00+05:30',
+ owner_id: '70054866612',
+ start_date: '2021-05-04T17:00:00+05:30',
+ created_at: '2020-10-20T08:14:28.778Z',
+ updated_at: '2020-10-20T08:14:28.778Z',
+ targetable_id: 70054866612,
+ targetable_type: 'Contact',
+ sales_activity_name: 'own-calender',
+ sales_activity_type_id: 70000666879,
+ },
+ },
+ JSON_ARRAY: {},
+ },
+ type: 'REST',
+ files: {},
+ method: 'POST',
+ params: {},
+ headers: {
+ 'Content-Type': 'application/json',
+ Authorization: 'Token token=dummyApiKey',
+ },
+ version: '1',
+ endpoint: 'https://domain-rudder.myfreshworks.com/crm/sales/api/sales_activities',
+ userId: '',
+ },
+ statusCode: 200,
+ },
+ ],
+ },
+ },
+ },
+ {
+ name: 'freshmarketer',
+ description: 'Track call: lifecycle_stage_id',
+ feature: 'processor',
+ module: 'destination',
+ version: 'v0',
+ input: {
+ request: {
+ body: [
+ {
+ message: {
+ channel: 'web',
+ context: {
+ app: {
+ build: '1.0.0',
+ name: 'RudderLabs JavaScript SDK',
+ namespace: 'com.rudderlabs.javascript',
+ version: '1.1.5',
+ },
+ traits: {
+ name: 'Shehan Study',
+ category: 'SampleIdentify',
+ plan: 'Open source',
+ logins: 5,
+ createdAt: 1599264000,
+ },
+ library: {
+ name: 'RudderLabs JavaScript SDK',
+ version: '1.1.5',
+ },
+ userAgent:
+ 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/85.0.4183.121 Safari/537.36',
+ locale: 'en-US',
+ os: {
+ name: '',
+ version: '',
+ },
+ screen: {
+ density: 0.8999999761581421,
+ },
+ campaign: {
+ source: 'google',
+ medium: 'medium',
+ term: 'keyword',
+ content: 'some content',
+ name: 'some campaign',
+ test: 'other value',
+ },
+ page: {
+ path: '/destinations/amplitude',
+ referrer: '',
+ search: '',
+ title: '',
+ url: 'https://docs.rudderstack.com/destinations/amplitude',
+ category: 'destination',
+ initial_referrer: 'https://docs.rudderstack.com',
+ initial_referring_domain: 'docs.rudderstack.com',
+ },
+ },
+ type: 'track',
+ messageId: 'dd46338d-5f83-493b-bd28-3b48f55d0be8',
+ originalTimestamp: '2020-10-20T08:14:28.778Z',
+ anonymousId: 'my-anonymous-id-new',
+ userId: 'newUserIdAlias',
+ properties: {
+ email: 'jamessampleton3@gmail.com',
+ lifecycleStageId: '71012139273',
+ title: 'new Contact',
+ startDate: '2021-05-04T17:00:00+05:30',
+ endDate: '2022-06-04T17:30:00+05:30',
+ ownerId: '70054866612',
+ targetableType: 'Contact',
+ },
+ event: 'lifecycle_stage',
+ previousId: 'sampleusrRudder3',
+ sentAt: '2020-10-20T08:14:28.778Z',
+ },
+ destination: {
+ Config: {
+ apiKey: 'dummyApiKey',
+ domain: 'domain-rudder.myfreshworks.com',
+ },
+ },
+ },
+ ],
+ },
+ },
+ output: {
+ response: {
+ status: 200,
+ body: [
+ {
+ output: {
+ version: '1',
+ type: 'REST',
+ method: 'POST',
+ endpoint: 'https://domain-rudder.myfreshworks.com/crm/sales/api/contacts/upsert',
+ headers: {
+ Authorization: 'Token token=dummyApiKey',
+ 'Content-Type': 'application/json',
+ },
+ params: {},
+ body: {
+ JSON: {
+ contact: {
+ lifecycle_stage_id: '71012139273',
+ },
+ unique_identifier: {
+ emails: 'jamessampleton3@gmail.com',
+ },
+ },
+ JSON_ARRAY: {},
+ XML: {},
+ FORM: {},
+ },
+ files: {},
+ userId: '',
+ },
+ statusCode: 200,
+ },
+ ],
+ },
+ },
+ },
+ {
+ name: 'freshmarketer',
+ description: 'Track call: In lifecycle stage, email is missing',
+ feature: 'processor',
+ module: 'destination',
+ version: 'v0',
+ input: {
+ request: {
+ body: [
+ {
+ message: {
+ channel: 'web',
+ context: {
+ app: {
+ build: '1.0.0',
+ name: 'RudderLabs JavaScript SDK',
+ namespace: 'com.rudderlabs.javascript',
+ version: '1.1.5',
+ },
+ traits: {
+ name: 'Shehan Study',
+ category: 'SampleIdentify',
+ plan: 'Open source',
+ logins: 5,
+ createdAt: 1599264000,
+ },
+ library: {
+ name: 'RudderLabs JavaScript SDK',
+ version: '1.1.5',
+ },
+ userAgent:
+ 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/85.0.4183.121 Safari/537.36',
+ locale: 'en-US',
+ os: {
+ name: '',
+ version: '',
+ },
+ screen: {
+ density: 0.8999999761581421,
+ },
+ campaign: {
+ source: 'google',
+ medium: 'medium',
+ term: 'keyword',
+ content: 'some content',
+ name: 'some campaign',
+ test: 'other value',
+ },
+ page: {
+ path: '/destinations/amplitude',
+ referrer: '',
+ search: '',
+ title: '',
+ url: 'https://docs.rudderstack.com/destinations/amplitude',
+ category: 'destination',
+ initial_referrer: 'https://docs.rudderstack.com',
+ initial_referring_domain: 'docs.rudderstack.com',
+ },
+ },
+ type: 'track',
+ messageId: 'dd46338d-5f83-493b-bd28-3b48f55d0be8',
+ originalTimestamp: '2020-10-20T08:14:28.778Z',
+ anonymousId: 'my-anonymous-id-new',
+ userId: 'newUserIdAlias',
+ properties: {
+ lifecycleStageId: '71012139273',
+ title: 'new Contact',
+ startDate: '2021-05-04T17:00:00+05:30',
+ endDate: '2022-06-04T17:30:00+05:30',
+ ownerId: '70054866612',
+ targetableType: 'Contact',
+ },
+ event: 'lifecycle_stage',
+ previousId: 'sampleusrRudder3',
+ sentAt: '2020-10-20T08:14:28.778Z',
+ },
+ destination: {
+ Config: {
+ apiKey: 'dummyApiKey',
+ domain: 'domain-rudder.myfreshworks.com',
+ },
+ },
+ },
+ ],
+ },
+ },
+ output: {
+ response: {
+ status: 200,
+ body: [
+ {
+ error: 'email is required for updating life Cycle Stages. Aborting!',
+ statTags: {
+ destType: 'FRESHMARKETER',
+ errorCategory: 'dataValidation',
+ errorType: 'instrumentation',
+ feature: 'processor',
+ implementation: 'native',
+ module: 'destination',
+ },
+ statusCode: 400,
+ },
+ ],
+ },
+ },
+ },
+ {
+ name: 'freshmarketer',
+ description: 'Track call: Either of lifecycleStageName or lifecycleStageId is required',
+ feature: 'processor',
+ module: 'destination',
+ version: 'v0',
+ input: {
+ request: {
+ body: [
+ {
+ message: {
+ channel: 'web',
+ context: {
+ app: {
+ build: '1.0.0',
+ name: 'RudderLabs JavaScript SDK',
+ namespace: 'com.rudderlabs.javascript',
+ version: '1.1.5',
+ },
+ traits: {
+ name: 'Shehan Study',
+ category: 'SampleIdentify',
+ email: 'test@rudderstack.com',
+ plan: 'Open source',
+ logins: 5,
+ createdAt: 1599264000,
+ },
+ library: {
+ name: 'RudderLabs JavaScript SDK',
+ version: '1.1.5',
+ },
+ userAgent:
+ 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/85.0.4183.121 Safari/537.36',
+ locale: 'en-US',
+ os: {
+ name: '',
+ version: '',
+ },
+ screen: {
+ density: 0.8999999761581421,
+ },
+ campaign: {
+ source: 'google',
+ medium: 'medium',
+ term: 'keyword',
+ content: 'some content',
+ name: 'some campaign',
+ test: 'other value',
+ },
+ page: {
+ path: '/destinations/amplitude',
+ referrer: '',
+ search: '',
+ title: '',
+ url: 'https://docs.rudderstack.com/destinations/amplitude',
+ category: 'destination',
+ initial_referrer: 'https://docs.rudderstack.com',
+ initial_referring_domain: 'docs.rudderstack.com',
+ },
+ },
+ type: 'track',
+ messageId: 'dd46338d-5f83-493b-bd28-3b48f55d0be8',
+ originalTimestamp: '2020-10-20T08:14:28.778Z',
+ anonymousId: 'my-anonymous-id-new',
+ userId: 'newUserIdAlias',
+ email: 'jamessampleton3@gmail.com',
+ properties: {
+ title: 'new Contact',
+ startDate: '2021-05-04T17:00:00+05:30',
+ endDate: '2022-06-04T17:30:00+05:30',
+ ownerId: '70054866612',
+ targetableType: 'Contact',
+ },
+ event: 'lifecycle_stage',
+ previousId: 'sampleusrRudder3',
+ sentAt: '2020-10-20T08:14:28.778Z',
+ },
+ destination: {
+ Config: {
+ apiKey: 'dummyApiKey',
+ domain: 'domain-rudder.myfreshworks.com',
+ },
+ },
+ },
+ ],
+ },
+ },
+ output: {
+ response: {
+ status: 200,
+ body: [
+ {
+ error: 'Either of lifecycleStageName or lifecycleStageId is required. Aborting!',
+ statTags: {
+ destType: 'FRESHMARKETER',
+ errorCategory: 'dataValidation',
+ errorType: 'instrumentation',
+ feature: 'processor',
+ implementation: 'native',
+ module: 'destination',
+ },
+ statusCode: 400,
+ },
+ ],
+ },
+ },
+ },
+ {
+ name: 'freshmarketer',
+ description: 'Track call: Either of sales activity name or sales activity type id is required',
+ feature: 'processor',
+ module: 'destination',
+ version: 'v0',
+ input: {
+ request: {
+ body: [
+ {
+ message: {
+ channel: 'web',
+ context: {
+ app: {
+ build: '1.0.0',
+ name: 'RudderLabs JavaScript SDK',
+ namespace: 'com.rudderlabs.javascript',
+ version: '1.1.5',
+ },
+ traits: {
+ name: 'Shehan Study',
+ category: 'SampleIdentify',
+ email: 'test@rudderstack.com',
+ plan: 'Open source',
+ logins: 5,
+ createdAt: 1599264000,
+ },
+ library: {
+ name: 'RudderLabs JavaScript SDK',
+ version: '1.1.5',
+ },
+ userAgent:
+ 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/85.0.4183.121 Safari/537.36',
+ locale: 'en-US',
+ os: {
+ name: '',
+ version: '',
+ },
+ screen: {
+ density: 0.8999999761581421,
+ },
+ campaign: {
+ source: 'google',
+ medium: 'medium',
+ term: 'keyword',
+ content: 'some content',
+ name: 'some campaign',
+ test: 'other value',
+ },
+ page: {
+ path: '/destinations/amplitude',
+ referrer: '',
+ search: '',
+ title: '',
+ url: 'https://docs.rudderstack.com/destinations/amplitude',
+ category: 'destination',
+ initial_referrer: 'https://docs.rudderstack.com',
+ initial_referring_domain: 'docs.rudderstack.com',
+ },
+ externalId: {
+ type: 'Contact',
+ },
+ },
+ type: 'track',
+ messageId: 'dd46338d-5f83-493b-bd28-3b48f55d0be8',
+ originalTimestamp: '2020-10-20T08:14:28.778Z',
+ anonymousId: 'my-anonymous-id-new',
+ userId: 'newUserIdAlias',
+ email: 'test@rudderstack.com',
+ properties: {
+ product_name: 'Shirt',
+ brand: 'Wrogn',
+ title: 'new Contact',
+ startDate: '2021-05-04T17:00:00+05:30',
+ endDate: '2022-06-04T17:30:00+05:30',
+ ownerId: '70054866612',
+ },
+ event: 'sales_activity',
+ previousId: 'sampleusrRudder3',
+ sentAt: '2020-10-20T08:14:28.778Z',
+ },
+ destination: {
+ Config: {
+ apiKey: 'dummyApiKey',
+ domain: 'domain-rudder.myfreshworks.com',
+ },
+ },
+ },
+ ],
+ },
+ },
+ output: {
+ response: {
+ status: 200,
+ body: [
+ {
+ error: 'Either of sales activity name or sales activity type id is required. Aborting!',
+ statTags: {
+ destType: 'FRESHMARKETER',
+ errorCategory: 'dataValidation',
+ errorType: 'instrumentation',
+ feature: 'processor',
+ implementation: 'native',
+ module: 'destination',
+ },
+ statusCode: 400,
+ },
+ ],
+ },
+ },
+ },
+ {
+ name: 'freshmarketer',
+ description:
+ 'Track call: Either of email or targetable_id is required for creating sales activity.',
+ feature: 'processor',
+ module: 'destination',
+ version: 'v0',
+ input: {
+ request: {
+ body: [
+ {
+ message: {
+ channel: 'web',
+ context: {
+ app: {
+ build: '1.0.0',
+ name: 'RudderLabs JavaScript SDK',
+ namespace: 'com.rudderlabs.javascript',
+ version: '1.1.5',
+ },
+ traits: {
+ name: 'Shehan Study',
+ category: 'SampleIdentify',
+ plan: 'Open source',
+ logins: 5,
+ createdAt: 1599264000,
+ },
+ library: {
+ name: 'RudderLabs JavaScript SDK',
+ version: '1.1.5',
+ },
+ userAgent:
+ 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/85.0.4183.121 Safari/537.36',
+ locale: 'en-US',
+ os: {
+ name: '',
+ version: '',
+ },
+ screen: {
+ density: 0.8999999761581421,
+ },
+ campaign: {
+ source: 'google',
+ medium: 'medium',
+ term: 'keyword',
+ content: 'some content',
+ name: 'some campaign',
+ test: 'other value',
+ },
+ page: {
+ path: '/destinations/amplitude',
+ referrer: '',
+ search: '',
+ title: '',
+ url: 'https://docs.rudderstack.com/destinations/amplitude',
+ category: 'destination',
+ initial_referrer: 'https://docs.rudderstack.com',
+ initial_referring_domain: 'docs.rudderstack.com',
+ },
+ externalId: {
+ type: 'Contact',
+ },
+ },
+ type: 'track',
+ messageId: 'dd46338d-5f83-493b-bd28-3b48f55d0be8',
+ originalTimestamp: '2020-10-20T08:14:28.778Z',
+ anonymousId: 'my-anonymous-id-new',
+ userId: 'newUserIdAlias',
+ properties: {
+ product_name: 'Shirt',
+ brand: 'Wrogn',
+ salesActivityName: 'own-calender',
+ title: 'new Contact',
+ startDate: '2021-05-04T17:00:00+05:30',
+ endDate: '2022-06-04T17:30:00+05:30',
+ ownerId: '70054866612',
+ },
+ event: 'sales_activity',
+ previousId: 'sampleusrRudder3',
+ sentAt: '2020-10-20T08:14:28.778Z',
+ },
+ destination: {
+ Config: {
+ apiKey: 'dummyApiKey',
+ domain: 'domain-rudder.myfreshworks.com',
+ },
+ },
+ },
+ ],
+ },
+ },
+ output: {
+ response: {
+ status: 200,
+ body: [
+ {
+ error:
+ 'Either of email or targetable_id is required for creating sales activity. Aborting!',
+ statTags: {
+ destType: 'FRESHMARKETER',
+ errorCategory: 'dataValidation',
+ errorType: 'instrumentation',
+ feature: 'processor',
+ implementation: 'native',
+ module: 'destination',
+ },
+ statusCode: 400,
+ },
+ ],
+ },
+ },
+ },
+ {
+ name: 'freshmarketer',
+ description: 'Track call: sales activity with salesActivityTypeId',
+ feature: 'processor',
+ module: 'destination',
+ version: 'v0',
+ input: {
+ request: {
+ body: [
+ {
+ message: {
+ channel: 'web',
+ context: {
+ app: {
+ build: '1.0.0',
+ name: 'RudderLabs JavaScript SDK',
+ namespace: 'com.rudderlabs.javascript',
+ version: '1.1.5',
+ },
+ traits: {
+ name: 'Shehan Study',
+ category: 'SampleIdentify',
+ email: 'test@rudderstack.com',
+ plan: 'Open source',
+ logins: 5,
+ createdAt: 1599264000,
+ },
+ library: {
+ name: 'RudderLabs JavaScript SDK',
+ version: '1.1.5',
+ },
+ userAgent:
+ 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/85.0.4183.121 Safari/537.36',
+ locale: 'en-US',
+ os: {
+ name: '',
+ version: '',
+ },
+ screen: {
+ density: 0.8999999761581421,
+ },
+ campaign: {
+ source: 'google',
+ medium: 'medium',
+ term: 'keyword',
+ content: 'some content',
+ name: 'some campaign',
+ test: 'other value',
+ },
+ page: {
+ path: '/destinations/amplitude',
+ referrer: '',
+ search: '',
+ title: '',
+ url: 'https://docs.rudderstack.com/destinations/amplitude',
+ category: 'destination',
+ initial_referrer: 'https://docs.rudderstack.com',
+ initial_referring_domain: 'docs.rudderstack.com',
+ },
+ externalId: {
+ type: 'Contact',
+ },
+ },
+ type: 'track',
+ messageId: 'dd46338d-5f83-493b-bd28-3b48f55d0be8',
+ originalTimestamp: '2020-10-20T08:14:28.778Z',
+ anonymousId: 'my-anonymous-id-new',
+ userId: 'newUserIdAlias',
+ email: 'jamessampleton3@gmail.com',
+ properties: {
+ salesActivityTypeId: '70000663932',
+ title: 'new Contact',
+ startDate: '2021-05-04T17:00:00+05:30',
+ endDate: '2022-06-04T17:30:00+05:30',
+ ownerId: '70054866612',
+ },
+ event: 'sales_activity',
+ previousId: 'sampleusrRudder3',
+ sentAt: '2020-10-20T08:14:28.778Z',
+ },
+ destination: {
+ Config: {
+ apiKey: 'dummyApiKey',
+ domain: 'domain-rudder.myfreshworks.com',
+ },
+ },
+ },
+ ],
+ },
+ },
+ output: {
+ response: {
+ status: 200,
+ body: [
+ {
+ output: {
+ body: {
+ XML: {},
+ FORM: {},
+ JSON: {
+ sales_activity: {
+ title: 'new Contact',
+ end_date: '2022-06-04T17:30:00+05:30',
+ owner_id: '70054866612',
+ start_date: '2021-05-04T17:00:00+05:30',
+ created_at: '2020-10-20T08:14:28.778Z',
+ updated_at: '2020-10-20T08:14:28.778Z',
+ targetable_id: 70054866612,
+ targetable_type: 'Contact',
+ sales_activity_type_id: '70000663932',
+ },
+ },
+ JSON_ARRAY: {},
+ },
+ type: 'REST',
+ files: {},
+ method: 'POST',
+ params: {},
+ headers: {
+ 'Content-Type': 'application/json',
+ Authorization: 'Token token=dummyApiKey',
+ },
+ version: '1',
+ endpoint: 'https://domain-rudder.myfreshworks.com/crm/sales/api/sales_activities',
+ userId: '',
+ },
+ statusCode: 200,
+ },
+ ],
+ },
+ },
+ },
+ {
+ name: 'freshmarketer',
+ description: 'Track call: updated sales activity with salesActivityTypeId and targetableId',
+ feature: 'processor',
+ module: 'destination',
+ version: 'v0',
+ input: {
+ request: {
+ body: [
+ {
+ message: {
+ channel: 'web',
+ context: {
+ app: {
+ build: '1.0.0',
+ name: 'RudderLabs JavaScript SDK',
+ namespace: 'com.rudderlabs.javascript',
+ version: '1.1.5',
+ },
+ traits: {
+ name: 'Shehan Study',
+ category: 'SampleIdentify',
+ email: 'test@rudderstack.com',
+ plan: 'Open source',
+ logins: 5,
+ createdAt: 1599264000,
+ },
+ library: {
+ name: 'RudderLabs JavaScript SDK',
+ version: '1.1.5',
+ },
+ userAgent:
+ 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/85.0.4183.121 Safari/537.36',
+ locale: 'en-US',
+ os: {
+ name: '',
+ version: '',
+ },
+ screen: {
+ density: 0.8999999761581421,
+ },
+ campaign: {
+ source: 'google',
+ medium: 'medium',
+ term: 'keyword',
+ content: 'some content',
+ name: 'some campaign',
+ test: 'other value',
+ },
+ page: {
+ path: '/destinations/amplitude',
+ referrer: '',
+ search: '',
+ title: '',
+ url: 'https://docs.rudderstack.com/destinations/amplitude',
+ category: 'destination',
+ initial_referrer: 'https://docs.rudderstack.com',
+ initial_referring_domain: 'docs.rudderstack.com',
+ },
+ externalId: {
+ id: '70052305908',
+ type: 'Contact',
+ },
+ },
+ type: 'track',
+ messageId: 'dd46338d-5f83-493b-bd28-3b48f55d0be8',
+ originalTimestamp: '2020-10-20T08:14:28.778Z',
+ anonymousId: 'my-anonymous-id-new',
+ userId: 'newUserIdAlias',
+ properties: {
+ salesActivityTypeId: '70000663932',
+ title: 'new Contact',
+ startDate: '2021-05-04T17:00:00+05:30',
+ endDate: '2022-06-04T17:30:00+05:30',
+ ownerId: '70054866612',
+ },
+ event: 'sales_activity',
+ previousId: 'sampleusrRudder3',
+ sentAt: '2020-10-20T08:14:28.778Z',
+ },
+ destination: {
+ Config: {
+ apiKey: 'dummyApiKey',
+ domain: 'domain-rudder.myfreshworks.com',
+ },
+ },
+ },
+ ],
+ },
+ },
+ output: {
+ response: {
+ status: 200,
+ body: [
+ {
+ output: {
+ body: {
+ XML: {},
+ FORM: {},
+ JSON: {
+ sales_activity: {
+ title: 'new Contact',
+ end_date: '2022-06-04T17:30:00+05:30',
+ owner_id: '70054866612',
+ start_date: '2021-05-04T17:00:00+05:30',
+ created_at: '2020-10-20T08:14:28.778Z',
+ updated_at: '2020-10-20T08:14:28.778Z',
+ targetable_id: '70052305908',
+ targetable_type: 'Contact',
+ sales_activity_type_id: '70000663932',
+ },
+ },
+ JSON_ARRAY: {},
+ },
+ type: 'REST',
+ files: {},
+ method: 'POST',
+ params: {},
+ headers: {
+ 'Content-Type': 'application/json',
+ Authorization: 'Token token=dummyApiKey',
+ },
+ version: '1',
+ endpoint: 'https://domain-rudder.myfreshworks.com/crm/sales/api/sales_activities',
+ userId: '',
+ },
+ statusCode: 200,
+ },
+ ],
+ },
+ },
+ },
+ {
+ name: 'freshmarketer',
+ description: 'Unsupported message Type',
+ feature: 'processor',
+ module: 'destination',
+ version: 'v0',
+ input: {
+ request: {
+ body: [
+ {
+ message: {
+ channel: 'web',
+ type: 'page',
+ messageId: 'dd46338d-5f83-493b-bd28-3b48f55d0be8',
+ originalTimestamp: '2020-10-20T08:14:28.778Z',
+ anonymousId: 'my-anonymous-id-new',
+ userId: 'newUserIdAlias',
+ email: 'jamessampleton3@gmail.com',
+ properties: {
+ lifecycleStageId: '71012139273',
+ title: 'new Contact',
+ startDate: '2021-05-04T17:00:00+05:30',
+ endDate: '2022-06-04T17:30:00+05:30',
+ ownerId: '70054866612',
+ targetableType: 'Contact',
+ },
+ event: 'lifecycle_stage',
+ previousId: 'sampleusrRudder3',
+ sentAt: '2020-10-20T08:14:28.778Z',
+ },
+ destination: {
+ Config: {
+ apiKey: 'dummyApiKey',
+ domain: 'domain-rudder.myfreshworks.com',
+ },
+ },
+ },
+ ],
+ },
+ },
+ output: {
+ response: {
+ status: 200,
+ body: [
+ {
+ error: 'message type page not supported',
+ statTags: {
+ destType: 'FRESHMARKETER',
+ errorCategory: 'dataValidation',
+ errorType: 'instrumentation',
+ feature: 'processor',
+ implementation: 'native',
+ module: 'destination',
+ },
+ statusCode: 400,
+ },
+ ],
+ },
+ },
+ },
+ {
+ name: 'freshmarketer',
+ description: 'Group call: email is required for adding contacts to marketing lists',
+ feature: 'processor',
+ module: 'destination',
+ version: 'v0',
+ input: {
+ request: {
+ body: [
+ {
+ message: {
+ messageId: 'sadjb-1e2r3fhgb-12bvbbj',
+ originalTimestamp: '2022-06-22T10:57:58Z',
+ anonymousId: 'ea5cfab2-3961-4d8a-8187-3d1858c99090',
+ traits: {
+ groupType: 'marketing_lists',
+ },
+ type: 'group',
+ sentAt: '2022-04-22T10:57:58Z',
+ },
+ destination: {
+ Config: {
+ apiKey: 'dummyApiKey',
+ domain: 'domain-rudder.myfreshworks.com',
+ },
+ },
+ },
+ ],
+ },
+ },
+ output: {
+ response: {
+ status: 200,
+ body: [
+ {
+ error: 'email is required for adding in the marketing lists. Aborting!',
+ statTags: {
+ destType: 'FRESHMARKETER',
+ errorCategory: 'dataValidation',
+ errorType: 'instrumentation',
+ feature: 'processor',
+ implementation: 'native',
+ module: 'destination',
+ },
+ statusCode: 400,
+ },
+ ],
+ },
+ },
+ },
+ {
+ name: 'freshmarketer',
+ description: 'Group call: group type is not present',
+ feature: 'processor',
+ module: 'destination',
+ version: 'v0',
+ input: {
+ request: {
+ body: [
+ {
+ message: {
+ messageId: 'sadjb-1e2r3fhgb-12bvbbj',
+ originalTimestamp: '2022-06-22T10:57:58Z',
+ anonymousId: 'ea5cfab2-3961-4d8a-8187-3d1858c99090',
+ traits: {
+ name: 'Mark Twain',
+ phone: '919191919191',
+ numberOfEmployees: 51,
+ annualRevenue: 1000,
+ address: 'Red Colony',
+ city: 'Colony',
+ state: 'Haryana',
+ },
+ type: 'group',
+ sentAt: '2022-04-22T10:57:58Z',
+ },
+ destination: {
+ Config: {
+ apiKey: 'dummyApiKey',
+ domain: 'domain-rudder.myfreshworks.com',
+ },
+ },
+ },
+ ],
+ },
+ },
+ output: {
+ response: {
+ status: 200,
+ body: [
+ {
+ error: 'groupType is required for Group call',
+ statTags: {
+ destType: 'FRESHMARKETER',
+ errorCategory: 'dataValidation',
+ errorType: 'instrumentation',
+ feature: 'processor',
+ implementation: 'native',
+ module: 'destination',
+ },
+ statusCode: 400,
+ },
+ ],
+ },
+ },
+ },
+ {
+ name: 'freshmarketer',
+ description: 'Group call: add contacts in existing marketing lists',
+ feature: 'processor',
+ module: 'destination',
+ version: 'v0',
+ input: {
+ request: {
+ body: [
+ {
+ message: {
+ messageId: 'sadjb-1e2r3fhgb-12bvbbj',
+ originalTimestamp: '2022-06-22T10:57:58Z',
+ anonymousId: 'ea5cfab2-3961-4d8a-8187-3d1858c99090',
+ context: {
+ app: {
+ build: '1.0.0',
+ name: 'RudderLabs JavaScript SDK',
+ namespace: 'com.rudderlabs.javascript',
+ version: '1.0.0',
+ },
+ device: {
+ advertisingId: 'T0T0T072-5e28-45a1-9eda-ce22a3e36d1a',
+ id: '3f034872-5e28-45a1-9eda-ce22a3e36d1a',
+ manufacturer: 'Google',
+ model: 'AOSP on IA Emulator',
+ name: 'generic_x86_arm',
+ type: 'ios',
+ attTrackingStatus: 3,
+ },
+ library: {
+ name: 'RudderLabs JavaScript SDK',
+ version: '1.0.0',
+ },
+ locale: 'en-US',
+ os: {
+ name: 'iOS',
+ version: '14.4.1',
+ },
+ screen: {
+ density: 2,
+ },
+ traits: {
+ email: 'jamessampleton1@gmail.com',
+ },
+ },
+ traits: {
+ groupType: 'marketing_lists',
+ listName: 'Voda 5G',
+ address: 'Red Colony',
+ city: 'Colony',
+ state: 'Haryana',
+ },
+ type: 'group',
+ sentAt: '2022-04-22T10:57:58Z',
+ },
+ destination: {
+ Config: {
+ apiKey: 'dummyApiKey',
+ domain: 'domain-rudder.myfreshworks.com',
+ },
+ },
+ },
+ ],
+ },
+ },
+ output: {
+ response: {
+ status: 200,
+ body: [
+ {
+ output: {
+ body: {
+ XML: {},
+ FORM: {},
+ JSON: {
+ ids: [70054866612],
+ },
+ JSON_ARRAY: {},
+ },
+ type: 'REST',
+ files: {},
+ method: 'PUT',
+ params: {},
+ headers: {
+ 'Content-Type': 'application/json',
+ Authorization: 'Token token=dummyApiKey',
+ },
+ version: '1',
+ endpoint:
+ 'https://domain-rudder.myfreshworks.com/crm/sales/api/lists/70000059716/add_contacts',
+ userId: '',
+ },
+ statusCode: 200,
+ },
+ ],
+ },
+ },
+ },
+ {
+ name: 'freshmarketer',
+ description: 'Group call: groupType is not supported',
+ feature: 'processor',
+ module: 'destination',
+ version: 'v0',
+ input: {
+ request: {
+ body: [
+ {
+ message: {
+ messageId: 'sadjb-1e2r3fhgb-12bvbbj',
+ originalTimestamp: '2022-06-22T10:57:58Z',
+ anonymousId: 'ea5cfab2-3961-4d8a-8187-3d1858c99090',
+ traits: {
+ groupType: 'marketing',
+ listName: 'Voda 5G',
+ address: 'Red Colony',
+ city: 'Colony',
+ state: 'Haryana',
+ },
+ type: 'group',
+ sentAt: '2022-04-22T10:57:58Z',
+ },
+ destination: {
+ Config: {
+ apiKey: 'dummyApiKey',
+ domain: 'domain-rudder.myfreshworks.com',
+ },
+ },
+ },
+ ],
+ },
+ },
+ output: {
+ response: {
+ status: 200,
+ body: [
+ {
+ error: 'groupType marketing is not supported. Aborting!',
+ statTags: {
+ destType: 'FRESHMARKETER',
+ errorCategory: 'dataValidation',
+ errorType: 'instrumentation',
+ feature: 'processor',
+ implementation: 'native',
+ module: 'destination',
+ },
+ statusCode: 400,
+ },
+ ],
+ },
+ },
+ },
+ {
+ name: 'freshmarketer',
+ description: 'Group call: listId or listName is required',
+ feature: 'processor',
+ module: 'destination',
+ version: 'v0',
+ input: {
+ request: {
+ body: [
+ {
+ message: {
+ messageId: 'sadjb-1e2r3fhgb-12bvbbj',
+ originalTimestamp: '2022-06-22T10:57:58Z',
+ anonymousId: 'ea5cfab2-3961-4d8a-8187-3d1858c99090',
+ context: {
+ traits: {
+ email: 'jamessampleton1@gmail.com',
+ },
+ },
+ traits: {
+ groupType: 'marketing_lists',
+ address: 'Red Colony',
+ city: 'Colony',
+ state: 'Haryana',
+ },
+ type: 'group',
+ sentAt: '2022-04-22T10:57:58Z',
+ },
+ destination: {
+ Config: {
+ apiKey: 'dummyApiKey',
+ domain: 'domain-rudder.myfreshworks.com',
+ },
+ },
+ },
+ ],
+ },
+ },
+ output: {
+ response: {
+ status: 200,
+ body: [
+ {
+ error: 'listId or listName is required. Aborting!',
+ statTags: {
+ destType: 'FRESHMARKETER',
+ errorCategory: 'dataValidation',
+ errorType: 'instrumentation',
+ feature: 'processor',
+ implementation: 'native',
+ module: 'destination',
+ },
+ statusCode: 400,
+ },
+ ],
+ },
+ },
+ },
+ {
+ name: 'freshmarketer',
+ description: 'Group call: add marketing lists with listId',
+ feature: 'processor',
+ module: 'destination',
+ version: 'v0',
+ input: {
+ request: {
+ body: [
+ {
+ message: {
+ messageId: 'sadjb-1e2r3fhgb-12bvbbj',
+ originalTimestamp: '2022-06-22T10:57:58Z',
+ anonymousId: 'ea5cfab2-3961-4d8a-8187-3d1858c99090',
+ context: {
+ app: {
+ build: '1.0.0',
+ name: 'RudderLabs JavaScript SDK',
+ namespace: 'com.rudderlabs.javascript',
+ version: '1.0.0',
+ },
+ device: {
+ advertisingId: 'T0T0T072-5e28-45a1-9eda-ce22a3e36d1a',
+ id: '3f034872-5e28-45a1-9eda-ce22a3e36d1a',
+ manufacturer: 'Google',
+ model: 'AOSP on IA Emulator',
+ name: 'generic_x86_arm',
+ type: 'ios',
+ attTrackingStatus: 3,
+ },
+ library: {
+ name: 'RudderLabs JavaScript SDK',
+ version: '1.0.0',
+ },
+ locale: 'en-US',
+ os: {
+ name: 'iOS',
+ version: '14.4.1',
+ },
+ screen: {
+ density: 2,
+ },
+ traits: {
+ email: 'jamessampleton1@gmail.com',
+ },
+ },
+ traits: {
+ listId: '70000058627',
+ groupType: 'marketing_lists',
+ address: 'Red Colony',
+ city: 'Colony',
+ state: 'Haryana',
+ },
+ type: 'group',
+ sentAt: '2022-04-22T10:57:58Z',
+ },
+ destination: {
+ Config: {
+ apiKey: 'dummyApiKey',
+ domain: 'domain-rudder.myfreshworks.com',
+ },
+ },
+ },
+ ],
+ },
+ },
+ output: {
+ response: {
+ status: 200,
+ body: [
+ {
+ output: {
+ body: {
+ XML: {},
+ FORM: {},
+ JSON: {
+ ids: [70054866612],
+ },
+ JSON_ARRAY: {},
+ },
+ type: 'REST',
+ files: {},
+ method: 'PUT',
+ params: {},
+ headers: {
+ 'Content-Type': 'application/json',
+ Authorization: 'Token token=dummyApiKey',
+ },
+ version: '1',
+ endpoint:
+ 'https://domain-rudder.myfreshworks.com/crm/sales/api/lists/70000058627/add_contacts',
+ userId: '',
+ },
+ statusCode: 200,
+ },
+ ],
+ },
+ },
+ },
+ {
+ name: 'freshmarketer',
+ description: 'Track call: with wrong sales activity name',
+ feature: 'processor',
+ module: 'destination',
+ version: 'v0',
+ input: {
+ request: {
+ body: [
+ {
+ message: {
+ channel: 'web',
+ context: {
+ app: {
+ build: '1.0.0',
+ name: 'RudderLabs JavaScript SDK',
+ namespace: 'com.rudderlabs.javascript',
+ version: '1.1.5',
+ },
+ traits: {
+ name: 'Shehan Study',
+ category: 'SampleIdentify',
+ email: 'test@rudderstack.com',
+ plan: 'Open source',
+ logins: 5,
+ createdAt: 1599264000,
+ },
+ library: {
+ name: 'RudderLabs JavaScript SDK',
+ version: '1.1.5',
+ },
+ userAgent:
+ 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/85.0.4183.121 Safari/537.36',
+ locale: 'en-US',
+ os: {
+ name: '',
+ version: '',
+ },
+ screen: {
+ density: 0.8999999761581421,
+ },
+ campaign: {
+ source: 'google',
+ medium: 'medium',
+ term: 'keyword',
+ content: 'some content',
+ name: 'some campaign',
+ test: 'other value',
+ },
+ page: {
+ path: '/destinations/amplitude',
+ referrer: '',
+ search: '',
+ title: '',
+ url: 'https://docs.rudderstack.com/destinations/amplitude',
+ category: 'destination',
+ initial_referrer: 'https://docs.rudderstack.com',
+ initial_referring_domain: 'docs.rudderstack.com',
+ },
+ externalId: {
+ type: 'Contact',
+ },
+ },
+ type: 'track',
+ messageId: 'dd46338d-5f83-493b-bd28-3b48f55d0be8',
+ originalTimestamp: '2020-10-20T08:14:28.778Z',
+ anonymousId: 'my-anonymous-id-new',
+ userId: 'newUserIdAlias',
+ email: 'test@rudderstack.com',
+ properties: {
+ product_name: 'Shirt',
+ brand: 'Wrogn',
+ salesActivityName: 'own-list',
+ title: 'new Contact',
+ startDate: '2021-05-04T17:00:00+05:30',
+ endDate: '2022-06-04T17:30:00+05:30',
+ ownerId: '70054866612',
+ },
+ event: 'sales_activity',
+ previousId: 'sampleusrRudder3',
+ sentAt: '2020-10-20T08:14:28.778Z',
+ },
+ destination: {
+ Config: {
+ apiKey: 'dummyApiKey',
+ domain: 'domain-rudder.myfreshworks.com',
+ },
+ },
+ },
+ ],
+ },
+ },
+ output: {
+ response: {
+ status: 200,
+ body: [
+ {
+ error: "sales Activity own-list doesn't exists. Aborting!",
+ statTags: {
+ destType: 'FRESHMARKETER',
+ errorCategory: 'dataValidation',
+ errorType: 'instrumentation',
+ feature: 'processor',
+ implementation: 'native',
+ module: 'destination',
+ },
+ statusCode: 400,
+ },
+ ],
+ },
+ },
+ },
+ {
+ name: 'freshmarketer',
+ description: 'Track call: update contacts with sales Activity name',
+ feature: 'processor',
+ module: 'destination',
+ version: 'v0',
+ input: {
+ request: {
+ body: [
+ {
+ message: {
+ channel: 'web',
+ context: {
+ app: {
+ build: '1.0.0',
+ name: 'RudderLabs JavaScript SDK',
+ namespace: 'com.rudderlabs.javascript',
+ version: '1.1.5',
+ },
+ traits: {
+ name: 'Shehan Study',
+ category: 'SampleIdentify',
+ plan: 'Open source',
+ logins: 5,
+ createdAt: 1599264000,
+ },
+ library: {
+ name: 'RudderLabs JavaScript SDK',
+ version: '1.1.5',
+ },
+ userAgent:
+ 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/85.0.4183.121 Safari/537.36',
+ locale: 'en-US',
+ os: {
+ name: '',
+ version: '',
+ },
+ screen: {
+ density: 0.8999999761581421,
+ },
+ campaign: {
+ source: 'google',
+ medium: 'medium',
+ term: 'keyword',
+ content: 'some content',
+ name: 'some campaign',
+ test: 'other value',
+ },
+ page: {
+ path: '/destinations/amplitude',
+ referrer: '',
+ search: '',
+ title: '',
+ url: 'https://docs.rudderstack.com/destinations/amplitude',
+ category: 'destination',
+ initial_referrer: 'https://docs.rudderstack.com',
+ initial_referring_domain: 'docs.rudderstack.com',
+ },
+ },
+ type: 'track',
+ messageId: 'dd46338d-5f83-493b-bd28-3b48f55d0be8',
+ originalTimestamp: '2020-10-20T08:14:28.778Z',
+ anonymousId: 'my-anonymous-id-new',
+ userId: 'newUserIdAlias',
+ properties: {
+ email: 'jamessampleton6@gmail.com',
+ lifecycleStageName: 'final Customer',
+ title: 'new Contact',
+ startDate: '2021-05-04T17:00:00+05:30',
+ endDate: '2022-06-04T17:30:00+05:30',
+ ownerId: '70054866612',
+ targetableType: 'Contact',
+ },
+ event: 'lifecycle_stage',
+ previousId: 'sampleusrRudder3',
+ sentAt: '2020-10-20T08:14:28.778Z',
+ },
+ destination: {
+ Config: {
+ apiKey: 'dummyApiKey',
+ domain: 'domain-rudder.myfreshworks.com',
+ },
+ },
+ },
+ ],
+ },
+ },
+ output: {
+ response: {
+ status: 200,
+ body: [
+ {
+ output: {
+ body: {
+ XML: {},
+ FORM: {},
+ JSON: {
+ contact: {
+ lifecycle_stage_id: 71012806409,
+ },
+ unique_identifier: {
+ emails: 'jamessampleton6@gmail.com',
+ },
+ },
+ JSON_ARRAY: {},
+ },
+ type: 'REST',
+ files: {},
+ method: 'POST',
+ params: {},
+ headers: {
+ 'Content-Type': 'application/json',
+ Authorization: 'Token token=dummyApiKey',
+ },
+ version: '1',
+ endpoint: 'https://domain-rudder.myfreshworks.com/crm/sales/api/contacts/upsert',
+ userId: '',
+ },
+ statusCode: 200,
+ },
+ ],
+ },
+ },
+ },
+ {
+ name: 'freshmarketer',
+ description: 'Track call: with wrong lifecycleStageName',
+ feature: 'processor',
+ module: 'destination',
+ version: 'v0',
+ input: {
+ request: {
+ body: [
+ {
+ message: {
+ channel: 'web',
+ context: {
+ app: {
+ build: '1.0.0',
+ name: 'RudderLabs JavaScript SDK',
+ namespace: 'com.rudderlabs.javascript',
+ version: '1.1.5',
+ },
+ traits: {
+ name: 'Shehan Study',
+ category: 'SampleIdentify',
+ plan: 'Open source',
+ logins: 5,
+ createdAt: 1599264000,
+ },
+ library: {
+ name: 'RudderLabs JavaScript SDK',
+ version: '1.1.5',
+ },
+ userAgent:
+ 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/85.0.4183.121 Safari/537.36',
+ locale: 'en-US',
+ os: {
+ name: '',
+ version: '',
+ },
+ screen: {
+ density: 0.8999999761581421,
+ },
+ campaign: {
+ source: 'google',
+ medium: 'medium',
+ term: 'keyword',
+ content: 'some content',
+ name: 'some campaign',
+ test: 'other value',
+ },
+ page: {
+ path: '/destinations/amplitude',
+ referrer: '',
+ search: '',
+ title: '',
+ url: 'https://docs.rudderstack.com/destinations/amplitude',
+ category: 'destination',
+ initial_referrer: 'https://docs.rudderstack.com',
+ initial_referring_domain: 'docs.rudderstack.com',
+ },
+ },
+ type: 'track',
+ messageId: 'dd46338d-5f83-493b-bd28-3b48f55d0be8',
+ originalTimestamp: '2020-10-20T08:14:28.778Z',
+ anonymousId: 'my-anonymous-id-new',
+ userId: 'newUserIdAlias',
+ properties: {
+ email: 'jamessampleton6@gmail.com',
+ lifecycleStageName: 'final ExCustomer',
+ title: 'new Contact',
+ startDate: '2021-05-04T17:00:00+05:30',
+ endDate: '2022-06-04T17:30:00+05:30',
+ ownerId: '70054866612',
+ targetableType: 'Contact',
+ },
+ event: 'lifecycle_stage',
+ previousId: 'sampleusrRudder3',
+ sentAt: '2020-10-20T08:14:28.778Z',
+ },
+ destination: {
+ Config: {
+ apiKey: 'dummyApiKey',
+ domain: 'domain-rudder.myfreshworks.com',
+ },
+ },
+ },
+ ],
+ },
+ },
+ output: {
+ response: {
+ status: 200,
+ body: [
+ {
+ error: 'failed to fetch lifeCycleStages with final ExCustomer',
+ statTags: {
+ destType: 'FRESHMARKETER',
+ errorCategory: 'network',
+ errorType: 'aborted',
+ feature: 'processor',
+ implementation: 'native',
+ meta: 'instrumentation',
+ module: 'destination',
+ },
+ statusCode: 400,
+ },
+ ],
+ },
+ },
+ },
+ {
+ name: 'freshmarketer',
+ description: 'Track call: Multiplexing',
+ feature: 'processor',
+ module: 'destination',
+ version: 'v0',
+ input: {
+ request: {
+ body: [
+ {
+ message: {
+ channel: 'web',
+ context: {
+ app: {
+ build: '1.0.0',
+ name: 'RudderLabs JavaScript SDK',
+ namespace: 'com.rudderlabs.javascript',
+ version: '1.1.5',
+ },
+ traits: {
+ name: 'Shehan Study',
+ category: 'SampleIdentify',
+ email: 'test@rudderstack.com',
+ plan: 'Open source',
+ logins: 5,
+ createdAt: 1599264000,
+ },
+ library: {
+ name: 'RudderLabs JavaScript SDK',
+ version: '1.1.5',
+ },
+ userAgent:
+ 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/85.0.4183.121 Safari/537.36',
+ locale: 'en-US',
+ os: {
+ name: '',
+ version: '',
+ },
+ screen: {
+ density: 0.8999999761581421,
+ },
+ campaign: {
+ source: 'google',
+ medium: 'medium',
+ term: 'keyword',
+ content: 'some content',
+ name: 'some campaign',
+ test: 'other value',
+ },
+ page: {
+ path: '/destinations/amplitude',
+ referrer: '',
+ search: '',
+ title: '',
+ url: 'https://docs.rudderstack.com/destinations/amplitude',
+ category: 'destination',
+ initial_referrer: 'https://docs.rudderstack.com',
+ initial_referring_domain: 'docs.rudderstack.com',
+ },
+ externalId: {
+ type: 'Contact',
+ },
+ },
+ type: 'track',
+ messageId: 'dd46338d-5f83-493b-bd28-3b48f55d0be8',
+ originalTimestamp: '2020-10-20T08:14:28.778Z',
+ anonymousId: 'my-anonymous-id-new',
+ userId: 'newUserIdAlias',
+ email: 'test@rudderstack.com',
+ properties: {
+ product_name: 'Shirt',
+ brand: 'Wrogn',
+ salesActivityName: 'own-calender',
+ title: 'new Contact',
+ startDate: '2021-05-04T17:00:00+05:30',
+ endDate: '2022-06-04T17:30:00+05:30',
+ ownerId: '70054866612',
+ lifecycleStageId: '71012139273',
+ },
+ event: 'test_activity',
+ previousId: 'sampleusrRudder3',
+ sentAt: '2020-10-20T08:14:28.778Z',
+ },
+ destination: {
+ Config: {
+ apiKey: 'dummyApiKey',
+ domain: 'domain-rudder.myfreshworks.com',
+ rudderEventsToFreshmarketerEvents: [
+ {
+ from: 'test_activity',
+ to: 'sales_activity',
+ },
+ {
+ from: 'test_activity',
+ to: 'lifecycle_stage',
+ },
+ {
+ from: 'test_event',
+ to: 'lifecycle_stage',
+ },
+ ],
+ },
+ },
+ },
+ ],
+ },
+ },
+ output: {
+ response: {
+ status: 200,
+ body: [
+ {
+ output: {
+ body: {
+ XML: {},
+ FORM: {},
+ JSON: {
+ sales_activity: {
+ title: 'new Contact',
+ end_date: '2022-06-04T17:30:00+05:30',
+ owner_id: '70054866612',
+ start_date: '2021-05-04T17:00:00+05:30',
+ created_at: '2020-10-20T08:14:28.778Z',
+ updated_at: '2020-10-20T08:14:28.778Z',
+ targetable_id: 70054866612,
+ targetable_type: 'Contact',
+ sales_activity_name: 'own-calender',
+ sales_activity_type_id: 70000666879,
+ },
+ },
+ JSON_ARRAY: {},
+ },
+ type: 'REST',
+ files: {},
+ method: 'POST',
+ userId: '',
+ params: {},
+ headers: {
+ 'Content-Type': 'application/json',
+ Authorization: 'Token token=dummyApiKey',
+ },
+ version: '1',
+ endpoint: 'https://domain-rudder.myfreshworks.com/crm/sales/api/sales_activities',
+ },
+ statusCode: 200,
+ },
+ {
+ output: {
+ body: {
+ JSON: {
+ contact: {
+ lifecycle_stage_id: '71012139273',
+ },
+ unique_identifier: {
+ emails: 'test@rudderstack.com',
+ },
+ },
+ JSON_ARRAY: {},
+ XML: {},
+ FORM: {},
+ },
+ type: 'REST',
+ files: {},
+ userId: '',
+ method: 'POST',
+ params: {},
+ headers: {
+ Authorization: 'Token token=dummyApiKey',
+ 'Content-Type': 'application/json',
+ },
+ version: '1',
+ endpoint: 'https://domain-rudder.myfreshworks.com/crm/sales/api/contacts/upsert',
+ },
+ statusCode: 200,
+ },
+ ],
+ },
+ },
+ },
+];
diff --git a/test/integrations/destinations/freshsales/processor/data.ts b/test/integrations/destinations/freshsales/processor/data.ts
index e1436e12b3..eca3b88d9d 100644
--- a/test/integrations/destinations/freshsales/processor/data.ts
+++ b/test/integrations/destinations/freshsales/processor/data.ts
@@ -1,2668 +1,2688 @@
export const data = [
- {
- "name": "freshsales",
- "description": "Track call, event is not supported.",
- "feature": "processor",
- "module": "destination",
- "version": "v0",
- "input": {
- "request": {
- "body": [
- {
- "message": {
- "channel": "web",
- "context": {
- "app": {
- "build": "1.0.0",
- "name": "RudderLabs JavaScript SDK",
- "namespace": "com.rudderlabs.javascript",
- "version": "1.1.5"
- },
- "traits": {
- "name": "Shehan Study",
- "category": "SampleIdentify",
- "email": "test@rudderstack.com",
- "plan": "Open source",
- "logins": 5,
- "createdAt": 1599264000
- },
- "library": {
- "name": "RudderLabs JavaScript SDK",
- "version": "1.1.5"
- },
- "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/85.0.4183.121 Safari/537.36",
- "locale": "en-US",
- "os": {
- "name": "",
- "version": ""
- },
- "screen": {
- "density": 0.8999999761581421
- },
- "campaign": {
- "source": "google",
- "medium": "medium",
- "term": "keyword",
- "content": "some content",
- "name": "some campaign",
- "test": "other value"
- },
- "page": {
- "path": "/destinations/amplitude",
- "referrer": "",
- "search": "",
- "title": "",
- "url": "https://docs.rudderstack.com/destinations/amplitude",
- "category": "destination",
- "initial_referrer": "https://docs.rudderstack.com",
- "initial_referring_domain": "docs.rudderstack.com"
- }
- },
- "type": "track",
- "messageId": "dd46338d-5f83-493b-bd28-3b48f55d0be8",
- "originalTimestamp": "2020-10-20T08:14:28.778Z",
- "anonymousId": "my-anonymous-id-new",
- "userId": "newUserIdAlias",
- "properties": {
- "product_name": "Shirt",
- "brand": "Wrogn"
- },
- "event": {
- "name": "Add to Cart"
- },
- "previousId": "sampleusrRudder3",
- "sentAt": "2020-10-20T08:14:28.778Z"
- },
- "destination": {
- "Config": {
- "apiKey": "dummyApiKey",
- "domain": "domain-rudder.myfreshworks.com"
- }
- }
- }
- ]
- }
- },
- "output": {
- "response": {
- "status": 200,
- "body": [
- {
- "error": "Event is a required field and should be a string",
- "statTags": {
- "destType": "FRESHSALES",
- "errorCategory": "dataValidation",
- "errorType": "instrumentation",
- "feature": "processor",
- "implementation": "native",
- "module": "destination"
- },
- "statusCode": 400
- }
- ]
- }
- }
- },
- {
- "name": "freshsales",
- "description": "Identify call for creating new user",
- "feature": "processor",
- "module": "destination",
- "version": "v0",
- "input": {
- "request": {
- "body": [
- {
- "destination": {
- "Config": {
- "apiKey": "dummyApiKey",
- "domain": "rudderstack-476952domain3105.myfreshworks.com"
- }
- },
- "message": {
- "messageId": "ec5481b6-a926-4d2e-b293-0b3a77c4d3be",
- "originalTimestamp": "2022-06-22T10:57:58Z",
- "anonymousId": "ea5cfab2-3961-4d8a-8187-3d1858c99099",
- "context": {
- "app": {
- "build": "1.0.0",
- "name": "RudderLabs JavaScript SDK",
- "namespace": "com.rudderlabs.javascript",
- "version": "1.0.0"
- },
- "device": {
- "advertisingId": "T0T0T072-5e28-45a1-9eda-ce22a3e36d1a",
- "id": "3f034872-5e28-45a1-9eda-ce22a3e36d1a",
- "manufacturer": "Google",
- "model": "AOSP on IA Emulator",
- "name": "generic_x86_arm",
- "type": "ios",
- "attTrackingStatus": 3
- },
- "library": {
- "name": "RudderLabs JavaScript SDK",
- "version": "1.0.0"
- },
- "locale": "en-US",
- "os": {
- "name": "iOS",
- "version": "14.4.1"
- },
- "screen": {
- "density": 2
- }
- },
- "traits": {
- "email": "testuser@google.com",
- "first_name": "Rk",
- "last_name": "Mishra",
- "mobileNumber": "1-926-555-9504",
- "lifecycleStageId": 71010794467,
- "phone": "9988776655",
- "owner_id": "70000090119"
- },
- "type": "identify",
- "sentAt": "2022-04-22T10:57:58Z"
- }
- }
- ]
- }
- },
- "output": {
- "response": {
- "status": 200,
- "body": [
- {
- "output": {
- "body": {
- "XML": {},
- "FORM": {},
- "JSON": {
- "contact": {
- "emails": "testuser@google.com",
- "last_name": "Mishra",
- "created_at": "2022-06-22T10:57:58Z",
- "first_name": "Rk",
- "updated_at": "2022-06-22T10:57:58Z",
- "external_id": "ea5cfab2-3961-4d8a-8187-3d1858c99099",
- "work_number": "9988776655",
- "mobile_number": "1-926-555-9504",
- "lifecycle_stage_id": 71010794467
- },
- "unique_identifier": {
- "emails": "testuser@google.com"
- }
- },
- "JSON_ARRAY": {}
- },
- "type": "REST",
- "files": {},
- "method": "POST",
- "params": {},
- "headers": {
- "Content-Type": "application/json",
- "Authorization": "Token token=dummyApiKey"
- },
- "version": "1",
- "endpoint": "https://rudderstack-476952domain3105.myfreshworks.com/crm/sales/api/contacts/upsert",
- "userId": ""
- },
- "statusCode": 200
- }
- ]
- }
- }
- },
- {
- "name": "freshsales",
- "description": "Identify call with numbers in lifecycleStageId, ownerId",
- "feature": "processor",
- "module": "destination",
- "version": "v0",
- "input": {
- "request": {
- "body": [
- {
- "destination": {
- "Config": {
- "apiKey": "dummyApiKey",
- "domain": "rudderstack-476952domain3105.myfreshworks.com"
- }
- },
- "message": {
- "messageId": "ec5481b6-a926-4d2e-b293-0b3a77c4d3be",
- "originalTimestamp": "2022-06-22T10:57:58Z",
- "anonymousId": "ea5cfab2-3961-4d8a-8187-3d1858c99099",
- "context": {
- "app": {
- "build": "1.0.0",
- "name": "RudderLabs JavaScript SDK",
- "namespace": "com.rudderlabs.javascript",
- "version": "1.0.0"
- },
- "device": {
- "advertisingId": "T0T0T072-5e28-45a1-9eda-ce22a3e36d1a",
- "id": "3f034872-5e28-45a1-9eda-ce22a3e36d1a",
- "manufacturer": "Google",
- "model": "AOSP on IA Emulator",
- "name": "generic_x86_arm",
- "type": "ios",
- "attTrackingStatus": 3
- },
- "library": {
- "name": "RudderLabs JavaScript SDK",
- "version": "1.0.0"
- },
- "locale": "en-US",
- "os": {
- "name": "iOS",
- "version": "14.4.1"
- },
- "screen": {
- "density": 2
- }
- },
- "traits": {
- "email": "testuser@google.com",
- "first_name": "Rk",
- "last_name": "Mishra",
- "mobileNumber": "1-926-555-9504",
- "lifecycleStageId": 71010794467,
- "phone": "9988776655",
- "owner_id": "70000090119"
- },
- "type": "identify",
- "sentAt": "2022-04-22T10:57:58Z"
- }
- }
- ]
- }
- },
- "output": {
- "response": {
- "status": 200,
- "body": [
- {
- "output": {
- "body": {
- "XML": {},
- "FORM": {},
- "JSON": {
- "contact": {
- "emails": "testuser@google.com",
- "last_name": "Mishra",
- "created_at": "2022-06-22T10:57:58Z",
- "first_name": "Rk",
- "updated_at": "2022-06-22T10:57:58Z",
- "external_id": "ea5cfab2-3961-4d8a-8187-3d1858c99099",
- "work_number": "9988776655",
- "mobile_number": "1-926-555-9504",
- "lifecycle_stage_id": 71010794467
- },
- "unique_identifier": {
- "emails": "testuser@google.com"
- }
- },
- "JSON_ARRAY": {}
- },
- "type": "REST",
- "files": {},
- "method": "POST",
- "params": {},
- "headers": {
- "Content-Type": "application/json",
- "Authorization": "Token token=dummyApiKey"
- },
- "version": "1",
- "endpoint": "https://rudderstack-476952domain3105.myfreshworks.com/crm/sales/api/contacts/upsert",
- "userId": ""
- },
- "statusCode": 200
- }
- ]
- }
- }
- },
- {
- "name": "freshsales",
- "description": "Identify call with wrong data type in lifecycleStageId, ownerId",
- "feature": "processor",
- "module": "destination",
- "version": "v0",
- "input": {
- "request": {
- "body": [
- {
- "destination": {
- "Config": {
- "apiKey": "dummyApiKey",
- "domain": "rudderstack-476952domain3105.myfreshworks.com"
- }
- },
- "message": {
- "messageId": "ec5481b6-a926-4d2e-b293-0b3a77c4d3be",
- "originalTimestamp": "2022-06-22T10:57:58Z",
- "anonymousId": "ea5cfab2-3961-4d8a-8187-3d1858c99099",
- "context": {
- "app": {
- "build": "1.0.0",
- "name": "RudderLabs JavaScript SDK",
- "namespace": "com.rudderlabs.javascript",
- "version": "1.0.0"
- },
- "device": {
- "advertisingId": "T0T0T072-5e28-45a1-9eda-ce22a3e36d1a",
- "id": "3f034872-5e28-45a1-9eda-ce22a3e36d1a",
- "manufacturer": "Google",
- "model": "AOSP on IA Emulator",
- "name": "generic_x86_arm",
- "type": "ios",
- "attTrackingStatus": 3
- },
- "library": {
- "name": "RudderLabs JavaScript SDK",
- "version": "1.0.0"
- },
- "locale": "en-US",
- "os": {
- "name": "iOS",
- "version": "14.4.1"
- },
- "screen": {
- "density": 2
- }
- },
- "traits": {
- "email": "testuser@google.com",
- "first_name": "Rk",
- "last_name": "Mishra",
- "mobileNumber": "1-926-555-9504",
- "lifecycleStageId": "rudderSample",
- "phone": "9988776655",
- "ownerId": "rudderSample"
- },
- "type": "identify",
- "sentAt": "2022-04-22T10:57:58Z"
- }
- }
- ]
- }
- },
- "output": {
- "response": {
- "status": 200,
- "body": [
- {
- "output": {
- "version": "1",
- "type": "REST",
- "method": "POST",
- "endpoint": "https://rudderstack-476952domain3105.myfreshworks.com/crm/sales/api/contacts/upsert",
- "headers": {
- "Authorization": "Token token=dummyApiKey",
- "Content-Type": "application/json"
- },
- "params": {},
- "body": {
- "JSON": {
- "contact": {
- "emails": "testuser@google.com",
- "first_name": "Rk",
- "last_name": "Mishra",
- "work_number": "9988776655",
- "external_id": "ea5cfab2-3961-4d8a-8187-3d1858c99099",
- "mobile_number": "1-926-555-9504",
- "created_at": "2022-06-22T10:57:58Z",
- "updated_at": "2022-06-22T10:57:58Z"
- },
- "unique_identifier": {
- "emails": "testuser@google.com"
- }
- },
- "JSON_ARRAY": {},
- "XML": {},
- "FORM": {}
- },
- "files": {},
- "userId": ""
- },
- "statusCode": 200
- }
- ]
- }
- }
- },
- {
- "name": "freshsales",
- "description": "Identify call, email is not provided.",
- "feature": "processor",
- "module": "destination",
- "version": "v0",
- "input": {
- "request": {
- "body": [
- {
- "destination": {
- "Config": {
- "apiKey": "dummyApiKey",
- "domain": "rudderstack-476952domain3105.myfreshworks.com"
- }
- },
- "message": {
- "messageId": "ec5481b6-a926-4d2e-b293-0b3a77c4d3be",
- "originalTimestamp": "2022-06-22T10:57:58Z",
- "anonymousId": "ea5cfab2-3961-4d8a-8187-3d1858c99099",
- "context": {
- "app": {
- "build": "1.0.0",
- "name": "RudderLabs JavaScript SDK",
- "namespace": "com.rudderlabs.javascript",
- "version": "1.0.0"
- },
- "device": {
- "advertisingId": "T0T0T072-5e28-45a1-9eda-ce22a3e36d1a",
- "id": "3f034872-5e28-45a1-9eda-ce22a3e36d1a",
- "manufacturer": "Google",
- "model": "AOSP on IA Emulator",
- "name": "generic_x86_arm",
- "type": "ios",
- "attTrackingStatus": 3
- },
- "library": {
- "name": "RudderLabs JavaScript SDK",
- "version": "1.0.0"
- },
- "locale": "en-US",
- "os": {
- "name": "iOS",
- "version": "14.4.1"
- },
- "screen": {
- "density": 2
- }
- },
- "traits": {
- "first_name": "Rk",
- "last_name": "Mishra",
- "mobileNumber": "1-926-555-9504",
- "lifecycleStageId": "rudderSample",
- "phone": "9988776655",
- "owner_id": "rudderSample"
- },
- "type": "identify",
- "sentAt": "2022-04-22T10:57:58Z"
- }
- }
- ]
- }
- },
- "output": {
- "response": {
- "status": 200,
- "body": [
- {
- "error": "Missing required value from \"email\"",
- "statTags": {
- "destType": "FRESHSALES",
- "errorCategory": "dataValidation",
- "errorType": "instrumentation",
- "feature": "processor",
- "implementation": "native",
- "module": "destination"
- },
- "statusCode": 400
- }
- ]
- }
- }
- },
- {
- "name": "freshsales",
- "description": "Group call: testing with mock api",
- "feature": "processor",
- "module": "destination",
- "version": "v0",
- "input": {
- "request": {
- "body": [
- {
- "destination": {
- "Config": {
- "apiKey": "dummyApiKey",
- "domain": "domain-rudder.myfreshworks.com"
- }
- },
- "message": {
- "messageId": "sadjb-1e2r3fhgb-12bvbbj",
- "originalTimestamp": "2022-06-22T10:57:58Z",
- "anonymousId": "ea5cfab2-3961-4d8a-8187-3d1858c99090",
- "context": {
- "app": {
- "build": "1.0.0",
- "name": "RudderLabs JavaScript SDK",
- "namespace": "com.rudderlabs.javascript",
- "version": "1.0.0"
- },
- "device": {
- "advertisingId": "T0T0T072-5e28-45a1-9eda-ce22a3e36d1a",
- "id": "3f034872-5e28-45a1-9eda-ce22a3e36d1a",
- "manufacturer": "Google",
- "model": "AOSP on IA Emulator",
- "name": "generic_x86_arm",
- "type": "ios",
- "attTrackingStatus": 3
- },
- "library": {
- "name": "RudderLabs JavaScript SDK",
- "version": "1.0.0"
- },
- "locale": "en-US",
- "os": {
- "name": "iOS",
- "version": "14.4.1"
- },
- "screen": {
- "density": 2
- },
- "traits": {
- "email": "testuser@google.com"
- }
- },
- "traits": {
- "groupType": "accounts",
- "name": "Mark Twain",
- "phone": "919191919191",
- "numberOfEmployees": 51,
- "annualRevenue": 1000,
- "address": "Red Colony",
- "city": "Colony",
- "state": "Haryana"
- },
- "type": "group",
- "sentAt": "2022-04-22T10:57:58Z"
- }
- }
- ]
- }
- },
- "output": {
- "response": {
- "status": 200,
- "body": [
- {
- "output": {
- "body": {
- "XML": {},
- "FORM": {},
- "JSON": {
- "contact": {
- "sales_accounts": [
- {
- "id": 70003771198,
- "name": "div-quer",
- "avatar": null,
- "partial": true,
- "website": null,
- "is_primary": true,
- "last_contacted": null,
- "record_type_id": "71010794477"
- },
- {
- "id": 70003825177,
- "name": "BisleriGroup",
- "avatar": null,
- "partial": true,
- "website": null,
- "is_primary": false,
- "last_contacted": null,
- "record_type_id": "71010794477"
- },
- {
- "id": 70003771396,
- "is_primary": false
- }
- ]
- },
- "unique_identifier": {
- "emails": "testuser@google.com"
- }
- },
- "JSON_ARRAY": {}
- },
- "type": "REST",
- "files": {},
- "method": "POST",
- "params": {},
- "headers": {
- "Content-Type": "application/json",
- "Authorization": "Token token=dummyApiKey"
- },
- "version": "1",
- "endpoint": "https://domain-rudder.myfreshworks.com/crm/sales/api/contacts/upsert",
- "userId": ""
- },
- "statusCode": 200
- }
- ]
- }
- }
- },
- {
- "name": "freshsales",
- "description": "Group call: name is required field.",
- "feature": "processor",
- "module": "destination",
- "version": "v0",
- "input": {
- "request": {
- "body": [
- {
- "destination": {
- "Config": {
- "apiKey": "dummyApiKey",
- "domain": "domain-rudder.myfreshworks.com"
- }
- },
- "message": {
- "messageId": "sadjb-1e2r3fhgb-12bvbbj",
- "originalTimestamp": "2022-06-22T10:57:58Z",
- "anonymousId": "ea5cfab2-3961-4d8a-8187-3d1858c99090",
- "context": {
- "app": {
- "build": "1.0.0",
- "name": "RudderLabs JavaScript SDK",
- "namespace": "com.rudderlabs.javascript",
- "version": "1.0.0"
- },
- "device": {
- "advertisingId": "T0T0T072-5e28-45a1-9eda-ce22a3e36d1a",
- "id": "3f034872-5e28-45a1-9eda-ce22a3e36d1a",
- "manufacturer": "Google",
- "model": "AOSP on IA Emulator",
- "name": "generic_x86_arm",
- "type": "ios",
- "attTrackingStatus": 3
- },
- "library": {
- "name": "RudderLabs JavaScript SDK",
- "version": "1.0.0"
- },
- "locale": "en-US",
- "os": {
- "name": "iOS",
- "version": "14.4.1"
- },
- "screen": {
- "density": 2
- },
- "traits": {
- "email": "testuser@google.com"
- }
- },
- "traits": {
- "groupType": "accounts",
- "phone": "919191919191",
- "numberOfEmployees": 51,
- "annualRevenue": 1000,
- "address": "Red Colony",
- "city": "Colony",
- "state": "Haryana"
- },
- "type": "group",
- "sentAt": "2022-04-22T10:57:58Z"
- }
- }
- ]
- }
- },
- "output": {
- "response": {
- "status": 200,
- "body": [
- {
- "error": "Missing required value from \"name\"",
- "statTags": {
- "destType": "FRESHSALES",
- "errorCategory": "dataValidation",
- "errorType": "instrumentation",
- "feature": "processor",
- "implementation": "native",
- "module": "destination"
- },
- "statusCode": 400
- }
- ]
- }
- }
- },
- {
- "name": "freshsales",
- "description": "missing message type",
- "feature": "processor",
- "module": "destination",
- "version": "v0",
- "input": {
- "request": {
- "body": [
- {
- "destination": {
- "Config": {
- "apiKey": "dummyApiKey",
- "domain": "domain-rudder.myfreshworks.com"
- }
- },
- "message": {
- "messageId": "sadjb-1e2r3fhgb-12bvbbj",
- "originalTimestamp": "2022-06-22T10:57:58Z",
- "anonymousId": "ea5cfab2-3961-4d8a-8187-3d1858c99090",
- "context": {
- "app": {
- "build": "1.0.0",
- "name": "RudderLabs JavaScript SDK",
- "namespace": "com.rudderlabs.javascript",
- "version": "1.0.0"
- },
- "device": {
- "advertisingId": "T0T0T072-5e28-45a1-9eda-ce22a3e36d1a",
- "id": "3f034872-5e28-45a1-9eda-ce22a3e36d1a",
- "manufacturer": "Google",
- "model": "AOSP on IA Emulator",
- "name": "generic_x86_arm",
- "type": "ios",
- "attTrackingStatus": 3
- },
- "library": {
- "name": "RudderLabs JavaScript SDK",
- "version": "1.0.0"
- },
- "locale": "en-US",
- "os": {
- "name": "iOS",
- "version": "14.4.1"
- },
- "screen": {
- "density": 2
- },
- "traits": {
- "email": "testuser4google.com"
- }
- },
- "traits": {
- "name": "Mark Twain",
- "phone": "919191919191",
- "numberOfEmployees": 51,
- "annualRevenue": 1000,
- "address": "Red Colony",
- "city": "Colony",
- "state": "Haryana"
- },
- "sentAt": "2022-04-22T10:57:58Z"
- }
- }
- ]
- }
- },
- "output": {
- "response": {
- "status": 200,
- "body": [
- {
- "error": "Message Type is not present. Aborting message.",
- "statTags": {
- "destType": "FRESHSALES",
- "errorCategory": "dataValidation",
- "errorType": "instrumentation",
- "feature": "processor",
- "implementation": "native",
- "module": "destination"
- },
- "statusCode": 400
- }
- ]
- }
- }
- },
- {
- "name": "freshsales",
- "description": "Wrong message type",
- "feature": "processor",
- "module": "destination",
- "version": "v0",
- "input": {
- "request": {
- "body": [
- {
- "destination": {
- "Config": {
- "apiKey": "dummyApiKey",
- "domain": "domain-rudder.myfreshworks.com"
- }
- },
- "message": {
- "messageId": "sadjb-1e2r3fhgb-12bvbbj",
- "originalTimestamp": "2022-06-22T10:57:58Z",
- "anonymousId": "ea5cfab2-3961-4d8a-8187-3d1858c99090",
- "context": {
- "app": {
- "build": "1.0.0",
- "name": "RudderLabs JavaScript SDK",
- "namespace": "com.rudderlabs.javascript",
- "version": "1.0.0"
- },
- "device": {
- "advertisingId": "T0T0T072-5e28-45a1-9eda-ce22a3e36d1a",
- "id": "3f034872-5e28-45a1-9eda-ce22a3e36d1a",
- "manufacturer": "Google",
- "model": "AOSP on IA Emulator",
- "name": "generic_x86_arm",
- "type": "ios",
- "attTrackingStatus": 3
- },
- "library": {
- "name": "RudderLabs JavaScript SDK",
- "version": "1.0.0"
- },
- "locale": "en-US",
- "os": {
- "name": "iOS",
- "version": "14.4.1"
- },
- "screen": {
- "density": 2
- },
- "traits": {
- "email": "testuser4google.com"
- }
- },
- "traits": {
- "name": "Mark Twain",
- "phone": "919191919191",
- "numberOfEmployees": 51,
- "annualRevenue": 1000,
- "address": "Red Colony",
- "city": "Colony",
- "state": "Haryana"
- },
- "type": "page",
- "sentAt": "2022-04-22T10:57:58Z"
- }
- }
- ]
- }
- },
- "output": {
- "response": {
- "status": 200,
- "body": [
- {
- "error": "message type page not supported",
- "statTags": {
- "destType": "FRESHSALES",
- "errorCategory": "dataValidation",
- "errorType": "instrumentation",
- "feature": "processor",
- "implementation": "native",
- "module": "destination"
- },
- "statusCode": 400
- }
- ]
- }
- }
- },
- {
- "name": "freshsales",
- "description": "Group call: user email is missing",
- "feature": "processor",
- "module": "destination",
- "version": "v0",
- "input": {
- "request": {
- "body": [
- {
- "destination": {
- "Config": {
- "apiKey": "dummyApiKey",
- "domain": "domain-rudder.myfreshworks.com"
- }
- },
- "message": {
- "messageId": "sadjb-1e2r3fhgb-12bvbbj",
- "originalTimestamp": "2022-06-22T10:57:58Z",
- "anonymousId": "ea5cfab2-3961-4d8a-8187-3d1858c99090",
- "context": {
- "app": {
- "build": "1.0.0",
- "name": "RudderLabs JavaScript SDK",
- "namespace": "com.rudderlabs.javascript",
- "version": "1.0.0"
- },
- "device": {
- "advertisingId": "T0T0T072-5e28-45a1-9eda-ce22a3e36d1a",
- "id": "3f034872-5e28-45a1-9eda-ce22a3e36d1a",
- "manufacturer": "Google",
- "model": "AOSP on IA Emulator",
- "name": "generic_x86_arm",
- "type": "ios",
- "attTrackingStatus": 3
- },
- "library": {
- "name": "RudderLabs JavaScript SDK",
- "version": "1.0.0"
- },
- "locale": "en-US",
- "os": {
- "name": "iOS",
- "version": "14.4.1"
- },
- "screen": {
- "density": 2
- },
- "traits": {}
- },
- "traits": {
- "groupType": "accounts",
- "name": "div-quer",
- "phone": "919191919191",
- "numberOfEmployees": 51,
- "annualRevenue": 1000,
- "address": "Red Colony",
- "city": "Lal colony",
- "state": "Haryana"
- },
- "type": "group",
- "sentAt": "2022-04-22T10:57:58Z"
- }
- }
- ]
- }
- },
- "output": {
- "response": {
- "status": 200,
- "body": [
- {
- "output": {
- "version": "1",
- "type": "REST",
- "method": "POST",
- "endpoint": "https://domain-rudder.myfreshworks.com/crm/sales/api/sales_accounts/upsert",
- "headers": {
- "Authorization": "Token token=dummyApiKey",
- "Content-Type": "application/json"
- },
- "params": {},
- "body": {
- "JSON": {
- "unique_identifier": {
- "name": "div-quer"
- },
- "sales_account": {
- "name": "div-quer",
- "phone": "919191919191",
- "number_of_employees": 51,
- "annual_revenue": 1000,
- "address": "",
- "city": "Lal colony",
- "state": "Haryana",
- "created_at": "2022-06-22T10:57:58Z",
- "updated_at": "2022-06-22T10:57:58Z"
- }
- },
- "JSON_ARRAY": {},
- "XML": {},
- "FORM": {}
- },
- "files": {},
- "userId": ""
- },
- "statusCode": 200
- }
- ]
- }
- }
- },
- {
- "name": "freshsales",
- "description": "Identify call: Email is not present",
- "feature": "processor",
- "module": "destination",
- "version": "v0",
- "input": {
- "request": {
- "body": [
- {
- "message": {
- "messageId": "ec5481b6-a926-4d2e-b293-0b3a77c4d3be",
- "originalTimestamp": "2022-06-22T10:57:58Z",
- "anonymousId": "ea5cfab2-3961-4d8a-8187-3d1858c99099",
- "context": {
- "app": {
- "build": "1.0.0",
- "name": "RudderLabs JavaScript SDK",
- "namespace": "com.rudderlabs.javascript",
- "version": "1.0.0"
- },
- "device": {
- "advertisingId": "T0T0T072-5e28-45a1-9eda-ce22a3e36d1a",
- "id": "3f034872-5e28-45a1-9eda-ce22a3e36d1a",
- "manufacturer": "Google",
- "model": "AOSP on IA Emulator",
- "name": "generic_x86_arm",
- "type": "ios",
- "attTrackingStatus": 3
- },
- "library": {
- "name": "RudderLabs JavaScript SDK",
- "version": "1.0.0"
- },
- "locale": "en-US",
- "os": {
- "name": "iOS",
- "version": "14.4.1"
- },
- "screen": {
- "density": 2
- }
- },
- "traits": {
- "first_name": "Rk",
- "last_name": "Narayan",
- "mobileNumber": "1-926-555-9504",
- "phone": "9988776655"
- },
- "type": "identify",
- "sentAt": "2022-04-22T10:57:58Z"
- },
- "destination": {
- "Config": {
- "apiKey": "dummyApiKey",
- "domain": "domain-rudder.myfreshworks.com"
- }
- }
- }
- ]
- }
- },
- "output": {
- "response": {
- "status": 200,
- "body": [
- {
- "error": "Missing required value from \"email\"",
- "statTags": {
- "destType": "FRESHSALES",
- "errorCategory": "dataValidation",
- "errorType": "instrumentation",
- "feature": "processor",
- "implementation": "native",
- "module": "destination"
- },
- "statusCode": 400
- }
- ]
- }
- }
- },
- {
- "name": "freshsales",
- "description": "Track call, event is not supported.",
- "feature": "processor",
- "module": "destination",
- "version": "v0",
- "input": {
- "request": {
- "body": [
- {
- "message": {
- "channel": "web",
- "context": {
- "app": {
- "build": "1.0.0",
- "name": "RudderLabs JavaScript SDK",
- "namespace": "com.rudderlabs.javascript",
- "version": "1.1.5"
- },
- "traits": {
- "name": "Shehan Study",
- "category": "SampleIdentify",
- "email": "test@rudderstack.com",
- "plan": "Open source",
- "logins": 5,
- "createdAt": 1599264000
- },
- "library": {
- "name": "RudderLabs JavaScript SDK",
- "version": "1.1.5"
- },
- "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/85.0.4183.121 Safari/537.36",
- "locale": "en-US",
- "os": {
- "name": "",
- "version": ""
- },
- "screen": {
- "density": 0.8999999761581421
- },
- "campaign": {
- "source": "google",
- "medium": "medium",
- "term": "keyword",
- "content": "some content",
- "name": "some campaign",
- "test": "other value"
- },
- "page": {
- "path": "/destinations/amplitude",
- "referrer": "",
- "search": "",
- "title": "",
- "url": "https://docs.rudderstack.com/destinations/amplitude",
- "category": "destination",
- "initial_referrer": "https://docs.rudderstack.com",
- "initial_referring_domain": "docs.rudderstack.com"
- }
- },
- "type": "track",
- "messageId": "dd46338d-5f83-493b-bd28-3b48f55d0be8",
- "originalTimestamp": "2020-10-20T08:14:28.778Z",
- "anonymousId": "my-anonymous-id-new",
- "userId": "newUserIdAlias",
- "properties": {
- "product_name": "Shirt",
- "brand": "Wrogn"
- },
- "event": "Add to Cart",
- "previousId": "sampleusrRudder3",
- "sentAt": "2020-10-20T08:14:28.778Z"
- },
- "destination": {
- "Config": {
- "apiKey": "dummyApiKey",
- "domain": "domain-rudder.myfreshworks.com"
- }
- }
- }
- ]
- }
- },
- "output": {
- "response": {
- "status": 200,
- "body": [
- {
- "error": "event name Add to Cart is not supported. Aborting!",
- "statTags": {
- "destType": "FRESHSALES",
- "errorCategory": "dataValidation",
- "errorType": "instrumentation",
- "feature": "processor",
- "implementation": "native",
- "module": "destination"
- },
- "statusCode": 400
- }
- ]
- }
- }
- },
- {
- "name": "freshsales",
- "description": "Track call: some required properties is missing for sales_activity",
- "feature": "processor",
- "module": "destination",
- "version": "v0",
- "input": {
- "request": {
- "body": [
- {
- "message": {
- "channel": "web",
- "context": {
- "app": {
- "build": "1.0.0",
- "name": "RudderLabs JavaScript SDK",
- "namespace": "com.rudderlabs.javascript",
- "version": "1.1.5"
- },
- "traits": {
- "name": "Shehan Study",
- "category": "SampleIdentify",
- "email": "test@rudderstack.com",
- "plan": "Open source",
- "logins": 5,
- "createdAt": 1599264000
- },
- "library": {
- "name": "RudderLabs JavaScript SDK",
- "version": "1.1.5"
- },
- "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/85.0.4183.121 Safari/537.36",
- "locale": "en-US",
- "os": {
- "name": "",
- "version": ""
- },
- "screen": {
- "density": 0.8999999761581421
- },
- "campaign": {
- "source": "google",
- "medium": "medium",
- "term": "keyword",
- "content": "some content",
- "name": "some campaign",
- "test": "other value"
- },
- "page": {
- "path": "/destinations/amplitude",
- "referrer": "",
- "search": "",
- "title": "",
- "url": "https://docs.rudderstack.com/destinations/amplitude",
- "category": "destination",
- "initial_referrer": "https://docs.rudderstack.com",
- "initial_referring_domain": "docs.rudderstack.com"
- }
- },
- "type": "track",
- "messageId": "dd46338d-5f83-493b-bd28-3b48f55d0be8",
- "originalTimestamp": "2020-10-20T08:14:28.778Z",
- "anonymousId": "my-anonymous-id-new",
- "userId": "newUserIdAlias",
- "email": "test@rudderstack.com",
- "properties": {
- "product_name": "Shirt",
- "brand": "Wrogn"
- },
- "event": "sales_activity",
- "previousId": "sampleusrRudder3",
- "sentAt": "2020-10-20T08:14:28.778Z"
- },
- "destination": {
- "Config": {
- "apiKey": "dummyApiKey",
- "domain": "domain-rudder.myfreshworks.com"
- }
- }
- }
- ]
- }
- },
- "output": {
- "response": {
- "status": 200,
- "body": [
- {
- "error": "Missing required value from \"properties.title\"",
- "statTags": {
- "destType": "FRESHSALES",
- "errorCategory": "dataValidation",
- "errorType": "instrumentation",
- "feature": "processor",
- "implementation": "native",
- "module": "destination"
- },
- "statusCode": 400
- }
- ]
- }
- }
- },
- {
- "name": "freshsales",
- "description": "Track call: for salesActivityName",
- "feature": "processor",
- "module": "destination",
- "version": "v0",
- "input": {
- "request": {
- "body": [
- {
- "message": {
- "channel": "web",
- "context": {
- "app": {
- "build": "1.0.0",
- "name": "RudderLabs JavaScript SDK",
- "namespace": "com.rudderlabs.javascript",
- "version": "1.1.5"
- },
- "traits": {
- "name": "Shehan Study",
- "category": "SampleIdentify",
- "email": "test@rudderstack.com",
- "plan": "Open source",
- "logins": 5,
- "createdAt": 1599264000
- },
- "library": {
- "name": "RudderLabs JavaScript SDK",
- "version": "1.1.5"
- },
- "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/85.0.4183.121 Safari/537.36",
- "locale": "en-US",
- "os": {
- "name": "",
- "version": ""
- },
- "screen": {
- "density": 0.8999999761581421
- },
- "campaign": {
- "source": "google",
- "medium": "medium",
- "term": "keyword",
- "content": "some content",
- "name": "some campaign",
- "test": "other value"
- },
- "page": {
- "path": "/destinations/amplitude",
- "referrer": "",
- "search": "",
- "title": "",
- "url": "https://docs.rudderstack.com/destinations/amplitude",
- "category": "destination",
- "initial_referrer": "https://docs.rudderstack.com",
- "initial_referring_domain": "docs.rudderstack.com"
- },
- "externalId": {
- "type": "Contact"
- }
- },
- "type": "track",
- "messageId": "dd46338d-5f83-493b-bd28-3b48f55d0be8",
- "originalTimestamp": "2020-10-20T08:14:28.778Z",
- "anonymousId": "my-anonymous-id-new",
- "userId": "newUserIdAlias",
- "email": "test@rudderstack.com",
- "properties": {
- "product_name": "Shirt",
- "brand": "Wrogn",
- "salesActivityName": "own-calender",
- "title": "new Contact",
- "startDate": "2021-05-04T17:00:00+05:30",
- "endDate": "2022-06-04T17:30:00+05:30",
- "ownerId": "70054866612"
- },
- "event": "test",
- "previousId": "sampleusrRudder3",
- "sentAt": "2020-10-20T08:14:28.778Z"
- },
- "destination": {
- "Config": {
- "apiKey": "dummyApiKey",
- "domain": "domain-rudder.myfreshworks.com",
- "rudderEventsToFreshsalesEvents": [
- {
- "from": "test",
- "to": "sales_activity"
- }
- ]
- }
- }
- }
- ]
- }
- },
- "output": {
- "response": {
- "status": 200,
- "body": [
- {
- "output": {
- "body": {
- "XML": {},
- "FORM": {},
- "JSON": {
- "sales_activity": {
- "title": "new Contact",
- "created_at": "2020-10-20T08:14:28.778Z",
- "end_date": "2022-06-04T17:30:00+05:30",
- "owner_id": "70054866612",
- "start_date": "2021-05-04T17:00:00+05:30",
- "updated_at": "2020-10-20T08:14:28.778Z",
- "targetable_id": 70054866612,
- "targetable_type": "Contact",
- "sales_activity_name": "own-calender",
- "sales_activity_type_id": 70000666879
- }
- },
- "JSON_ARRAY": {}
- },
- "type": "REST",
- "userId": "",
- "files": {},
- "method": "POST",
- "params": {},
- "headers": {
- "Content-Type": "application/json",
- "Authorization": "Token token=dummyApiKey"
- },
- "version": "1",
- "endpoint": "https://domain-rudder.myfreshworks.com/crm/sales/api/sales_activities"
- },
- "statusCode": 200
- }
- ]
- }
- }
- },
- {
- "name": "freshsales",
- "description": "Track call: lifecycle_stage_id",
- "feature": "processor",
- "module": "destination",
- "version": "v0",
- "input": {
- "request": {
- "body": [
- {
- "message": {
- "channel": "web",
- "context": {
- "app": {
- "build": "1.0.0",
- "name": "RudderLabs JavaScript SDK",
- "namespace": "com.rudderlabs.javascript",
- "version": "1.1.5"
- },
- "traits": {
- "name": "Shehan Study",
- "category": "SampleIdentify",
- "plan": "Open source",
- "logins": 5,
- "createdAt": 1599264000
- },
- "library": {
- "name": "RudderLabs JavaScript SDK",
- "version": "1.1.5"
- },
- "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/85.0.4183.121 Safari/537.36",
- "locale": "en-US",
- "os": {
- "name": "",
- "version": ""
- },
- "screen": {
- "density": 0.8999999761581421
- },
- "campaign": {
- "source": "google",
- "medium": "medium",
- "term": "keyword",
- "content": "some content",
- "name": "some campaign",
- "test": "other value"
- },
- "page": {
- "path": "/destinations/amplitude",
- "referrer": "",
- "search": "",
- "title": "",
- "url": "https://docs.rudderstack.com/destinations/amplitude",
- "category": "destination",
- "initial_referrer": "https://docs.rudderstack.com",
- "initial_referring_domain": "docs.rudderstack.com"
- }
- },
- "type": "track",
- "messageId": "dd46338d-5f83-493b-bd28-3b48f55d0be8",
- "originalTimestamp": "2020-10-20T08:14:28.778Z",
- "anonymousId": "my-anonymous-id-new",
- "userId": "newUserIdAlias",
- "properties": {
- "email": "jamessampleton3@gmail.com",
- "lifecycleStageId": "71012139273",
- "title": "new Contact",
- "startDate": "2021-05-04T17:00:00+05:30",
- "endDate": "2022-06-04T17:30:00+05:30",
- "ownerId": "70054866612",
- "targetableType": "Contact"
- },
- "event": "lifecycle_stage",
- "previousId": "sampleusrRudder3",
- "sentAt": "2020-10-20T08:14:28.778Z"
- },
- "destination": {
- "Config": {
- "apiKey": "dummyApiKey",
- "domain": "domain-rudder.myfreshworks.com"
- }
- }
- }
- ]
- }
- },
- "output": {
- "response": {
- "status": 200,
- "body": [
- {
- "output": {
- "version": "1",
- "type": "REST",
- "method": "POST",
- "endpoint": "https://domain-rudder.myfreshworks.com/crm/sales/api/contacts/upsert",
- "headers": {
- "Authorization": "Token token=dummyApiKey",
- "Content-Type": "application/json"
- },
- "params": {},
- "body": {
- "JSON": {
- "contact": {
- "lifecycle_stage_id": "71012139273"
- },
- "unique_identifier": {
- "emails": "jamessampleton3@gmail.com"
- }
- },
- "JSON_ARRAY": {},
- "XML": {},
- "FORM": {}
- },
- "files": {},
- "userId": ""
- },
- "statusCode": 200
- }
- ]
- }
- }
- },
- {
- "name": "freshsales",
- "description": "Track call: In lifecycle stage, email is missing",
- "feature": "processor",
- "module": "destination",
- "version": "v0",
- "input": {
- "request": {
- "body": [
- {
- "message": {
- "channel": "web",
- "context": {
- "app": {
- "build": "1.0.0",
- "name": "RudderLabs JavaScript SDK",
- "namespace": "com.rudderlabs.javascript",
- "version": "1.1.5"
- },
- "traits": {
- "name": "Shehan Study",
- "category": "SampleIdentify",
- "plan": "Open source",
- "logins": 5,
- "createdAt": 1599264000
- },
- "library": {
- "name": "RudderLabs JavaScript SDK",
- "version": "1.1.5"
- },
- "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/85.0.4183.121 Safari/537.36",
- "locale": "en-US",
- "os": {
- "name": "",
- "version": ""
- },
- "screen": {
- "density": 0.8999999761581421
- },
- "campaign": {
- "source": "google",
- "medium": "medium",
- "term": "keyword",
- "content": "some content",
- "name": "some campaign",
- "test": "other value"
- },
- "page": {
- "path": "/destinations/amplitude",
- "referrer": "",
- "search": "",
- "title": "",
- "url": "https://docs.rudderstack.com/destinations/amplitude",
- "category": "destination",
- "initial_referrer": "https://docs.rudderstack.com",
- "initial_referring_domain": "docs.rudderstack.com"
- }
- },
- "type": "track",
- "messageId": "dd46338d-5f83-493b-bd28-3b48f55d0be8",
- "originalTimestamp": "2020-10-20T08:14:28.778Z",
- "anonymousId": "my-anonymous-id-new",
- "userId": "newUserIdAlias",
- "properties": {
- "lifecycleStageId": "71012139273",
- "title": "new Contact",
- "startDate": "2021-05-04T17:00:00+05:30",
- "endDate": "2022-06-04T17:30:00+05:30",
- "ownerId": "70054866612",
- "targetableType": "Contact"
- },
- "event": "lifecycle_stage",
- "previousId": "sampleusrRudder3",
- "sentAt": "2020-10-20T08:14:28.778Z"
- },
- "destination": {
- "Config": {
- "apiKey": "dummyApiKey",
- "domain": "domain-rudder.myfreshworks.com"
- }
- }
- }
- ]
- }
- },
- "output": {
- "response": {
- "status": 200,
- "body": [
- {
- "error": "email is required for updating life Cycle Stages. Aborting!",
- "statTags": {
- "destType": "FRESHSALES",
- "errorCategory": "dataValidation",
- "errorType": "instrumentation",
- "feature": "processor",
- "implementation": "native",
- "module": "destination"
- },
- "statusCode": 400
- }
- ]
- }
- }
- },
- {
- "name": "freshsales",
- "description": "Track call: Either of lifecycleStageName or lifecycleStageId is required",
- "feature": "processor",
- "module": "destination",
- "version": "v0",
- "input": {
- "request": {
- "body": [
- {
- "message": {
- "channel": "web",
- "context": {
- "app": {
- "build": "1.0.0",
- "name": "RudderLabs JavaScript SDK",
- "namespace": "com.rudderlabs.javascript",
- "version": "1.1.5"
- },
- "traits": {
- "name": "Shehan Study",
- "category": "SampleIdentify",
- "email": "test@rudderstack.com",
- "plan": "Open source",
- "logins": 5,
- "createdAt": 1599264000
- },
- "library": {
- "name": "RudderLabs JavaScript SDK",
- "version": "1.1.5"
- },
- "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/85.0.4183.121 Safari/537.36",
- "locale": "en-US",
- "os": {
- "name": "",
- "version": ""
- },
- "screen": {
- "density": 0.8999999761581421
- },
- "campaign": {
- "source": "google",
- "medium": "medium",
- "term": "keyword",
- "content": "some content",
- "name": "some campaign",
- "test": "other value"
- },
- "page": {
- "path": "/destinations/amplitude",
- "referrer": "",
- "search": "",
- "title": "",
- "url": "https://docs.rudderstack.com/destinations/amplitude",
- "category": "destination",
- "initial_referrer": "https://docs.rudderstack.com",
- "initial_referring_domain": "docs.rudderstack.com"
- }
- },
- "type": "track",
- "messageId": "dd46338d-5f83-493b-bd28-3b48f55d0be8",
- "originalTimestamp": "2020-10-20T08:14:28.778Z",
- "anonymousId": "my-anonymous-id-new",
- "userId": "newUserIdAlias",
- "email": "jamessampleton3@gmail.com",
- "properties": {
- "title": "new Contact",
- "startDate": "2021-05-04T17:00:00+05:30",
- "endDate": "2022-06-04T17:30:00+05:30",
- "ownerId": "70054866612",
- "targetableType": "Contact"
- },
- "event": "lifecycle_stage",
- "previousId": "sampleusrRudder3",
- "sentAt": "2020-10-20T08:14:28.778Z"
- },
- "destination": {
- "Config": {
- "apiKey": "dummyApiKey",
- "domain": "domain-rudder.myfreshworks.com"
- }
- }
- }
- ]
- }
- },
- "output": {
- "response": {
- "status": 200,
- "body": [
- {
- "error": "Either of lifecycleStageName or lifecycleStageId is required. Aborting!",
- "statTags": {
- "destType": "FRESHSALES",
- "errorCategory": "dataValidation",
- "errorType": "instrumentation",
- "feature": "processor",
- "implementation": "native",
- "module": "destination"
- },
- "statusCode": 400
- }
- ]
- }
- }
- },
- {
- "name": "freshsales",
- "description": "Track call: Either of sales activity name or sales activity type id is required",
- "feature": "processor",
- "module": "destination",
- "version": "v0",
- "input": {
- "request": {
- "body": [
- {
- "message": {
- "channel": "web",
- "context": {
- "app": {
- "build": "1.0.0",
- "name": "RudderLabs JavaScript SDK",
- "namespace": "com.rudderlabs.javascript",
- "version": "1.1.5"
- },
- "traits": {
- "name": "Shehan Study",
- "category": "SampleIdentify",
- "email": "test@rudderstack.com",
- "plan": "Open source",
- "logins": 5,
- "createdAt": 1599264000
- },
- "library": {
- "name": "RudderLabs JavaScript SDK",
- "version": "1.1.5"
- },
- "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/85.0.4183.121 Safari/537.36",
- "locale": "en-US",
- "os": {
- "name": "",
- "version": ""
- },
- "screen": {
- "density": 0.8999999761581421
- },
- "campaign": {
- "source": "google",
- "medium": "medium",
- "term": "keyword",
- "content": "some content",
- "name": "some campaign",
- "test": "other value"
- },
- "page": {
- "path": "/destinations/amplitude",
- "referrer": "",
- "search": "",
- "title": "",
- "url": "https://docs.rudderstack.com/destinations/amplitude",
- "category": "destination",
- "initial_referrer": "https://docs.rudderstack.com",
- "initial_referring_domain": "docs.rudderstack.com"
- },
- "externalId": {
- "type": "Contact"
- }
- },
- "type": "track",
- "messageId": "dd46338d-5f83-493b-bd28-3b48f55d0be8",
- "originalTimestamp": "2020-10-20T08:14:28.778Z",
- "anonymousId": "my-anonymous-id-new",
- "userId": "newUserIdAlias",
- "email": "test@rudderstack.com",
- "properties": {
- "product_name": "Shirt",
- "brand": "Wrogn",
- "title": "new Contact",
- "startDate": "2021-05-04T17:00:00+05:30",
- "endDate": "2022-06-04T17:30:00+05:30",
- "ownerId": "70054866612"
- },
- "event": "sales_activity",
- "previousId": "sampleusrRudder3",
- "sentAt": "2020-10-20T08:14:28.778Z"
- },
- "destination": {
- "Config": {
- "apiKey": "dummyApiKey",
- "domain": "domain-rudder.myfreshworks.com"
- }
- }
- }
- ]
- }
- },
- "output": {
- "response": {
- "status": 200,
- "body": [
- {
- "error": "Either of sales activity name or sales activity type id is required. Aborting!",
- "statTags": {
- "destType": "FRESHSALES",
- "errorCategory": "dataValidation",
- "errorType": "instrumentation",
- "feature": "processor",
- "implementation": "native",
- "module": "destination"
- },
- "statusCode": 400
- }
- ]
- }
- }
- },
- {
- "name": "freshsales",
- "description": "Track call: Either of email or targetable_id is required for creating sales activity.",
- "feature": "processor",
- "module": "destination",
- "version": "v0",
- "input": {
- "request": {
- "body": [
- {
- "message": {
- "channel": "web",
- "context": {
- "app": {
- "build": "1.0.0",
- "name": "RudderLabs JavaScript SDK",
- "namespace": "com.rudderlabs.javascript",
- "version": "1.1.5"
- },
- "traits": {
- "name": "Shehan Study",
- "category": "SampleIdentify",
- "plan": "Open source",
- "logins": 5,
- "createdAt": 1599264000
- },
- "library": {
- "name": "RudderLabs JavaScript SDK",
- "version": "1.1.5"
- },
- "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/85.0.4183.121 Safari/537.36",
- "locale": "en-US",
- "os": {
- "name": "",
- "version": ""
- },
- "screen": {
- "density": 0.8999999761581421
- },
- "campaign": {
- "source": "google",
- "medium": "medium",
- "term": "keyword",
- "content": "some content",
- "name": "some campaign",
- "test": "other value"
- },
- "page": {
- "path": "/destinations/amplitude",
- "referrer": "",
- "search": "",
- "title": "",
- "url": "https://docs.rudderstack.com/destinations/amplitude",
- "category": "destination",
- "initial_referrer": "https://docs.rudderstack.com",
- "initial_referring_domain": "docs.rudderstack.com"
- },
- "externalId": {
- "type": "Contact"
- }
- },
- "type": "track",
- "messageId": "dd46338d-5f83-493b-bd28-3b48f55d0be8",
- "originalTimestamp": "2020-10-20T08:14:28.778Z",
- "anonymousId": "my-anonymous-id-new",
- "userId": "newUserIdAlias",
- "properties": {
- "product_name": "Shirt",
- "brand": "Wrogn",
- "salesActivityName": "own-calender",
- "title": "new Contact",
- "startDate": "2021-05-04T17:00:00+05:30",
- "endDate": "2022-06-04T17:30:00+05:30",
- "ownerId": "70054866612"
- },
- "event": "sales_activity",
- "previousId": "sampleusrRudder3",
- "sentAt": "2020-10-20T08:14:28.778Z"
- },
- "destination": {
- "Config": {
- "apiKey": "dummyApiKey",
- "domain": "domain-rudder.myfreshworks.com"
- }
- }
- }
- ]
- }
- },
- "output": {
- "response": {
- "status": 200,
- "body": [
- {
- "error": "Either of email or targetable_id is required for creating sales activity. Aborting!",
- "statTags": {
- "destType": "FRESHSALES",
- "errorCategory": "dataValidation",
- "errorType": "instrumentation",
- "feature": "processor",
- "implementation": "native",
- "module": "destination"
- },
- "statusCode": 400
- }
- ]
- }
- }
- },
- {
- "name": "freshsales",
- "description": "Track call: sales activity with salesActivityTypeId",
- "feature": "processor",
- "module": "destination",
- "version": "v0",
- "input": {
- "request": {
- "body": [
- {
- "message": {
- "channel": "web",
- "context": {
- "app": {
- "build": "1.0.0",
- "name": "RudderLabs JavaScript SDK",
- "namespace": "com.rudderlabs.javascript",
- "version": "1.1.5"
- },
- "traits": {
- "name": "Shehan Study",
- "category": "SampleIdentify",
- "email": "test@rudderstack.com",
- "plan": "Open source",
- "logins": 5,
- "createdAt": 1599264000
- },
- "library": {
- "name": "RudderLabs JavaScript SDK",
- "version": "1.1.5"
- },
- "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/85.0.4183.121 Safari/537.36",
- "locale": "en-US",
- "os": {
- "name": "",
- "version": ""
- },
- "screen": {
- "density": 0.8999999761581421
- },
- "campaign": {
- "source": "google",
- "medium": "medium",
- "term": "keyword",
- "content": "some content",
- "name": "some campaign",
- "test": "other value"
- },
- "page": {
- "path": "/destinations/amplitude",
- "referrer": "",
- "search": "",
- "title": "",
- "url": "https://docs.rudderstack.com/destinations/amplitude",
- "category": "destination",
- "initial_referrer": "https://docs.rudderstack.com",
- "initial_referring_domain": "docs.rudderstack.com"
- },
- "externalId": {
- "type": "Contact"
- }
- },
- "type": "track",
- "messageId": "dd46338d-5f83-493b-bd28-3b48f55d0be8",
- "originalTimestamp": "2020-10-20T08:14:28.778Z",
- "anonymousId": "my-anonymous-id-new",
- "userId": "newUserIdAlias",
- "email": "jamessampleton3@gmail.com",
- "properties": {
- "salesActivityTypeId": "70000663932",
- "title": "new Contact",
- "startDate": "2021-05-04T17:00:00+05:30",
- "endDate": "2022-06-04T17:30:00+05:30",
- "ownerId": "70054866612"
- },
- "event": "sales_activity",
- "previousId": "sampleusrRudder3",
- "sentAt": "2020-10-20T08:14:28.778Z"
- },
- "destination": {
- "Config": {
- "apiKey": "dummyApiKey",
- "domain": "domain-rudder.myfreshworks.com"
- }
- }
- }
- ]
- }
- },
- "output": {
- "response": {
- "status": 200,
- "body": [
- {
- "output": {
- "body": {
- "XML": {},
- "FORM": {},
- "JSON": {
- "sales_activity": {
- "title": "new Contact",
- "created_at": "2020-10-20T08:14:28.778Z",
- "end_date": "2022-06-04T17:30:00+05:30",
- "owner_id": "70054866612",
- "start_date": "2021-05-04T17:00:00+05:30",
- "updated_at": "2020-10-20T08:14:28.778Z",
- "targetable_id": 70054866612,
- "targetable_type": "Contact",
- "sales_activity_type_id": "70000663932"
- }
- },
- "JSON_ARRAY": {}
- },
- "type": "REST",
- "files": {},
- "method": "POST",
- "params": {},
- "headers": {
- "Content-Type": "application/json",
- "Authorization": "Token token=dummyApiKey"
- },
- "version": "1",
- "endpoint": "https://domain-rudder.myfreshworks.com/crm/sales/api/sales_activities",
- "userId": ""
- },
- "statusCode": 200
- }
- ]
- }
- }
- },
- {
- "name": "freshsales",
- "description": "Track call: updated sales activity with salesActivityTypeId and targetableId",
- "feature": "processor",
- "module": "destination",
- "version": "v0",
- "input": {
- "request": {
- "body": [
- {
- "message": {
- "channel": "web",
- "context": {
- "app": {
- "build": "1.0.0",
- "name": "RudderLabs JavaScript SDK",
- "namespace": "com.rudderlabs.javascript",
- "version": "1.1.5"
- },
- "traits": {
- "name": "Shehan Study",
- "category": "SampleIdentify",
- "email": "test@rudderstack.com",
- "plan": "Open source",
- "logins": 5,
- "createdAt": 1599264000
- },
- "library": {
- "name": "RudderLabs JavaScript SDK",
- "version": "1.1.5"
- },
- "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/85.0.4183.121 Safari/537.36",
- "locale": "en-US",
- "os": {
- "name": "",
- "version": ""
- },
- "screen": {
- "density": 0.8999999761581421
- },
- "campaign": {
- "source": "google",
- "medium": "medium",
- "term": "keyword",
- "content": "some content",
- "name": "some campaign",
- "test": "other value"
- },
- "page": {
- "path": "/destinations/amplitude",
- "referrer": "",
- "search": "",
- "title": "",
- "url": "https://docs.rudderstack.com/destinations/amplitude",
- "category": "destination",
- "initial_referrer": "https://docs.rudderstack.com",
- "initial_referring_domain": "docs.rudderstack.com"
- },
- "externalId": {
- "id": "70052305908",
- "type": "Contact"
- }
- },
- "type": "track",
- "messageId": "dd46338d-5f83-493b-bd28-3b48f55d0be8",
- "originalTimestamp": "2020-10-20T08:14:28.778Z",
- "anonymousId": "my-anonymous-id-new",
- "userId": "newUserIdAlias",
- "properties": {
- "salesActivityTypeId": "70000663932",
- "title": "new Contact",
- "startDate": "2021-05-04T17:00:00+05:30",
- "endDate": "2022-06-04T17:30:00+05:30",
- "ownerId": "70054866612"
- },
- "event": "sales_activity",
- "previousId": "sampleusrRudder3",
- "sentAt": "2020-10-20T08:14:28.778Z"
- },
- "destination": {
- "Config": {
- "apiKey": "dummyApiKey",
- "domain": "domain-rudder.myfreshworks.com"
- }
- }
- }
- ]
- }
- },
- "output": {
- "response": {
- "status": 200,
- "body": [
- {
- "output": {
- "body": {
- "XML": {},
- "FORM": {},
- "JSON": {
- "sales_activity": {
- "title": "new Contact",
- "created_at": "2020-10-20T08:14:28.778Z",
- "end_date": "2022-06-04T17:30:00+05:30",
- "owner_id": "70054866612",
- "start_date": "2021-05-04T17:00:00+05:30",
- "updated_at": "2020-10-20T08:14:28.778Z",
- "targetable_id": "70052305908",
- "targetable_type": "Contact",
- "sales_activity_type_id": "70000663932"
- }
- },
- "JSON_ARRAY": {}
- },
- "type": "REST",
- "files": {},
- "method": "POST",
- "params": {},
- "headers": {
- "Content-Type": "application/json",
- "Authorization": "Token token=dummyApiKey"
- },
- "version": "1",
- "endpoint": "https://domain-rudder.myfreshworks.com/crm/sales/api/sales_activities",
- "userId": ""
- },
- "statusCode": 200
- }
- ]
- }
- }
- },
- {
- "name": "freshsales",
- "description": "Unsupported message Type",
- "feature": "processor",
- "module": "destination",
- "version": "v0",
- "input": {
- "request": {
- "body": [
- {
- "message": {
- "channel": "web",
- "type": "page",
- "messageId": "dd46338d-5f83-493b-bd28-3b48f55d0be8",
- "originalTimestamp": "2020-10-20T08:14:28.778Z",
- "anonymousId": "my-anonymous-id-new",
- "userId": "newUserIdAlias",
- "email": "jamessampleton3@gmail.com",
- "properties": {
- "lifecycleStageId": "71012139273",
- "title": "new Contact",
- "startDate": "2021-05-04T17:00:00+05:30",
- "endDate": "2022-06-04T17:30:00+05:30",
- "ownerId": "70054866612",
- "targetableType": "Contact"
- },
- "event": "lifecycle_stage",
- "previousId": "sampleusrRudder3",
- "sentAt": "2020-10-20T08:14:28.778Z"
- },
- "destination": {
- "Config": {
- "apiKey": "dummyApiKey",
- "domain": "domain-rudder.myfreshworks.com"
- }
- }
- }
- ]
- }
- },
- "output": {
- "response": {
- "status": 200,
- "body": [
- {
- "error": "message type page not supported",
- "statTags": {
- "destType": "FRESHSALES",
- "errorCategory": "dataValidation",
- "errorType": "instrumentation",
- "feature": "processor",
- "implementation": "native",
- "module": "destination"
- },
- "statusCode": 400
- }
- ]
- }
- }
- },
- {
- "name": "freshsales",
- "description": "Track call: with wrong sales activity name",
- "feature": "processor",
- "module": "destination",
- "version": "v0",
- "input": {
- "request": {
- "body": [
- {
- "message": {
- "channel": "web",
- "context": {
- "app": {
- "build": "1.0.0",
- "name": "RudderLabs JavaScript SDK",
- "namespace": "com.rudderlabs.javascript",
- "version": "1.1.5"
- },
- "traits": {
- "name": "Shehan Study",
- "category": "SampleIdentify",
- "email": "test@rudderstack.com",
- "plan": "Open source",
- "logins": 5,
- "createdAt": 1599264000
- },
- "library": {
- "name": "RudderLabs JavaScript SDK",
- "version": "1.1.5"
- },
- "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/85.0.4183.121 Safari/537.36",
- "locale": "en-US",
- "os": {
- "name": "",
- "version": ""
- },
- "screen": {
- "density": 0.8999999761581421
- },
- "campaign": {
- "source": "google",
- "medium": "medium",
- "term": "keyword",
- "content": "some content",
- "name": "some campaign",
- "test": "other value"
- },
- "page": {
- "path": "/destinations/amplitude",
- "referrer": "",
- "search": "",
- "title": "",
- "url": "https://docs.rudderstack.com/destinations/amplitude",
- "category": "destination",
- "initial_referrer": "https://docs.rudderstack.com",
- "initial_referring_domain": "docs.rudderstack.com"
- },
- "externalId": {
- "type": "Contact"
- }
- },
- "type": "track",
- "messageId": "dd46338d-5f83-493b-bd28-3b48f55d0be8",
- "originalTimestamp": "2020-10-20T08:14:28.778Z",
- "anonymousId": "my-anonymous-id-new",
- "userId": "newUserIdAlias",
- "email": "test@rudderstack.com",
- "properties": {
- "product_name": "Shirt",
- "brand": "Wrogn",
- "salesActivityName": "own-list",
- "title": "new Contact",
- "startDate": "2021-05-04T17:00:00+05:30",
- "endDate": "2022-06-04T17:30:00+05:30",
- "ownerId": "70054866612"
- },
- "event": "sales_activity",
- "previousId": "sampleusrRudder3",
- "sentAt": "2020-10-20T08:14:28.778Z"
- },
- "destination": {
- "Config": {
- "apiKey": "dummyApiKey",
- "domain": "domain-rudder.myfreshworks.com"
- }
- }
- }
- ]
- }
- },
- "output": {
- "response": {
- "status": 200,
- "body": [
- {
- "error": "sales Activity own-list doesn't exists. Aborting!",
- "statTags": {
- "destType": "FRESHSALES",
- "errorCategory": "dataValidation",
- "errorType": "instrumentation",
- "feature": "processor",
- "implementation": "native",
- "module": "destination"
- },
- "statusCode": 400
- }
- ]
- }
- }
- },
- {
- "name": "freshsales",
- "description": "Track call: update contacts with sales Activity name",
- "feature": "processor",
- "module": "destination",
- "version": "v0",
- "input": {
- "request": {
- "body": [
- {
- "message": {
- "channel": "web",
- "context": {
- "app": {
- "build": "1.0.0",
- "name": "RudderLabs JavaScript SDK",
- "namespace": "com.rudderlabs.javascript",
- "version": "1.1.5"
- },
- "traits": {
- "name": "Shehan Study",
- "category": "SampleIdentify",
- "plan": "Open source",
- "logins": 5,
- "createdAt": 1599264000
- },
- "library": {
- "name": "RudderLabs JavaScript SDK",
- "version": "1.1.5"
- },
- "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/85.0.4183.121 Safari/537.36",
- "locale": "en-US",
- "os": {
- "name": "",
- "version": ""
- },
- "screen": {
- "density": 0.8999999761581421
- },
- "campaign": {
- "source": "google",
- "medium": "medium",
- "term": "keyword",
- "content": "some content",
- "name": "some campaign",
- "test": "other value"
- },
- "page": {
- "path": "/destinations/amplitude",
- "referrer": "",
- "search": "",
- "title": "",
- "url": "https://docs.rudderstack.com/destinations/amplitude",
- "category": "destination",
- "initial_referrer": "https://docs.rudderstack.com",
- "initial_referring_domain": "docs.rudderstack.com"
- }
- },
- "type": "track",
- "messageId": "dd46338d-5f83-493b-bd28-3b48f55d0be8",
- "originalTimestamp": "2020-10-20T08:14:28.778Z",
- "anonymousId": "my-anonymous-id-new",
- "userId": "newUserIdAlias",
- "properties": {
- "email": "jamessampleton6@gmail.com",
- "lifecycleStageName": "final Customer",
- "title": "new Contact",
- "startDate": "2021-05-04T17:00:00+05:30",
- "endDate": "2022-06-04T17:30:00+05:30",
- "ownerId": "70054866612",
- "targetableType": "Contact"
- },
- "event": "lifecycle_stage",
- "previousId": "sampleusrRudder3",
- "sentAt": "2020-10-20T08:14:28.778Z"
- },
- "destination": {
- "Config": {
- "apiKey": "dummyApiKey",
- "domain": "domain-rudder.myfreshworks.com"
- }
- }
- }
- ]
- }
- },
- "output": {
- "response": {
- "status": 200,
- "body": [
- {
- "output": {
- "body": {
- "XML": {},
- "FORM": {},
- "JSON": {
- "contact": {
- "lifecycle_stage_id": 71012806409
- },
- "unique_identifier": {
- "emails": "jamessampleton6@gmail.com"
- }
- },
- "JSON_ARRAY": {}
- },
- "type": "REST",
- "files": {},
- "method": "POST",
- "params": {},
- "headers": {
- "Content-Type": "application/json",
- "Authorization": "Token token=dummyApiKey"
- },
- "version": "1",
- "endpoint": "https://domain-rudder.myfreshworks.com/crm/sales/api/contacts/upsert",
- "userId": ""
- },
- "statusCode": 200
- }
- ]
- }
- }
- },
- {
- "name": "freshsales",
- "description": "Track call: with wrong lifecycleStageName",
- "feature": "processor",
- "module": "destination",
- "version": "v0",
- "input": {
- "request": {
- "body": [
- {
- "message": {
- "channel": "web",
- "context": {
- "app": {
- "build": "1.0.0",
- "name": "RudderLabs JavaScript SDK",
- "namespace": "com.rudderlabs.javascript",
- "version": "1.1.5"
- },
- "traits": {
- "name": "Shehan Study",
- "category": "SampleIdentify",
- "plan": "Open source",
- "logins": 5,
- "createdAt": 1599264000
- },
- "library": {
- "name": "RudderLabs JavaScript SDK",
- "version": "1.1.5"
- },
- "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/85.0.4183.121 Safari/537.36",
- "locale": "en-US",
- "os": {
- "name": "",
- "version": ""
- },
- "screen": {
- "density": 0.8999999761581421
- },
- "campaign": {
- "source": "google",
- "medium": "medium",
- "term": "keyword",
- "content": "some content",
- "name": "some campaign",
- "test": "other value"
- },
- "page": {
- "path": "/destinations/amplitude",
- "referrer": "",
- "search": "",
- "title": "",
- "url": "https://docs.rudderstack.com/destinations/amplitude",
- "category": "destination",
- "initial_referrer": "https://docs.rudderstack.com",
- "initial_referring_domain": "docs.rudderstack.com"
- }
- },
- "type": "track",
- "messageId": "dd46338d-5f83-493b-bd28-3b48f55d0be8",
- "originalTimestamp": "2020-10-20T08:14:28.778Z",
- "anonymousId": "my-anonymous-id-new",
- "userId": "newUserIdAlias",
- "properties": {
- "email": "jamessampleton6@gmail.com",
- "lifecycleStageName": "final ExCustomer",
- "title": "new Contact",
- "startDate": "2021-05-04T17:00:00+05:30",
- "endDate": "2022-06-04T17:30:00+05:30",
- "ownerId": "70054866612",
- "targetableType": "Contact"
- },
- "event": "lifecycle_stage",
- "previousId": "sampleusrRudder3",
- "sentAt": "2020-10-20T08:14:28.778Z"
- },
- "destination": {
- "Config": {
- "apiKey": "dummyApiKey",
- "domain": "domain-rudder.myfreshworks.com"
- }
- }
- }
- ]
- }
- },
- "output": {
- "response": {
- "status": 200,
- "body": [
- {
- "error": "failed to fetch lifeCycleStages with final ExCustomer",
- "statTags": {
- "destType": "FRESHSALES",
- "errorCategory": "network",
- "errorType": "aborted",
- "feature": "processor",
- "implementation": "native",
- "meta": "instrumentation",
- "module": "destination"
- },
- "statusCode": 400
- }
- ]
- }
- }
- }
-]
+ {
+ name: 'freshsales',
+ description: 'Track call, event is not supported.',
+ feature: 'processor',
+ module: 'destination',
+ version: 'v0',
+ input: {
+ request: {
+ body: [
+ {
+ message: {
+ channel: 'web',
+ context: {
+ app: {
+ build: '1.0.0',
+ name: 'RudderLabs JavaScript SDK',
+ namespace: 'com.rudderlabs.javascript',
+ version: '1.1.5',
+ },
+ traits: {
+ name: 'Shehan Study',
+ category: 'SampleIdentify',
+ email: 'test@rudderstack.com',
+ plan: 'Open source',
+ logins: 5,
+ createdAt: 1599264000,
+ },
+ library: {
+ name: 'RudderLabs JavaScript SDK',
+ version: '1.1.5',
+ },
+ userAgent:
+ 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/85.0.4183.121 Safari/537.36',
+ locale: 'en-US',
+ os: {
+ name: '',
+ version: '',
+ },
+ screen: {
+ density: 0.8999999761581421,
+ },
+ campaign: {
+ source: 'google',
+ medium: 'medium',
+ term: 'keyword',
+ content: 'some content',
+ name: 'some campaign',
+ test: 'other value',
+ },
+ page: {
+ path: '/destinations/amplitude',
+ referrer: '',
+ search: '',
+ title: '',
+ url: 'https://docs.rudderstack.com/destinations/amplitude',
+ category: 'destination',
+ initial_referrer: 'https://docs.rudderstack.com',
+ initial_referring_domain: 'docs.rudderstack.com',
+ },
+ },
+ type: 'track',
+ messageId: 'dd46338d-5f83-493b-bd28-3b48f55d0be8',
+ originalTimestamp: '2020-10-20T08:14:28.778Z',
+ anonymousId: 'my-anonymous-id-new',
+ userId: 'newUserIdAlias',
+ properties: {
+ product_name: 'Shirt',
+ brand: 'Wrogn',
+ },
+ event: {
+ name: 'Add to Cart',
+ },
+ previousId: 'sampleusrRudder3',
+ sentAt: '2020-10-20T08:14:28.778Z',
+ },
+ destination: {
+ Config: {
+ apiKey: 'dummyApiKey',
+ domain: 'domain-rudder.myfreshworks.com',
+ },
+ },
+ },
+ ],
+ },
+ },
+ output: {
+ response: {
+ status: 200,
+ body: [
+ {
+ error: 'Event is a required field and should be a string',
+ statTags: {
+ destType: 'FRESHSALES',
+ errorCategory: 'dataValidation',
+ errorType: 'instrumentation',
+ feature: 'processor',
+ implementation: 'native',
+ module: 'destination',
+ },
+ statusCode: 400,
+ },
+ ],
+ },
+ },
+ },
+ {
+ name: 'freshsales',
+ description: 'Identify call for creating new user',
+ feature: 'processor',
+ module: 'destination',
+ version: 'v0',
+ input: {
+ request: {
+ body: [
+ {
+ destination: {
+ Config: {
+ apiKey: 'dummyApiKey',
+ domain: 'rudderstack-476952domain3105.myfreshworks.com',
+ },
+ },
+ message: {
+ messageId: 'ec5481b6-a926-4d2e-b293-0b3a77c4d3be',
+ originalTimestamp: '2022-06-22T10:57:58Z',
+ anonymousId: 'ea5cfab2-3961-4d8a-8187-3d1858c99099',
+ context: {
+ app: {
+ build: '1.0.0',
+ name: 'RudderLabs JavaScript SDK',
+ namespace: 'com.rudderlabs.javascript',
+ version: '1.0.0',
+ },
+ device: {
+ advertisingId: 'T0T0T072-5e28-45a1-9eda-ce22a3e36d1a',
+ id: '3f034872-5e28-45a1-9eda-ce22a3e36d1a',
+ manufacturer: 'Google',
+ model: 'AOSP on IA Emulator',
+ name: 'generic_x86_arm',
+ type: 'ios',
+ attTrackingStatus: 3,
+ },
+ library: {
+ name: 'RudderLabs JavaScript SDK',
+ version: '1.0.0',
+ },
+ locale: 'en-US',
+ os: {
+ name: 'iOS',
+ version: '14.4.1',
+ },
+ screen: {
+ density: 2,
+ },
+ },
+ traits: {
+ email: 'testuser@google.com',
+ first_name: 'Rk',
+ last_name: 'Mishra',
+ mobileNumber: '1-926-555-9504',
+ lifecycleStageId: 71010794467,
+ phone: '9988776655',
+ owner_id: '70000090119',
+ },
+ type: 'identify',
+ sentAt: '2022-04-22T10:57:58Z',
+ },
+ },
+ ],
+ },
+ },
+ output: {
+ response: {
+ status: 200,
+ body: [
+ {
+ output: {
+ body: {
+ XML: {},
+ FORM: {},
+ JSON: {
+ contact: {
+ emails: 'testuser@google.com',
+ last_name: 'Mishra',
+ created_at: '2022-06-22T10:57:58Z',
+ first_name: 'Rk',
+ updated_at: '2022-06-22T10:57:58Z',
+ external_id: 'ea5cfab2-3961-4d8a-8187-3d1858c99099',
+ work_number: '9988776655',
+ mobile_number: '1-926-555-9504',
+ lifecycle_stage_id: 71010794467,
+ },
+ unique_identifier: {
+ emails: 'testuser@google.com',
+ },
+ },
+ JSON_ARRAY: {},
+ },
+ type: 'REST',
+ files: {},
+ method: 'POST',
+ params: {},
+ headers: {
+ 'Content-Type': 'application/json',
+ Authorization: 'Token token=dummyApiKey',
+ },
+ version: '1',
+ endpoint:
+ 'https://rudderstack-476952domain3105.myfreshworks.com/crm/sales/api/contacts/upsert',
+ userId: '',
+ },
+ statusCode: 200,
+ },
+ ],
+ },
+ },
+ },
+ {
+ name: 'freshsales',
+ description: 'Identify call with numbers in lifecycleStageId, ownerId',
+ feature: 'processor',
+ module: 'destination',
+ version: 'v0',
+ input: {
+ request: {
+ body: [
+ {
+ destination: {
+ Config: {
+ apiKey: 'dummyApiKey',
+ domain: 'rudderstack-476952domain3105.myfreshworks.com',
+ },
+ },
+ message: {
+ messageId: 'ec5481b6-a926-4d2e-b293-0b3a77c4d3be',
+ originalTimestamp: '2022-06-22T10:57:58Z',
+ anonymousId: 'ea5cfab2-3961-4d8a-8187-3d1858c99099',
+ context: {
+ app: {
+ build: '1.0.0',
+ name: 'RudderLabs JavaScript SDK',
+ namespace: 'com.rudderlabs.javascript',
+ version: '1.0.0',
+ },
+ device: {
+ advertisingId: 'T0T0T072-5e28-45a1-9eda-ce22a3e36d1a',
+ id: '3f034872-5e28-45a1-9eda-ce22a3e36d1a',
+ manufacturer: 'Google',
+ model: 'AOSP on IA Emulator',
+ name: 'generic_x86_arm',
+ type: 'ios',
+ attTrackingStatus: 3,
+ },
+ library: {
+ name: 'RudderLabs JavaScript SDK',
+ version: '1.0.0',
+ },
+ locale: 'en-US',
+ os: {
+ name: 'iOS',
+ version: '14.4.1',
+ },
+ screen: {
+ density: 2,
+ },
+ },
+ traits: {
+ email: 'testuser@google.com',
+ first_name: 'Rk',
+ last_name: 'Mishra',
+ mobileNumber: '1-926-555-9504',
+ lifecycleStageId: 71010794467,
+ phone: '9988776655',
+ owner_id: '70000090119',
+ },
+ type: 'identify',
+ sentAt: '2022-04-22T10:57:58Z',
+ },
+ },
+ ],
+ },
+ },
+ output: {
+ response: {
+ status: 200,
+ body: [
+ {
+ output: {
+ body: {
+ XML: {},
+ FORM: {},
+ JSON: {
+ contact: {
+ emails: 'testuser@google.com',
+ last_name: 'Mishra',
+ created_at: '2022-06-22T10:57:58Z',
+ first_name: 'Rk',
+ updated_at: '2022-06-22T10:57:58Z',
+ external_id: 'ea5cfab2-3961-4d8a-8187-3d1858c99099',
+ work_number: '9988776655',
+ mobile_number: '1-926-555-9504',
+ lifecycle_stage_id: 71010794467,
+ },
+ unique_identifier: {
+ emails: 'testuser@google.com',
+ },
+ },
+ JSON_ARRAY: {},
+ },
+ type: 'REST',
+ files: {},
+ method: 'POST',
+ params: {},
+ headers: {
+ 'Content-Type': 'application/json',
+ Authorization: 'Token token=dummyApiKey',
+ },
+ version: '1',
+ endpoint:
+ 'https://rudderstack-476952domain3105.myfreshworks.com/crm/sales/api/contacts/upsert',
+ userId: '',
+ },
+ statusCode: 200,
+ },
+ ],
+ },
+ },
+ },
+ {
+ name: 'freshsales',
+ description: 'Identify call with wrong data type in lifecycleStageId, ownerId',
+ feature: 'processor',
+ module: 'destination',
+ version: 'v0',
+ input: {
+ request: {
+ body: [
+ {
+ destination: {
+ Config: {
+ apiKey: 'dummyApiKey',
+ domain: 'rudderstack-476952domain3105.myfreshworks.com',
+ },
+ },
+ message: {
+ messageId: 'ec5481b6-a926-4d2e-b293-0b3a77c4d3be',
+ originalTimestamp: '2022-06-22T10:57:58Z',
+ anonymousId: 'ea5cfab2-3961-4d8a-8187-3d1858c99099',
+ context: {
+ app: {
+ build: '1.0.0',
+ name: 'RudderLabs JavaScript SDK',
+ namespace: 'com.rudderlabs.javascript',
+ version: '1.0.0',
+ },
+ device: {
+ advertisingId: 'T0T0T072-5e28-45a1-9eda-ce22a3e36d1a',
+ id: '3f034872-5e28-45a1-9eda-ce22a3e36d1a',
+ manufacturer: 'Google',
+ model: 'AOSP on IA Emulator',
+ name: 'generic_x86_arm',
+ type: 'ios',
+ attTrackingStatus: 3,
+ },
+ library: {
+ name: 'RudderLabs JavaScript SDK',
+ version: '1.0.0',
+ },
+ locale: 'en-US',
+ os: {
+ name: 'iOS',
+ version: '14.4.1',
+ },
+ screen: {
+ density: 2,
+ },
+ },
+ traits: {
+ email: 'testuser@google.com',
+ first_name: 'Rk',
+ last_name: 'Mishra',
+ mobileNumber: '1-926-555-9504',
+ lifecycleStageId: 'rudderSample',
+ phone: '9988776655',
+ ownerId: 'rudderSample',
+ },
+ type: 'identify',
+ sentAt: '2022-04-22T10:57:58Z',
+ },
+ },
+ ],
+ },
+ },
+ output: {
+ response: {
+ status: 200,
+ body: [
+ {
+ output: {
+ version: '1',
+ type: 'REST',
+ method: 'POST',
+ endpoint:
+ 'https://rudderstack-476952domain3105.myfreshworks.com/crm/sales/api/contacts/upsert',
+ headers: {
+ Authorization: 'Token token=dummyApiKey',
+ 'Content-Type': 'application/json',
+ },
+ params: {},
+ body: {
+ JSON: {
+ contact: {
+ emails: 'testuser@google.com',
+ first_name: 'Rk',
+ last_name: 'Mishra',
+ work_number: '9988776655',
+ external_id: 'ea5cfab2-3961-4d8a-8187-3d1858c99099',
+ mobile_number: '1-926-555-9504',
+ created_at: '2022-06-22T10:57:58Z',
+ updated_at: '2022-06-22T10:57:58Z',
+ },
+ unique_identifier: {
+ emails: 'testuser@google.com',
+ },
+ },
+ JSON_ARRAY: {},
+ XML: {},
+ FORM: {},
+ },
+ files: {},
+ userId: '',
+ },
+ statusCode: 200,
+ },
+ ],
+ },
+ },
+ },
+ {
+ name: 'freshsales',
+ description: 'Identify call, email is not provided.',
+ feature: 'processor',
+ module: 'destination',
+ version: 'v0',
+ input: {
+ request: {
+ body: [
+ {
+ destination: {
+ Config: {
+ apiKey: 'dummyApiKey',
+ domain: 'rudderstack-476952domain3105.myfreshworks.com',
+ },
+ },
+ message: {
+ messageId: 'ec5481b6-a926-4d2e-b293-0b3a77c4d3be',
+ originalTimestamp: '2022-06-22T10:57:58Z',
+ anonymousId: 'ea5cfab2-3961-4d8a-8187-3d1858c99099',
+ context: {
+ app: {
+ build: '1.0.0',
+ name: 'RudderLabs JavaScript SDK',
+ namespace: 'com.rudderlabs.javascript',
+ version: '1.0.0',
+ },
+ device: {
+ advertisingId: 'T0T0T072-5e28-45a1-9eda-ce22a3e36d1a',
+ id: '3f034872-5e28-45a1-9eda-ce22a3e36d1a',
+ manufacturer: 'Google',
+ model: 'AOSP on IA Emulator',
+ name: 'generic_x86_arm',
+ type: 'ios',
+ attTrackingStatus: 3,
+ },
+ library: {
+ name: 'RudderLabs JavaScript SDK',
+ version: '1.0.0',
+ },
+ locale: 'en-US',
+ os: {
+ name: 'iOS',
+ version: '14.4.1',
+ },
+ screen: {
+ density: 2,
+ },
+ },
+ traits: {
+ first_name: 'Rk',
+ last_name: 'Mishra',
+ mobileNumber: '1-926-555-9504',
+ lifecycleStageId: 'rudderSample',
+ phone: '9988776655',
+ owner_id: 'rudderSample',
+ },
+ type: 'identify',
+ sentAt: '2022-04-22T10:57:58Z',
+ },
+ },
+ ],
+ },
+ },
+ output: {
+ response: {
+ status: 200,
+ body: [
+ {
+ error: 'Missing required value from "email"',
+ statTags: {
+ destType: 'FRESHSALES',
+ errorCategory: 'dataValidation',
+ errorType: 'instrumentation',
+ feature: 'processor',
+ implementation: 'native',
+ module: 'destination',
+ },
+ statusCode: 400,
+ },
+ ],
+ },
+ },
+ },
+ {
+ name: 'freshsales',
+ description: 'Group call: testing with mock api',
+ feature: 'processor',
+ module: 'destination',
+ version: 'v0',
+ input: {
+ request: {
+ body: [
+ {
+ destination: {
+ Config: {
+ apiKey: 'dummyApiKey',
+ domain: 'domain-rudder.myfreshworks.com',
+ },
+ },
+ message: {
+ messageId: 'sadjb-1e2r3fhgb-12bvbbj',
+ originalTimestamp: '2022-06-22T10:57:58Z',
+ anonymousId: 'ea5cfab2-3961-4d8a-8187-3d1858c99090',
+ context: {
+ app: {
+ build: '1.0.0',
+ name: 'RudderLabs JavaScript SDK',
+ namespace: 'com.rudderlabs.javascript',
+ version: '1.0.0',
+ },
+ device: {
+ advertisingId: 'T0T0T072-5e28-45a1-9eda-ce22a3e36d1a',
+ id: '3f034872-5e28-45a1-9eda-ce22a3e36d1a',
+ manufacturer: 'Google',
+ model: 'AOSP on IA Emulator',
+ name: 'generic_x86_arm',
+ type: 'ios',
+ attTrackingStatus: 3,
+ },
+ library: {
+ name: 'RudderLabs JavaScript SDK',
+ version: '1.0.0',
+ },
+ locale: 'en-US',
+ os: {
+ name: 'iOS',
+ version: '14.4.1',
+ },
+ screen: {
+ density: 2,
+ },
+ traits: {
+ email: 'testuser@google.com',
+ },
+ },
+ traits: {
+ groupType: 'accounts',
+ name: 'Mark Twain',
+ phone: '919191919191',
+ numberOfEmployees: 51,
+ annualRevenue: 1000,
+ address: 'Red Colony',
+ city: 'Colony',
+ state: 'Haryana',
+ },
+ type: 'group',
+ sentAt: '2022-04-22T10:57:58Z',
+ },
+ },
+ ],
+ },
+ },
+ output: {
+ response: {
+ status: 200,
+ body: [
+ {
+ output: {
+ body: {
+ XML: {},
+ FORM: {},
+ JSON: {
+ contact: {
+ sales_accounts: [
+ {
+ id: 70003771198,
+ name: 'div-quer',
+ avatar: null,
+ partial: true,
+ website: null,
+ is_primary: true,
+ last_contacted: null,
+ record_type_id: '71010794477',
+ },
+ {
+ id: 70003825177,
+ name: 'BisleriGroup',
+ avatar: null,
+ partial: true,
+ website: null,
+ is_primary: false,
+ last_contacted: null,
+ record_type_id: '71010794477',
+ },
+ {
+ id: 70003771396,
+ is_primary: false,
+ },
+ ],
+ },
+ unique_identifier: {
+ emails: 'testuser@google.com',
+ },
+ },
+ JSON_ARRAY: {},
+ },
+ type: 'REST',
+ files: {},
+ method: 'POST',
+ params: {},
+ headers: {
+ 'Content-Type': 'application/json',
+ Authorization: 'Token token=dummyApiKey',
+ },
+ version: '1',
+ endpoint: 'https://domain-rudder.myfreshworks.com/crm/sales/api/contacts/upsert',
+ userId: '',
+ },
+ statusCode: 200,
+ },
+ ],
+ },
+ },
+ },
+ {
+ name: 'freshsales',
+ description: 'Group call: name is required field.',
+ feature: 'processor',
+ module: 'destination',
+ version: 'v0',
+ input: {
+ request: {
+ body: [
+ {
+ destination: {
+ Config: {
+ apiKey: 'dummyApiKey',
+ domain: 'domain-rudder.myfreshworks.com',
+ },
+ },
+ message: {
+ messageId: 'sadjb-1e2r3fhgb-12bvbbj',
+ originalTimestamp: '2022-06-22T10:57:58Z',
+ anonymousId: 'ea5cfab2-3961-4d8a-8187-3d1858c99090',
+ context: {
+ app: {
+ build: '1.0.0',
+ name: 'RudderLabs JavaScript SDK',
+ namespace: 'com.rudderlabs.javascript',
+ version: '1.0.0',
+ },
+ device: {
+ advertisingId: 'T0T0T072-5e28-45a1-9eda-ce22a3e36d1a',
+ id: '3f034872-5e28-45a1-9eda-ce22a3e36d1a',
+ manufacturer: 'Google',
+ model: 'AOSP on IA Emulator',
+ name: 'generic_x86_arm',
+ type: 'ios',
+ attTrackingStatus: 3,
+ },
+ library: {
+ name: 'RudderLabs JavaScript SDK',
+ version: '1.0.0',
+ },
+ locale: 'en-US',
+ os: {
+ name: 'iOS',
+ version: '14.4.1',
+ },
+ screen: {
+ density: 2,
+ },
+ traits: {
+ email: 'testuser@google.com',
+ },
+ },
+ traits: {
+ groupType: 'accounts',
+ phone: '919191919191',
+ numberOfEmployees: 51,
+ annualRevenue: 1000,
+ address: 'Red Colony',
+ city: 'Colony',
+ state: 'Haryana',
+ },
+ type: 'group',
+ sentAt: '2022-04-22T10:57:58Z',
+ },
+ },
+ ],
+ },
+ },
+ output: {
+ response: {
+ status: 200,
+ body: [
+ {
+ error: 'Missing required value from "name"',
+ statTags: {
+ destType: 'FRESHSALES',
+ errorCategory: 'dataValidation',
+ errorType: 'instrumentation',
+ feature: 'processor',
+ implementation: 'native',
+ module: 'destination',
+ },
+ statusCode: 400,
+ },
+ ],
+ },
+ },
+ },
+ {
+ name: 'freshsales',
+ description: 'missing message type',
+ feature: 'processor',
+ module: 'destination',
+ version: 'v0',
+ input: {
+ request: {
+ body: [
+ {
+ destination: {
+ Config: {
+ apiKey: 'dummyApiKey',
+ domain: 'domain-rudder.myfreshworks.com',
+ },
+ },
+ message: {
+ messageId: 'sadjb-1e2r3fhgb-12bvbbj',
+ originalTimestamp: '2022-06-22T10:57:58Z',
+ anonymousId: 'ea5cfab2-3961-4d8a-8187-3d1858c99090',
+ context: {
+ app: {
+ build: '1.0.0',
+ name: 'RudderLabs JavaScript SDK',
+ namespace: 'com.rudderlabs.javascript',
+ version: '1.0.0',
+ },
+ device: {
+ advertisingId: 'T0T0T072-5e28-45a1-9eda-ce22a3e36d1a',
+ id: '3f034872-5e28-45a1-9eda-ce22a3e36d1a',
+ manufacturer: 'Google',
+ model: 'AOSP on IA Emulator',
+ name: 'generic_x86_arm',
+ type: 'ios',
+ attTrackingStatus: 3,
+ },
+ library: {
+ name: 'RudderLabs JavaScript SDK',
+ version: '1.0.0',
+ },
+ locale: 'en-US',
+ os: {
+ name: 'iOS',
+ version: '14.4.1',
+ },
+ screen: {
+ density: 2,
+ },
+ traits: {
+ email: 'testuser4google.com',
+ },
+ },
+ traits: {
+ name: 'Mark Twain',
+ phone: '919191919191',
+ numberOfEmployees: 51,
+ annualRevenue: 1000,
+ address: 'Red Colony',
+ city: 'Colony',
+ state: 'Haryana',
+ },
+ sentAt: '2022-04-22T10:57:58Z',
+ },
+ },
+ ],
+ },
+ },
+ output: {
+ response: {
+ status: 200,
+ body: [
+ {
+ error: 'Message Type is not present. Aborting message.',
+ statTags: {
+ destType: 'FRESHSALES',
+ errorCategory: 'dataValidation',
+ errorType: 'instrumentation',
+ feature: 'processor',
+ implementation: 'native',
+ module: 'destination',
+ },
+ statusCode: 400,
+ },
+ ],
+ },
+ },
+ },
+ {
+ name: 'freshsales',
+ description: 'Wrong message type',
+ feature: 'processor',
+ module: 'destination',
+ version: 'v0',
+ input: {
+ request: {
+ body: [
+ {
+ destination: {
+ Config: {
+ apiKey: 'dummyApiKey',
+ domain: 'domain-rudder.myfreshworks.com',
+ },
+ },
+ message: {
+ messageId: 'sadjb-1e2r3fhgb-12bvbbj',
+ originalTimestamp: '2022-06-22T10:57:58Z',
+ anonymousId: 'ea5cfab2-3961-4d8a-8187-3d1858c99090',
+ context: {
+ app: {
+ build: '1.0.0',
+ name: 'RudderLabs JavaScript SDK',
+ namespace: 'com.rudderlabs.javascript',
+ version: '1.0.0',
+ },
+ device: {
+ advertisingId: 'T0T0T072-5e28-45a1-9eda-ce22a3e36d1a',
+ id: '3f034872-5e28-45a1-9eda-ce22a3e36d1a',
+ manufacturer: 'Google',
+ model: 'AOSP on IA Emulator',
+ name: 'generic_x86_arm',
+ type: 'ios',
+ attTrackingStatus: 3,
+ },
+ library: {
+ name: 'RudderLabs JavaScript SDK',
+ version: '1.0.0',
+ },
+ locale: 'en-US',
+ os: {
+ name: 'iOS',
+ version: '14.4.1',
+ },
+ screen: {
+ density: 2,
+ },
+ traits: {
+ email: 'testuser4google.com',
+ },
+ },
+ traits: {
+ name: 'Mark Twain',
+ phone: '919191919191',
+ numberOfEmployees: 51,
+ annualRevenue: 1000,
+ address: 'Red Colony',
+ city: 'Colony',
+ state: 'Haryana',
+ },
+ type: 'page',
+ sentAt: '2022-04-22T10:57:58Z',
+ },
+ },
+ ],
+ },
+ },
+ output: {
+ response: {
+ status: 200,
+ body: [
+ {
+ error: 'message type page not supported',
+ statTags: {
+ destType: 'FRESHSALES',
+ errorCategory: 'dataValidation',
+ errorType: 'instrumentation',
+ feature: 'processor',
+ implementation: 'native',
+ module: 'destination',
+ },
+ statusCode: 400,
+ },
+ ],
+ },
+ },
+ },
+ {
+ name: 'freshsales',
+ description: 'Group call: user email is missing',
+ feature: 'processor',
+ module: 'destination',
+ version: 'v0',
+ input: {
+ request: {
+ body: [
+ {
+ destination: {
+ Config: {
+ apiKey: 'dummyApiKey',
+ domain: 'domain-rudder.myfreshworks.com',
+ },
+ },
+ message: {
+ messageId: 'sadjb-1e2r3fhgb-12bvbbj',
+ originalTimestamp: '2022-06-22T10:57:58Z',
+ anonymousId: 'ea5cfab2-3961-4d8a-8187-3d1858c99090',
+ context: {
+ app: {
+ build: '1.0.0',
+ name: 'RudderLabs JavaScript SDK',
+ namespace: 'com.rudderlabs.javascript',
+ version: '1.0.0',
+ },
+ device: {
+ advertisingId: 'T0T0T072-5e28-45a1-9eda-ce22a3e36d1a',
+ id: '3f034872-5e28-45a1-9eda-ce22a3e36d1a',
+ manufacturer: 'Google',
+ model: 'AOSP on IA Emulator',
+ name: 'generic_x86_arm',
+ type: 'ios',
+ attTrackingStatus: 3,
+ },
+ library: {
+ name: 'RudderLabs JavaScript SDK',
+ version: '1.0.0',
+ },
+ locale: 'en-US',
+ os: {
+ name: 'iOS',
+ version: '14.4.1',
+ },
+ screen: {
+ density: 2,
+ },
+ traits: {},
+ },
+ traits: {
+ groupType: 'accounts',
+ name: 'div-quer',
+ phone: '919191919191',
+ numberOfEmployees: 51,
+ annualRevenue: 1000,
+ address: 'Red Colony',
+ city: 'Lal colony',
+ state: 'Haryana',
+ },
+ type: 'group',
+ sentAt: '2022-04-22T10:57:58Z',
+ },
+ },
+ ],
+ },
+ },
+ output: {
+ response: {
+ status: 200,
+ body: [
+ {
+ output: {
+ version: '1',
+ type: 'REST',
+ method: 'POST',
+ endpoint:
+ 'https://domain-rudder.myfreshworks.com/crm/sales/api/sales_accounts/upsert',
+ headers: {
+ Authorization: 'Token token=dummyApiKey',
+ 'Content-Type': 'application/json',
+ },
+ params: {},
+ body: {
+ JSON: {
+ unique_identifier: {
+ name: 'div-quer',
+ },
+ sales_account: {
+ name: 'div-quer',
+ phone: '919191919191',
+ number_of_employees: 51,
+ annual_revenue: 1000,
+ address: '',
+ city: 'Lal colony',
+ state: 'Haryana',
+ created_at: '2022-06-22T10:57:58Z',
+ updated_at: '2022-06-22T10:57:58Z',
+ },
+ },
+ JSON_ARRAY: {},
+ XML: {},
+ FORM: {},
+ },
+ files: {},
+ userId: '',
+ },
+ statusCode: 200,
+ },
+ ],
+ },
+ },
+ },
+ {
+ name: 'freshsales',
+ description: 'Identify call: Email is not present',
+ feature: 'processor',
+ module: 'destination',
+ version: 'v0',
+ input: {
+ request: {
+ body: [
+ {
+ message: {
+ messageId: 'ec5481b6-a926-4d2e-b293-0b3a77c4d3be',
+ originalTimestamp: '2022-06-22T10:57:58Z',
+ anonymousId: 'ea5cfab2-3961-4d8a-8187-3d1858c99099',
+ context: {
+ app: {
+ build: '1.0.0',
+ name: 'RudderLabs JavaScript SDK',
+ namespace: 'com.rudderlabs.javascript',
+ version: '1.0.0',
+ },
+ device: {
+ advertisingId: 'T0T0T072-5e28-45a1-9eda-ce22a3e36d1a',
+ id: '3f034872-5e28-45a1-9eda-ce22a3e36d1a',
+ manufacturer: 'Google',
+ model: 'AOSP on IA Emulator',
+ name: 'generic_x86_arm',
+ type: 'ios',
+ attTrackingStatus: 3,
+ },
+ library: {
+ name: 'RudderLabs JavaScript SDK',
+ version: '1.0.0',
+ },
+ locale: 'en-US',
+ os: {
+ name: 'iOS',
+ version: '14.4.1',
+ },
+ screen: {
+ density: 2,
+ },
+ },
+ traits: {
+ first_name: 'Rk',
+ last_name: 'Narayan',
+ mobileNumber: '1-926-555-9504',
+ phone: '9988776655',
+ },
+ type: 'identify',
+ sentAt: '2022-04-22T10:57:58Z',
+ },
+ destination: {
+ Config: {
+ apiKey: 'dummyApiKey',
+ domain: 'domain-rudder.myfreshworks.com',
+ },
+ },
+ },
+ ],
+ },
+ },
+ output: {
+ response: {
+ status: 200,
+ body: [
+ {
+ error: 'Missing required value from "email"',
+ statTags: {
+ destType: 'FRESHSALES',
+ errorCategory: 'dataValidation',
+ errorType: 'instrumentation',
+ feature: 'processor',
+ implementation: 'native',
+ module: 'destination',
+ },
+ statusCode: 400,
+ },
+ ],
+ },
+ },
+ },
+ {
+ name: 'freshsales',
+ description: 'Track call, event is not supported.',
+ feature: 'processor',
+ module: 'destination',
+ version: 'v0',
+ input: {
+ request: {
+ body: [
+ {
+ message: {
+ channel: 'web',
+ context: {
+ app: {
+ build: '1.0.0',
+ name: 'RudderLabs JavaScript SDK',
+ namespace: 'com.rudderlabs.javascript',
+ version: '1.1.5',
+ },
+ traits: {
+ name: 'Shehan Study',
+ category: 'SampleIdentify',
+ email: 'test@rudderstack.com',
+ plan: 'Open source',
+ logins: 5,
+ createdAt: 1599264000,
+ },
+ library: {
+ name: 'RudderLabs JavaScript SDK',
+ version: '1.1.5',
+ },
+ userAgent:
+ 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/85.0.4183.121 Safari/537.36',
+ locale: 'en-US',
+ os: {
+ name: '',
+ version: '',
+ },
+ screen: {
+ density: 0.8999999761581421,
+ },
+ campaign: {
+ source: 'google',
+ medium: 'medium',
+ term: 'keyword',
+ content: 'some content',
+ name: 'some campaign',
+ test: 'other value',
+ },
+ page: {
+ path: '/destinations/amplitude',
+ referrer: '',
+ search: '',
+ title: '',
+ url: 'https://docs.rudderstack.com/destinations/amplitude',
+ category: 'destination',
+ initial_referrer: 'https://docs.rudderstack.com',
+ initial_referring_domain: 'docs.rudderstack.com',
+ },
+ },
+ type: 'track',
+ messageId: 'dd46338d-5f83-493b-bd28-3b48f55d0be8',
+ originalTimestamp: '2020-10-20T08:14:28.778Z',
+ anonymousId: 'my-anonymous-id-new',
+ userId: 'newUserIdAlias',
+ properties: {
+ product_name: 'Shirt',
+ brand: 'Wrogn',
+ },
+ event: 'Add to Cart',
+ previousId: 'sampleusrRudder3',
+ sentAt: '2020-10-20T08:14:28.778Z',
+ },
+ destination: {
+ Config: {
+ apiKey: 'dummyApiKey',
+ domain: 'domain-rudder.myfreshworks.com',
+ },
+ },
+ },
+ ],
+ },
+ },
+ output: {
+ response: {
+ status: 200,
+ body: [
+ {
+ error: 'event name Add to Cart is not supported. Aborting!',
+ statTags: {
+ destType: 'FRESHSALES',
+ errorCategory: 'dataValidation',
+ errorType: 'instrumentation',
+ feature: 'processor',
+ implementation: 'native',
+ module: 'destination',
+ },
+ statusCode: 400,
+ },
+ ],
+ },
+ },
+ },
+ {
+ name: 'freshsales',
+ description: 'Track call: some required properties is missing for sales_activity',
+ feature: 'processor',
+ module: 'destination',
+ version: 'v0',
+ input: {
+ request: {
+ body: [
+ {
+ message: {
+ channel: 'web',
+ context: {
+ app: {
+ build: '1.0.0',
+ name: 'RudderLabs JavaScript SDK',
+ namespace: 'com.rudderlabs.javascript',
+ version: '1.1.5',
+ },
+ traits: {
+ name: 'Shehan Study',
+ category: 'SampleIdentify',
+ email: 'test@rudderstack.com',
+ plan: 'Open source',
+ logins: 5,
+ createdAt: 1599264000,
+ },
+ library: {
+ name: 'RudderLabs JavaScript SDK',
+ version: '1.1.5',
+ },
+ userAgent:
+ 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/85.0.4183.121 Safari/537.36',
+ locale: 'en-US',
+ os: {
+ name: '',
+ version: '',
+ },
+ screen: {
+ density: 0.8999999761581421,
+ },
+ campaign: {
+ source: 'google',
+ medium: 'medium',
+ term: 'keyword',
+ content: 'some content',
+ name: 'some campaign',
+ test: 'other value',
+ },
+ page: {
+ path: '/destinations/amplitude',
+ referrer: '',
+ search: '',
+ title: '',
+ url: 'https://docs.rudderstack.com/destinations/amplitude',
+ category: 'destination',
+ initial_referrer: 'https://docs.rudderstack.com',
+ initial_referring_domain: 'docs.rudderstack.com',
+ },
+ },
+ type: 'track',
+ messageId: 'dd46338d-5f83-493b-bd28-3b48f55d0be8',
+ originalTimestamp: '2020-10-20T08:14:28.778Z',
+ anonymousId: 'my-anonymous-id-new',
+ userId: 'newUserIdAlias',
+ email: 'test@rudderstack.com',
+ properties: {
+ product_name: 'Shirt',
+ brand: 'Wrogn',
+ },
+ event: 'sales_activity',
+ previousId: 'sampleusrRudder3',
+ sentAt: '2020-10-20T08:14:28.778Z',
+ },
+ destination: {
+ Config: {
+ apiKey: 'dummyApiKey',
+ domain: 'domain-rudder.myfreshworks.com',
+ },
+ },
+ },
+ ],
+ },
+ },
+ output: {
+ response: {
+ status: 200,
+ body: [
+ {
+ error: 'Missing required value from "properties.title"',
+ statTags: {
+ destType: 'FRESHSALES',
+ errorCategory: 'dataValidation',
+ errorType: 'instrumentation',
+ feature: 'processor',
+ implementation: 'native',
+ module: 'destination',
+ },
+ statusCode: 400,
+ },
+ ],
+ },
+ },
+ },
+ {
+ name: 'freshsales',
+ description: 'Track call: for salesActivityName',
+ feature: 'processor',
+ module: 'destination',
+ version: 'v0',
+ input: {
+ request: {
+ body: [
+ {
+ message: {
+ channel: 'web',
+ context: {
+ app: {
+ build: '1.0.0',
+ name: 'RudderLabs JavaScript SDK',
+ namespace: 'com.rudderlabs.javascript',
+ version: '1.1.5',
+ },
+ traits: {
+ name: 'Shehan Study',
+ category: 'SampleIdentify',
+ email: 'test@rudderstack.com',
+ plan: 'Open source',
+ logins: 5,
+ createdAt: 1599264000,
+ },
+ library: {
+ name: 'RudderLabs JavaScript SDK',
+ version: '1.1.5',
+ },
+ userAgent:
+ 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/85.0.4183.121 Safari/537.36',
+ locale: 'en-US',
+ os: {
+ name: '',
+ version: '',
+ },
+ screen: {
+ density: 0.8999999761581421,
+ },
+ campaign: {
+ source: 'google',
+ medium: 'medium',
+ term: 'keyword',
+ content: 'some content',
+ name: 'some campaign',
+ test: 'other value',
+ },
+ page: {
+ path: '/destinations/amplitude',
+ referrer: '',
+ search: '',
+ title: '',
+ url: 'https://docs.rudderstack.com/destinations/amplitude',
+ category: 'destination',
+ initial_referrer: 'https://docs.rudderstack.com',
+ initial_referring_domain: 'docs.rudderstack.com',
+ },
+ externalId: {
+ type: 'Contact',
+ },
+ },
+ type: 'track',
+ messageId: 'dd46338d-5f83-493b-bd28-3b48f55d0be8',
+ originalTimestamp: '2020-10-20T08:14:28.778Z',
+ anonymousId: 'my-anonymous-id-new',
+ userId: 'newUserIdAlias',
+ email: 'test@rudderstack.com',
+ properties: {
+ product_name: 'Shirt',
+ brand: 'Wrogn',
+ salesActivityName: 'own-calender',
+ title: 'new Contact',
+ startDate: '2021-05-04T17:00:00+05:30',
+ endDate: '2022-06-04T17:30:00+05:30',
+ ownerId: '70054866612',
+ },
+ event: 'test',
+ previousId: 'sampleusrRudder3',
+ sentAt: '2020-10-20T08:14:28.778Z',
+ },
+ destination: {
+ Config: {
+ apiKey: 'dummyApiKey',
+ domain: 'domain-rudder.myfreshworks.com',
+ rudderEventsToFreshsalesEvents: [
+ {
+ from: 'test',
+ to: 'sales_activity',
+ },
+ ],
+ },
+ },
+ },
+ ],
+ },
+ },
+ output: {
+ response: {
+ status: 200,
+ body: [
+ {
+ output: {
+ body: {
+ XML: {},
+ FORM: {},
+ JSON: {
+ sales_activity: {
+ title: 'new Contact',
+ created_at: '2020-10-20T08:14:28.778Z',
+ end_date: '2022-06-04T17:30:00+05:30',
+ owner_id: '70054866612',
+ start_date: '2021-05-04T17:00:00+05:30',
+ updated_at: '2020-10-20T08:14:28.778Z',
+ targetable_id: 70054866612,
+ targetable_type: 'Contact',
+ sales_activity_name: 'own-calender',
+ sales_activity_type_id: 70000666879,
+ },
+ },
+ JSON_ARRAY: {},
+ },
+ type: 'REST',
+ userId: '',
+ files: {},
+ method: 'POST',
+ params: {},
+ headers: {
+ 'Content-Type': 'application/json',
+ Authorization: 'Token token=dummyApiKey',
+ },
+ version: '1',
+ endpoint: 'https://domain-rudder.myfreshworks.com/crm/sales/api/sales_activities',
+ },
+ statusCode: 200,
+ },
+ ],
+ },
+ },
+ },
+ {
+ name: 'freshsales',
+ description: 'Track call: lifecycle_stage_id',
+ feature: 'processor',
+ module: 'destination',
+ version: 'v0',
+ input: {
+ request: {
+ body: [
+ {
+ message: {
+ channel: 'web',
+ context: {
+ app: {
+ build: '1.0.0',
+ name: 'RudderLabs JavaScript SDK',
+ namespace: 'com.rudderlabs.javascript',
+ version: '1.1.5',
+ },
+ traits: {
+ name: 'Shehan Study',
+ category: 'SampleIdentify',
+ plan: 'Open source',
+ logins: 5,
+ createdAt: 1599264000,
+ },
+ library: {
+ name: 'RudderLabs JavaScript SDK',
+ version: '1.1.5',
+ },
+ userAgent:
+ 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/85.0.4183.121 Safari/537.36',
+ locale: 'en-US',
+ os: {
+ name: '',
+ version: '',
+ },
+ screen: {
+ density: 0.8999999761581421,
+ },
+ campaign: {
+ source: 'google',
+ medium: 'medium',
+ term: 'keyword',
+ content: 'some content',
+ name: 'some campaign',
+ test: 'other value',
+ },
+ page: {
+ path: '/destinations/amplitude',
+ referrer: '',
+ search: '',
+ title: '',
+ url: 'https://docs.rudderstack.com/destinations/amplitude',
+ category: 'destination',
+ initial_referrer: 'https://docs.rudderstack.com',
+ initial_referring_domain: 'docs.rudderstack.com',
+ },
+ },
+ type: 'track',
+ messageId: 'dd46338d-5f83-493b-bd28-3b48f55d0be8',
+ originalTimestamp: '2020-10-20T08:14:28.778Z',
+ anonymousId: 'my-anonymous-id-new',
+ userId: 'newUserIdAlias',
+ properties: {
+ email: 'jamessampleton3@gmail.com',
+ lifecycleStageId: '71012139273',
+ title: 'new Contact',
+ startDate: '2021-05-04T17:00:00+05:30',
+ endDate: '2022-06-04T17:30:00+05:30',
+ ownerId: '70054866612',
+ targetableType: 'Contact',
+ },
+ event: 'lifecycle_stage',
+ previousId: 'sampleusrRudder3',
+ sentAt: '2020-10-20T08:14:28.778Z',
+ },
+ destination: {
+ Config: {
+ apiKey: 'dummyApiKey',
+ domain: 'domain-rudder.myfreshworks.com',
+ },
+ },
+ },
+ ],
+ },
+ },
+ output: {
+ response: {
+ status: 200,
+ body: [
+ {
+ output: {
+ version: '1',
+ type: 'REST',
+ method: 'POST',
+ endpoint: 'https://domain-rudder.myfreshworks.com/crm/sales/api/contacts/upsert',
+ headers: {
+ Authorization: 'Token token=dummyApiKey',
+ 'Content-Type': 'application/json',
+ },
+ params: {},
+ body: {
+ JSON: {
+ contact: {
+ lifecycle_stage_id: '71012139273',
+ },
+ unique_identifier: {
+ emails: 'jamessampleton3@gmail.com',
+ },
+ },
+ JSON_ARRAY: {},
+ XML: {},
+ FORM: {},
+ },
+ files: {},
+ userId: '',
+ },
+ statusCode: 200,
+ },
+ ],
+ },
+ },
+ },
+ {
+ name: 'freshsales',
+ description: 'Track call: In lifecycle stage, email is missing',
+ feature: 'processor',
+ module: 'destination',
+ version: 'v0',
+ input: {
+ request: {
+ body: [
+ {
+ message: {
+ channel: 'web',
+ context: {
+ app: {
+ build: '1.0.0',
+ name: 'RudderLabs JavaScript SDK',
+ namespace: 'com.rudderlabs.javascript',
+ version: '1.1.5',
+ },
+ traits: {
+ name: 'Shehan Study',
+ category: 'SampleIdentify',
+ plan: 'Open source',
+ logins: 5,
+ createdAt: 1599264000,
+ },
+ library: {
+ name: 'RudderLabs JavaScript SDK',
+ version: '1.1.5',
+ },
+ userAgent:
+ 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/85.0.4183.121 Safari/537.36',
+ locale: 'en-US',
+ os: {
+ name: '',
+ version: '',
+ },
+ screen: {
+ density: 0.8999999761581421,
+ },
+ campaign: {
+ source: 'google',
+ medium: 'medium',
+ term: 'keyword',
+ content: 'some content',
+ name: 'some campaign',
+ test: 'other value',
+ },
+ page: {
+ path: '/destinations/amplitude',
+ referrer: '',
+ search: '',
+ title: '',
+ url: 'https://docs.rudderstack.com/destinations/amplitude',
+ category: 'destination',
+ initial_referrer: 'https://docs.rudderstack.com',
+ initial_referring_domain: 'docs.rudderstack.com',
+ },
+ },
+ type: 'track',
+ messageId: 'dd46338d-5f83-493b-bd28-3b48f55d0be8',
+ originalTimestamp: '2020-10-20T08:14:28.778Z',
+ anonymousId: 'my-anonymous-id-new',
+ userId: 'newUserIdAlias',
+ properties: {
+ lifecycleStageId: '71012139273',
+ title: 'new Contact',
+ startDate: '2021-05-04T17:00:00+05:30',
+ endDate: '2022-06-04T17:30:00+05:30',
+ ownerId: '70054866612',
+ targetableType: 'Contact',
+ },
+ event: 'lifecycle_stage',
+ previousId: 'sampleusrRudder3',
+ sentAt: '2020-10-20T08:14:28.778Z',
+ },
+ destination: {
+ Config: {
+ apiKey: 'dummyApiKey',
+ domain: 'domain-rudder.myfreshworks.com',
+ },
+ },
+ },
+ ],
+ },
+ },
+ output: {
+ response: {
+ status: 200,
+ body: [
+ {
+ error: 'email is required for updating life Cycle Stages. Aborting!',
+ statTags: {
+ destType: 'FRESHSALES',
+ errorCategory: 'dataValidation',
+ errorType: 'instrumentation',
+ feature: 'processor',
+ implementation: 'native',
+ module: 'destination',
+ },
+ statusCode: 400,
+ },
+ ],
+ },
+ },
+ },
+ {
+ name: 'freshsales',
+ description: 'Track call: Either of lifecycleStageName or lifecycleStageId is required',
+ feature: 'processor',
+ module: 'destination',
+ version: 'v0',
+ input: {
+ request: {
+ body: [
+ {
+ message: {
+ channel: 'web',
+ context: {
+ app: {
+ build: '1.0.0',
+ name: 'RudderLabs JavaScript SDK',
+ namespace: 'com.rudderlabs.javascript',
+ version: '1.1.5',
+ },
+ traits: {
+ name: 'Shehan Study',
+ category: 'SampleIdentify',
+ email: 'test@rudderstack.com',
+ plan: 'Open source',
+ logins: 5,
+ createdAt: 1599264000,
+ },
+ library: {
+ name: 'RudderLabs JavaScript SDK',
+ version: '1.1.5',
+ },
+ userAgent:
+ 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/85.0.4183.121 Safari/537.36',
+ locale: 'en-US',
+ os: {
+ name: '',
+ version: '',
+ },
+ screen: {
+ density: 0.8999999761581421,
+ },
+ campaign: {
+ source: 'google',
+ medium: 'medium',
+ term: 'keyword',
+ content: 'some content',
+ name: 'some campaign',
+ test: 'other value',
+ },
+ page: {
+ path: '/destinations/amplitude',
+ referrer: '',
+ search: '',
+ title: '',
+ url: 'https://docs.rudderstack.com/destinations/amplitude',
+ category: 'destination',
+ initial_referrer: 'https://docs.rudderstack.com',
+ initial_referring_domain: 'docs.rudderstack.com',
+ },
+ },
+ type: 'track',
+ messageId: 'dd46338d-5f83-493b-bd28-3b48f55d0be8',
+ originalTimestamp: '2020-10-20T08:14:28.778Z',
+ anonymousId: 'my-anonymous-id-new',
+ userId: 'newUserIdAlias',
+ email: 'jamessampleton3@gmail.com',
+ properties: {
+ title: 'new Contact',
+ startDate: '2021-05-04T17:00:00+05:30',
+ endDate: '2022-06-04T17:30:00+05:30',
+ ownerId: '70054866612',
+ targetableType: 'Contact',
+ },
+ event: 'lifecycle_stage',
+ previousId: 'sampleusrRudder3',
+ sentAt: '2020-10-20T08:14:28.778Z',
+ },
+ destination: {
+ Config: {
+ apiKey: 'dummyApiKey',
+ domain: 'domain-rudder.myfreshworks.com',
+ },
+ },
+ },
+ ],
+ },
+ },
+ output: {
+ response: {
+ status: 200,
+ body: [
+ {
+ error: 'Either of lifecycleStageName or lifecycleStageId is required. Aborting!',
+ statTags: {
+ destType: 'FRESHSALES',
+ errorCategory: 'dataValidation',
+ errorType: 'instrumentation',
+ feature: 'processor',
+ implementation: 'native',
+ module: 'destination',
+ },
+ statusCode: 400,
+ },
+ ],
+ },
+ },
+ },
+ {
+ name: 'freshsales',
+ description: 'Track call: Either of sales activity name or sales activity type id is required',
+ feature: 'processor',
+ module: 'destination',
+ version: 'v0',
+ input: {
+ request: {
+ body: [
+ {
+ message: {
+ channel: 'web',
+ context: {
+ app: {
+ build: '1.0.0',
+ name: 'RudderLabs JavaScript SDK',
+ namespace: 'com.rudderlabs.javascript',
+ version: '1.1.5',
+ },
+ traits: {
+ name: 'Shehan Study',
+ category: 'SampleIdentify',
+ email: 'test@rudderstack.com',
+ plan: 'Open source',
+ logins: 5,
+ createdAt: 1599264000,
+ },
+ library: {
+ name: 'RudderLabs JavaScript SDK',
+ version: '1.1.5',
+ },
+ userAgent:
+ 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/85.0.4183.121 Safari/537.36',
+ locale: 'en-US',
+ os: {
+ name: '',
+ version: '',
+ },
+ screen: {
+ density: 0.8999999761581421,
+ },
+ campaign: {
+ source: 'google',
+ medium: 'medium',
+ term: 'keyword',
+ content: 'some content',
+ name: 'some campaign',
+ test: 'other value',
+ },
+ page: {
+ path: '/destinations/amplitude',
+ referrer: '',
+ search: '',
+ title: '',
+ url: 'https://docs.rudderstack.com/destinations/amplitude',
+ category: 'destination',
+ initial_referrer: 'https://docs.rudderstack.com',
+ initial_referring_domain: 'docs.rudderstack.com',
+ },
+ externalId: {
+ type: 'Contact',
+ },
+ },
+ type: 'track',
+ messageId: 'dd46338d-5f83-493b-bd28-3b48f55d0be8',
+ originalTimestamp: '2020-10-20T08:14:28.778Z',
+ anonymousId: 'my-anonymous-id-new',
+ userId: 'newUserIdAlias',
+ email: 'test@rudderstack.com',
+ properties: {
+ product_name: 'Shirt',
+ brand: 'Wrogn',
+ title: 'new Contact',
+ startDate: '2021-05-04T17:00:00+05:30',
+ endDate: '2022-06-04T17:30:00+05:30',
+ ownerId: '70054866612',
+ },
+ event: 'sales_activity',
+ previousId: 'sampleusrRudder3',
+ sentAt: '2020-10-20T08:14:28.778Z',
+ },
+ destination: {
+ Config: {
+ apiKey: 'dummyApiKey',
+ domain: 'domain-rudder.myfreshworks.com',
+ },
+ },
+ },
+ ],
+ },
+ },
+ output: {
+ response: {
+ status: 200,
+ body: [
+ {
+ error: 'Either of sales activity name or sales activity type id is required. Aborting!',
+ statTags: {
+ destType: 'FRESHSALES',
+ errorCategory: 'dataValidation',
+ errorType: 'instrumentation',
+ feature: 'processor',
+ implementation: 'native',
+ module: 'destination',
+ },
+ statusCode: 400,
+ },
+ ],
+ },
+ },
+ },
+ {
+ name: 'freshsales',
+ description:
+ 'Track call: Either of email or targetable_id is required for creating sales activity.',
+ feature: 'processor',
+ module: 'destination',
+ version: 'v0',
+ input: {
+ request: {
+ body: [
+ {
+ message: {
+ channel: 'web',
+ context: {
+ app: {
+ build: '1.0.0',
+ name: 'RudderLabs JavaScript SDK',
+ namespace: 'com.rudderlabs.javascript',
+ version: '1.1.5',
+ },
+ traits: {
+ name: 'Shehan Study',
+ category: 'SampleIdentify',
+ plan: 'Open source',
+ logins: 5,
+ createdAt: 1599264000,
+ },
+ library: {
+ name: 'RudderLabs JavaScript SDK',
+ version: '1.1.5',
+ },
+ userAgent:
+ 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/85.0.4183.121 Safari/537.36',
+ locale: 'en-US',
+ os: {
+ name: '',
+ version: '',
+ },
+ screen: {
+ density: 0.8999999761581421,
+ },
+ campaign: {
+ source: 'google',
+ medium: 'medium',
+ term: 'keyword',
+ content: 'some content',
+ name: 'some campaign',
+ test: 'other value',
+ },
+ page: {
+ path: '/destinations/amplitude',
+ referrer: '',
+ search: '',
+ title: '',
+ url: 'https://docs.rudderstack.com/destinations/amplitude',
+ category: 'destination',
+ initial_referrer: 'https://docs.rudderstack.com',
+ initial_referring_domain: 'docs.rudderstack.com',
+ },
+ externalId: {
+ type: 'Contact',
+ },
+ },
+ type: 'track',
+ messageId: 'dd46338d-5f83-493b-bd28-3b48f55d0be8',
+ originalTimestamp: '2020-10-20T08:14:28.778Z',
+ anonymousId: 'my-anonymous-id-new',
+ userId: 'newUserIdAlias',
+ properties: {
+ product_name: 'Shirt',
+ brand: 'Wrogn',
+ salesActivityName: 'own-calender',
+ title: 'new Contact',
+ startDate: '2021-05-04T17:00:00+05:30',
+ endDate: '2022-06-04T17:30:00+05:30',
+ ownerId: '70054866612',
+ },
+ event: 'sales_activity',
+ previousId: 'sampleusrRudder3',
+ sentAt: '2020-10-20T08:14:28.778Z',
+ },
+ destination: {
+ Config: {
+ apiKey: 'dummyApiKey',
+ domain: 'domain-rudder.myfreshworks.com',
+ },
+ },
+ },
+ ],
+ },
+ },
+ output: {
+ response: {
+ status: 200,
+ body: [
+ {
+ error:
+ 'Either of email or targetable_id is required for creating sales activity. Aborting!',
+ statTags: {
+ destType: 'FRESHSALES',
+ errorCategory: 'dataValidation',
+ errorType: 'instrumentation',
+ feature: 'processor',
+ implementation: 'native',
+ module: 'destination',
+ },
+ statusCode: 400,
+ },
+ ],
+ },
+ },
+ },
+ {
+ name: 'freshsales',
+ description: 'Track call: sales activity with salesActivityTypeId',
+ feature: 'processor',
+ module: 'destination',
+ version: 'v0',
+ input: {
+ request: {
+ body: [
+ {
+ message: {
+ channel: 'web',
+ context: {
+ app: {
+ build: '1.0.0',
+ name: 'RudderLabs JavaScript SDK',
+ namespace: 'com.rudderlabs.javascript',
+ version: '1.1.5',
+ },
+ traits: {
+ name: 'Shehan Study',
+ category: 'SampleIdentify',
+ email: 'test@rudderstack.com',
+ plan: 'Open source',
+ logins: 5,
+ createdAt: 1599264000,
+ },
+ library: {
+ name: 'RudderLabs JavaScript SDK',
+ version: '1.1.5',
+ },
+ userAgent:
+ 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/85.0.4183.121 Safari/537.36',
+ locale: 'en-US',
+ os: {
+ name: '',
+ version: '',
+ },
+ screen: {
+ density: 0.8999999761581421,
+ },
+ campaign: {
+ source: 'google',
+ medium: 'medium',
+ term: 'keyword',
+ content: 'some content',
+ name: 'some campaign',
+ test: 'other value',
+ },
+ page: {
+ path: '/destinations/amplitude',
+ referrer: '',
+ search: '',
+ title: '',
+ url: 'https://docs.rudderstack.com/destinations/amplitude',
+ category: 'destination',
+ initial_referrer: 'https://docs.rudderstack.com',
+ initial_referring_domain: 'docs.rudderstack.com',
+ },
+ externalId: {
+ type: 'Contact',
+ },
+ },
+ type: 'track',
+ messageId: 'dd46338d-5f83-493b-bd28-3b48f55d0be8',
+ originalTimestamp: '2020-10-20T08:14:28.778Z',
+ anonymousId: 'my-anonymous-id-new',
+ userId: 'newUserIdAlias',
+ email: 'jamessampleton3@gmail.com',
+ properties: {
+ salesActivityTypeId: '70000663932',
+ title: 'new Contact',
+ startDate: '2021-05-04T17:00:00+05:30',
+ endDate: '2022-06-04T17:30:00+05:30',
+ ownerId: '70054866612',
+ },
+ event: 'sales_activity',
+ previousId: 'sampleusrRudder3',
+ sentAt: '2020-10-20T08:14:28.778Z',
+ },
+ destination: {
+ Config: {
+ apiKey: 'dummyApiKey',
+ domain: 'domain-rudder.myfreshworks.com',
+ },
+ },
+ },
+ ],
+ },
+ },
+ output: {
+ response: {
+ status: 200,
+ body: [
+ {
+ output: {
+ body: {
+ XML: {},
+ FORM: {},
+ JSON: {
+ sales_activity: {
+ title: 'new Contact',
+ created_at: '2020-10-20T08:14:28.778Z',
+ end_date: '2022-06-04T17:30:00+05:30',
+ owner_id: '70054866612',
+ start_date: '2021-05-04T17:00:00+05:30',
+ updated_at: '2020-10-20T08:14:28.778Z',
+ targetable_id: 70054866612,
+ targetable_type: 'Contact',
+ sales_activity_type_id: '70000663932',
+ },
+ },
+ JSON_ARRAY: {},
+ },
+ type: 'REST',
+ files: {},
+ method: 'POST',
+ params: {},
+ headers: {
+ 'Content-Type': 'application/json',
+ Authorization: 'Token token=dummyApiKey',
+ },
+ version: '1',
+ endpoint: 'https://domain-rudder.myfreshworks.com/crm/sales/api/sales_activities',
+ userId: '',
+ },
+ statusCode: 200,
+ },
+ ],
+ },
+ },
+ },
+ {
+ name: 'freshsales',
+ description: 'Track call: updated sales activity with salesActivityTypeId and targetableId',
+ feature: 'processor',
+ module: 'destination',
+ version: 'v0',
+ input: {
+ request: {
+ body: [
+ {
+ message: {
+ channel: 'web',
+ context: {
+ app: {
+ build: '1.0.0',
+ name: 'RudderLabs JavaScript SDK',
+ namespace: 'com.rudderlabs.javascript',
+ version: '1.1.5',
+ },
+ traits: {
+ name: 'Shehan Study',
+ category: 'SampleIdentify',
+ email: 'test@rudderstack.com',
+ plan: 'Open source',
+ logins: 5,
+ createdAt: 1599264000,
+ },
+ library: {
+ name: 'RudderLabs JavaScript SDK',
+ version: '1.1.5',
+ },
+ userAgent:
+ 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/85.0.4183.121 Safari/537.36',
+ locale: 'en-US',
+ os: {
+ name: '',
+ version: '',
+ },
+ screen: {
+ density: 0.8999999761581421,
+ },
+ campaign: {
+ source: 'google',
+ medium: 'medium',
+ term: 'keyword',
+ content: 'some content',
+ name: 'some campaign',
+ test: 'other value',
+ },
+ page: {
+ path: '/destinations/amplitude',
+ referrer: '',
+ search: '',
+ title: '',
+ url: 'https://docs.rudderstack.com/destinations/amplitude',
+ category: 'destination',
+ initial_referrer: 'https://docs.rudderstack.com',
+ initial_referring_domain: 'docs.rudderstack.com',
+ },
+ externalId: {
+ id: '70052305908',
+ type: 'Contact',
+ },
+ },
+ type: 'track',
+ messageId: 'dd46338d-5f83-493b-bd28-3b48f55d0be8',
+ originalTimestamp: '2020-10-20T08:14:28.778Z',
+ anonymousId: 'my-anonymous-id-new',
+ userId: 'newUserIdAlias',
+ properties: {
+ salesActivityTypeId: '70000663932',
+ title: 'new Contact',
+ startDate: '2021-05-04T17:00:00+05:30',
+ endDate: '2022-06-04T17:30:00+05:30',
+ ownerId: '70054866612',
+ },
+ event: 'sales_activity',
+ previousId: 'sampleusrRudder3',
+ sentAt: '2020-10-20T08:14:28.778Z',
+ },
+ destination: {
+ Config: {
+ apiKey: 'dummyApiKey',
+ domain: 'domain-rudder.myfreshworks.com',
+ },
+ },
+ },
+ ],
+ },
+ },
+ output: {
+ response: {
+ status: 200,
+ body: [
+ {
+ output: {
+ body: {
+ XML: {},
+ FORM: {},
+ JSON: {
+ sales_activity: {
+ title: 'new Contact',
+ created_at: '2020-10-20T08:14:28.778Z',
+ end_date: '2022-06-04T17:30:00+05:30',
+ owner_id: '70054866612',
+ start_date: '2021-05-04T17:00:00+05:30',
+ updated_at: '2020-10-20T08:14:28.778Z',
+ targetable_id: '70052305908',
+ targetable_type: 'Contact',
+ sales_activity_type_id: '70000663932',
+ },
+ },
+ JSON_ARRAY: {},
+ },
+ type: 'REST',
+ files: {},
+ method: 'POST',
+ params: {},
+ headers: {
+ 'Content-Type': 'application/json',
+ Authorization: 'Token token=dummyApiKey',
+ },
+ version: '1',
+ endpoint: 'https://domain-rudder.myfreshworks.com/crm/sales/api/sales_activities',
+ userId: '',
+ },
+ statusCode: 200,
+ },
+ ],
+ },
+ },
+ },
+ {
+ name: 'freshsales',
+ description: 'Unsupported message Type',
+ feature: 'processor',
+ module: 'destination',
+ version: 'v0',
+ input: {
+ request: {
+ body: [
+ {
+ message: {
+ channel: 'web',
+ type: 'page',
+ messageId: 'dd46338d-5f83-493b-bd28-3b48f55d0be8',
+ originalTimestamp: '2020-10-20T08:14:28.778Z',
+ anonymousId: 'my-anonymous-id-new',
+ userId: 'newUserIdAlias',
+ email: 'jamessampleton3@gmail.com',
+ properties: {
+ lifecycleStageId: '71012139273',
+ title: 'new Contact',
+ startDate: '2021-05-04T17:00:00+05:30',
+ endDate: '2022-06-04T17:30:00+05:30',
+ ownerId: '70054866612',
+ targetableType: 'Contact',
+ },
+ event: 'lifecycle_stage',
+ previousId: 'sampleusrRudder3',
+ sentAt: '2020-10-20T08:14:28.778Z',
+ },
+ destination: {
+ Config: {
+ apiKey: 'dummyApiKey',
+ domain: 'domain-rudder.myfreshworks.com',
+ },
+ },
+ },
+ ],
+ },
+ },
+ output: {
+ response: {
+ status: 200,
+ body: [
+ {
+ error: 'message type page not supported',
+ statTags: {
+ destType: 'FRESHSALES',
+ errorCategory: 'dataValidation',
+ errorType: 'instrumentation',
+ feature: 'processor',
+ implementation: 'native',
+ module: 'destination',
+ },
+ statusCode: 400,
+ },
+ ],
+ },
+ },
+ },
+ {
+ name: 'freshsales',
+ description: 'Track call: with wrong sales activity name',
+ feature: 'processor',
+ module: 'destination',
+ version: 'v0',
+ input: {
+ request: {
+ body: [
+ {
+ message: {
+ channel: 'web',
+ context: {
+ app: {
+ build: '1.0.0',
+ name: 'RudderLabs JavaScript SDK',
+ namespace: 'com.rudderlabs.javascript',
+ version: '1.1.5',
+ },
+ traits: {
+ name: 'Shehan Study',
+ category: 'SampleIdentify',
+ email: 'test@rudderstack.com',
+ plan: 'Open source',
+ logins: 5,
+ createdAt: 1599264000,
+ },
+ library: {
+ name: 'RudderLabs JavaScript SDK',
+ version: '1.1.5',
+ },
+ userAgent:
+ 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/85.0.4183.121 Safari/537.36',
+ locale: 'en-US',
+ os: {
+ name: '',
+ version: '',
+ },
+ screen: {
+ density: 0.8999999761581421,
+ },
+ campaign: {
+ source: 'google',
+ medium: 'medium',
+ term: 'keyword',
+ content: 'some content',
+ name: 'some campaign',
+ test: 'other value',
+ },
+ page: {
+ path: '/destinations/amplitude',
+ referrer: '',
+ search: '',
+ title: '',
+ url: 'https://docs.rudderstack.com/destinations/amplitude',
+ category: 'destination',
+ initial_referrer: 'https://docs.rudderstack.com',
+ initial_referring_domain: 'docs.rudderstack.com',
+ },
+ externalId: {
+ type: 'Contact',
+ },
+ },
+ type: 'track',
+ messageId: 'dd46338d-5f83-493b-bd28-3b48f55d0be8',
+ originalTimestamp: '2020-10-20T08:14:28.778Z',
+ anonymousId: 'my-anonymous-id-new',
+ userId: 'newUserIdAlias',
+ email: 'test@rudderstack.com',
+ properties: {
+ product_name: 'Shirt',
+ brand: 'Wrogn',
+ salesActivityName: 'own-list',
+ title: 'new Contact',
+ startDate: '2021-05-04T17:00:00+05:30',
+ endDate: '2022-06-04T17:30:00+05:30',
+ ownerId: '70054866612',
+ },
+ event: 'sales_activity',
+ previousId: 'sampleusrRudder3',
+ sentAt: '2020-10-20T08:14:28.778Z',
+ },
+ destination: {
+ Config: {
+ apiKey: 'dummyApiKey',
+ domain: 'domain-rudder.myfreshworks.com',
+ },
+ },
+ },
+ ],
+ },
+ },
+ output: {
+ response: {
+ status: 200,
+ body: [
+ {
+ error: "sales Activity own-list doesn't exists. Aborting!",
+ statTags: {
+ destType: 'FRESHSALES',
+ errorCategory: 'dataValidation',
+ errorType: 'instrumentation',
+ feature: 'processor',
+ implementation: 'native',
+ module: 'destination',
+ },
+ statusCode: 400,
+ },
+ ],
+ },
+ },
+ },
+ {
+ name: 'freshsales',
+ description: 'Track call: update contacts with sales Activity name',
+ feature: 'processor',
+ module: 'destination',
+ version: 'v0',
+ input: {
+ request: {
+ body: [
+ {
+ message: {
+ channel: 'web',
+ context: {
+ app: {
+ build: '1.0.0',
+ name: 'RudderLabs JavaScript SDK',
+ namespace: 'com.rudderlabs.javascript',
+ version: '1.1.5',
+ },
+ traits: {
+ name: 'Shehan Study',
+ category: 'SampleIdentify',
+ plan: 'Open source',
+ logins: 5,
+ createdAt: 1599264000,
+ },
+ library: {
+ name: 'RudderLabs JavaScript SDK',
+ version: '1.1.5',
+ },
+ userAgent:
+ 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/85.0.4183.121 Safari/537.36',
+ locale: 'en-US',
+ os: {
+ name: '',
+ version: '',
+ },
+ screen: {
+ density: 0.8999999761581421,
+ },
+ campaign: {
+ source: 'google',
+ medium: 'medium',
+ term: 'keyword',
+ content: 'some content',
+ name: 'some campaign',
+ test: 'other value',
+ },
+ page: {
+ path: '/destinations/amplitude',
+ referrer: '',
+ search: '',
+ title: '',
+ url: 'https://docs.rudderstack.com/destinations/amplitude',
+ category: 'destination',
+ initial_referrer: 'https://docs.rudderstack.com',
+ initial_referring_domain: 'docs.rudderstack.com',
+ },
+ },
+ type: 'track',
+ messageId: 'dd46338d-5f83-493b-bd28-3b48f55d0be8',
+ originalTimestamp: '2020-10-20T08:14:28.778Z',
+ anonymousId: 'my-anonymous-id-new',
+ userId: 'newUserIdAlias',
+ properties: {
+ email: 'jamessampleton6@gmail.com',
+ lifecycleStageName: 'final Customer',
+ title: 'new Contact',
+ startDate: '2021-05-04T17:00:00+05:30',
+ endDate: '2022-06-04T17:30:00+05:30',
+ ownerId: '70054866612',
+ targetableType: 'Contact',
+ },
+ event: 'lifecycle_stage',
+ previousId: 'sampleusrRudder3',
+ sentAt: '2020-10-20T08:14:28.778Z',
+ },
+ destination: {
+ Config: {
+ apiKey: 'dummyApiKey',
+ domain: 'domain-rudder.myfreshworks.com',
+ },
+ },
+ },
+ ],
+ },
+ },
+ output: {
+ response: {
+ status: 200,
+ body: [
+ {
+ output: {
+ body: {
+ XML: {},
+ FORM: {},
+ JSON: {
+ contact: {
+ lifecycle_stage_id: 71012806409,
+ },
+ unique_identifier: {
+ emails: 'jamessampleton6@gmail.com',
+ },
+ },
+ JSON_ARRAY: {},
+ },
+ type: 'REST',
+ files: {},
+ method: 'POST',
+ params: {},
+ headers: {
+ 'Content-Type': 'application/json',
+ Authorization: 'Token token=dummyApiKey',
+ },
+ version: '1',
+ endpoint: 'https://domain-rudder.myfreshworks.com/crm/sales/api/contacts/upsert',
+ userId: '',
+ },
+ statusCode: 200,
+ },
+ ],
+ },
+ },
+ },
+ {
+ name: 'freshsales',
+ description: 'Track call: with wrong lifecycleStageName',
+ feature: 'processor',
+ module: 'destination',
+ version: 'v0',
+ input: {
+ request: {
+ body: [
+ {
+ message: {
+ channel: 'web',
+ context: {
+ app: {
+ build: '1.0.0',
+ name: 'RudderLabs JavaScript SDK',
+ namespace: 'com.rudderlabs.javascript',
+ version: '1.1.5',
+ },
+ traits: {
+ name: 'Shehan Study',
+ category: 'SampleIdentify',
+ plan: 'Open source',
+ logins: 5,
+ createdAt: 1599264000,
+ },
+ library: {
+ name: 'RudderLabs JavaScript SDK',
+ version: '1.1.5',
+ },
+ userAgent:
+ 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/85.0.4183.121 Safari/537.36',
+ locale: 'en-US',
+ os: {
+ name: '',
+ version: '',
+ },
+ screen: {
+ density: 0.8999999761581421,
+ },
+ campaign: {
+ source: 'google',
+ medium: 'medium',
+ term: 'keyword',
+ content: 'some content',
+ name: 'some campaign',
+ test: 'other value',
+ },
+ page: {
+ path: '/destinations/amplitude',
+ referrer: '',
+ search: '',
+ title: '',
+ url: 'https://docs.rudderstack.com/destinations/amplitude',
+ category: 'destination',
+ initial_referrer: 'https://docs.rudderstack.com',
+ initial_referring_domain: 'docs.rudderstack.com',
+ },
+ },
+ type: 'track',
+ messageId: 'dd46338d-5f83-493b-bd28-3b48f55d0be8',
+ originalTimestamp: '2020-10-20T08:14:28.778Z',
+ anonymousId: 'my-anonymous-id-new',
+ userId: 'newUserIdAlias',
+ properties: {
+ email: 'jamessampleton6@gmail.com',
+ lifecycleStageName: 'final ExCustomer',
+ title: 'new Contact',
+ startDate: '2021-05-04T17:00:00+05:30',
+ endDate: '2022-06-04T17:30:00+05:30',
+ ownerId: '70054866612',
+ targetableType: 'Contact',
+ },
+ event: 'lifecycle_stage',
+ previousId: 'sampleusrRudder3',
+ sentAt: '2020-10-20T08:14:28.778Z',
+ },
+ destination: {
+ Config: {
+ apiKey: 'dummyApiKey',
+ domain: 'domain-rudder.myfreshworks.com',
+ },
+ },
+ },
+ ],
+ },
+ },
+ output: {
+ response: {
+ status: 200,
+ body: [
+ {
+ error: 'failed to fetch lifeCycleStages with final ExCustomer',
+ statTags: {
+ destType: 'FRESHSALES',
+ errorCategory: 'network',
+ errorType: 'aborted',
+ feature: 'processor',
+ implementation: 'native',
+ meta: 'instrumentation',
+ module: 'destination',
+ },
+ statusCode: 400,
+ },
+ ],
+ },
+ },
+ },
+];
diff --git a/test/integrations/destinations/ga/processor/data.ts b/test/integrations/destinations/ga/processor/data.ts
index d2ccfa4a5b..43a222e025 100644
--- a/test/integrations/destinations/ga/processor/data.ts
+++ b/test/integrations/destinations/ga/processor/data.ts
@@ -1,9979 +1,10034 @@
export const mockFns = (_) => {
- // @ts-ignore
- jest
- .useFakeTimers()
- .setSystemTime(new Date('2023-09-29'));
+ // @ts-ignore
+ jest.useFakeTimers().setSystemTime(new Date('2023-09-29'));
};
export const data = [
- {
- "name": "ga",
- "description": "Test 0",
- "feature": "processor",
- "module": "destination",
- "version": "v0",
- "input": {
- "request": {
- "body": [
- {
- "message": {
- "channel": "web",
- "context": {
- "externalId": [
- {
- "id": "lynnanderson@smith.net",
- "identifierType": "device_id",
- "type": "AM-users"
- }
- ],
- "mappedToDestination": "true",
- "app": {
- "build": "1.0.0",
- "name": "RudderLabs JavaScript SDK",
- "namespace": "com.rudderlabs.javascript",
- "version": "1.0.0"
- },
- "traits": {
- "anonymousId": "123456",
- "email": "test@rudderstack.com",
- "address": {
- "country": "India",
- "postalCode": 712136,
- "state": "WB",
- "street": "",
- "os_version": "test os"
- },
- "ip": "0.0.0.0",
- "age": 26
- },
- "library": {
- "name": "RudderLabs JavaScript SDK",
- "version": "1.0.0"
- },
- "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36",
- "locale": "en-US",
- "ip": "0.0.0.0",
- "os": {
- "name": "",
- "version": ""
- },
- "screen": {
- "density": 2
- },
- "page": {
- "path": "/destinations/amplitude",
- "referrer": "",
- "search": "",
- "title": "",
- "url": "https://docs.rudderstack.com/destinations/amplitude",
- "category": "destination",
- "initial_referrer": "https://docs.rudderstack.com",
- "initial_referring_domain": "docs.rudderstack.com"
- }
- },
- "traits": {
- "anonymousId": "123456",
- "email": "test@rudderstack.com",
- "city": "kolkata",
- "address": {
- "country": "India",
- "postalCode": 712136,
- "state": "WB",
- "street": ""
- },
- "os_version": "test os",
- "ip": "0.0.0.0",
- "age": 26,
- "an": "Test App name",
- "ul": "Test ul"
- },
- "type": "identify",
- "messageId": "84e26acc-56a5-4835-8233-591137fca468",
- "session_id": "3049dc4c-5a95-4ccd-a3e7-d74a7e411f22",
- "originalTimestamp": "2019-10-14T09:03:17.562Z",
- "anonymousId": "123456",
- "userId": "123456",
- "integrations": {
- "All": true
- },
- "sentAt": "2019-10-14T09:03:22.563Z"
- },
- "destination": {
- "Config": {
- "trackingID": "UA-165994240-1",
- "doubleClick": true,
- "enhancedLinkAttribution": true,
- "classic": true,
- "ignoredReferrers": "",
- "serverClassic": false,
- "includeSearch": true,
- "trackCategorizedPages": true,
- "trackNamedPages": true,
- "sampleRate": "100",
- "siteSpeedSampleRate": "1",
- "setAllMappedProps": true,
- "enableServerSideIdentify": true,
- "serverSideIdentifyEventCategory": "name",
- "serverSideIdentifyEventAction": "action1",
- "anonymizeIp": true,
- "domain": "domain",
- "enhancedEcommerce": true,
- "nonInteraction": true,
- "optimize": "abc123",
- "sendUserId": true,
- "useGoogleAmpClientId": true,
- "web-useNativeSDK": true,
- "dimensions": [
- {
- "from": "name",
- "to": "dimension1"
- },
- {
- "from": "custom2",
- "to": "dimension2"
- }
- ],
- "metrics": [
- {
- "from": "email",
- "to": "metric1"
- },
- {
- "from": "trait2",
- "to": "metric2"
- }
- ],
- "resetCustomDimensionsOnPage": [
- {
- "resetCustomDimensionsOnPage": "abc"
- },
- {
- "resetCustomDimensionsOnPage": "xyz"
- }
- ],
- "contentGroupings": [
- {
- "from": "plan",
- "to": "contentGroup1"
- },
- {
- "from": "name",
- "to": "contentGroup2"
- }
- ]
- },
- "Enabled": true
- }
- }
- ]
- }
- },
- "output": {
- "response": {
- "status": 200,
- "body": [
- {
- "output": {
- "version": "1",
- "type": "REST",
- "method": "POST",
- "endpoint": "https://www.google-analytics.com/collect",
- "headers": {},
- "params": {
- "ea": "action1",
- "ec": "All",
- "ni": 1,
- "ul": "Test ul",
- "an": "Test App name",
- "cm1": "test@rudderstack.com",
- "v": "1",
- "t": "event",
- "tid": "UA-165994240-1",
- "ds": "web",
- "npa": 1,
- "aip": 1,
- "ua": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36",
- "av": "1.0.0",
- "aiid": "com.rudderlabs.javascript",
- "uid": "123456",
- "cid": "123456",
- "uip": "0.0.0.0",
- "qt": 124901802438
- },
- "body": {
- "JSON": {},
- "JSON_ARRAY": {},
- "XML": {},
- "FORM": {}
- },
- "files": {},
- "userId": "123456"
- },
- "statusCode": 200
- }
- ]
- }
- }
- },
- {
- "name": "ga",
- "description": "Test 1",
- "feature": "processor",
- "module": "destination",
- "version": "v0",
- "input": {
- "request": {
- "body": [
- {
- "message": {
- "channel": "web",
- "context": {
- "traits": {
- "name": "Rudder Test"
- },
- "app": {
- "build": "1.0.0",
- "name": "RudderLabs JavaScript SDK",
- "namespace": "com.rudderlabs.javascript",
- "version": "1.0.0"
- },
- "library": {
- "name": "RudderLabs JavaScript SDK",
- "version": "1.0.0"
- },
- "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36",
- "locale": "en-US",
- "ip": "0.0.0.0",
- "os": {
- "name": "",
- "version": ""
- },
- "screen": {
- "density": 2
- }
- },
- "properties": {
- "plan": "standard plan",
- "name": "rudder test"
- },
- "type": "identify",
- "messageId": "84e26acc-56a5-4835-8233-591137fca468",
- "originalTimestamp": "2019-10-14T11:15:18.299Z",
- "anonymousId": "00000000000000000000000000",
- "userId": "123456",
- "integrations": {
- "All": true
- },
- "sentAt": "2019-10-14T09:03:22.563Z"
- },
- "destination": {
- "Config": {
- "trackingID": "UA-165994240-1",
- "doubleClick": true,
- "enhancedLinkAttribution": true,
- "classic": true,
- "ignoredReferrers": "",
- "serverClassic": false,
- "includeSearch": true,
- "trackCategorizedPages": true,
- "trackNamedPages": true,
- "sampleRate": "100",
- "siteSpeedSampleRate": "1",
- "setAllMappedProps": true,
- "enableServerSideIdentify": true,
- "serverSideIdentifyEventCategory": "name",
- "serverSideIdentifyEventAction": "action1",
- "anonymizeIp": true,
- "domain": "domain",
- "enhancedEcommerce": true,
- "nonInteraction": true,
- "optimize": "abc123",
- "sendUserId": true,
- "useGoogleAmpClientId": true,
- "web-useNativeSDK": true,
- "dimensions": [
- {
- "from": "name",
- "to": "dimension1"
- },
- {
- "from": "custom2",
- "to": "dimension2"
- }
- ],
- "metrics": [
- {
- "from": "email",
- "to": "metric1"
- },
- {
- "from": "trait2",
- "to": "metric2"
- }
- ],
- "resetCustomDimensionsOnPage": [
- {
- "resetCustomDimensionsOnPage": "abc"
- },
- {
- "resetCustomDimensionsOnPage": "xyz"
- }
- ],
- "contentGroupings": [
- {
- "from": "plan",
- "to": "contentGroup1"
- },
- {
- "from": "name",
- "to": "contentGroup2"
- }
- ]
- },
- "Enabled": true
- }
- }
- ]
- }
- },
- "output": {
- "response": {
- "status": 200,
- "body": [
- {
- "output": {
- "version": "1",
- "type": "REST",
- "method": "POST",
- "endpoint": "https://www.google-analytics.com/collect",
- "headers": {},
- "params": {
- "ea": "action1",
- "ec": "Rudder Test",
- "cd1": "Rudder Test",
- "cg2": "Rudder Test",
- "v": "1",
- "t": "event",
- "tid": "UA-165994240-1",
- "ds": "web",
- "an": "RudderLabs JavaScript SDK",
- "av": "1.0.0",
- "aiid": "com.rudderlabs.javascript",
- "npa": 1,
- "aip": 1,
- "uid": "123456",
- "cid": "00000000000000000000000000",
- "ni": 1,
- "uip": "0.0.0.0",
- "ua": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36",
- "ul": "en-US",
- "qt": 124893881701
- },
- "body": {
- "JSON": {},
- "XML": {},
- "JSON_ARRAY": {},
- "FORM": {}
- },
- "files": {},
- "userId": "00000000000000000000000000"
- },
- "statusCode": 200
- }
- ]
- }
- }
- },
- {
- "name": "ga",
- "description": "Test 2",
- "feature": "processor",
- "module": "destination",
- "version": "v0",
- "input": {
- "request": {
- "body": [
- {
- "message": {
- "channel": "web",
- "context": {
- "app": {
- "build": "1.0.0",
- "name": "RudderLabs JavaScript SDK",
- "namespace": "com.rudderlabs.javascript",
- "version": "1.0.0"
- },
- "traits": {
- "email": "test@rudderstack.com"
- },
- "library": {
- "name": "RudderLabs JavaScript SDK",
- "version": "1.0.0"
- },
- "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36",
- "locale": "en-US",
- "ip": "0.0.0.0",
- "os": {
- "name": "",
- "version": ""
- },
- "screen": {
- "density": 2
- }
- },
- "type": "page",
- "messageId": "5e10d13a-bf9a-44bf-b884-43a9e591ea71",
- "originalTimestamp": "2019-10-14T11:15:18.299Z",
- "anonymousId": "00000000000000000000000000",
- "userId": "12345",
- "properties": {
- "path": "/abc",
- "referrer": "q",
- "search": "",
- "title": "a",
- "url": "https://www.example.com/abc"
- },
- "integrations": {
- "All": true
- },
- "name": "ApplicationLoaded",
- "sentAt": "2019-10-14T11:15:53.296Z"
- },
- "destination": {
- "Config": {
- "trackingID": "UA-165994240-1",
- "doubleClick": true,
- "enhancedLinkAttribution": true,
- "classic": true,
- "ignoredReferrers": "",
- "serverClassic": false,
- "includeSearch": true,
- "trackCategorizedPages": true,
- "trackNamedPages": true,
- "sampleRate": "100",
- "siteSpeedSampleRate": "1",
- "setAllMappedProps": true,
- "enableServerSideIdentify": true,
- "serverSideIdentifyEventCategory": "cat1",
- "serverSideIdentifyEventAction": "action1",
- "anonymizeIp": true,
- "domain": "domain",
- "enhancedEcommerce": true,
- "nonInteraction": true,
- "optimize": "abc123",
- "sendUserId": true,
- "useGoogleAmpClientId": true,
- "web-useNativeSDK": true,
- "dimensions": [
- {
- "from": "name",
- "to": "dimension1"
- },
- {
- "from": "custom2",
- "to": "dimension2"
- }
- ],
- "metrics": [
- {
- "from": "email",
- "to": "metric1"
- },
- {
- "from": "trait2",
- "to": "metric2"
- }
- ],
- "resetCustomDimensionsOnPage": [
- {
- "resetCustomDimensionsOnPage": "abc"
- },
- {
- "resetCustomDimensionsOnPage": "xyz"
- }
- ],
- "contentGroupings": [
- {
- "from": "plan",
- "to": "contentGroup1"
- },
- {
- "from": "prop2",
- "to": "contentGroup2"
- }
- ]
- },
- "Enabled": true
- }
- }
- ]
- }
- },
- "output": {
- "response": {
- "status": 200,
- "body": [
- {
- "output": {
- "version": "1",
- "type": "REST",
- "method": "POST",
- "endpoint": "https://www.google-analytics.com/collect",
- "headers": {},
- "params": {
- "v": "1",
- "t": "pageview",
- "tid": "UA-165994240-1",
- "ds": "web",
- "an": "RudderLabs JavaScript SDK",
- "av": "1.0.0",
- "aiid": "com.rudderlabs.javascript",
- "npa": 1,
- "aip": 1,
- "cid": "00000000000000000000000000",
- "ua": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36",
- "uid": "12345",
- "uip": "0.0.0.0",
- "ul": "en-US",
- "dh": "www.example.com",
- "dl": "https://www.example.com/abc",
- "dp": "%2Fabc",
- "dr": "q",
- "dt": "a",
- "qt": 124893881701
- },
- "body": {
- "JSON": {},
- "XML": {},
- "JSON_ARRAY": {},
- "FORM": {}
- },
- "files": {},
- "userId": "00000000000000000000000000"
- },
- "statusCode": 200
- }
- ]
- }
- }
- },
- {
- "name": "ga",
- "description": "Test 3",
- "feature": "processor",
- "module": "destination",
- "version": "v0",
- "input": {
- "request": {
- "body": [
- {
- "message": {
- "channel": "web",
- "context": {
- "app": {
- "build": "1.0.0",
- "name": "RudderLabs JavaScript SDK",
- "namespace": "com.rudderlabs.javascript",
- "version": "1.0.0"
- },
- "traits": {
- "email": "test@rudderstack.com"
- },
- "library": {
- "name": "RudderLabs JavaScript SDK",
- "version": "1.0.0"
- },
- "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36",
- "locale": "en-US",
- "os": {
- "name": "",
- "version": ""
- },
- "screen": {
- "density": 2
- }
- },
- "type": "track",
- "messageId": "ec5481b6-a926-4d2e-b293-0b3a77c4d3be",
- "originalTimestamp": "2019-10-14T11:15:18.300Z",
- "anonymousId": "00000000000000000000000000",
- "userId": "12345",
- "event": "test track event GA3",
- "properties": {
- "category": "test-category",
- "user_actual_role": "system_admin, system_user",
- "user_actual_id": 12345
- },
- "integrations": {
- "All": true
- },
- "sentAt": "2019-10-14T11:15:53.296Z"
- },
- "destination": {
- "Config": {
- "trackingID": "UA-165994240-1",
- "doubleClick": true,
- "enhancedLinkAttribution": true,
- "classic": true,
- "ignoredReferrers": "",
- "serverClassic": false,
- "includeSearch": true,
- "trackCategorizedPages": true,
- "trackNamedPages": true,
- "sampleRate": "100",
- "siteSpeedSampleRate": "1",
- "setAllMappedProps": true,
- "enableServerSideIdentify": true,
- "serverSideIdentifyEventCategory": "cat1",
- "serverSideIdentifyEventAction": "action1",
- "anonymizeIp": true,
- "domain": "domain",
- "enhancedEcommerce": true,
- "nonInteraction": true,
- "optimize": "abc123",
- "sendUserId": true,
- "useGoogleAmpClientId": true,
- "web-useNativeSDK": true,
- "dimensions": [
- {
- "from": "name",
- "to": "dimension1"
- },
- {
- "from": "custom2",
- "to": "dimension2"
- }
- ],
- "metrics": [
- {
- "from": "email",
- "to": "metric1"
- },
- {
- "from": "trait2",
- "to": "metric2"
- }
- ],
- "resetCustomDimensionsOnPage": [
- {
- "resetCustomDimensionsOnPage": "abc"
- },
- {
- "resetCustomDimensionsOnPage": "xyz"
- }
- ],
- "contentGroupings": [
- {
- "from": "plan",
- "to": "contentGroup1"
- },
- {
- "from": "prop2",
- "to": "contentGroup2"
- }
- ]
- },
- "Enabled": true
- }
- }
- ]
- }
- },
- "output": {
- "response": {
- "status": 200,
- "body": [
- {
- "output": {
- "version": "1",
- "type": "REST",
- "method": "POST",
- "endpoint": "https://www.google-analytics.com/collect",
- "headers": {},
- "params": {
- "ec": "test-category",
- "ni": 1,
- "v": "1",
- "el": "event",
- "t": "event",
- "tid": "UA-165994240-1",
- "ds": "web",
- "an": "RudderLabs JavaScript SDK",
- "av": "1.0.0",
- "aiid": "com.rudderlabs.javascript",
- "npa": 1,
- "aip": 1,
- "cid": "00000000000000000000000000",
- "ea": "test track event GA3",
- "ua": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36",
- "uid": "12345",
- "ul": "en-US",
- "qt": 124893881700
- },
- "body": {
- "JSON": {},
- "XML": {},
- "JSON_ARRAY": {},
- "FORM": {}
- },
- "files": {},
- "userId": "00000000000000000000000000"
- },
- "statusCode": 200
- }
- ]
- }
- }
- },
- {
- "name": "ga",
- "description": "Test 4",
- "feature": "processor",
- "module": "destination",
- "version": "v0",
- "input": {
- "request": {
- "body": [
- {
- "message": {
- "channel": "web",
- "context": {
- "app": {
- "build": "1.0.0",
- "name": "RudderLabs JavaScript SDK",
- "namespace": "com.rudderlabs.javascript",
- "version": "1.0.0"
- },
- "traits": {
- "email": "test@rudderstack.com"
- },
- "library": {
- "name": "RudderLabs JavaScript SDK",
- "version": "1.0.0"
- },
- "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36",
- "locale": "en-US",
- "os": {
- "name": "",
- "version": ""
- },
- "screen": {
- "density": 2
- }
- },
- "type": "track",
- "messageId": "ec5481b6-a926-4d2e-b293-0b3a77c4d3be",
- "originalTimestamp": "2019-10-14T11:15:18.300Z",
- "anonymousId": "00000000000000000000000000",
- "userId": "12345",
- "event": "order completed",
- "properties": {
- "order_id": "rudderstackorder1",
- "total": 99.99,
- "shipping": 13.99,
- "tax": 20.99,
- "currency": "INR",
- "products": [
- {
- "quantity": 1,
- "price": 24.75,
- "name": "my product",
- "sku": "p-298"
- },
- {
- "quantity": 3,
- "price": 24.75,
- "name": "other product",
- "sku": "p-299"
- }
- ]
- },
- "integrations": {
- "All": true
- },
- "sentAt": "2019-10-14T11:15:53.296Z"
- },
- "destination": {
- "Config": {
- "trackingID": "UA-165994240-1",
- "doubleClick": true,
- "enhancedLinkAttribution": true,
- "classic": true,
- "ignoredReferrers": "",
- "serverClassic": false,
- "includeSearch": true,
- "trackCategorizedPages": true,
- "trackNamedPages": true,
- "sampleRate": "100",
- "siteSpeedSampleRate": "1",
- "setAllMappedProps": true,
- "enableServerSideIdentify": true,
- "serverSideIdentifyEventCategory": "cat1",
- "serverSideIdentifyEventAction": "action1",
- "anonymizeIp": true,
- "domain": "domain",
- "enhancedEcommerce": true,
- "nonInteraction": true,
- "optimize": "abc123",
- "sendUserId": true,
- "useGoogleAmpClientId": true,
- "web-useNativeSDK": true,
- "dimensions": [
- {
- "from": "name",
- "to": "dimension1"
- },
- {
- "from": "custom2",
- "to": "dimension2"
- }
- ],
- "metrics": [
- {
- "from": "email",
- "to": "metric1"
- },
- {
- "from": "trait2",
- "to": "metric2"
- }
- ],
- "resetCustomDimensionsOnPage": [
- {
- "resetCustomDimensionsOnPage": "abc"
- },
- {
- "resetCustomDimensionsOnPage": "xyz"
- }
- ],
- "contentGroupings": [
- {
- "from": "plan",
- "to": "contentGroup1"
- },
- {
- "from": "prop2",
- "to": "contentGroup2"
- }
- ]
- },
- "Enabled": true
- }
- }
- ]
- }
- },
- "output": {
- "response": {
- "status": 200,
- "body": [
- {
- "output": {
- "version": "1",
- "type": "REST",
- "method": "POST",
- "endpoint": "https://www.google-analytics.com/collect",
- "headers": {},
- "params": {
- "pa": "purchase",
- "tr": 99.99,
- "ev": 100,
- "pr1id": "p-298",
- "pr1cd1": "my product",
- "pr1nm": "my product",
- "pr1pr": 24.75,
- "pr2id": "p-299",
- "pr2cd1": "other product",
- "pr2nm": "other product",
- "pr2pr": 24.75,
- "ea": "order completed",
- "ec": "EnhancedEcommerce",
- "v": "1",
- "t": "event",
- "el": "event",
- "tid": "UA-165994240-1",
- "ds": "web",
- "an": "RudderLabs JavaScript SDK",
- "av": "1.0.0",
- "aiid": "com.rudderlabs.javascript",
- "npa": 1,
- "aip": 1,
- "cid": "00000000000000000000000000",
- "ti": "rudderstackorder1",
- "ts": 13.99,
- "tt": 20.99,
- "cu": "INR",
- "ua": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36",
- "uid": "12345",
- "ni": 1,
- "pr1qt": 1,
- "pr2qt": 3,
- "ul": "en-US",
- "qt": 124893881700
- },
- "body": {
- "JSON": {},
- "XML": {},
- "JSON_ARRAY": {},
- "FORM": {}
- },
- "files": {},
- "userId": "00000000000000000000000000"
- },
- "statusCode": 200
- }
- ]
- }
- }
- },
- {
- "name": "ga",
- "description": "Test 5",
- "feature": "processor",
- "module": "destination",
- "version": "v0",
- "input": {
- "request": {
- "body": [
- {
- "message": {
- "channel": "web",
- "context": {
- "app": {
- "build": "1.0.0",
- "name": "RudderLabs JavaScript SDK",
- "namespace": "com.rudderlabs.javascript",
- "version": "1.0.0"
- },
- "traits": {
- "email": "test@rudderstack.com"
- },
- "library": {
- "name": "RudderLabs JavaScript SDK",
- "version": "1.0.0"
- },
- "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36",
- "locale": "en-US",
- "os": {
- "name": "",
- "version": ""
- },
- "screen": {
- "density": 2
- }
- },
- "type": "track",
- "messageId": "ec5481b6-a926-4d2e-b293-0b3a77c4d3be",
- "originalTimestamp": "2019-10-14T11:15:18.300Z",
- "anonymousId": "00000000000000000000000000",
- "userId": "12345",
- "event": "product added",
- "properties": {
- "currency": "CAD",
- "quantity": 1,
- "price": 24.75,
- "name": "my product 1",
- "category": "cat 1",
- "sku": "p-298",
- "testDimension": true,
- "testMetric": true,
- "position": 4.5
- },
- "integrations": {
- "All": true
- },
- "sentAt": "2019-10-14T11:15:53.296Z"
- },
- "destination": {
- "Config": {
- "trackingID": "UA-165994240-1",
- "doubleClick": true,
- "enhancedLinkAttribution": true,
- "classic": true,
- "ignoredReferrers": "",
- "serverClassic": false,
- "includeSearch": true,
- "trackCategorizedPages": true,
- "trackNamedPages": true,
- "sampleRate": "100",
- "siteSpeedSampleRate": "1",
- "setAllMappedProps": true,
- "enableServerSideIdentify": true,
- "serverSideIdentifyEventCategory": "cat1",
- "serverSideIdentifyEventAction": "action1",
- "anonymizeIp": true,
- "domain": "domain",
- "enhancedEcommerce": true,
- "nonInteraction": true,
- "optimize": "abc123",
- "sendUserId": true,
- "useGoogleAmpClientId": true,
- "web-useNativeSDK": true,
- "dimensions": [
- {
- "from": "name",
- "to": "dimension1"
- },
- {
- "from": "custom2",
- "to": "dimension2"
- }
- ],
- "metrics": [
- {
- "from": "email",
- "to": "metric1"
- },
- {
- "from": "trait2",
- "to": "metric2"
- }
- ],
- "resetCustomDimensionsOnPage": [
- {
- "resetCustomDimensionsOnPage": "abc"
- },
- {
- "resetCustomDimensionsOnPage": "xyz"
- }
- ],
- "contentGroupings": [
- {
- "from": "plan",
- "to": "contentGroup1"
- },
- {
- "from": "prop2",
- "to": "contentGroup2"
- }
- ]
- },
- "Enabled": true
- }
- }
- ]
- }
- },
- "output": {
- "response": {
- "status": 200,
- "body": [
- {
- "output": {
- "version": "1",
- "type": "REST",
- "method": "POST",
- "endpoint": "https://www.google-analytics.com/collect",
- "headers": {},
- "params": {
- "ea": "product added",
- "ec": "cat 1",
- "pa": "add",
- "pr1cd1": "my product 1",
- "pr1id": "p-298",
- "cd1": "my product 1",
- "v": "1",
- "t": "event",
- "el": "event",
- "tid": "UA-165994240-1",
- "ds": "web",
- "an": "RudderLabs JavaScript SDK",
- "av": "1.0.0",
- "aiid": "com.rudderlabs.javascript",
- "npa": 1,
- "aip": 1,
- "cid": "00000000000000000000000000",
- "pr1nm": "my product 1",
- "pr1ca": "cat 1",
- "cu": "CAD",
- "pr1ps": 4.5,
- "pr1pr": 24.75,
- "pr1qt": 1,
- "ua": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36",
- "uid": "12345",
- "ni": 1,
- "ul": "en-US",
- "qt": 124893881700
- },
- "body": {
- "JSON": {},
- "XML": {},
- "JSON_ARRAY": {},
- "FORM": {}
- },
- "files": {},
- "userId": "00000000000000000000000000"
- },
- "statusCode": 200
- }
- ]
- }
- }
- },
- {
- "name": "ga",
- "description": "Test 6",
- "feature": "processor",
- "module": "destination",
- "version": "v0",
- "input": {
- "request": {
- "body": [
- {
- "message": {
- "channel": "web",
- "context": {
- "app": {
- "build": "1.0.0",
- "name": "RudderLabs JavaScript SDK",
- "namespace": "com.rudderlabs.javascript",
- "version": "1.0.0"
- },
- "traits": {
- "email": "test@rudderstack.com"
- },
- "library": {
- "name": "RudderLabs JavaScript SDK",
- "version": "1.0.0"
- },
- "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36",
- "locale": "en-US",
- "os": {
- "name": "",
- "version": ""
- },
- "screen": {
- "density": 2
- }
- },
- "type": "track",
- "messageId": "ec5481b6-a926-4d2e-b293-0b3a77c4d3be",
- "originalTimestamp": "2019-10-14T11:15:18.300Z",
- "anonymousId": "00000000000000000000000000",
- "userId": "12345",
- "event": "product removed",
- "properties": {
- "currency": "CAD",
- "quantity": 1,
- "price": 24.75,
- "name": "my product 1",
- "category": "cat 1",
- "sku": "p-298",
- "testDimension": true,
- "testMetric": true,
- "position": 4.5
- },
- "integrations": {
- "All": true
- },
- "sentAt": "2019-10-14T11:15:53.296Z"
- },
- "destination": {
- "Config": {
- "trackingID": "UA-165994240-1",
- "doubleClick": true,
- "enhancedLinkAttribution": true,
- "classic": true,
- "ignoredReferrers": "",
- "serverClassic": false,
- "includeSearch": true,
- "trackCategorizedPages": true,
- "trackNamedPages": true,
- "sampleRate": "100",
- "siteSpeedSampleRate": "1",
- "setAllMappedProps": true,
- "enableServerSideIdentify": true,
- "serverSideIdentifyEventCategory": "cat1",
- "serverSideIdentifyEventAction": "action1",
- "anonymizeIp": true,
- "domain": "domain",
- "enhancedEcommerce": true,
- "nonInteraction": true,
- "optimize": "abc123",
- "sendUserId": true,
- "useGoogleAmpClientId": true,
- "web-useNativeSDK": true,
- "dimensions": [
- {
- "from": "name",
- "to": "dimension1"
- },
- {
- "from": "custom2",
- "to": "dimension2"
- }
- ],
- "metrics": [
- {
- "from": "email",
- "to": "metric1"
- },
- {
- "from": "trait2",
- "to": "metric2"
- }
- ],
- "resetCustomDimensionsOnPage": [
- {
- "resetCustomDimensionsOnPage": "abc"
- },
- {
- "resetCustomDimensionsOnPage": "xyz"
- }
- ],
- "contentGroupings": [
- {
- "from": "plan",
- "to": "contentGroup1"
- },
- {
- "from": "prop2",
- "to": "contentGroup2"
- }
- ]
- },
- "Enabled": true
- }
- }
- ]
- }
- },
- "output": {
- "response": {
- "status": 200,
- "body": [
- {
- "output": {
- "version": "1",
- "type": "REST",
- "method": "POST",
- "endpoint": "https://www.google-analytics.com/collect",
- "headers": {},
- "params": {
- "ea": "product removed",
- "ec": "cat 1",
- "pa": "remove",
- "pr1cd1": "my product 1",
- "pr1id": "p-298",
- "cd1": "my product 1",
- "v": "1",
- "t": "event",
- "el": "event",
- "tid": "UA-165994240-1",
- "ds": "web",
- "an": "RudderLabs JavaScript SDK",
- "av": "1.0.0",
- "aiid": "com.rudderlabs.javascript",
- "npa": 1,
- "aip": 1,
- "cid": "00000000000000000000000000",
- "pr1nm": "my product 1",
- "pr1ca": "cat 1",
- "cu": "CAD",
- "pr1ps": 4.5,
- "pr1pr": 24.75,
- "pr1qt": 1,
- "ua": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36",
- "uid": "12345",
- "ul": "en-US",
- "ni": 1,
- "qt": 124893881700
- },
- "body": {
- "JSON": {},
- "XML": {},
- "JSON_ARRAY": {},
- "FORM": {}
- },
- "files": {},
- "userId": "00000000000000000000000000"
- },
- "statusCode": 200
- }
- ]
- }
- }
- },
- {
- "name": "ga",
- "description": "Test 7",
- "feature": "processor",
- "module": "destination",
- "version": "v0",
- "input": {
- "request": {
- "body": [
- {
- "message": {
- "channel": "web",
- "context": {
- "app": {
- "build": "1.0.0",
- "name": "RudderLabs JavaScript SDK",
- "namespace": "com.rudderlabs.javascript",
- "version": "1.0.0"
- },
- "traits": {
- "email": "test@rudderstack.com"
- },
- "library": {
- "name": "RudderLabs JavaScript SDK",
- "version": "1.0.0"
- },
- "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36",
- "locale": "en-US",
- "os": {
- "name": "",
- "version": ""
- },
- "screen": {
- "density": 2
- }
- },
- "type": "track",
- "messageId": "ec5481b6-a926-4d2e-b293-0b3a77c4d3be",
- "originalTimestamp": "2019-10-14T11:15:18.300Z",
- "anonymousId": "00000000000000000000000000",
- "userId": "12345",
- "event": "product viewed",
- "properties": {
- "currency": "CAD",
- "quantity": 1,
- "price": 24.75,
- "name": "my product 1",
- "category": "cat 1",
- "sku": "p-298",
- "testDimension": true,
- "testMetric": true,
- "position": 4.5
- },
- "integrations": {
- "All": true
- },
- "sentAt": "2019-10-14T11:15:53.296Z"
- },
- "destination": {
- "Config": {
- "trackingID": "UA-165994240-1",
- "doubleClick": true,
- "enhancedLinkAttribution": true,
- "classic": true,
- "ignoredReferrers": "",
- "serverClassic": false,
- "includeSearch": true,
- "trackCategorizedPages": true,
- "trackNamedPages": true,
- "sampleRate": "100",
- "siteSpeedSampleRate": "1",
- "setAllMappedProps": true,
- "enableServerSideIdentify": true,
- "serverSideIdentifyEventCategory": "cat1",
- "serverSideIdentifyEventAction": "action1",
- "anonymizeIp": true,
- "domain": "domain",
- "enhancedEcommerce": true,
- "nonInteraction": true,
- "optimize": "abc123",
- "sendUserId": true,
- "useGoogleAmpClientId": true,
- "web-useNativeSDK": true,
- "dimensions": [
- {
- "from": "name",
- "to": "dimension1"
- },
- {
- "from": "custom2",
- "to": "dimension2"
- }
- ],
- "metrics": [
- {
- "from": "email",
- "to": "metric1"
- },
- {
- "from": "trait2",
- "to": "metric2"
- }
- ],
- "resetCustomDimensionsOnPage": [
- {
- "resetCustomDimensionsOnPage": "abc"
- },
- {
- "resetCustomDimensionsOnPage": "xyz"
- }
- ],
- "contentGroupings": [
- {
- "from": "plan",
- "to": "contentGroup1"
- },
- {
- "from": "prop2",
- "to": "contentGroup2"
- }
- ]
- },
- "Enabled": true
- }
- }
- ]
- }
- },
- "output": {
- "response": {
- "status": 200,
- "body": [
- {
- "output": {
- "version": "1",
- "type": "REST",
- "method": "POST",
- "endpoint": "https://www.google-analytics.com/collect",
- "headers": {},
- "params": {
- "ea": "product viewed",
- "ec": "cat 1",
- "pa": "detail",
- "pr1cd1": "my product 1",
- "pr1id": "p-298",
- "cd1": "my product 1",
- "v": "1",
- "t": "event",
- "el": "event",
- "tid": "UA-165994240-1",
- "ds": "web",
- "an": "RudderLabs JavaScript SDK",
- "av": "1.0.0",
- "aiid": "com.rudderlabs.javascript",
- "npa": 1,
- "aip": 1,
- "cid": "00000000000000000000000000",
- "pr1nm": "my product 1",
- "pr1ca": "cat 1",
- "cu": "CAD",
- "pr1ps": 4.5,
- "pr1pr": 24.75,
- "pr1qt": 1,
- "ua": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36",
- "uid": "12345",
- "ul": "en-US",
- "ni": 1,
- "qt": 124893881700
- },
- "body": {
- "JSON": {},
- "XML": {},
- "JSON_ARRAY": {},
- "FORM": {}
- },
- "files": {},
- "userId": "00000000000000000000000000"
- },
- "statusCode": 200
- }
- ]
- }
- }
- },
- {
- "name": "ga",
- "description": "Test 8",
- "feature": "processor",
- "module": "destination",
- "version": "v0",
- "input": {
- "request": {
- "body": [
- {
- "message": {
- "channel": "web",
- "context": {
- "app": {
- "build": "1.0.0",
- "name": "RudderLabs JavaScript SDK",
- "namespace": "com.rudderlabs.javascript",
- "version": "1.0.0"
- },
- "traits": {
- "email": "test@rudderstack.com"
- },
- "library": {
- "name": "RudderLabs JavaScript SDK",
- "version": "1.0.0"
- },
- "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36",
- "locale": "en-US",
- "os": {
- "name": "",
- "version": ""
- },
- "screen": {
- "density": 2
- }
- },
- "type": "track",
- "messageId": "ec5481b6-a926-4d2e-b293-0b3a77c4d3be",
- "originalTimestamp": "2019-10-14T11:15:18.299Z",
- "anonymousId": "00000000000000000000000000",
- "userId": "12345",
- "event": "product removed",
- "properties": {
- "currency": "CAD",
- "quantity": 1,
- "price": 24.75,
- "name": "my product 1",
- "category": "cat 1",
- "sku": "p-298",
- "testDimension": true,
- "testMetric": true,
- "position": 4.5
- },
- "integrations": {
- "All": true
- },
- "sentAt": "2019-10-14T11:15:53.296Z"
- },
- "destination": {
- "Config": {
- "trackingID": "UA-165994240-1",
- "doubleClick": true,
- "enhancedLinkAttribution": true,
- "classic": true,
- "ignoredReferrers": "",
- "serverClassic": false,
- "includeSearch": true,
- "trackCategorizedPages": true,
- "trackNamedPages": true,
- "sampleRate": "100",
- "siteSpeedSampleRate": "1",
- "setAllMappedProps": true,
- "enableServerSideIdentify": true,
- "serverSideIdentifyEventCategory": "cat1",
- "serverSideIdentifyEventAction": "action1",
- "anonymizeIp": true,
- "domain": "domain",
- "enhancedEcommerce": true,
- "nonInteraction": true,
- "optimize": "abc123",
- "sendUserId": true,
- "useGoogleAmpClientId": true,
- "web-useNativeSDK": true,
- "dimensions": [
- {
- "from": "name",
- "to": "dimension1"
- },
- {
- "from": "custom2",
- "to": "dimension2"
- }
- ],
- "metrics": [
- {
- "from": "email",
- "to": "metric1"
- },
- {
- "from": "trait2",
- "to": "metric2"
- }
- ],
- "resetCustomDimensionsOnPage": [
- {
- "resetCustomDimensionsOnPage": "abc"
- },
- {
- "resetCustomDimensionsOnPage": "xyz"
- }
- ],
- "contentGroupings": [
- {
- "from": "plan",
- "to": "contentGroup1"
- },
- {
- "from": "prop2",
- "to": "contentGroup2"
- }
- ]
- },
- "Enabled": true
- }
- }
- ]
- }
- },
- "output": {
- "response": {
- "status": 200,
- "body": [
- {
- "output": {
- "version": "1",
- "type": "REST",
- "method": "POST",
- "endpoint": "https://www.google-analytics.com/collect",
- "headers": {},
- "params": {
- "ea": "product removed",
- "ec": "cat 1",
- "pa": "remove",
- "pr1cd1": "my product 1",
- "pr1id": "p-298",
- "cd1": "my product 1",
- "v": "1",
- "t": "event",
- "el": "event",
- "tid": "UA-165994240-1",
- "ds": "web",
- "an": "RudderLabs JavaScript SDK",
- "av": "1.0.0",
- "aiid": "com.rudderlabs.javascript",
- "npa": 1,
- "aip": 1,
- "cid": "00000000000000000000000000",
- "pr1nm": "my product 1",
- "pr1ca": "cat 1",
- "cu": "CAD",
- "pr1ps": 4.5,
- "pr1pr": 24.75,
- "pr1qt": 1,
- "ua": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36",
- "uid": "12345",
- "ul": "en-US",
- "ni": 1,
- "qt": 124893881701
- },
- "body": {
- "JSON": {},
- "XML": {},
- "JSON_ARRAY": {},
- "FORM": {}
- },
- "files": {},
- "userId": "00000000000000000000000000"
- },
- "statusCode": 200
- }
- ]
- }
- }
- },
- {
- "name": "ga",
- "description": "Test 9",
- "feature": "processor",
- "module": "destination",
- "version": "v0",
- "input": {
- "request": {
- "body": [
- {
- "message": {
- "channel": "web",
- "context": {
- "app": {
- "build": "1.0.0",
- "name": "RudderLabs JavaScript SDK",
- "namespace": "com.rudderlabs.javascript",
- "version": "1.0.0"
- },
- "traits": {
- "email": "test@rudderstack.com"
- },
- "library": {
- "name": "RudderLabs JavaScript SDK",
- "version": "1.0.0"
- },
- "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36",
- "locale": "en-US",
- "os": {
- "name": "",
- "version": ""
- },
- "screen": {
- "density": 2
- }
- },
- "type": "track",
- "messageId": "ec5481b6-a926-4d2e-b293-0b3a77c4d3be",
- "originalTimestamp": "2019-10-14T11:15:18.300Z",
- "anonymousId": "00000000000000000000000000",
- "userId": "12345",
- "event": "product viewed",
- "properties": {
- "currency": "CAD",
- "quantity": 1,
- "price": 24.75,
- "name": "my product 1",
- "category": "cat 1",
- "sku": "p-298",
- "testDimension": true,
- "testMetric": true,
- "position": 4.5
- },
- "integrations": {
- "All": true
- },
- "sentAt": "2019-10-14T11:15:53.296Z"
- },
- "destination": {
- "Config": {
- "trackingID": "UA-165994240-1",
- "doubleClick": true,
- "enhancedLinkAttribution": true,
- "classic": true,
- "ignoredReferrers": "",
- "serverClassic": false,
- "includeSearch": true,
- "trackCategorizedPages": true,
- "trackNamedPages": true,
- "sampleRate": "100",
- "siteSpeedSampleRate": "1",
- "setAllMappedProps": true,
- "enableServerSideIdentify": true,
- "serverSideIdentifyEventCategory": "cat1",
- "serverSideIdentifyEventAction": "action1",
- "anonymizeIp": true,
- "domain": "domain",
- "enhancedEcommerce": true,
- "nonInteraction": true,
- "optimize": "abc123",
- "sendUserId": true,
- "useGoogleAmpClientId": true,
- "web-useNativeSDK": true,
- "dimensions": [
- {
- "from": "name",
- "to": "dimension1"
- },
- {
- "from": "custom2",
- "to": "dimension2"
- }
- ],
- "metrics": [
- {
- "from": "email",
- "to": "metric1"
- },
- {
- "from": "trait2",
- "to": "metric2"
- }
- ],
- "resetCustomDimensionsOnPage": [
- {
- "resetCustomDimensionsOnPage": "abc"
- },
- {
- "resetCustomDimensionsOnPage": "xyz"
- }
- ],
- "contentGroupings": [
- {
- "from": "plan",
- "to": "contentGroup1"
- },
- {
- "from": "prop2",
- "to": "contentGroup2"
- }
- ]
- },
- "Enabled": true
- }
- }
- ]
- }
- },
- "output": {
- "response": {
- "status": 200,
- "body": [
- {
- "output": {
- "version": "1",
- "type": "REST",
- "method": "POST",
- "endpoint": "https://www.google-analytics.com/collect",
- "headers": {},
- "params": {
- "ea": "product viewed",
- "ec": "cat 1",
- "pa": "detail",
- "pr1cd1": "my product 1",
- "pr1id": "p-298",
- "cd1": "my product 1",
- "v": "1",
- "t": "event",
- "el": "event",
- "tid": "UA-165994240-1",
- "ds": "web",
- "an": "RudderLabs JavaScript SDK",
- "av": "1.0.0",
- "aiid": "com.rudderlabs.javascript",
- "npa": 1,
- "aip": 1,
- "cid": "00000000000000000000000000",
- "pr1nm": "my product 1",
- "pr1ca": "cat 1",
- "cu": "CAD",
- "pr1ps": 4.5,
- "pr1pr": 24.75,
- "pr1qt": 1,
- "ua": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36",
- "uid": "12345",
- "ul": "en-US",
- "ni": 1,
- "qt": 124893881700
- },
- "body": {
- "JSON": {},
- "XML": {},
- "JSON_ARRAY": {},
- "FORM": {}
- },
- "files": {},
- "userId": "00000000000000000000000000"
- },
- "statusCode": 200
- }
- ]
- }
- }
- },
- {
- "name": "ga",
- "description": "Test 10",
- "feature": "processor",
- "module": "destination",
- "version": "v0",
- "input": {
- "request": {
- "body": [
- {
- "message": {
- "channel": "web",
- "context": {
- "app": {
- "build": "1.0.0",
- "name": "RudderLabs JavaScript SDK",
- "namespace": "com.rudderlabs.javascript",
- "version": "1.0.0"
- },
- "traits": {
- "email": "test@rudderstack.com"
- },
- "library": {
- "name": "RudderLabs JavaScript SDK",
- "version": "1.0.0"
- },
- "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36",
- "locale": "en-US",
- "os": {
- "name": "",
- "version": ""
- },
- "screen": {
- "density": 2
- }
- },
- "type": "track",
- "messageId": "ec5481b6-a926-4d2e-b293-0b3a77c4d3be",
- "originalTimestamp": "2019-10-14T11:15:18.300Z",
- "anonymousId": "00000000000000000000000000",
- "userId": "12345",
- "event": "product list filtered",
- "properties": {
- "category": "cat 1",
- "list_id": "1234",
- "filters": [
- {
- "type": "department",
- "value": "beauty"
- },
- {
- "type": "price",
- "value": "under"
- }
- ],
- "sorts": [
- {
- "type": "price",
- "value": "desc"
- }
- ],
- "products": [
- {
- "product_id": "507f1f77bcf86cd799439011",
- "productDimension": "My Product Dimension",
- "productMetric": "My Product Metric"
- }
- ],
- "testDimension": true,
- "testMetric": true
- },
- "integrations": {
- "All": true
- },
- "sentAt": "2019-10-14T11:15:53.296Z"
- },
- "destination": {
- "Config": {
- "trackingID": "UA-165994240-1",
- "doubleClick": true,
- "enhancedLinkAttribution": true,
- "classic": true,
- "ignoredReferrers": "",
- "serverClassic": false,
- "includeSearch": true,
- "trackCategorizedPages": true,
- "trackNamedPages": true,
- "sampleRate": "100",
- "siteSpeedSampleRate": "1",
- "setAllMappedProps": true,
- "enableServerSideIdentify": true,
- "serverSideIdentifyEventCategory": "cat1",
- "serverSideIdentifyEventAction": "action1",
- "anonymizeIp": true,
- "domain": "domain",
- "enhancedEcommerce": true,
- "nonInteraction": true,
- "optimize": "abc123",
- "sendUserId": true,
- "useGoogleAmpClientId": true,
- "web-useNativeSDK": true,
- "dimensions": [
- {
- "from": "name",
- "to": "dimension1"
- },
- {
- "from": "custom2",
- "to": "dimension2"
- }
- ],
- "metrics": [
- {
- "from": "email",
- "to": "metric1"
- },
- {
- "from": "trait2",
- "to": "metric2"
- }
- ],
- "resetCustomDimensionsOnPage": [
- {
- "resetCustomDimensionsOnPage": "abc"
- },
- {
- "resetCustomDimensionsOnPage": "xyz"
- }
- ],
- "contentGroupings": [
- {
- "from": "plan",
- "to": "contentGroup1"
- },
- {
- "from": "prop2",
- "to": "contentGroup2"
- }
- ]
- },
- "Enabled": true
- }
- }
- ]
- }
- },
- "output": {
- "response": {
- "status": 200,
- "body": [
- {
- "output": {
- "version": "1",
- "type": "REST",
- "method": "POST",
- "endpoint": "https://www.google-analytics.com/collect",
- "headers": {},
- "params": {
- "ea": "product list filtered",
- "ec": "cat 1",
- "pa": "detail",
- "il1pi1id": "507f1f77bcf86cd799439011",
- "v": "1",
- "t": "event",
- "el": "event",
- "tid": "UA-165994240-1",
- "ds": "web",
- "an": "RudderLabs JavaScript SDK",
- "av": "1.0.0",
- "aiid": "com.rudderlabs.javascript",
- "npa": 1,
- "aip": 1,
- "il1nm": "1234",
- "ua": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36",
- "cid": "00000000000000000000000000",
- "uid": "12345",
- "il1pi1qt": 1,
- "il1pi1va": "department:beauty,price:under::price:desc",
- "ul": "en-US",
- "ni": 1,
- "qt": 124893881700
- },
- "body": {
- "JSON": {},
- "XML": {},
- "JSON_ARRAY": {},
- "FORM": {}
- },
- "files": {},
- "userId": "00000000000000000000000000"
- },
- "statusCode": 200
- }
- ]
- }
- }
- },
- {
- "name": "ga",
- "description": "Test 11",
- "feature": "processor",
- "module": "destination",
- "version": "v0",
- "input": {
- "request": {
- "body": [
- {
- "message": {
- "channel": "web",
- "context": {
- "app": {
- "build": "1.0.0",
- "name": "RudderLabs JavaScript SDK",
- "namespace": "com.rudderlabs.javascript",
- "version": "1.0.0"
- },
- "traits": {
- "email": "test@rudderstack.com"
- },
- "library": {
- "name": "RudderLabs JavaScript SDK",
- "version": "1.0.0"
- },
- "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36",
- "locale": "en-US",
- "os": {
- "name": "",
- "version": ""
- },
- "screen": {
- "density": 2
- }
- },
- "type": "track",
- "messageId": "ec5481b6-a926-4d2e-b293-0b3a77c4d3be",
- "originalTimestamp": "2019-10-14T11:15:18.300Z",
- "anonymousId": "00000000000000000000000000",
- "userId": "12345",
- "event": "product list viewed",
- "properties": {
- "category": "cat 1",
- "list_id": "1234",
- "filters": [
- {
- "type": "department",
- "value": "beauty"
- },
- {
- "type": "price",
- "value": "under"
- }
- ],
- "sorts": [
- {
- "type": "price",
- "value": "desc"
- }
- ],
- "products": [
- {
- "product_id": "507f1f77bcf86cd799439011",
- "productDimension": "My Product Dimension",
- "productMetric": "My Product Metric",
- "position": 10
- },
- {
- "product_id": "507f1f77bcf86cdef799439011",
- "productDimension": "My Product Dimension1",
- "productMetric": "My Product Metric1",
- "position": -10
- }
- ],
- "testDimension": true,
- "testMetric": true
- },
- "integrations": {
- "All": true
- },
- "sentAt": "2019-10-14T11:15:53.296Z"
- },
- "destination": {
- "Config": {
- "trackingID": "UA-165994240-1",
- "doubleClick": true,
- "enhancedLinkAttribution": true,
- "classic": true,
- "ignoredReferrers": "",
- "serverClassic": false,
- "includeSearch": true,
- "trackCategorizedPages": true,
- "trackNamedPages": true,
- "sampleRate": "100",
- "siteSpeedSampleRate": "1",
- "setAllMappedProps": true,
- "enableServerSideIdentify": true,
- "serverSideIdentifyEventCategory": "cat1",
- "serverSideIdentifyEventAction": "action1",
- "anonymizeIp": true,
- "domain": "domain",
- "enhancedEcommerce": true,
- "nonInteraction": true,
- "optimize": "abc123",
- "sendUserId": true,
- "useGoogleAmpClientId": true,
- "web-useNativeSDK": true,
- "dimensions": [
- {
- "from": "name",
- "to": "dimension1"
- },
- {
- "from": "custom2",
- "to": "dimension2"
- }
- ],
- "metrics": [
- {
- "from": "email",
- "to": "metric1"
- },
- {
- "from": "trait2",
- "to": "metric2"
- }
- ],
- "resetCustomDimensionsOnPage": [
- {
- "resetCustomDimensionsOnPage": "abc"
- },
- {
- "resetCustomDimensionsOnPage": "xyz"
- }
- ],
- "contentGroupings": [
- {
- "from": "plan",
- "to": "contentGroup1"
- },
- {
- "from": "prop2",
- "to": "contentGroup2"
- }
- ]
- },
- "Enabled": true
- }
- }
- ]
- }
- },
- "output": {
- "response": {
- "status": 200,
- "body": [
- {
- "output": {
- "version": "1",
- "type": "REST",
- "method": "POST",
- "endpoint": "https://www.google-analytics.com/collect",
- "headers": {},
- "params": {
- "ea": "product list viewed",
- "ec": "cat 1",
- "pa": "detail",
- "il1pi1id": "507f1f77bcf86cd799439011",
- "il1pi1ps": 10,
- "il1pi2id": "507f1f77bcf86cdef799439011",
- "il1pi2ps": -10,
- "v": "1",
- "t": "event",
- "el": "event",
- "tid": "UA-165994240-1",
- "ds": "web",
- "an": "RudderLabs JavaScript SDK",
- "av": "1.0.0",
- "aiid": "com.rudderlabs.javascript",
- "npa": 1,
- "aip": 1,
- "il1nm": "1234",
- "ua": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36",
- "cid": "00000000000000000000000000",
- "uid": "12345",
- "il1pi1qt": 1,
- "il1pi1va": "department:beauty,price:under::price:desc",
- "il1pi2qt": 1,
- "il1pi2va": "department:beauty,price:under::price:desc",
- "ul": "en-US",
- "ni": 1,
- "qt": 124893881700
- },
- "body": {
- "JSON": {},
- "XML": {},
- "JSON_ARRAY": {},
- "FORM": {}
- },
- "files": {},
- "userId": "00000000000000000000000000"
- },
- "statusCode": 200
- }
- ]
- }
- }
- },
- {
- "name": "ga",
- "description": "Test 12",
- "feature": "processor",
- "module": "destination",
- "version": "v0",
- "input": {
- "request": {
- "body": [
- {
- "message": {
- "channel": "web",
- "context": {
- "app": {
- "build": "1.0.0",
- "name": "RudderLabs JavaScript SDK",
- "namespace": "com.rudderlabs.javascript",
- "version": "1.0.0"
- },
- "traits": {
- "email": "test@rudderstack.com"
- },
- "library": {
- "name": "RudderLabs JavaScript SDK",
- "version": "1.0.0"
- },
- "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36",
- "locale": "en-US",
- "os": {
- "name": "",
- "version": ""
- },
- "screen": {
- "density": 2
- }
- },
- "type": "track",
- "messageId": "ec5481b6-a926-4d2e-b293-0b3a77c4d3be",
- "originalTimestamp": "2019-10-14T11:15:18.300Z",
- "anonymousId": "00000000000000000000000000",
- "userId": "12345",
- "event": "product clicked",
- "properties": {
- "currency": "CAD",
- "quantity": 1,
- "price": 24.75,
- "name": "my product",
- "category": "cat 1",
- "sku": "p-298",
- "list": "search results",
- "testDimension": true,
- "testMetric": true
- },
- "integrations": {
- "All": true
- },
- "sentAt": "2019-10-14T11:15:53.296Z"
- },
- "destination": {
- "Config": {
- "trackingID": "UA-165994240-1",
- "doubleClick": true,
- "enhancedLinkAttribution": true,
- "classic": true,
- "ignoredReferrers": "",
- "serverClassic": false,
- "includeSearch": true,
- "trackCategorizedPages": true,
- "trackNamedPages": true,
- "sampleRate": "100",
- "siteSpeedSampleRate": "1",
- "setAllMappedProps": true,
- "enableServerSideIdentify": true,
- "serverSideIdentifyEventCategory": "cat1",
- "serverSideIdentifyEventAction": "action1",
- "anonymizeIp": true,
- "domain": "domain",
- "enhancedEcommerce": true,
- "nonInteraction": true,
- "optimize": "abc123",
- "sendUserId": true,
- "useGoogleAmpClientId": true,
- "web-useNativeSDK": true,
- "dimensions": [
- {
- "from": "name",
- "to": "dimension1"
- },
- {
- "from": "custom2",
- "to": "dimension2"
- }
- ],
- "metrics": [
- {
- "from": "email",
- "to": "metric1"
- },
- {
- "from": "trait2",
- "to": "metric2"
- }
- ],
- "resetCustomDimensionsOnPage": [
- {
- "resetCustomDimensionsOnPage": "abc"
- },
- {
- "resetCustomDimensionsOnPage": "xyz"
- }
- ],
- "contentGroupings": [
- {
- "from": "plan",
- "to": "contentGroup1"
- },
- {
- "from": "prop2",
- "to": "contentGroup2"
- }
- ]
- },
- "Enabled": true
- }
- }
- ]
- }
- },
- "output": {
- "response": {
- "status": 200,
- "body": [
- {
- "output": {
- "version": "1",
- "type": "REST",
- "method": "POST",
- "endpoint": "https://www.google-analytics.com/collect",
- "headers": {},
- "params": {
- "ea": "product clicked",
- "ec": "cat 1",
- "pa": "click",
- "pr1cd1": "my product",
- "pr1id": "p-298",
- "cd1": "my product",
- "v": "1",
- "t": "event",
- "el": "event",
- "tid": "UA-165994240-1",
- "ds": "web",
- "an": "RudderLabs JavaScript SDK",
- "av": "1.0.0",
- "aiid": "com.rudderlabs.javascript",
- "npa": 1,
- "aip": 1,
- "cid": "00000000000000000000000000",
- "pr1nm": "my product",
- "pr1ca": "cat 1",
- "cu": "CAD",
- "pr1pr": 24.75,
- "pr1qt": 1,
- "ua": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36",
- "uid": "12345",
- "pal": "search results",
- "ul": "en-US",
- "ni": 1,
- "qt": 124893881700
- },
- "body": {
- "JSON": {},
- "XML": {},
- "JSON_ARRAY": {},
- "FORM": {}
- },
- "files": {},
- "userId": "00000000000000000000000000"
- },
- "statusCode": 200
- }
- ]
- }
- }
- },
- {
- "name": "ga",
- "description": "Test 13",
- "feature": "processor",
- "module": "destination",
- "version": "v0",
- "input": {
- "request": {
- "body": [
- {
- "message": {
- "channel": "web",
- "context": {
- "app": {
- "build": "1.0.0",
- "name": "RudderLabs JavaScript SDK",
- "namespace": "com.rudderlabs.javascript",
- "version": "1.0.0"
- },
- "traits": {
- "email": "test@rudderstack.com"
- },
- "library": {
- "name": "RudderLabs JavaScript SDK",
- "version": "1.0.0"
- },
- "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36",
- "locale": "en-US",
- "os": {
- "name": "",
- "version": ""
- },
- "screen": {
- "density": 2
- }
- },
- "type": "track",
- "messageId": "ec5481b6-a926-4d2e-b293-0b3a77c4d3be",
- "originalTimestamp": "2019-10-14T11:15:18.300Z",
- "anonymousId": "00000000000000000000000000",
- "userId": "12345",
- "event": "promotion viewed",
- "properties": {
- "currency": "CAD",
- "promotion_id": "PROMO_1234",
- "name": "my product",
- "creative": "summer_banner2",
- "position": "banner_slot1",
- "testDimension": true,
- "testMetric": true
- },
- "integrations": {
- "All": true
- },
- "sentAt": "2019-10-14T11:15:53.296Z"
- },
- "destination": {
- "Config": {
- "trackingID": "UA-165994240-1",
- "doubleClick": true,
- "enhancedLinkAttribution": true,
- "classic": true,
- "ignoredReferrers": "",
- "serverClassic": false,
- "includeSearch": true,
- "trackCategorizedPages": true,
- "trackNamedPages": true,
- "sampleRate": "100",
- "siteSpeedSampleRate": "1",
- "setAllMappedProps": true,
- "enableServerSideIdentify": true,
- "serverSideIdentifyEventCategory": "cat1",
- "serverSideIdentifyEventAction": "action1",
- "anonymizeIp": true,
- "domain": "domain",
- "enhancedEcommerce": true,
- "nonInteraction": true,
- "optimize": "abc123",
- "sendUserId": true,
- "useGoogleAmpClientId": true,
- "web-useNativeSDK": true,
- "dimensions": [
- {
- "from": "name",
- "to": "dimension1"
- },
- {
- "from": "custom2",
- "to": "dimension2"
- }
- ],
- "metrics": [
- {
- "from": "email",
- "to": "metric1"
- },
- {
- "from": "trait2",
- "to": "metric2"
- }
- ],
- "resetCustomDimensionsOnPage": [
- {
- "resetCustomDimensionsOnPage": "abc"
- },
- {
- "resetCustomDimensionsOnPage": "xyz"
- }
- ],
- "contentGroupings": [
- {
- "from": "plan",
- "to": "contentGroup1"
- },
- {
- "from": "prop2",
- "to": "contentGroup2"
- }
- ]
- },
- "Enabled": true
- }
- }
- ]
- }
- },
- "output": {
- "response": {
- "status": 200,
- "body": [
- {
- "output": {
- "version": "1",
- "type": "REST",
- "method": "POST",
- "endpoint": "https://www.google-analytics.com/collect",
- "headers": {},
- "params": {
- "ea": "promotion viewed",
- "ec": "EnhancedEcommerce",
- "cu": "CAD",
- "promoa": "view",
- "pa": "view",
- "cd1": "my product",
- "v": "1",
- "t": "event",
- "el": "event",
- "tid": "UA-165994240-1",
- "ds": "web",
- "an": "RudderLabs JavaScript SDK",
- "av": "1.0.0",
- "aiid": "com.rudderlabs.javascript",
- "npa": 1,
- "aip": 1,
- "cid": "00000000000000000000000000",
- "promo1id": "PROMO_1234",
- "promo1cr": "summer_banner2",
- "promo1ps": "banner_slot1",
- "promo1nm": "my product",
- "ua": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36",
- "uid": "12345",
- "ul": "en-US",
- "ni": 1,
- "qt": 124893881700
- },
- "body": {
- "JSON": {},
- "XML": {},
- "JSON_ARRAY": {},
- "FORM": {}
- },
- "files": {},
- "userId": "00000000000000000000000000"
- },
- "statusCode": 200
- }
- ]
- }
- }
- },
- {
- "name": "ga",
- "description": "Test 14",
- "feature": "processor",
- "module": "destination",
- "version": "v0",
- "input": {
- "request": {
- "body": [
- {
- "message": {
- "channel": "web",
- "context": {
- "app": {
- "build": "1.0.0",
- "name": "RudderLabs JavaScript SDK",
- "namespace": "com.rudderlabs.javascript",
- "version": "1.0.0"
- },
- "traits": {
- "email": "test@rudderstack.com"
- },
- "library": {
- "name": "RudderLabs JavaScript SDK",
- "version": "1.0.0"
- },
- "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36",
- "locale": "en-US",
- "os": {
- "name": "",
- "version": ""
- },
- "screen": {
- "density": 2
- }
- },
- "type": "track",
- "messageId": "ec5481b6-a926-4d2e-b293-0b3a77c4d3be",
- "originalTimestamp": "2019-10-14T11:15:18.300Z",
- "anonymousId": "00000000000000000000000000",
- "userId": "12345",
- "event": "promotion clicked",
- "properties": {
- "currency": "CAD",
- "promotion_id": "PROMO_1234",
- "name": "my product",
- "creative": "summer_banner2",
- "position": "banner_slot1",
- "testDimension": true,
- "testMetric": true
- },
- "integrations": {
- "All": true
- },
- "sentAt": "2019-10-14T11:15:53.296Z"
- },
- "destination": {
- "Config": {
- "trackingID": "UA-165994240-1",
- "doubleClick": true,
- "enhancedLinkAttribution": true,
- "classic": true,
- "ignoredReferrers": "",
- "serverClassic": false,
- "includeSearch": true,
- "trackCategorizedPages": true,
- "trackNamedPages": true,
- "sampleRate": "100",
- "siteSpeedSampleRate": "1",
- "setAllMappedProps": true,
- "enableServerSideIdentify": true,
- "serverSideIdentifyEventCategory": "cat1",
- "serverSideIdentifyEventAction": "action1",
- "anonymizeIp": true,
- "domain": "domain",
- "enhancedEcommerce": true,
- "nonInteraction": true,
- "optimize": "abc123",
- "sendUserId": true,
- "useGoogleAmpClientId": true,
- "web-useNativeSDK": true,
- "dimensions": [
- {
- "from": "name",
- "to": "dimension1"
- },
- {
- "from": "custom2",
- "to": "dimension2"
- }
- ],
- "metrics": [
- {
- "from": "email",
- "to": "metric1"
- },
- {
- "from": "trait2",
- "to": "metric2"
- }
- ],
- "resetCustomDimensionsOnPage": [
- {
- "resetCustomDimensionsOnPage": "abc"
- },
- {
- "resetCustomDimensionsOnPage": "xyz"
- }
- ],
- "contentGroupings": [
- {
- "from": "plan",
- "to": "contentGroup1"
- },
- {
- "from": "prop2",
- "to": "contentGroup2"
- }
- ]
- },
- "Enabled": true
- }
- }
- ]
- }
- },
- "output": {
- "response": {
- "status": 200,
- "body": [
- {
- "output": {
- "version": "1",
- "type": "REST",
- "method": "POST",
- "endpoint": "https://www.google-analytics.com/collect",
- "headers": {},
- "params": {
- "ea": "promotion clicked",
- "ec": "EnhancedEcommerce",
- "cu": "CAD",
- "promoa": "promo_click",
- "pa": "promo_click",
- "cd1": "my product",
- "v": "1",
- "t": "event",
- "el": "event",
- "tid": "UA-165994240-1",
- "ds": "web",
- "an": "RudderLabs JavaScript SDK",
- "av": "1.0.0",
- "aiid": "com.rudderlabs.javascript",
- "npa": 1,
- "aip": 1,
- "cid": "00000000000000000000000000",
- "promo1id": "PROMO_1234",
- "promo1cr": "summer_banner2",
- "promo1ps": "banner_slot1",
- "promo1nm": "my product",
- "ua": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36",
- "uid": "12345",
- "ul": "en-US",
- "ni": 1,
- "qt": 124893881700
- },
- "body": {
- "JSON": {},
- "XML": {},
- "JSON_ARRAY": {},
- "FORM": {}
- },
- "files": {},
- "userId": "00000000000000000000000000"
- },
- "statusCode": 200
- }
- ]
- }
- }
- },
- {
- "name": "ga",
- "description": "Test 15",
- "feature": "processor",
- "module": "destination",
- "version": "v0",
- "input": {
- "request": {
- "body": [
- {
- "message": {
- "channel": "web",
- "context": {
- "app": {
- "build": "1.0.0",
- "name": "RudderLabs JavaScript SDK",
- "namespace": "com.rudderlabs.javascript",
- "version": "1.0.0"
- },
- "traits": {
- "email": "test@rudderstack.com"
- },
- "library": {
- "name": "RudderLabs JavaScript SDK",
- "version": "1.0.0"
- },
- "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36",
- "locale": "en-US",
- "os": {
- "name": "",
- "version": ""
- },
- "screen": {
- "density": 2
- }
- },
- "type": "track",
- "messageId": "ec5481b6-a926-4d2e-b293-0b3a77c4d3be",
- "originalTimestamp": "2019-10-14T11:15:18.300Z",
- "anonymousId": "00000000000000000000000000",
- "userId": "12345",
- "event": "checkout started",
- "properties": {
- "currency": "CAD",
- "products": [
- {
- "quantity": 1,
- "price": 24.75,
- "name": "my product",
- "sku": "p-298"
- },
- {
- "quantity": 1,
- "price": 24.75,
- "name": "my product 2",
- "sku": "p-299"
- }
- ],
- "step": 1,
- "paymentMethod": "Visa",
- "testDimension": true,
- "testMetric": true
- },
- "integrations": {
- "All": true
- },
- "sentAt": "2019-10-14T11:15:53.296Z"
- },
- "destination": {
- "Config": {
- "trackingID": "UA-165994240-1",
- "doubleClick": true,
- "enhancedLinkAttribution": true,
- "classic": true,
- "ignoredReferrers": "",
- "serverClassic": false,
- "includeSearch": true,
- "trackCategorizedPages": true,
- "trackNamedPages": true,
- "sampleRate": "100",
- "siteSpeedSampleRate": "1",
- "setAllMappedProps": true,
- "enableServerSideIdentify": true,
- "serverSideIdentifyEventCategory": "cat1",
- "serverSideIdentifyEventAction": "action1",
- "anonymizeIp": true,
- "domain": "domain",
- "enhancedEcommerce": true,
- "nonInteraction": true,
- "optimize": "abc123",
- "sendUserId": true,
- "useGoogleAmpClientId": true,
- "web-useNativeSDK": true,
- "dimensions": [
- {
- "from": "name",
- "to": "dimension1"
- },
- {
- "from": "custom2",
- "to": "dimension2"
- }
- ],
- "metrics": [
- {
- "from": "email",
- "to": "metric1"
- },
- {
- "from": "trait2",
- "to": "metric2"
- }
- ],
- "resetCustomDimensionsOnPage": [
- {
- "resetCustomDimensionsOnPage": "abc"
- },
- {
- "resetCustomDimensionsOnPage": "xyz"
- }
- ],
- "contentGroupings": [
- {
- "from": "plan",
- "to": "contentGroup1"
- },
- {
- "from": "prop2",
- "to": "contentGroup2"
- }
- ]
- },
- "Enabled": true
- }
- }
- ]
- }
- },
- "output": {
- "response": {
- "status": 200,
- "body": [
- {
- "output": {
- "version": "1",
- "type": "REST",
- "method": "POST",
- "endpoint": "https://www.google-analytics.com/collect",
- "headers": {},
- "params": {
- "pa": "checkout",
- "pr1id": "p-298",
- "pr1cd1": "my product",
- "pr1nm": "my product",
- "pr1pr": 24.75,
- "pr2id": "p-299",
- "pr2cd1": "my product 2",
- "pr2nm": "my product 2",
- "pr2pr": 24.75,
- "ea": "checkout started",
- "ec": "EnhancedEcommerce",
- "v": "1",
- "t": "event",
- "el": "event",
- "tid": "UA-165994240-1",
- "ds": "web",
- "an": "RudderLabs JavaScript SDK",
- "av": "1.0.0",
- "aiid": "com.rudderlabs.javascript",
- "npa": 1,
- "aip": 1,
- "cid": "00000000000000000000000000",
- "cu": "CAD",
- "ua": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36",
- "uid": "12345",
- "cos": 1,
- "pr1qt": 1,
- "pr2qt": 1,
- "ul": "en-US",
- "ni": 1,
- "qt": 124893881700
- },
- "body": {
- "JSON": {},
- "XML": {},
- "JSON_ARRAY": {},
- "FORM": {}
- },
- "files": {},
- "userId": "00000000000000000000000000"
- },
- "statusCode": 200
- }
- ]
- }
- }
- },
- {
- "name": "ga",
- "description": "Test 16",
- "feature": "processor",
- "module": "destination",
- "version": "v0",
- "input": {
- "request": {
- "body": [
- {
- "message": {
- "channel": "web",
- "context": {
- "app": {
- "build": "1.0.0",
- "name": "RudderLabs JavaScript SDK",
- "namespace": "com.rudderlabs.javascript",
- "version": "1.0.0"
- },
- "traits": {
- "email": "test@rudderstack.com"
- },
- "library": {
- "name": "RudderLabs JavaScript SDK",
- "version": "1.0.0"
- },
- "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36",
- "locale": "en-US",
- "os": {
- "name": "",
- "version": ""
- },
- "screen": {
- "density": 2
- }
- },
- "type": "track",
- "messageId": "ec5481b6-a926-4d2e-b293-0b3a77c4d3be",
- "originalTimestamp": "2019-10-14T11:15:18.300Z",
- "anonymousId": "00000000000000000000000000",
- "userId": "12345",
- "event": "order updated",
- "properties": {
- "currency": "CAD",
- "products": [
- {
- "quantity": 1,
- "price": 24.75,
- "name": "my product",
- "sku": "p-298"
- },
- {
- "quantity": 1,
- "price": 24.75,
- "name": "my product 2",
- "sku": "p-299"
- }
- ],
- "step": 1,
- "paymentMethod": "Visa",
- "testDimension": true,
- "testMetric": true
- },
- "integrations": {
- "All": true
- },
- "sentAt": "2019-10-14T11:15:53.296Z"
- },
- "destination": {
- "Config": {
- "trackingID": "UA-165994240-1",
- "doubleClick": true,
- "enhancedLinkAttribution": true,
- "classic": true,
- "ignoredReferrers": "",
- "serverClassic": false,
- "includeSearch": true,
- "trackCategorizedPages": true,
- "trackNamedPages": true,
- "sampleRate": "100",
- "siteSpeedSampleRate": "1",
- "setAllMappedProps": true,
- "enableServerSideIdentify": true,
- "serverSideIdentifyEventCategory": "cat1",
- "serverSideIdentifyEventAction": "action1",
- "anonymizeIp": true,
- "domain": "domain",
- "enhancedEcommerce": true,
- "nonInteraction": true,
- "optimize": "abc123",
- "sendUserId": true,
- "useGoogleAmpClientId": true,
- "web-useNativeSDK": true,
- "dimensions": [
- {
- "from": "name",
- "to": "dimension1"
- },
- {
- "from": "custom2",
- "to": "dimension2"
- }
- ],
- "metrics": [
- {
- "from": "email",
- "to": "metric1"
- },
- {
- "from": "trait2",
- "to": "metric2"
- }
- ],
- "resetCustomDimensionsOnPage": [
- {
- "resetCustomDimensionsOnPage": "abc"
- },
- {
- "resetCustomDimensionsOnPage": "xyz"
- }
- ],
- "contentGroupings": [
- {
- "from": "plan",
- "to": "contentGroup1"
- },
- {
- "from": "prop2",
- "to": "contentGroup2"
- }
- ]
- },
- "Enabled": true
- }
- }
- ]
- }
- },
- "output": {
- "response": {
- "status": 200,
- "body": [
- {
- "output": {
- "version": "1",
- "type": "REST",
- "method": "POST",
- "endpoint": "https://www.google-analytics.com/collect",
- "headers": {},
- "params": {
- "pa": "checkout",
- "pr1id": "p-298",
- "pr1cd1": "my product",
- "pr1nm": "my product",
- "pr1pr": 24.75,
- "pr2id": "p-299",
- "pr2cd1": "my product 2",
- "pr2nm": "my product 2",
- "pr2pr": 24.75,
- "ea": "order updated",
- "ec": "EnhancedEcommerce",
- "v": "1",
- "t": "event",
- "el": "event",
- "tid": "UA-165994240-1",
- "ds": "web",
- "an": "RudderLabs JavaScript SDK",
- "av": "1.0.0",
- "aiid": "com.rudderlabs.javascript",
- "npa": 1,
- "aip": 1,
- "cid": "00000000000000000000000000",
- "cu": "CAD",
- "ua": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36",
- "uid": "12345",
- "cos": 1,
- "pr1qt": 1,
- "pr2qt": 1,
- "ul": "en-US",
- "ni": 1,
- "qt": 124893881700
- },
- "body": {
- "JSON": {},
- "XML": {},
- "JSON_ARRAY": {},
- "FORM": {}
- },
- "files": {},
- "userId": "00000000000000000000000000"
- },
- "statusCode": 200
- }
- ]
- }
- }
- },
- {
- "name": "ga",
- "description": "Test 17",
- "feature": "processor",
- "module": "destination",
- "version": "v0",
- "input": {
- "request": {
- "body": [
- {
- "message": {
- "channel": "web",
- "context": {
- "app": {
- "build": "1.0.0",
- "name": "RudderLabs JavaScript SDK",
- "namespace": "com.rudderlabs.javascript",
- "version": "1.0.0"
- },
- "traits": {
- "email": "test@rudderstack.com"
- },
- "library": {
- "name": "RudderLabs JavaScript SDK",
- "version": "1.0.0"
- },
- "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36",
- "locale": "en-US",
- "os": {
- "name": "",
- "version": ""
- },
- "screen": {
- "density": 2
- }
- },
- "type": "track",
- "messageId": "ec5481b6-a926-4d2e-b293-0b3a77c4d3be",
- "originalTimestamp": "2019-10-14T11:15:18.300Z",
- "anonymousId": "00000000000000000000000000",
- "userId": "12345",
- "event": "checkout step viewed",
- "properties": {
- "currency": "CAD",
- "step": 1
- },
- "integrations": {
- "All": true
- },
- "sentAt": "2019-10-14T11:15:53.296Z"
- },
- "destination": {
- "Config": {
- "trackingID": "UA-165994240-1",
- "doubleClick": true,
- "enhancedLinkAttribution": true,
- "classic": true,
- "ignoredReferrers": "",
- "serverClassic": false,
- "includeSearch": true,
- "trackCategorizedPages": true,
- "trackNamedPages": true,
- "sampleRate": "100",
- "siteSpeedSampleRate": "1",
- "setAllMappedProps": true,
- "enableServerSideIdentify": true,
- "serverSideIdentifyEventCategory": "cat1",
- "serverSideIdentifyEventAction": "action1",
- "anonymizeIp": true,
- "domain": "domain",
- "enhancedEcommerce": true,
- "nonInteraction": true,
- "optimize": "abc123",
- "sendUserId": true,
- "useGoogleAmpClientId": true,
- "web-useNativeSDK": true,
- "dimensions": [
- {
- "from": "name",
- "to": "dimension1"
- },
- {
- "from": "custom2",
- "to": "dimension2"
- }
- ],
- "metrics": [
- {
- "from": "email",
- "to": "metric1"
- },
- {
- "from": "trait2",
- "to": "metric2"
- }
- ],
- "resetCustomDimensionsOnPage": [
- {
- "resetCustomDimensionsOnPage": "abc"
- },
- {
- "resetCustomDimensionsOnPage": "xyz"
- }
- ],
- "contentGroupings": [
- {
- "from": "plan",
- "to": "contentGroup1"
- },
- {
- "from": "prop2",
- "to": "contentGroup2"
- }
- ]
- },
- "Enabled": true
- }
- }
- ]
- }
- },
- "output": {
- "response": {
- "status": 200,
- "body": [
- {
- "output": {
- "version": "1",
- "type": "REST",
- "method": "POST",
- "endpoint": "https://www.google-analytics.com/collect",
- "headers": {},
- "params": {
- "pa": "checkout",
- "ea": "checkout step viewed",
- "ec": "EnhancedEcommerce",
- "v": "1",
- "t": "event",
- "el": "event",
- "tid": "UA-165994240-1",
- "ds": "web",
- "an": "RudderLabs JavaScript SDK",
- "av": "1.0.0",
- "aiid": "com.rudderlabs.javascript",
- "npa": 1,
- "aip": 1,
- "cid": "00000000000000000000000000",
- "cos": 1,
- "ua": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36",
- "uid": "12345",
- "ul": "en-US",
- "ni": 1,
- "qt": 124893881700
- },
- "body": {
- "JSON": {},
- "XML": {},
- "JSON_ARRAY": {},
- "FORM": {}
- },
- "files": {},
- "userId": "00000000000000000000000000"
- },
- "statusCode": 200
- }
- ]
- }
- }
- },
- {
- "name": "ga",
- "description": "Test 18",
- "feature": "processor",
- "module": "destination",
- "version": "v0",
- "input": {
- "request": {
- "body": [
- {
- "message": {
- "channel": "web",
- "context": {
- "app": {
- "build": "1.0.0",
- "name": "RudderLabs JavaScript SDK",
- "namespace": "com.rudderlabs.javascript",
- "version": "1.0.0"
- },
- "traits": {
- "email": "test@rudderstack.com"
- },
- "library": {
- "name": "RudderLabs JavaScript SDK",
- "version": "1.0.0"
- },
- "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36",
- "locale": "en-US",
- "os": {
- "name": "",
- "version": ""
- },
- "screen": {
- "density": 2
- }
- },
- "type": "track",
- "messageId": "ec5481b6-a926-4d2e-b293-0b3a77c4d3be",
- "originalTimestamp": "2019-10-14T11:15:18.300Z",
- "anonymousId": "00000000000000000000000000",
- "userId": "12345",
- "event": "checkout step completed",
- "properties": {
- "currency": "CAD",
- "step": 1,
- "paymentMethod": "Visa"
- },
- "integrations": {
- "All": true
- },
- "sentAt": "2019-10-14T11:15:53.296Z"
- },
- "destination": {
- "Config": {
- "trackingID": "UA-165994240-1",
- "doubleClick": true,
- "enhancedLinkAttribution": true,
- "classic": true,
- "ignoredReferrers": "",
- "serverClassic": false,
- "includeSearch": true,
- "trackCategorizedPages": true,
- "trackNamedPages": true,
- "sampleRate": "100",
- "siteSpeedSampleRate": "1",
- "setAllMappedProps": true,
- "enableServerSideIdentify": true,
- "serverSideIdentifyEventCategory": "cat1",
- "serverSideIdentifyEventAction": "action1",
- "anonymizeIp": true,
- "domain": "domain",
- "enhancedEcommerce": true,
- "nonInteraction": true,
- "optimize": "abc123",
- "sendUserId": true,
- "useGoogleAmpClientId": true,
- "web-useNativeSDK": true,
- "dimensions": [
- {
- "from": "name",
- "to": "dimension1"
- },
- {
- "from": "custom2",
- "to": "dimension2"
- }
- ],
- "metrics": [
- {
- "from": "email",
- "to": "metric1"
- },
- {
- "from": "trait2",
- "to": "metric2"
- }
- ],
- "resetCustomDimensionsOnPage": [
- {
- "resetCustomDimensionsOnPage": "abc"
- },
- {
- "resetCustomDimensionsOnPage": "xyz"
- }
- ],
- "contentGroupings": [
- {
- "from": "plan",
- "to": "contentGroup1"
- },
- {
- "from": "prop2",
- "to": "contentGroup2"
- }
- ]
- },
- "Enabled": true
- }
- }
- ]
- }
- },
- "output": {
- "response": {
- "status": 200,
- "body": [
- {
- "output": {
- "version": "1",
- "type": "REST",
- "method": "POST",
- "endpoint": "https://www.google-analytics.com/collect",
- "headers": {},
- "params": {
- "pa": "checkout_option",
- "ea": "checkout step completed",
- "ec": "EnhancedEcommerce",
- "v": "1",
- "t": "event",
- "el": "event",
- "tid": "UA-165994240-1",
- "ds": "web",
- "an": "RudderLabs JavaScript SDK",
- "av": "1.0.0",
- "aiid": "com.rudderlabs.javascript",
- "npa": 1,
- "aip": 1,
- "cid": "00000000000000000000000000",
- "cos": 1,
- "ua": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36",
- "uid": "12345",
- "ul": "en-US",
- "ni": 1,
- "qt": 124893881700
- },
- "body": {
- "JSON": {},
- "XML": {},
- "JSON_ARRAY": {},
- "FORM": {}
- },
- "files": {},
- "userId": "00000000000000000000000000"
- },
- "statusCode": 200
- }
- ]
- }
- }
- },
- {
- "name": "ga",
- "description": "Test 19",
- "feature": "processor",
- "module": "destination",
- "version": "v0",
- "input": {
- "request": {
- "body": [
- {
- "message": {
- "channel": "web",
- "context": {
- "app": {
- "build": "1.0.0",
- "name": "RudderLabs JavaScript SDK",
- "namespace": "com.rudderlabs.javascript",
- "version": "1.0.0"
- },
- "traits": {
- "email": "test@rudderstack.com"
- },
- "library": {
- "name": "RudderLabs JavaScript SDK",
- "version": "1.0.0"
- },
- "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36",
- "locale": "en-US",
- "os": {
- "name": "",
- "version": ""
- },
- "screen": {
- "density": 2
- }
- },
- "type": "track",
- "messageId": "ec5481b6-a926-4d2e-b293-0b3a77c4d3be",
- "originalTimestamp": "2019-10-14T11:15:18.300Z",
- "anonymousId": "00000000000000000000000000",
- "userId": "12345",
- "event": "order refunded",
- "properties": {
- "products": [
- {
- "quantity": 1,
- "sku": "p-298"
- },
- {
- "quantity": 1,
- "sku": "p-299"
- }
- ],
- "testDimension": true,
- "testMetric": true
- },
- "integrations": {
- "All": true
- },
- "sentAt": "2019-10-14T11:15:53.296Z"
- },
- "destination": {
- "Config": {
- "trackingID": "UA-165994240-1",
- "doubleClick": true,
- "enhancedLinkAttribution": true,
- "classic": true,
- "ignoredReferrers": "",
- "serverClassic": false,
- "includeSearch": true,
- "trackCategorizedPages": true,
- "trackNamedPages": true,
- "sampleRate": "100",
- "siteSpeedSampleRate": "1",
- "setAllMappedProps": true,
- "enableServerSideIdentify": true,
- "serverSideIdentifyEventCategory": "cat1",
- "serverSideIdentifyEventAction": "action1",
- "anonymizeIp": true,
- "domain": "domain",
- "enhancedEcommerce": true,
- "nonInteraction": true,
- "optimize": "abc123",
- "sendUserId": true,
- "useGoogleAmpClientId": true,
- "web-useNativeSDK": true,
- "dimensions": [
- {
- "from": "name",
- "to": "dimension1"
- },
- {
- "from": "custom2",
- "to": "dimension2"
- }
- ],
- "metrics": [
- {
- "from": "email",
- "to": "metric1"
- },
- {
- "from": "trait2",
- "to": "metric2"
- }
- ],
- "resetCustomDimensionsOnPage": [
- {
- "resetCustomDimensionsOnPage": "abc"
- },
- {
- "resetCustomDimensionsOnPage": "xyz"
- }
- ],
- "contentGroupings": [
- {
- "from": "plan",
- "to": "contentGroup1"
- },
- {
- "from": "prop2",
- "to": "contentGroup2"
- }
- ]
- },
- "Enabled": true
- }
- }
- ]
- }
- },
- "output": {
- "response": {
- "status": 200,
- "body": [
- {
- "output": {
- "version": "1",
- "type": "REST",
- "method": "POST",
- "endpoint": "https://www.google-analytics.com/collect",
- "headers": {},
- "params": {
- "ni": 1,
- "v": "1",
- "t": "event",
- "el": "event",
- "tid": "UA-165994240-1",
- "ds": "web",
- "an": "RudderLabs JavaScript SDK",
- "av": "1.0.0",
- "aiid": "com.rudderlabs.javascript",
- "npa": 1,
- "aip": 1,
- "cid": "00000000000000000000000000",
- "ea": "order refunded",
- "ec": "EnhancedEcommerce",
- "ua": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36",
- "uid": "12345",
- "pa": "refund",
- "pr1id": "p-298",
- "pr1qt": 1,
- "pr2id": "p-299",
- "ul": "en-US",
- "pr2qt": 1,
- "qt": 124893881700
- },
- "body": {
- "JSON": {},
- "XML": {},
- "JSON_ARRAY": {},
- "FORM": {}
- },
- "files": {},
- "userId": "00000000000000000000000000"
- },
- "statusCode": 200
- }
- ]
- }
- }
- },
- {
- "name": "ga",
- "description": "Test 20",
- "feature": "processor",
- "module": "destination",
- "version": "v0",
- "input": {
- "request": {
- "body": [
- {
- "message": {
- "channel": "web",
- "context": {
- "app": {
- "build": "1.0.0",
- "name": "RudderLabs JavaScript SDK",
- "namespace": "com.rudderlabs.javascript",
- "version": "1.0.0"
- },
- "traits": {
- "email": "test@rudderstack.com"
- },
- "library": {
- "name": "RudderLabs JavaScript SDK",
- "version": "1.0.0"
- },
- "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36",
- "locale": "en-US",
- "os": {
- "name": "",
- "version": ""
- },
- "screen": {
- "density": 2
- }
- },
- "type": "track",
- "messageId": "ec5481b6-a926-4d2e-b293-0b3a77c4d3be",
- "originalTimestamp": "2019-10-14T11:15:18.300Z",
- "anonymousId": "00000000000000000000000000",
- "userId": "12345",
- "event": "order starterefundedd",
- "properties": {
- "products": [
- {
- "quantity": 1,
- "sku": "p-298"
- },
- {
- "quantity": 1,
- "sku": "p-299"
- }
- ],
- "testDimension": true,
- "testMetric": true
- },
- "integrations": {
- "All": true
- },
- "sentAt": "2019-10-14T11:15:53.296Z"
- },
- "destination": {
- "Config": {
- "trackingID": "UA-165994240-1",
- "doubleClick": true,
- "enhancedLinkAttribution": true,
- "classic": true,
- "ignoredReferrers": "",
- "serverClassic": false,
- "includeSearch": true,
- "trackCategorizedPages": true,
- "trackNamedPages": true,
- "sampleRate": "100",
- "siteSpeedSampleRate": "1",
- "setAllMappedProps": true,
- "enableServerSideIdentify": true,
- "serverSideIdentifyEventCategory": "cat1",
- "serverSideIdentifyEventAction": "action1",
- "anonymizeIp": true,
- "domain": "domain",
- "enhancedEcommerce": true,
- "nonInteraction": true,
- "optimize": "abc123",
- "sendUserId": true,
- "useGoogleAmpClientId": true,
- "web-useNativeSDK": true,
- "metrics": [
- {
- "from": "email",
- "to": "metric1"
- },
- {
- "from": "trait2",
- "to": "metric2"
- }
- ],
- "resetCustomDimensionsOnPage": [
- {
- "resetCustomDimensionsOnPage": "abc"
- },
- {
- "resetCustomDimensionsOnPage": "xyz"
- }
- ],
- "contentGroupings": [
- {
- "from": "plan",
- "to": "contentGroup1"
- },
- {
- "from": "prop2",
- "to": "contentGroup2"
- }
- ]
- },
- "Enabled": true
- }
- }
- ]
- }
- },
- "output": {
- "response": {
- "status": 200,
- "body": [
- {
- "output": {
- "version": "1",
- "type": "REST",
- "method": "POST",
- "endpoint": "https://www.google-analytics.com/collect",
- "headers": {},
- "params": {
- "ul": "en-US",
- "ec": "All",
- "ni": 1,
- "v": "1",
- "t": "event",
- "el": "event",
- "tid": "UA-165994240-1",
- "ds": "web",
- "an": "RudderLabs JavaScript SDK",
- "av": "1.0.0",
- "aiid": "com.rudderlabs.javascript",
- "npa": 1,
- "aip": 1,
- "cid": "00000000000000000000000000",
- "ea": "order starterefundedd",
- "ua": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36",
- "uid": "12345",
- "qt": 124893881700
- },
- "body": {
- "JSON": {},
- "XML": {},
- "JSON_ARRAY": {},
- "FORM": {}
- },
- "files": {},
- "userId": "00000000000000000000000000"
- },
- "statusCode": 200
- }
- ]
- }
- }
- },
- {
- "name": "ga",
- "description": "Test 21",
- "feature": "processor",
- "module": "destination",
- "version": "v0",
- "input": {
- "request": {
- "body": [
- {
- "message": {
- "channel": "web",
- "context": {
- "traits": {
- "email": "test@rudderstack.com"
- },
- "library": {
- "name": "RudderLabs JavaScript SDK",
- "version": "1.0.0"
- },
- "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36",
- "locale": "en-US",
- "os": {
- "name": "",
- "version": ""
- },
- "screen": {
- "density": 2
- }
- },
- "type": "track",
- "messageId": "ec5481b6-a926-4d2e-b293-0b3a77c4d3be",
- "originalTimestamp": "2019-10-14T11:15:18.300Z",
- "anonymousId": "00000000000000000000000000",
- "userId": "12345",
- "event": "order starterefundedd",
- "properties": {
- "products": [
- {
- "quantity": 1,
- "sku": "p-298"
- },
- {
- "quantity": 1,
- "sku": "p-299"
- }
- ],
- "testDimension": true,
- "testMetric": true
- },
- "integrations": {
- "All": true
- },
- "sentAt": "2019-10-14T11:15:53.296Z"
- },
- "destination": {
- "Config": {
- "trackingID": "UA-165994240-1",
- "doubleClick": true,
- "enhancedLinkAttribution": true,
- "classic": true,
- "ignoredReferrers": "",
- "serverClassic": false,
- "includeSearch": true,
- "trackCategorizedPages": true,
- "trackNamedPages": true,
- "sampleRate": "100",
- "siteSpeedSampleRate": "1",
- "setAllMappedProps": true,
- "enableServerSideIdentify": true,
- "serverSideIdentifyEventCategory": "cat1",
- "serverSideIdentifyEventAction": "action1",
- "anonymizeIp": true,
- "domain": "domain",
- "enhancedEcommerce": true,
- "nonInteraction": true,
- "optimize": "abc123",
- "sendUserId": true,
- "useGoogleAmpClientId": true,
- "web-useNativeSDK": true,
- "metrics": [
- {
- "from": "email",
- "to": "metric1"
- },
- {
- "from": "trait2",
- "to": "metric2"
- }
- ],
- "resetCustomDimensionsOnPage": [
- {
- "resetCustomDimensionsOnPage": "abc"
- },
- {
- "resetCustomDimensionsOnPage": "xyz"
- }
- ],
- "contentGroupings": [
- {
- "from": "plan",
- "to": "contentGroup1"
- },
- {
- "from": "prop2",
- "to": "contentGroup2"
- }
- ]
- },
- "Enabled": true
- }
- }
- ]
- }
- },
- "output": {
- "response": {
- "status": 200,
- "body": [
- {
- "output": {
- "version": "1",
- "type": "REST",
- "method": "POST",
- "endpoint": "https://www.google-analytics.com/collect",
- "headers": {},
- "params": {
- "ul": "en-US",
- "ec": "All",
- "ni": 1,
- "v": "1",
- "t": "event",
- "el": "event",
- "tid": "UA-165994240-1",
- "ds": "web",
- "npa": 1,
- "aip": 1,
- "cid": "00000000000000000000000000",
- "ea": "order starterefundedd",
- "ua": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36",
- "uid": "12345",
- "qt": 124893881700
- },
- "body": {
- "JSON": {},
- "XML": {},
- "JSON_ARRAY": {},
- "FORM": {}
- },
- "files": {},
- "userId": "00000000000000000000000000"
- },
- "statusCode": 200
- }
- ]
- }
- }
- },
- {
- "name": "ga",
- "description": "Test 22",
- "feature": "processor",
- "module": "destination",
- "version": "v0",
- "input": {
- "request": {
- "body": [
- {
- "message": {
- "channel": "web",
- "context": {
- "app": {
- "build": "1.0.0",
- "name": "RudderLabs JavaScript SDK",
- "namespace": "com.rudderlabs.javascript",
- "version": "1.0.0"
- },
- "traits": {
- "email": "test@rudderstack.com"
- },
- "library": {
- "name": "RudderLabs JavaScript SDK",
- "version": "1.0.0"
- },
- "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36",
- "locale": "en-US",
- "os": {
- "name": "",
- "version": ""
- },
- "screen": {
- "density": 2
- }
- },
- "type": "track",
- "messageId": "ec5481b6-a926-4d2e-b293-0b3a77c4d3be",
- "originalTimestamp": "2019-10-14T11:15:18.300Z",
- "anonymousId": "00000000000000000000000000",
- "userId": "12345",
- "event": "order starterefundedd",
- "properties": {
- "products": [
- {
- "quantity": 1,
- "sku": "p-298"
- },
- {
- "quantity": 1,
- "sku": "p-299"
- }
- ],
- "testDimension": true,
- "testMetric": true
- },
- "integrations": {
- "All": true
- },
- "sentAt": "2019-10-14T11:15:53.296Z"
- },
- "destination": {
- "Config": {
- "trackingID": "UA-165994240-1",
- "enhancedLinkAttribution": true,
- "classic": true,
- "ignoredReferrers": "",
- "serverClassic": false,
- "includeSearch": true,
- "trackCategorizedPages": true,
- "trackNamedPages": true,
- "sampleRate": "100",
- "siteSpeedSampleRate": "1",
- "setAllMappedProps": true,
- "enableServerSideIdentify": true,
- "serverSideIdentifyEventCategory": "cat1",
- "serverSideIdentifyEventAction": "action1",
- "anonymizeIp": true,
- "domain": "domain",
- "enhancedEcommerce": true,
- "nonInteraction": true,
- "optimize": "abc123",
- "sendUserId": true,
- "useGoogleAmpClientId": true,
- "web-useNativeSDK": true,
- "dimensions": [
- {
- "from": "name",
- "to": "dimension1"
- },
- {
- "from": "custom2",
- "to": "dimension2"
- }
- ],
- "metrics": [
- {
- "from": "email",
- "to": "metric1"
- },
- {
- "from": "trait2",
- "to": "metric2"
- }
- ],
- "resetCustomDimensionsOnPage": [
- {
- "resetCustomDimensionsOnPage": "abc"
- },
- {
- "resetCustomDimensionsOnPage": "xyz"
- }
- ],
- "contentGroupings": [
- {
- "from": "plan",
- "to": "contentGroup1"
- },
- {
- "from": "prop2",
- "to": "contentGroup2"
- }
- ]
- },
- "Enabled": true
- }
- }
- ]
- }
- },
- "output": {
- "response": {
- "status": 200,
- "body": [
- {
- "output": {
- "version": "1",
- "type": "REST",
- "method": "POST",
- "endpoint": "https://www.google-analytics.com/collect",
- "headers": {},
- "params": {
- "ul": "en-US",
- "ec": "All",
- "ni": 1,
- "v": "1",
- "t": "event",
- "el": "event",
- "tid": "UA-165994240-1",
- "ds": "web",
- "an": "RudderLabs JavaScript SDK",
- "av": "1.0.0",
- "aiid": "com.rudderlabs.javascript",
- "aip": 1,
- "cid": "00000000000000000000000000",
- "ea": "order starterefundedd",
- "ua": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36",
- "uid": "12345",
- "qt": 124893881700
- },
- "body": {
- "JSON": {},
- "XML": {},
- "JSON_ARRAY": {},
- "FORM": {}
- },
- "files": {},
- "userId": "00000000000000000000000000"
- },
- "statusCode": 200
- }
- ]
- }
- }
- },
- {
- "name": "ga",
- "description": "Test 23",
- "feature": "processor",
- "module": "destination",
- "version": "v0",
- "input": {
- "request": {
- "body": [
- {
- "message": {
- "channel": "web",
- "context": {
- "app": {
- "build": "1.0.0",
- "name": "RudderLabs JavaScript SDK",
- "namespace": "com.rudderlabs.javascript",
- "version": "1.0.0"
- },
- "traits": {
- "email": "test@rudderstack.com"
- },
- "library": {
- "name": "RudderLabs JavaScript SDK",
- "version": "1.0.0"
- },
- "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36",
- "locale": "en-US",
- "os": {
- "name": "",
- "version": ""
- },
- "screen": {
- "density": 2
- }
- },
- "type": "track",
- "messageId": "ec5481b6-a926-4d2e-b293-0b3a77c4d3be",
- "originalTimestamp": "2019-10-14T11:15:18.300Z",
- "anonymousId": "00000000000000000000000000",
- "userId": "12345",
- "event": "order starterefundedd",
- "properties": {
- "products": [
- {
- "quantity": 1,
- "sku": "p-298"
- },
- {
- "quantity": 1,
- "sku": "p-299"
- }
- ],
- "testDimension": true,
- "testMetric": true
- },
- "integrations": {
- "All": true
- },
- "sentAt": "2019-10-14T11:15:53.296Z"
- },
- "destination": {
- "Config": {
- "trackingID": "UA-165994240-1",
- "doubleClick": true,
- "enhancedLinkAttribution": true,
- "classic": true,
- "ignoredReferrers": "",
- "serverClassic": false,
- "includeSearch": true,
- "trackCategorizedPages": true,
- "trackNamedPages": true,
- "sampleRate": "100",
- "siteSpeedSampleRate": "1",
- "setAllMappedProps": true,
- "enableServerSideIdentify": true,
- "serverSideIdentifyEventCategory": "cat1",
- "serverSideIdentifyEventAction": "action1",
- "domain": "domain",
- "enhancedEcommerce": true,
- "nonInteraction": true,
- "optimize": "abc123",
- "sendUserId": true,
- "useGoogleAmpClientId": true,
- "web-useNativeSDK": true,
- "dimensions": [
- {
- "from": "name",
- "to": "dimension1"
- },
- {
- "from": "custom2",
- "to": "dimension2"
- }
- ],
- "metrics": [
- {
- "from": "email",
- "to": "metric1"
- },
- {
- "from": "trait2",
- "to": "metric2"
- }
- ],
- "resetCustomDimensionsOnPage": [
- {
- "resetCustomDimensionsOnPage": "abc"
- },
- {
- "resetCustomDimensionsOnPage": "xyz"
- }
- ],
- "contentGroupings": [
- {
- "from": "plan",
- "to": "contentGroup1"
- },
- {
- "from": "prop2",
- "to": "contentGroup2"
- }
- ]
- },
- "Enabled": true
- }
- }
- ]
- }
- },
- "output": {
- "response": {
- "status": 200,
- "body": [
- {
- "output": {
- "version": "1",
- "type": "REST",
- "method": "POST",
- "endpoint": "https://www.google-analytics.com/collect",
- "headers": {},
- "params": {
- "ul": "en-US",
- "ec": "All",
- "ni": 1,
- "v": "1",
- "t": "event",
- "el": "event",
- "tid": "UA-165994240-1",
- "ds": "web",
- "an": "RudderLabs JavaScript SDK",
- "av": "1.0.0",
- "aiid": "com.rudderlabs.javascript",
- "npa": 1,
- "cid": "00000000000000000000000000",
- "ea": "order starterefundedd",
- "ua": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36",
- "uid": "12345",
- "qt": 124893881700
- },
- "body": {
- "JSON": {},
- "XML": {},
- "JSON_ARRAY": {},
- "FORM": {}
- },
- "files": {},
- "userId": "00000000000000000000000000"
- },
- "statusCode": 200
- }
- ]
- }
- }
- },
- {
- "name": "ga",
- "description": "Test 24",
- "feature": "processor",
- "module": "destination",
- "version": "v0",
- "input": {
- "request": {
- "body": [
- {
- "message": {
- "channel": "web",
- "context": {
- "app": {
- "build": "1.0.0",
- "name": "RudderLabs JavaScript SDK",
- "namespace": "com.rudderlabs.javascript",
- "version": "1.0.0"
- },
- "traits": {
- "email": "test@rudderstack.com"
- },
- "library": {
- "name": "RudderLabs JavaScript SDK",
- "version": "1.0.0"
- },
- "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36",
- "locale": "en-US",
- "os": {
- "name": "",
- "version": ""
- },
- "screen": {
- "density": 2
- }
- },
- "type": "track",
- "messageId": "ec5481b6-a926-4d2e-b293-0b3a77c4d3be",
- "originalTimestamp": "2019-10-14T11:15:18.300Z",
- "anonymousId": "00000000000000000000000000",
- "userId": "12345",
- "event": "order starterefundedd",
- "properties": {
- "products": [
- {
- "quantity": 1,
- "sku": "p-298"
- },
- {
- "quantity": 1,
- "sku": "p-299"
- }
- ],
- "testDimension": true,
- "testMetric": true
- },
- "integrations": {
- "All": true
- },
- "sentAt": "2019-10-14T11:15:53.296Z"
- },
- "destination": {
- "Config": {
- "trackingID": "UA-165994240-1",
- "doubleClick": true,
- "classic": true,
- "ignoredReferrers": "",
- "serverClassic": false,
- "includeSearch": true,
- "trackCategorizedPages": true,
- "trackNamedPages": true,
- "sampleRate": "100",
- "siteSpeedSampleRate": "1",
- "setAllMappedProps": true,
- "enableServerSideIdentify": true,
- "serverSideIdentifyEventCategory": "cat1",
- "serverSideIdentifyEventAction": "action1",
- "anonymizeIp": true,
- "domain": "domain",
- "enhancedEcommerce": true,
- "nonInteraction": true,
- "optimize": "abc123",
- "sendUserId": true,
- "useGoogleAmpClientId": true,
- "web-useNativeSDK": true,
- "dimensions": [
- {
- "from": "name",
- "to": "dimension1"
- },
- {
- "from": "custom2",
- "to": "dimension2"
- }
- ],
- "metrics": [
- {
- "from": "email",
- "to": "metric1"
- },
- {
- "from": "trait2",
- "to": "metric2"
- }
- ],
- "resetCustomDimensionsOnPage": [
- {
- "resetCustomDimensionsOnPage": "abc"
- },
- {
- "resetCustomDimensionsOnPage": "xyz"
- }
- ],
- "contentGroupings": [
- {
- "from": "plan",
- "to": "contentGroup1"
- },
- {
- "from": "prop2",
- "to": "contentGroup2"
- }
- ]
- },
- "Enabled": true
- }
- }
- ]
- }
- },
- "output": {
- "response": {
- "status": 200,
- "body": [
- {
- "output": {
- "version": "1",
- "type": "REST",
- "method": "POST",
- "endpoint": "https://www.google-analytics.com/collect",
- "headers": {},
- "params": {
- "ul": "en-US",
- "ec": "All",
- "ni": 1,
- "v": "1",
- "t": "event",
- "el": "event",
- "tid": "UA-165994240-1",
- "ds": "web",
- "an": "RudderLabs JavaScript SDK",
- "av": "1.0.0",
- "aiid": "com.rudderlabs.javascript",
- "npa": 1,
- "aip": 1,
- "cid": "00000000000000000000000000",
- "ea": "order starterefundedd",
- "ua": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36",
- "uid": "12345",
- "qt": 124893881700
- },
- "body": {
- "JSON": {},
- "XML": {},
- "JSON_ARRAY": {},
- "FORM": {}
- },
- "files": {},
- "userId": "00000000000000000000000000"
- },
- "statusCode": 200
- }
- ]
- }
- }
- },
- {
- "name": "ga",
- "description": "Test 25",
- "feature": "processor",
- "module": "destination",
- "version": "v0",
- "input": {
- "request": {
- "body": [
- {
- "message": {
- "channel": "web",
- "context": {
- "app": {
- "build": "1.0.0",
- "name": "RudderLabs JavaScript SDK",
- "namespace": "com.rudderlabs.javascript",
- "version": "1.0.0"
- },
- "traits": {
- "email": "test@rudderstack.com"
- },
- "library": {
- "name": "RudderLabs JavaScript SDK",
- "version": "1.0.0"
- },
- "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36",
- "locale": "en-US",
- "os": {
- "name": "",
- "version": ""
- },
- "screen": {
- "density": 2
- }
- },
- "type": "track",
- "messageId": "ec5481b6-a926-4d2e-b293-0b3a77c4d3be",
- "originalTimestamp": "2019-10-14T11:15:18.300Z",
- "anonymousId": "00000000000000000000000000",
- "userId": "12345",
- "event": "linkid test",
- "properties": {
- "linkid": "abc123",
- "testDimension": true,
- "testMetric": true
- },
- "integrations": {
- "All": true
- },
- "sentAt": "2019-10-14T11:15:53.296Z"
- },
- "destination": {
- "Config": {
- "trackingID": "UA-165994240-1",
- "doubleClick": true,
- "enhancedLinkAttribution": true,
- "classic": true,
- "ignoredReferrers": "",
- "serverClassic": false,
- "includeSearch": true,
- "trackCategorizedPages": true,
- "trackNamedPages": true,
- "sampleRate": "100",
- "siteSpeedSampleRate": "1",
- "setAllMappedProps": true,
- "enableServerSideIdentify": true,
- "serverSideIdentifyEventCategory": "cat1",
- "serverSideIdentifyEventAction": "action1",
- "domain": "domain",
- "enhancedEcommerce": true,
- "nonInteraction": true,
- "optimize": "abc123",
- "sendUserId": true,
- "useGoogleAmpClientId": true,
- "web-useNativeSDK": true,
- "dimensions": [
- {
- "from": "name",
- "to": "dimension1"
- },
- {
- "from": "custom2",
- "to": "dimension2"
- }
- ],
- "metrics": [
- {
- "from": "email",
- "to": "metric1"
- },
- {
- "from": "trait2",
- "to": "metric2"
- }
- ],
- "resetCustomDimensionsOnPage": [
- {
- "resetCustomDimensionsOnPage": "abc"
- },
- {
- "resetCustomDimensionsOnPage": "xyz"
- }
- ],
- "contentGroupings": [
- {
- "from": "plan",
- "to": "contentGroup1"
- },
- {
- "from": "prop2",
- "to": "contentGroup2"
- }
- ]
- },
- "Enabled": true
- }
- }
- ]
- }
- },
- "output": {
- "response": {
- "status": 200,
- "body": [
- {
- "output": {
- "version": "1",
- "type": "REST",
- "method": "POST",
- "endpoint": "https://www.google-analytics.com/collect",
- "headers": {},
- "params": {
- "ul": "en-US",
- "ec": "All",
- "ni": 1,
- "v": "1",
- "t": "event",
- "el": "event",
- "tid": "UA-165994240-1",
- "ds": "web",
- "an": "RudderLabs JavaScript SDK",
- "av": "1.0.0",
- "aiid": "com.rudderlabs.javascript",
- "npa": 1,
- "linkid": "abc123",
- "cid": "00000000000000000000000000",
- "ea": "linkid test",
- "ua": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36",
- "uid": "12345",
- "qt": 124893881700
- },
- "body": {
- "JSON": {},
- "XML": {},
- "JSON_ARRAY": {},
- "FORM": {}
- },
- "files": {},
- "userId": "00000000000000000000000000"
- },
- "statusCode": 200
- }
- ]
- }
- }
- },
- {
- "name": "ga",
- "description": "Test 26",
- "feature": "processor",
- "module": "destination",
- "version": "v0",
- "input": {
- "request": {
- "body": [
- {
- "message": {
- "channel": "web",
- "context": {
- "app": {
- "build": "1.0.0",
- "name": "RudderLabs JavaScript SDK",
- "namespace": "com.rudderlabs.javascript",
- "version": "1.0.0"
- },
- "traits": {
- "email": "test@rudderstack.com"
- },
- "library": {
- "name": "RudderLabs JavaScript SDK",
- "version": "1.0.0"
- },
- "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36",
- "locale": "en-US",
- "os": {
- "name": "",
- "version": ""
- },
- "screen": {
- "density": 2
- },
- "campaign": {
- "name": "sampleName",
- "source": "sampleSource",
- "medium": "sampleMedium",
- "content": "sampleContent",
- "term": "sampleTerm"
- }
- },
- "type": "track",
- "messageId": "ec5481b6-a926-4d2e-b293-0b3a77c4d3be",
- "originalTimestamp": "2019-10-14T11:15:18.300Z",
- "anonymousId": "00000000000000000000000000",
- "userId": "12345",
- "event": "campaign test",
- "properties": {
- "testDimension": true,
- "testMetric": true
- },
- "integrations": {
- "All": true
- },
- "sentAt": "2019-10-14T11:15:53.296Z"
- },
- "destination": {
- "Config": {
- "trackingID": "UA-165994240-1",
- "doubleClick": true,
- "enhancedLinkAttribution": true,
- "classic": true,
- "ignoredReferrers": "",
- "serverClassic": false,
- "includeSearch": true,
- "trackCategorizedPages": true,
- "trackNamedPages": true,
- "sampleRate": "100",
- "siteSpeedSampleRate": "1",
- "setAllMappedProps": true,
- "enableServerSideIdentify": true,
- "serverSideIdentifyEventCategory": "cat1",
- "serverSideIdentifyEventAction": "action1",
- "domain": "domain",
- "enhancedEcommerce": true,
- "nonInteraction": true,
- "optimize": "abc123",
- "sendUserId": true,
- "useGoogleAmpClientId": true,
- "web-useNativeSDK": true,
- "dimensions": [
- {
- "from": "name",
- "to": "dimension1"
- },
- {
- "from": "custom2",
- "to": "dimension2"
- }
- ],
- "metrics": [
- {
- "from": "email",
- "to": "metric1"
- },
- {
- "from": "trait2",
- "to": "metric2"
- }
- ],
- "resetCustomDimensionsOnPage": [
- {
- "resetCustomDimensionsOnPage": "abc"
- },
- {
- "resetCustomDimensionsOnPage": "xyz"
- }
- ],
- "contentGroupings": [
- {
- "from": "plan",
- "to": "contentGroup1"
- },
- {
- "from": "prop2",
- "to": "contentGroup2"
- }
- ]
- },
- "Enabled": true
- }
- }
- ]
- }
- },
- "output": {
- "response": {
- "status": 200,
- "body": [
- {
- "output": {
- "version": "1",
- "type": "REST",
- "method": "POST",
- "endpoint": "https://www.google-analytics.com/collect",
- "headers": {},
- "params": {
- "ul": "en-US",
- "ec": "All",
- "ni": 1,
- "v": "1",
- "t": "event",
- "el": "event",
- "tid": "UA-165994240-1",
- "ds": "web",
- "an": "RudderLabs JavaScript SDK",
- "av": "1.0.0",
- "aiid": "com.rudderlabs.javascript",
- "npa": 1,
- "cn": "sampleName",
- "cs": "sampleSource",
- "cm": "sampleMedium",
- "cc": "sampleContent",
- "ck": "sampleTerm",
- "cid": "00000000000000000000000000",
- "ea": "campaign test",
- "ua": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36",
- "uid": "12345",
- "qt": 124893881700
- },
- "body": {
- "JSON": {},
- "XML": {},
- "JSON_ARRAY": {},
- "FORM": {}
- },
- "files": {},
- "userId": "00000000000000000000000000"
- },
- "statusCode": 200
- }
- ]
- }
- }
- },
- {
- "name": "ga",
- "description": "Test 27",
- "feature": "processor",
- "module": "destination",
- "version": "v0",
- "input": {
- "request": {
- "body": [
- {
- "message": {
- "channel": "web",
- "context": {
- "app": {
- "build": "1.0.0",
- "name": "RudderLabs JavaScript SDK",
- "namespace": "com.rudderlabs.javascript",
- "version": "1.0.0"
- },
- "traits": {
- "email": "test@rudderstack.com"
- },
- "library": {
- "name": "RudderLabs JavaScript SDK",
- "version": "1.0.0"
- },
- "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36",
- "locale": "en-US",
- "os": {
- "name": "",
- "version": ""
- },
- "screen": {
- "density": 2
- },
- "campaign": {
- "name": "sampleName",
- "source": "sampleSource",
- "medium": "sampleMedium",
- "content": "sampleContent",
- "term": "sampleTerm"
- }
- },
- "type": "track",
- "messageId": "ec5481b6-a926-4d2e-b293-0b3a77c4d3be",
- "originalTimestamp": "2019-10-14T11:15:18.300Z",
- "anonymousId": "00000000000000000000000000",
- "event": "campaign test",
- "properties": {
- "testDimension": true,
- "testMetric": true
- },
- "integrations": {
- "All": true
- },
- "sentAt": "2019-10-14T11:15:53.296Z"
- },
- "destination": {
- "Config": {
- "trackingID": "UA-165994240-1",
- "doubleClick": true,
- "enhancedLinkAttribution": true,
- "classic": true,
- "ignoredReferrers": "",
- "serverClassic": false,
- "includeSearch": true,
- "trackCategorizedPages": true,
- "trackNamedPages": true,
- "sampleRate": "100",
- "siteSpeedSampleRate": "1",
- "setAllMappedProps": true,
- "enableServerSideIdentify": true,
- "serverSideIdentifyEventCategory": "cat1",
- "serverSideIdentifyEventAction": "action1",
- "domain": "domain",
- "enhancedEcommerce": true,
- "nonInteraction": true,
- "optimize": "abc123",
- "sendUserId": true,
- "useGoogleAmpClientId": true,
- "web-useNativeSDK": true,
- "dimensions": [
- {
- "from": "name",
- "to": "dimension1"
- },
- {
- "from": "custom2",
- "to": "dimension2"
- }
- ],
- "metrics": [
- {
- "from": "email",
- "to": "metric1"
- },
- {
- "from": "trait2",
- "to": "metric2"
- }
- ],
- "resetCustomDimensionsOnPage": [
- {
- "resetCustomDimensionsOnPage": "abc"
- },
- {
- "resetCustomDimensionsOnPage": "xyz"
- }
- ],
- "contentGroupings": [
- {
- "from": "plan",
- "to": "contentGroup1"
- },
- {
- "from": "prop2",
- "to": "contentGroup2"
- }
- ]
- },
- "Enabled": true
- }
- }
- ]
- }
- },
- "output": {
- "response": {
- "status": 200,
- "body": [
- {
- "output": {
- "version": "1",
- "type": "REST",
- "method": "POST",
- "endpoint": "https://www.google-analytics.com/collect",
- "headers": {},
- "params": {
- "ul": "en-US",
- "ec": "All",
- "ni": 1,
- "v": "1",
- "t": "event",
- "el": "event",
- "tid": "UA-165994240-1",
- "ds": "web",
- "an": "RudderLabs JavaScript SDK",
- "av": "1.0.0",
- "aiid": "com.rudderlabs.javascript",
- "npa": 1,
- "cn": "sampleName",
- "cs": "sampleSource",
- "cm": "sampleMedium",
- "cc": "sampleContent",
- "ck": "sampleTerm",
- "cid": "00000000000000000000000000",
- "ea": "campaign test",
- "ua": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36",
- "qt": 124893881700
- },
- "body": {
- "JSON": {},
- "XML": {},
- "JSON_ARRAY": {},
- "FORM": {}
- },
- "files": {},
- "userId": "00000000000000000000000000"
- },
- "statusCode": 200
- }
- ]
- }
- }
- },
- {
- "name": "ga",
- "description": "Test 28",
- "feature": "processor",
- "module": "destination",
- "version": "v0",
- "input": {
- "request": {
- "body": [
- {
- "message": {
- "channel": "web",
- "context": {
- "app": {
- "build": "1.0.0",
- "name": "RudderLabs JavaScript SDK",
- "namespace": "com.rudderlabs.javascript",
- "version": "1.0.0"
- },
- "traits": {
- "email": "test@rudderstack.com"
- },
- "library": {
- "name": "RudderLabs JavaScript SDK",
- "version": "1.0.0"
- },
- "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36",
- "locale": "en-US",
- "os": {
- "name": "",
- "version": ""
- },
- "screen": {
- "density": 2
- },
- "campaign": {
- "name": "sampleName",
- "source": "sampleSource",
- "medium": "sampleMedium",
- "content": "sampleContent",
- "term": "sampleTerm"
- }
- },
- "type": "track",
- "messageId": "ec5481b6-a926-4d2e-b293-0b3a77c4d3be",
- "originalTimestamp": "2019-10-14T11:15:18.300Z",
- "anonymousId": "00000000000000000000000000",
- "event": "campaign test",
- "properties": {
- "testDimension": true,
- "testMetric": true
- },
- "integrations": {
- "All": true
- },
- "sentAt": "2019-10-14T11:15:53.296Z"
- },
- "destination": {
- "Config": {
- "trackingID": "UA-165994240-1",
- "doubleClick": true,
- "enhancedLinkAttribution": true,
- "classic": true,
- "ignoredReferrers": "",
- "serverClassic": false,
- "includeSearch": true,
- "trackCategorizedPages": true,
- "trackNamedPages": true,
- "sampleRate": "100",
- "siteSpeedSampleRate": "1",
- "setAllMappedProps": true,
- "enableServerSideIdentify": true,
- "serverSideIdentifyEventCategory": "cat1",
- "domain": "domain",
- "enhancedEcommerce": true,
- "nonInteraction": true,
- "optimize": "abc123",
- "sendUserId": true,
- "useGoogleAmpClientId": true,
- "web-useNativeSDK": true,
- "dimensions": [
- {
- "from": "name",
- "to": "dimension1"
- },
- {
- "from": "custom2",
- "to": "dimension2"
- }
- ],
- "metrics": [
- {
- "from": "email",
- "to": "metric1"
- },
- {
- "from": "trait2",
- "to": "metric2"
- }
- ],
- "resetCustomDimensionsOnPage": [
- {
- "resetCustomDimensionsOnPage": "abc"
- },
- {
- "resetCustomDimensionsOnPage": "xyz"
- }
- ],
- "contentGroupings": [
- {
- "from": "plan",
- "to": "contentGroup1"
- },
- {
- "from": "prop2",
- "to": "contentGroup2"
- }
- ]
- },
- "Enabled": true
- }
- }
- ]
- }
- },
- "output": {
- "response": {
- "status": 200,
- "body": [
- {
- "output": {
- "version": "1",
- "type": "REST",
- "method": "POST",
- "endpoint": "https://www.google-analytics.com/collect",
- "headers": {},
- "params": {
- "ul": "en-US",
- "ec": "All",
- "ni": 1,
- "v": "1",
- "t": "event",
- "el": "event",
- "tid": "UA-165994240-1",
- "ds": "web",
- "an": "RudderLabs JavaScript SDK",
- "av": "1.0.0",
- "aiid": "com.rudderlabs.javascript",
- "npa": 1,
- "cn": "sampleName",
- "cs": "sampleSource",
- "cm": "sampleMedium",
- "cc": "sampleContent",
- "ck": "sampleTerm",
- "cid": "00000000000000000000000000",
- "ea": "campaign test",
- "ua": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36",
- "qt": 124893881700
- },
- "body": {
- "JSON": {},
- "XML": {},
- "JSON_ARRAY": {},
- "FORM": {}
- },
- "files": {},
- "userId": "00000000000000000000000000"
- },
- "statusCode": 200
- }
- ]
- }
- }
- },
- {
- "name": "ga",
- "description": "Test 29",
- "feature": "processor",
- "module": "destination",
- "version": "v0",
- "input": {
- "request": {
- "body": [
- {
- "message": {
- "channel": "web",
- "context": {
- "app": {
- "build": "1.0.0",
- "name": "RudderLabs JavaScript SDK",
- "namespace": "com.rudderlabs.javascript",
- "version": "1.1.2"
- },
- "traits": {
- "abc": "1234"
- },
- "library": {
- "name": "RudderLabs JavaScript SDK",
- "version": "1.1.2"
- },
- "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/83.0.4103.97 Safari/537.36",
- "locale": "en-GB",
- "os": {
- "name": "",
- "version": ""
- },
- "screen": {
- "density": 2
- },
- "page": {
- "path": "/tests/html/ecomm_test.html",
- "referrer": "http://0.0.0.0:1112/tests/html/",
- "search": "",
- "title": "GA Ecommerce Test",
- "url": "http://0.0.0.0:1112/tests/html/ecomm_test.html"
- }
- },
- "type": "identify",
- "messageId": "bc8a6af8-37fd-46a9-9592-ea29a256435f",
- "originalTimestamp": "2020-06-22T11:30:32.493Z",
- "anonymousId": "38e169a1-3234-46f7-9ceb-c1a6a69005fe",
- "userId": "123",
- "integrations": {
- "All": true
- },
- "sentAt": "2020-06-22T11:30:32.494Z"
- },
- "destination": {
- "Config": {
- "trackingID": "UA-165994240-1",
- "doubleClick": true,
- "enhancedLinkAttribution": true,
- "classic": true,
- "ignoredReferrers": "",
- "serverClassic": false,
- "includeSearch": true,
- "trackCategorizedPages": true,
- "trackNamedPages": true,
- "sampleRate": "100",
- "siteSpeedSampleRate": "1",
- "setAllMappedProps": true,
- "enableServerSideIdentify": true,
- "serverSideIdentifyEventCategory": "cat1",
- "domain": "domain",
- "enhancedEcommerce": true,
- "nonInteraction": true,
- "optimize": "abc123",
- "sendUserId": true,
- "useGoogleAmpClientId": true,
- "web-useNativeSDK": true,
- "dimensions": [
- {
- "from": "name",
- "to": "dimension1"
- },
- {
- "from": "custom2",
- "to": "dimension2"
- }
- ],
- "metrics": [
- {
- "from": "email",
- "to": "metric1"
- },
- {
- "from": "trait2",
- "to": "metric2"
- }
- ],
- "resetCustomDimensionsOnPage": [
- {
- "resetCustomDimensionsOnPage": "abc"
- },
- {
- "resetCustomDimensionsOnPage": "xyz"
- }
- ],
- "contentGroupings": [
- {
- "from": "plan",
- "to": "contentGroup1"
- },
- {
- "from": "prop2",
- "to": "contentGroup2"
- }
- ]
- },
- "Enabled": true
- }
- }
- ]
- }
- },
- "output": {
- "response": {
- "status": 200,
- "body": [
- {
- "output": {
- "version": "1",
- "type": "REST",
- "method": "POST",
- "endpoint": "https://www.google-analytics.com/collect",
- "headers": {},
- "params": {
- "ea": "User Enriched",
- "dt": "GA Ecommerce Test",
- "ec": "All",
- "v": "1",
- "t": "event",
- "tid": "UA-165994240-1",
- "ds": "web",
- "an": "RudderLabs JavaScript SDK",
- "av": "1.1.2",
- "aiid": "com.rudderlabs.javascript",
- "npa": 1,
- "uid": "123",
- "cid": "38e169a1-3234-46f7-9ceb-c1a6a69005fe",
- "ni": 1,
- "ua": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/83.0.4103.97 Safari/537.36",
- "ul": "en-GB",
- "qt": 103120167507
- },
- "body": {
- "JSON": {},
- "XML": {},
- "JSON_ARRAY": {},
- "FORM": {}
- },
- "files": {},
- "userId": "38e169a1-3234-46f7-9ceb-c1a6a69005fe"
- },
- "statusCode": 200
- }
- ]
- }
- }
- },
- {
- "name": "ga",
- "description": "Test 30",
- "feature": "processor",
- "module": "destination",
- "version": "v0",
- "input": {
- "request": {
- "body": [
- {
- "message": {
- "channel": "web",
- "context": {
- "app": {
- "build": "1.0.0",
- "name": "RudderLabs JavaScript SDK",
- "namespace": "com.rudderlabs.javascript",
- "version": "1.0.0"
- },
- "traits": {
- "email": "test@rudderstack.com"
- },
- "library": {
- "name": "RudderLabs JavaScript SDK",
- "version": "1.0.0"
- },
- "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36",
- "locale": "en-US",
- "ip": "0.0.0.0",
- "os": {
- "name": "",
- "version": ""
- },
- "screen": {
- "density": 2
- }
- },
- "type": "page",
- "messageId": "5e10d13a-bf9a-44bf-b884-43a9e591ea71",
- "originalTimestamp": "2019-10-14T11:15:18.299Z",
- "anonymousId": "00000000000000000000000000",
- "userId": "12345",
- "integrations": {
- "All": true
- },
- "name": "ApplicationLoaded",
- "sentAt": "2019-10-14T11:15:53.296Z"
- },
- "destination": {
- "Config": {
- "trackingID": "UA-165994240-1",
- "doubleClick": true,
- "enhancedLinkAttribution": true,
- "classic": true,
- "ignoredReferrers": "",
- "serverClassic": false,
- "includeSearch": true,
- "trackCategorizedPages": true,
- "trackNamedPages": true,
- "sampleRate": "100",
- "siteSpeedSampleRate": "1",
- "setAllMappedProps": true,
- "enableServerSideIdentify": true,
- "serverSideIdentifyEventCategory": "cat1",
- "serverSideIdentifyEventAction": "action1",
- "anonymizeIp": true,
- "domain": "domain",
- "enhancedEcommerce": true,
- "nonInteraction": true,
- "optimize": "abc123",
- "sendUserId": true,
- "useGoogleAmpClientId": true,
- "web-useNativeSDK": true,
- "dimensions": [
- {
- "from": "name",
- "to": "dimension1"
- },
- {
- "from": "custom2",
- "to": "dimension2"
- }
- ],
- "metrics": [
- {
- "from": "email",
- "to": "metric1"
- },
- {
- "from": "trait2",
- "to": "metric2"
- }
- ],
- "resetCustomDimensionsOnPage": [
- {
- "resetCustomDimensionsOnPage": "abc"
- },
- {
- "resetCustomDimensionsOnPage": "xyz"
- }
- ],
- "contentGroupings": [
- {
- "from": "plan",
- "to": "contentGroup1"
- },
- {
- "from": "prop2",
- "to": "contentGroup2"
- }
- ]
- },
- "Enabled": true
- }
- }
- ]
- }
- },
- "output": {
- "response": {
- "status": 200,
- "body": [
- {
- "output": {
- "version": "1",
- "type": "REST",
- "method": "POST",
- "endpoint": "https://www.google-analytics.com/collect",
- "headers": {},
- "params": {
- "v": "1",
- "t": "pageview",
- "tid": "UA-165994240-1",
- "ds": "web",
- "an": "RudderLabs JavaScript SDK",
- "av": "1.0.0",
- "aiid": "com.rudderlabs.javascript",
- "npa": 1,
- "aip": 1,
- "cid": "00000000000000000000000000",
- "ua": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36",
- "uid": "12345",
- "ul": "en-US",
- "uip": "0.0.0.0",
- "qt": 124893881701
- },
- "body": {
- "JSON": {},
- "XML": {},
- "JSON_ARRAY": {},
- "FORM": {}
- },
- "files": {},
- "userId": "00000000000000000000000000"
- },
- "statusCode": 200
- }
- ]
- }
- }
- },
- {
- "name": "ga",
- "description": "Test 31",
- "feature": "processor",
- "module": "destination",
- "version": "v0",
- "input": {
- "request": {
- "body": [
- {
- "message": {
- "channel": "web",
- "context": {
- "app": {
- "build": "1.0.0",
- "name": "RudderLabs JavaScript SDK",
- "namespace": "com.rudderlabs.javascript",
- "version": "1.0.0"
- },
- "traits": {
- "email": "test@rudderstack.com"
- },
- "library": {
- "name": "RudderLabs JavaScript SDK",
- "version": "1.0.0"
- },
- "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36",
- "locale": "en-US",
- "ip": "0.0.0.0",
- "os": {
- "name": "",
- "version": ""
- },
- "screen": {
- "density": 2
- }
- },
- "type": "page",
- "messageId": "5e10d13a-bf9a-44bf-b884-43a9e591ea71",
- "originalTimestamp": "2019-10-14T11:15:18.299Z",
- "anonymousId": "00000000000000000000000000",
- "userId": "12345",
- "properties": {
- "path": "/abc",
- "referrer": "",
- "search": "?xyz=1",
- "title": "",
- "url": "https://www.example.com/abc"
- },
- "integrations": {
- "All": true
- },
- "name": "ApplicationLoaded",
- "sentAt": "2019-10-14T11:15:53.296Z"
- },
- "destination": {
- "Config": {
- "trackingID": "UA-165994240-1",
- "doubleClick": true,
- "enhancedLinkAttribution": true,
- "classic": true,
- "ignoredReferrers": "",
- "serverClassic": false,
- "includeSearch": true,
- "trackCategorizedPages": true,
- "trackNamedPages": true,
- "sampleRate": "100",
- "siteSpeedSampleRate": "1",
- "setAllMappedProps": true,
- "enableServerSideIdentify": true,
- "serverSideIdentifyEventCategory": "cat1",
- "serverSideIdentifyEventAction": "action1",
- "anonymizeIp": true,
- "domain": "domain",
- "enhancedEcommerce": true,
- "nonInteraction": true,
- "optimize": "abc123",
- "sendUserId": true,
- "useGoogleAmpClientId": true,
- "web-useNativeSDK": true,
- "dimensions": [
- {
- "from": "name",
- "to": "dimension1"
- },
- {
- "from": "custom2",
- "to": "dimension2"
- }
- ],
- "metrics": [
- {
- "from": "email",
- "to": "metric1"
- },
- {
- "from": "trait2",
- "to": "metric2"
- }
- ],
- "resetCustomDimensionsOnPage": [
- {
- "resetCustomDimensionsOnPage": "abc"
- },
- {
- "resetCustomDimensionsOnPage": "xyz"
- }
- ],
- "contentGroupings": [
- {
- "from": "plan",
- "to": "contentGroup1"
- },
- {
- "from": "prop2",
- "to": "contentGroup2"
- }
- ]
- },
- "Enabled": true
- }
- }
- ]
- }
- },
- "output": {
- "response": {
- "status": 200,
- "body": [
- {
- "output": {
- "version": "1",
- "type": "REST",
- "method": "POST",
- "endpoint": "https://www.google-analytics.com/collect",
- "headers": {},
- "params": {
- "v": "1",
- "t": "pageview",
- "tid": "UA-165994240-1",
- "ds": "web",
- "an": "RudderLabs JavaScript SDK",
- "av": "1.0.0",
- "aiid": "com.rudderlabs.javascript",
- "npa": 1,
- "aip": 1,
- "cid": "00000000000000000000000000",
- "ua": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36",
- "uid": "12345",
- "ul": "en-US",
- "uip": "0.0.0.0",
- "dh": "www.example.com",
- "dl": "https://www.example.com/abc",
- "dp": "%2Fabc%3Fxyz%3D1",
- "qt": 124893881701
- },
- "body": {
- "JSON": {},
- "XML": {},
- "JSON_ARRAY": {},
- "FORM": {}
- },
- "files": {},
- "userId": "00000000000000000000000000"
- },
- "statusCode": 200
- }
- ]
- }
- }
- },
- {
- "name": "ga",
- "description": "Test 32",
- "feature": "processor",
- "module": "destination",
- "version": "v0",
- "input": {
- "request": {
- "body": [
- {
- "message": {
- "channel": "web",
- "context": {
- "app": {
- "build": "1.0.0",
- "name": "RudderLabs JavaScript SDK",
- "namespace": "com.rudderlabs.javascript",
- "version": "1.0.0"
- },
- "traits": {
- "email": "test@rudderstack.com"
- },
- "library": {
- "name": "RudderLabs JavaScript SDK",
- "version": "1.0.0"
- },
- "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36",
- "locale": "en-US",
- "ip": "0.0.0.0",
- "os": {
- "name": "",
- "version": ""
- },
- "screen": {
- "density": 2
- }
- },
- "type": "track",
- "messageId": "5e10d13a-bf9a-44bf-b884-43a9e591ea71",
- "originalTimestamp": "2019-10-14T11:15:18.299Z",
- "anonymousId": "00000000000000000000000000",
- "userId": "12345",
- "integrations": {
- "All": true
- },
- "event": "sample event",
- "sentAt": "2019-10-14T11:15:53.296Z"
- },
- "destination": {
- "Config": {
- "trackingID": "UA-165994240-1",
- "doubleClick": true,
- "enhancedLinkAttribution": true,
- "classic": true,
- "ignoredReferrers": "",
- "serverClassic": false,
- "includeSearch": true,
- "trackCategorizedPages": true,
- "trackNamedPages": true,
- "sampleRate": "100",
- "siteSpeedSampleRate": "1",
- "setAllMappedProps": true,
- "enableServerSideIdentify": true,
- "serverSideIdentifyEventCategory": "cat1",
- "serverSideIdentifyEventAction": "action1",
- "anonymizeIp": true,
- "domain": "domain",
- "nonInteraction": true,
- "optimize": "abc123",
- "sendUserId": true,
- "useGoogleAmpClientId": true,
- "web-useNativeSDK": true,
- "dimensions": [
- {
- "from": "name",
- "to": "dimension1"
- },
- {
- "from": "custom2",
- "to": "dimension2"
- }
- ],
- "metrics": [
- {
- "from": "email",
- "to": "metric1"
- },
- {
- "from": "trait2",
- "to": "metric2"
- }
- ],
- "resetCustomDimensionsOnPage": [
- {
- "resetCustomDimensionsOnPage": "abc"
- },
- {
- "resetCustomDimensionsOnPage": "xyz"
- }
- ],
- "contentGroupings": [
- {
- "from": "plan",
- "to": "contentGroup1"
- },
- {
- "from": "prop2",
- "to": "contentGroup2"
- }
- ]
- },
- "Enabled": true
- }
- }
- ]
- }
- },
- "output": {
- "response": {
- "status": 200,
- "body": [
- {
- "output": {
- "version": "1",
- "type": "REST",
- "method": "POST",
- "endpoint": "https://www.google-analytics.com/collect",
- "headers": {},
- "params": {
- "ec": "All",
- "ni": 1,
- "v": "1",
- "t": "event",
- "el": "event",
- "tid": "UA-165994240-1",
- "ds": "web",
- "an": "RudderLabs JavaScript SDK",
- "av": "1.0.0",
- "aiid": "com.rudderlabs.javascript",
- "npa": 1,
- "aip": 1,
- "cid": "00000000000000000000000000",
- "ea": "sample event",
- "ua": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36",
- "uid": "12345",
- "ul": "en-US",
- "uip": "0.0.0.0",
- "qt": 124893881701
- },
- "body": {
- "JSON": {},
- "XML": {},
- "JSON_ARRAY": {},
- "FORM": {}
- },
- "files": {},
- "userId": "00000000000000000000000000"
- },
- "statusCode": 200
- }
- ]
- }
- }
- },
- {
- "name": "ga",
- "description": "Test 33",
- "feature": "processor",
- "module": "destination",
- "version": "v0",
- "input": {
- "request": {
- "body": [
- {
- "message": {
- "channel": "web",
- "context": {
- "app": {
- "build": "1.0.0",
- "name": "RudderLabs JavaScript SDK",
- "namespace": "com.rudderlabs.javascript",
- "version": "1.0.0"
- },
- "traits": {
- "email": "test@rudderstack.com"
- },
- "library": {
- "name": "RudderLabs JavaScript SDK",
- "version": "1.0.0"
- },
- "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36",
- "locale": "en-US",
- "os": {
- "name": "",
- "version": ""
- },
- "screen": {
- "density": 2
- }
- },
- "type": "track",
- "messageId": "ec5481b6-a926-4d2e-b293-0b3a77c4d3be",
- "originalTimestamp": "2019-10-14T11:15:18.300Z",
- "anonymousId": "00000000000000000000000000",
- "userId": "12345",
- "event": "Order Refunded",
- "properties": {
- "order_id": "rudderstackorder1",
- "total": 99.99,
- "shipping": 13.99,
- "tax": 20.99,
- "currency": "INR",
- "products": [
- {
- "quantity": 1,
- "price": 24.75,
- "name": "my product",
- "sku": "p-298"
- },
- {
- "quantity": 3,
- "price": 24.75,
- "name": "other product",
- "sku": "p-299"
- }
- ]
- },
- "integrations": {
- "All": true
- },
- "sentAt": "2019-10-14T11:15:53.296Z"
- },
- "destination": {
- "Config": {
- "trackingID": "UA-165994240-1",
- "doubleClick": true,
- "enhancedLinkAttribution": true,
- "classic": true,
- "ignoredReferrers": "",
- "serverClassic": false,
- "includeSearch": true,
- "trackCategorizedPages": true,
- "trackNamedPages": true,
- "sampleRate": "100",
- "siteSpeedSampleRate": "1",
- "setAllMappedProps": true,
- "enableServerSideIdentify": true,
- "serverSideIdentifyEventCategory": "cat1",
- "serverSideIdentifyEventAction": "action1",
- "anonymizeIp": true,
- "domain": "domain",
- "enhancedEcommerce": true,
- "nonInteraction": true,
- "optimize": "abc123",
- "sendUserId": true,
- "useGoogleAmpClientId": true,
- "web-useNativeSDK": true,
- "dimensions": [
- {
- "from": "name",
- "to": "dimension1"
- },
- {
- "from": "custom2",
- "to": "dimension2"
- }
- ],
- "metrics": [
- {
- "from": "email",
- "to": "metric1"
- },
- {
- "from": "trait2",
- "to": "metric2"
- }
- ],
- "resetCustomDimensionsOnPage": [
- {
- "resetCustomDimensionsOnPage": "abc"
- },
- {
- "resetCustomDimensionsOnPage": "xyz"
- }
- ],
- "contentGroupings": [
- {
- "from": "plan",
- "to": "contentGroup1"
- },
- {
- "from": "prop2",
- "to": "contentGroup2"
- }
- ]
- },
- "Enabled": true
- }
- }
- ]
- }
- },
- "output": {
- "response": {
- "status": 200,
- "body": [
- {
- "output": {
- "version": "1",
- "type": "REST",
- "method": "POST",
- "endpoint": "https://www.google-analytics.com/collect",
- "headers": {},
- "params": {
- "pa": "refund",
- "ev": 100,
- "pr1id": "p-298",
- "pr1cd1": "my product",
- "pr1nm": "my product",
- "pr1pr": 24.75,
- "pr1qt": 1,
- "pr2id": "p-299",
- "pr2cd1": "other product",
- "pr2nm": "other product",
- "pr2pr": 24.75,
- "pr2qt": 3,
- "ea": "Order Refunded",
- "ec": "EnhancedEcommerce",
- "v": "1",
- "t": "event",
- "el": "event",
- "tid": "UA-165994240-1",
- "ds": "web",
- "an": "RudderLabs JavaScript SDK",
- "av": "1.0.0",
- "aiid": "com.rudderlabs.javascript",
- "npa": 1,
- "aip": 1,
- "ua": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36",
- "cid": "00000000000000000000000000",
- "ti": "rudderstackorder1",
- "uid": "12345",
- "ul": "en-US",
- "ni": 1,
- "qt": 124893881700
- },
- "body": {
- "JSON": {},
- "XML": {},
- "JSON_ARRAY": {},
- "FORM": {}
- },
- "files": {},
- "userId": "00000000000000000000000000"
- },
- "statusCode": 200
- }
- ]
- }
- }
- },
- {
- "name": "ga",
- "description": "Test 34",
- "feature": "processor",
- "module": "destination",
- "version": "v0",
- "input": {
- "request": {
- "body": [
- {
- "message": {
- "channel": "web",
- "context": {
- "app": {
- "build": "1.0.0",
- "name": "RudderLabs JavaScript SDK",
- "namespace": "com.rudderlabs.javascript",
- "version": "1.0.0"
- },
- "traits": {
- "email": "test@rudderstack.com"
- },
- "library": {
- "name": "RudderLabs JavaScript SDK",
- "version": "1.0.0"
- },
- "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36",
- "locale": "en-US",
- "os": {
- "name": "",
- "version": ""
- },
- "screen": {
- "density": 2
- }
- },
- "type": "track",
- "messageId": "ec5481b6-a926-4d2e-b293-0b3a77c4d3be",
- "originalTimestamp": "2019-10-14T11:15:18.300Z",
- "anonymousId": "00000000000000000000000000",
- "userId": "12345",
- "event": "Order Refunded",
- "properties": {
- "order_id": "rudderstackorder1",
- "total": 99.99,
- "shipping": 13.99,
- "tax": 20.99,
- "currency": "INR"
- },
- "integrations": {
- "All": true
- },
- "sentAt": "2019-10-14T11:15:53.296Z"
- },
- "destination": {
- "Config": {
- "trackingID": "UA-165994240-1",
- "doubleClick": true,
- "enhancedLinkAttribution": true,
- "classic": true,
- "ignoredReferrers": "",
- "serverClassic": false,
- "includeSearch": true,
- "trackCategorizedPages": true,
- "trackNamedPages": true,
- "sampleRate": "100",
- "siteSpeedSampleRate": "1",
- "setAllMappedProps": true,
- "enableServerSideIdentify": true,
- "serverSideIdentifyEventCategory": "cat1",
- "serverSideIdentifyEventAction": "action1",
- "anonymizeIp": true,
- "domain": "domain",
- "enhancedEcommerce": true,
- "nonInteraction": true,
- "optimize": "abc123",
- "sendUserId": true,
- "useGoogleAmpClientId": true,
- "web-useNativeSDK": true,
- "dimensions": [
- {
- "from": "name",
- "to": "dimension1"
- },
- {
- "from": "custom2",
- "to": "dimension2"
- }
- ],
- "metrics": [
- {
- "from": "email",
- "to": "metric1"
- },
- {
- "from": "trait2",
- "to": "metric2"
- }
- ],
- "resetCustomDimensionsOnPage": [
- {
- "resetCustomDimensionsOnPage": "abc"
- },
- {
- "resetCustomDimensionsOnPage": "xyz"
- }
- ],
- "contentGroupings": [
- {
- "from": "plan",
- "to": "contentGroup1"
- },
- {
- "from": "prop2",
- "to": "contentGroup2"
- }
- ]
- },
- "Enabled": true
- }
- }
- ]
- }
- },
- "output": {
- "response": {
- "status": 200,
- "body": [
- {
- "output": {
- "version": "1",
- "type": "REST",
- "method": "POST",
- "endpoint": "https://www.google-analytics.com/collect",
- "headers": {},
- "params": {
- "ev": 100,
- "pa": "refund",
- "ti": "rudderstackorder1",
- "ea": "Order Refunded",
- "ec": "EnhancedEcommerce",
- "v": "1",
- "t": "event",
- "el": "event",
- "tid": "UA-165994240-1",
- "ds": "web",
- "an": "RudderLabs JavaScript SDK",
- "av": "1.0.0",
- "aiid": "com.rudderlabs.javascript",
- "npa": 1,
- "aip": 1,
- "ua": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36",
- "cid": "00000000000000000000000000",
- "uid": "12345",
- "ul": "en-US",
- "ni": 1,
- "qt": 124893881700
- },
- "body": {
- "JSON": {},
- "XML": {},
- "JSON_ARRAY": {},
- "FORM": {}
- },
- "files": {},
- "userId": "00000000000000000000000000"
- },
- "statusCode": 200
- }
- ]
- }
- }
- },
- {
- "name": "ga",
- "description": "Test 35",
- "feature": "processor",
- "module": "destination",
- "version": "v0",
- "input": {
- "request": {
- "body": [
- {
- "message": {
- "channel": "web",
- "context": {
- "app": {
- "build": "1.0.0",
- "name": "RudderLabs JavaScript SDK",
- "namespace": "com.rudderlabs.javascript",
- "version": "1.0.0"
- },
- "traits": {
- "email": "test@rudderstack.com"
- },
- "library": {
- "name": "RudderLabs JavaScript SDK",
- "version": "1.0.0"
- },
- "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36",
- "locale": "en-US",
- "os": {
- "name": "",
- "version": ""
- },
- "screen": {
- "density": 2
- }
- },
- "type": "track",
- "messageId": "ec5481b6-a926-4d2e-b293-0b3a77c4d3be",
- "originalTimestamp": "2019-10-14T11:15:18.300Z",
- "anonymousId": "00000000000000000000000000",
- "userId": "12345",
- "event": "Order Refunded",
- "properties": {
- "order_id": "rudderstackorder1",
- "total": 99.99,
- "shipping": 13.99,
- "tax": 20.99,
- "currency": "INR",
- "products": []
- },
- "integrations": {
- "All": true
- },
- "sentAt": "2019-10-14T11:15:53.296Z"
- },
- "destination": {
- "Config": {
- "trackingID": "UA-165994240-1",
- "doubleClick": true,
- "enhancedLinkAttribution": true,
- "classic": true,
- "ignoredReferrers": "",
- "serverClassic": false,
- "includeSearch": true,
- "trackCategorizedPages": true,
- "trackNamedPages": true,
- "sampleRate": "100",
- "siteSpeedSampleRate": "1",
- "setAllMappedProps": true,
- "enableServerSideIdentify": true,
- "serverSideIdentifyEventCategory": "cat1",
- "serverSideIdentifyEventAction": "action1",
- "anonymizeIp": true,
- "domain": "domain",
- "enhancedEcommerce": true,
- "nonInteraction": true,
- "optimize": "abc123",
- "sendUserId": true,
- "useGoogleAmpClientId": true,
- "web-useNativeSDK": true,
- "dimensions": [
- {
- "from": "name",
- "to": "dimension1"
- },
- {
- "from": "custom2",
- "to": "dimension2"
- }
- ],
- "metrics": [
- {
- "from": "email",
- "to": "metric1"
- },
- {
- "from": "trait2",
- "to": "metric2"
- }
- ],
- "resetCustomDimensionsOnPage": [
- {
- "resetCustomDimensionsOnPage": "abc"
- },
- {
- "resetCustomDimensionsOnPage": "xyz"
- }
- ],
- "contentGroupings": [
- {
- "from": "plan",
- "to": "contentGroup1"
- },
- {
- "from": "prop2",
- "to": "contentGroup2"
- }
- ]
- },
- "Enabled": true
- }
- }
- ]
- }
- },
- "output": {
- "response": {
- "status": 200,
- "body": [
- {
- "output": {
- "version": "1",
- "type": "REST",
- "method": "POST",
- "endpoint": "https://www.google-analytics.com/collect",
- "headers": {},
- "params": {
- "ev": 100,
- "pa": "refund",
- "ti": "rudderstackorder1",
- "ea": "Order Refunded",
- "ec": "EnhancedEcommerce",
- "v": "1",
- "t": "event",
- "el": "event",
- "tid": "UA-165994240-1",
- "ds": "web",
- "an": "RudderLabs JavaScript SDK",
- "av": "1.0.0",
- "aiid": "com.rudderlabs.javascript",
- "npa": 1,
- "aip": 1,
- "ua": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36",
- "cid": "00000000000000000000000000",
- "uid": "12345",
- "ul": "en-US",
- "ni": 1,
- "qt": 124893881700
- },
- "body": {
- "JSON": {},
- "XML": {},
- "JSON_ARRAY": {},
- "FORM": {}
- },
- "files": {},
- "userId": "00000000000000000000000000"
- },
- "statusCode": 200
- }
- ]
- }
- }
- },
- {
- "name": "ga",
- "description": "Test 36",
- "feature": "processor",
- "module": "destination",
- "version": "v0",
- "input": {
- "request": {
- "body": [
- {
- "message": {
- "channel": "web",
- "context": {
- "app": {
- "build": "1.0.0",
- "name": "RudderLabs JavaScript SDK",
- "namespace": "com.rudderlabs.javascript",
- "version": "1.0.0"
- },
- "traits": {
- "email": "test@rudderstack.com"
- },
- "library": {
- "name": "RudderLabs JavaScript SDK",
- "version": "1.0.0"
- },
- "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36",
- "locale": "en-US",
- "os": {
- "name": "",
- "version": ""
- },
- "screen": {
- "density": 2
- }
- },
- "type": "track",
- "messageId": "ec5481b6-a926-4d2e-b293-0b3a77c4d3be",
- "originalTimestamp": "2019-10-14T11:15:18.300Z",
- "anonymousId": "00000000000000000000000000",
- "userId": "12345",
- "event": "Order Refunded",
- "properties": {
- "order_id": "rudderstackorder1",
- "total": 99.99,
- "shipping": 13.99,
- "tax": 20.99,
- "currency": "INR",
- "products": [
- {
- "quantity": 1,
- "price": 24.75,
- "name": "my product",
- "sku": "p-298",
- "product_id": "1"
- },
- {
- "quantity": 3,
- "price": 24.75,
- "name": "other product",
- "sku": "p-299",
- "product_id": "2"
- }
- ]
- },
- "integrations": {
- "All": true
- },
- "sentAt": "2019-10-14T11:15:53.296Z"
- },
- "destination": {
- "Config": {
- "trackingID": "UA-165994240-1",
- "doubleClick": true,
- "enhancedLinkAttribution": true,
- "classic": true,
- "ignoredReferrers": "",
- "serverClassic": false,
- "includeSearch": true,
- "trackCategorizedPages": true,
- "trackNamedPages": true,
- "sampleRate": "100",
- "siteSpeedSampleRate": "1",
- "setAllMappedProps": true,
- "enableServerSideIdentify": true,
- "serverSideIdentifyEventCategory": "cat1",
- "serverSideIdentifyEventAction": "action1",
- "anonymizeIp": true,
- "domain": "domain",
- "enhancedEcommerce": true,
- "nonInteraction": true,
- "optimize": "abc123",
- "sendUserId": true,
- "useGoogleAmpClientId": true,
- "web-useNativeSDK": true,
- "dimensions": [
- {
- "from": "name",
- "to": "dimension1"
- },
- {
- "from": "custom2",
- "to": "dimension2"
- }
- ],
- "metrics": [
- {
- "from": "email",
- "to": "metric1"
- },
- {
- "from": "trait2",
- "to": "metric2"
- }
- ],
- "resetCustomDimensionsOnPage": [
- {
- "resetCustomDimensionsOnPage": "abc"
- },
- {
- "resetCustomDimensionsOnPage": "xyz"
- }
- ],
- "contentGroupings": [
- {
- "from": "plan",
- "to": "contentGroup1"
- },
- {
- "from": "prop2",
- "to": "contentGroup2"
- }
- ]
- },
- "Enabled": true
- }
- }
- ]
- }
- },
- "output": {
- "response": {
- "status": 200,
- "body": [
- {
- "output": {
- "version": "1",
- "type": "REST",
- "method": "POST",
- "endpoint": "https://www.google-analytics.com/collect",
- "headers": {},
- "params": {
- "ev": 100,
- "pa": "refund",
- "pr1id": "1",
- "pr1cd1": "my product",
- "pr1nm": "my product",
- "pr1pr": 24.75,
- "pr1qt": 1,
- "pr2id": "2",
- "pr2cd1": "other product",
- "pr2nm": "other product",
- "pr2pr": 24.75,
- "pr2qt": 3,
- "ea": "Order Refunded",
- "ec": "EnhancedEcommerce",
- "v": "1",
- "t": "event",
- "el": "event",
- "tid": "UA-165994240-1",
- "ds": "web",
- "an": "RudderLabs JavaScript SDK",
- "av": "1.0.0",
- "aiid": "com.rudderlabs.javascript",
- "npa": 1,
- "aip": 1,
- "ua": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36",
- "cid": "00000000000000000000000000",
- "ti": "rudderstackorder1",
- "uid": "12345",
- "ul": "en-US",
- "ni": 1,
- "qt": 124893881700
- },
- "body": {
- "JSON": {},
- "XML": {},
- "JSON_ARRAY": {},
- "FORM": {}
- },
- "files": {},
- "userId": "00000000000000000000000000"
- },
- "statusCode": 200
- }
- ]
- }
- }
- },
- {
- "name": "ga",
- "description": "Test 37",
- "feature": "processor",
- "module": "destination",
- "version": "v0",
- "input": {
- "request": {
- "body": [
- {
- "message": {
- "channel": "web",
- "context": {
- "app": {
- "build": "1.0.0",
- "name": "RudderLabs JavaScript SDK",
- "namespace": "com.rudderlabs.javascript",
- "version": "1.0.0"
- },
- "traits": {
- "email": "test@rudderstack.com"
- },
- "library": {
- "name": "RudderLabs JavaScript SDK",
- "version": "1.0.0"
- },
- "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36",
- "locale": "en-US",
- "os": {
- "name": "",
- "version": ""
- },
- "screen": {
- "density": 2
- }
- },
- "type": "track",
- "messageId": "ec5481b6-a926-4d2e-b293-0b3a77c4d3be",
- "originalTimestamp": "2019-10-14T11:15:18.300Z",
- "anonymousId": "00000000000000000000000000",
- "userId": "12345",
- "event": "Cart Shared",
- "properties": {
- "order_id": "rudderstackorder1",
- "total": 99.99,
- "shipping": 13.99,
- "tax": 20.99,
- "currency": "INR",
- "products": [
- {
- "quantity": 1,
- "price": 24.75,
- "name": "my product",
- "sku": "p-298",
- "product_id": "1"
- },
- {
- "quantity": 3,
- "price": 24.75,
- "name": "other product",
- "sku": "p-299",
- "product_id": "2"
- }
- ]
- },
- "integrations": {
- "All": true
- },
- "sentAt": "2019-10-14T11:15:53.296Z"
- },
- "destination": {
- "Config": {
- "trackingID": "UA-165994240-1",
- "doubleClick": true,
- "enhancedLinkAttribution": true,
- "classic": true,
- "ignoredReferrers": "",
- "serverClassic": false,
- "includeSearch": true,
- "trackCategorizedPages": true,
- "trackNamedPages": true,
- "sampleRate": "100",
- "siteSpeedSampleRate": "1",
- "setAllMappedProps": true,
- "enableServerSideIdentify": true,
- "serverSideIdentifyEventCategory": "cat1",
- "serverSideIdentifyEventAction": "action1",
- "anonymizeIp": true,
- "domain": "domain",
- "enhancedEcommerce": true,
- "nonInteraction": true,
- "optimize": "abc123",
- "sendUserId": true,
- "useGoogleAmpClientId": true,
- "web-useNativeSDK": true,
- "dimensions": [
- {
- "from": "name",
- "to": "dimension1"
- },
- {
- "from": "custom2",
- "to": "dimension2"
- }
- ],
- "metrics": [
- {
- "from": "email",
- "to": "metric1"
- },
- {
- "from": "trait2",
- "to": "metric2"
- }
- ],
- "resetCustomDimensionsOnPage": [
- {
- "resetCustomDimensionsOnPage": "abc"
- },
- {
- "resetCustomDimensionsOnPage": "xyz"
- }
- ],
- "contentGroupings": [
- {
- "from": "plan",
- "to": "contentGroup1"
- },
- {
- "from": "prop2",
- "to": "contentGroup2"
- }
- ]
- },
- "Enabled": true
- }
- }
- ]
- }
- },
- "output": {
- "response": {
- "status": 200,
- "body": [
- {
- "output": {
- "version": "1",
- "type": "REST",
- "method": "POST",
- "endpoint": "https://www.google-analytics.com/collect",
- "headers": {},
- "params": {
- "ev": 100,
- "ea": "Cart Shared",
- "ec": "All",
- "ni": 1,
- "v": "1",
- "t": "event",
- "el": "event",
- "tid": "UA-165994240-1",
- "ds": "web",
- "an": "RudderLabs JavaScript SDK",
- "av": "1.0.0",
- "aiid": "com.rudderlabs.javascript",
- "npa": 1,
- "aip": 1,
- "cid": "00000000000000000000000000",
- "ua": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36",
- "uid": "12345",
- "st": " 1 2",
- "ul": "en-US",
- "qt": 124893881700
- },
- "body": {
- "JSON": {},
- "XML": {},
- "JSON_ARRAY": {},
- "FORM": {}
- },
- "files": {},
- "userId": "00000000000000000000000000"
- },
- "statusCode": 200
- }
- ]
- }
- }
- },
- {
- "name": "ga",
- "description": "Test 38",
- "feature": "processor",
- "module": "destination",
- "version": "v0",
- "input": {
- "request": {
- "body": [
- {
- "message": {
- "channel": "web",
- "context": {
- "app": {
- "build": "1.0.0",
- "name": "RudderLabs JavaScript SDK",
- "namespace": "com.rudderlabs.javascript",
- "version": "1.0.0"
- },
- "traits": {
- "email": "test@rudderstack.com"
- },
- "library": {
- "name": "RudderLabs JavaScript SDK",
- "version": "1.0.0"
- },
- "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36",
- "locale": "en-US",
- "os": {
- "name": "",
- "version": ""
- },
- "screen": {
- "density": 2
- }
- },
- "type": "track",
- "messageId": "ec5481b6-a926-4d2e-b293-0b3a77c4d3be",
- "originalTimestamp": "2019-10-14T11:15:18.300Z",
- "anonymousId": "00000000000000000000000000",
- "userId": "12345",
- "event": "Product Shared",
- "properties": {
- "product_id": "rudderstackorder1",
- "total": 99.99,
- "shipping": 13.99,
- "tax": 20.99,
- "currency": "INR",
- "url": "https://www.example.com/abc"
- },
- "integrations": {
- "All": true
- },
- "sentAt": "2019-10-14T11:15:53.296Z"
- },
- "destination": {
- "Config": {
- "trackingID": "UA-165994240-1",
- "doubleClick": true,
- "enhancedLinkAttribution": true,
- "classic": true,
- "ignoredReferrers": "",
- "serverClassic": false,
- "includeSearch": true,
- "trackCategorizedPages": true,
- "trackNamedPages": true,
- "sampleRate": "100",
- "siteSpeedSampleRate": "1",
- "setAllMappedProps": true,
- "enableServerSideIdentify": true,
- "serverSideIdentifyEventCategory": "cat1",
- "serverSideIdentifyEventAction": "action1",
- "anonymizeIp": true,
- "domain": "domain",
- "enhancedEcommerce": true,
- "nonInteraction": true,
- "optimize": "abc123",
- "sendUserId": true,
- "useGoogleAmpClientId": true,
- "web-useNativeSDK": true,
- "dimensions": [
- {
- "from": "name",
- "to": "dimension1"
- },
- {
- "from": "custom2",
- "to": "dimension2"
- }
- ],
- "metrics": [
- {
- "from": "email",
- "to": "metric1"
- },
- {
- "from": "trait2",
- "to": "metric2"
- }
- ],
- "resetCustomDimensionsOnPage": [
- {
- "resetCustomDimensionsOnPage": "abc"
- },
- {
- "resetCustomDimensionsOnPage": "xyz"
- }
- ],
- "contentGroupings": [
- {
- "from": "plan",
- "to": "contentGroup1"
- },
- {
- "from": "prop2",
- "to": "contentGroup2"
- }
- ]
- },
- "Enabled": true
- }
- }
- ]
- }
- },
- "output": {
- "response": {
- "status": 200,
- "body": [
- {
- "output": {
- "version": "1",
- "type": "REST",
- "method": "POST",
- "endpoint": "https://www.google-analytics.com/collect",
- "headers": {},
- "params": {
- "ev": 100,
- "ea": "Product Shared",
- "ec": "All",
- "ni": 1,
- "v": "1",
- "t": "event",
- "el": "event",
- "tid": "UA-165994240-1",
- "ds": "web",
- "an": "RudderLabs JavaScript SDK",
- "av": "1.0.0",
- "aiid": "com.rudderlabs.javascript",
- "npa": 1,
- "aip": 1,
- "cid": "00000000000000000000000000",
- "ua": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36",
- "uid": "12345",
- "st": "https://www.example.com/abc",
- "dh": "www.example.com",
- "dl": "https://www.example.com/abc",
- "dp": "%2Fabc",
- "ul": "en-US",
- "qt": 124893881700
- },
- "body": {
- "JSON": {},
- "XML": {},
- "JSON_ARRAY": {},
- "FORM": {}
- },
- "files": {},
- "userId": "00000000000000000000000000"
- },
- "statusCode": 200
- }
- ]
- }
- }
- },
- {
- "name": "ga",
- "description": "Test 39",
- "feature": "processor",
- "module": "destination",
- "version": "v0",
- "input": {
- "request": {
- "body": [
- {
- "message": {
- "channel": "web",
- "context": {
- "app": {
- "build": "1.0.0",
- "name": "RudderLabs JavaScript SDK",
- "namespace": "com.rudderlabs.javascript",
- "version": "1.0.0"
- },
- "traits": {
- "email": "test@rudderstack.com"
- },
- "library": {
- "name": "RudderLabs JavaScript SDK",
- "version": "1.0.0"
- },
- "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36",
- "locale": "en-US",
- "os": {
- "name": "",
- "version": ""
- },
- "screen": {
- "density": 2
- }
- },
- "type": "track",
- "messageId": "ec5481b6-a926-4d2e-b293-0b3a77c4d3be",
- "originalTimestamp": "2019-10-14T11:15:18.300Z",
- "anonymousId": "00000000000000000000000000",
- "userId": "12345",
- "event": "Product List Clicked",
- "properties": {
- "list_id": "Sample Product List",
- "category": "Sample Product List",
- "products": [
- {
- "quantity": 1,
- "price": 24.75,
- "name": "my product",
- "sku": "p-298",
- "product_id": "1"
- },
- {
- "quantity": 3,
- "price": 24.75,
- "name": "other product",
- "sku": "p-299",
- "product_id": "2"
- }
- ]
- },
- "integrations": {
- "All": true
- },
- "sentAt": "2019-10-14T11:15:53.296Z"
- },
- "destination": {
- "Config": {
- "trackingID": "UA-165994240-1",
- "doubleClick": true,
- "enhancedLinkAttribution": true,
- "classic": true,
- "ignoredReferrers": "",
- "serverClassic": false,
- "includeSearch": true,
- "trackCategorizedPages": true,
- "trackNamedPages": true,
- "sampleRate": "100",
- "siteSpeedSampleRate": "1",
- "setAllMappedProps": true,
- "enableServerSideIdentify": true,
- "serverSideIdentifyEventCategory": "cat1",
- "serverSideIdentifyEventAction": "action1",
- "anonymizeIp": true,
- "domain": "domain",
- "enhancedEcommerce": true,
- "nonInteraction": true,
- "optimize": "abc123",
- "sendUserId": true,
- "useGoogleAmpClientId": true,
- "web-useNativeSDK": true,
- "dimensions": [
- {
- "from": "name",
- "to": "dimension1"
- },
- {
- "from": "custom2",
- "to": "dimension2"
- }
- ],
- "metrics": [
- {
- "from": "email",
- "to": "metric1"
- },
- {
- "from": "trait2",
- "to": "metric2"
- }
- ],
- "resetCustomDimensionsOnPage": [
- {
- "resetCustomDimensionsOnPage": "abc"
- },
- {
- "resetCustomDimensionsOnPage": "xyz"
- }
- ],
- "contentGroupings": [
- {
- "from": "plan",
- "to": "contentGroup1"
- },
- {
- "from": "prop2",
- "to": "contentGroup2"
- }
- ]
- },
- "Enabled": true
- }
- }
- ]
- }
- },
- "output": {
- "response": {
- "status": 200,
- "body": [
- {
- "output": {
- "version": "1",
- "type": "REST",
- "method": "POST",
- "endpoint": "https://www.google-analytics.com/collect",
- "headers": {},
- "params": {
- "ea": "Product List Clicked",
- "ec": "Sample Product List",
- "pa": "click",
- "il1pi1id": "1",
- "pr1cd1": "my product",
- "il1pi1nm": "my product",
- "il1pi1pr": 24.75,
- "il1pi2id": "2",
- "pr2cd1": "other product",
- "il1pi2nm": "other product",
- "il1pi2pr": 24.75,
- "v": "1",
- "t": "event",
- "el": "event",
- "tid": "UA-165994240-1",
- "ds": "web",
- "an": "RudderLabs JavaScript SDK",
- "av": "1.0.0",
- "aiid": "com.rudderlabs.javascript",
- "npa": 1,
- "aip": 1,
- "il1nm": "Sample Product List",
- "ua": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36",
- "cid": "00000000000000000000000000",
- "uid": "12345",
- "ni": 1,
- "il1pi2qt": 3,
- "il1pi1qt": 1,
- "ul": "en-US",
- "qt": 124893881700
- },
- "body": {
- "JSON": {},
- "XML": {},
- "JSON_ARRAY": {},
- "FORM": {}
- },
- "files": {},
- "userId": "00000000000000000000000000"
- },
- "statusCode": 200
- }
- ]
- }
- }
- },
- {
- "name": "ga",
- "description": "Test 40",
- "feature": "processor",
- "module": "destination",
- "version": "v0",
- "input": {
- "request": {
- "body": [
- {
- "message": {
- "channel": "web",
- "context": {
- "app": {
- "build": "1.0.0",
- "name": "RudderLabs JavaScript SDK",
- "namespace": "com.rudderlabs.javascript",
- "version": "1.0.0"
- },
- "traits": {
- "email": "test@rudderstack.com"
- },
- "library": {
- "name": "RudderLabs JavaScript SDK",
- "version": "1.0.0"
- },
- "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36",
- "locale": "en-US",
- "os": {
- "name": "",
- "version": ""
- },
- "screen": {
- "density": 2
- }
- },
- "type": "track",
- "messageId": "ec5481b6-a926-4d2e-b293-0b3a77c4d3be",
- "originalTimestamp": "2019-10-14T11:15:18.300Z",
- "anonymousId": "00000000000000000000000000",
- "userId": "12345",
- "event": "Product List Clicked",
- "properties": {
- "list_id": "Sample Product List",
- "category": "Sample Product List",
- "products": [
- {
- "quantity": 1,
- "price": 24.75,
- "name": "my product",
- "sku": "p-298"
- },
- {
- "quantity": 3,
- "price": 24.75,
- "name": "other product",
- "sku": "p-299"
- }
- ]
- },
- "integrations": {
- "All": true
- },
- "sentAt": "2019-10-14T11:15:53.296Z"
- },
- "destination": {
- "Config": {
- "trackingID": "UA-165994240-1",
- "doubleClick": true,
- "enhancedLinkAttribution": true,
- "classic": true,
- "ignoredReferrers": "",
- "serverClassic": false,
- "includeSearch": true,
- "trackCategorizedPages": true,
- "trackNamedPages": true,
- "sampleRate": "100",
- "siteSpeedSampleRate": "1",
- "setAllMappedProps": true,
- "enableServerSideIdentify": true,
- "serverSideIdentifyEventCategory": "cat1",
- "serverSideIdentifyEventAction": "action1",
- "anonymizeIp": true,
- "domain": "domain",
- "enhancedEcommerce": true,
- "nonInteraction": true,
- "optimize": "abc123",
- "sendUserId": true,
- "useGoogleAmpClientId": true,
- "web-useNativeSDK": true,
- "dimensions": [
- {
- "from": "name",
- "to": "dimension1"
- },
- {
- "from": "custom2",
- "to": "dimension2"
- }
- ],
- "metrics": [
- {
- "from": "email",
- "to": "metric1"
- },
- {
- "from": "trait2",
- "to": "metric2"
- }
- ],
- "resetCustomDimensionsOnPage": [
- {
- "resetCustomDimensionsOnPage": "abc"
- },
- {
- "resetCustomDimensionsOnPage": "xyz"
- }
- ],
- "contentGroupings": [
- {
- "from": "plan",
- "to": "contentGroup1"
- },
- {
- "from": "prop2",
- "to": "contentGroup2"
- }
- ]
- },
- "Enabled": true
- }
- }
- ]
- }
- },
- "output": {
- "response": {
- "status": 200,
- "body": [
- {
- "output": {
- "version": "1",
- "type": "REST",
- "method": "POST",
- "endpoint": "https://www.google-analytics.com/collect",
- "headers": {},
- "params": {
- "ea": "Product List Clicked",
- "ec": "Sample Product List",
- "pa": "click",
- "il1pi1id": "p-298",
- "pr1cd1": "my product",
- "il1pi1nm": "my product",
- "il1pi1pr": 24.75,
- "il1pi2id": "p-299",
- "pr2cd1": "other product",
- "il1pi2nm": "other product",
- "il1pi2pr": 24.75,
- "v": "1",
- "t": "event",
- "el": "event",
- "tid": "UA-165994240-1",
- "ds": "web",
- "an": "RudderLabs JavaScript SDK",
- "av": "1.0.0",
- "aiid": "com.rudderlabs.javascript",
- "npa": 1,
- "aip": 1,
- "il1nm": "Sample Product List",
- "ua": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36",
- "cid": "00000000000000000000000000",
- "uid": "12345",
- "ul": "en-US",
- "il1pi2qt": 3,
- "il1pi1qt": 1,
- "ni": 1,
- "qt": 124893881700
- },
- "body": {
- "JSON": {},
- "XML": {},
- "JSON_ARRAY": {},
- "FORM": {}
- },
- "files": {},
- "userId": "00000000000000000000000000"
- },
- "statusCode": 200
- }
- ]
- }
- }
- },
- {
- "name": "ga",
- "description": "Test 41",
- "feature": "processor",
- "module": "destination",
- "version": "v0",
- "input": {
- "request": {
- "body": [
- {
- "message": {
- "channel": "web",
- "context": {
- "app": {
- "build": "1.0.0",
- "name": "RudderLabs JavaScript SDK",
- "namespace": "com.rudderlabs.javascript",
- "version": "1.0.0"
- },
- "traits": {
- "email": "test@rudderstack.com"
- },
- "library": {
- "name": "RudderLabs JavaScript SDK",
- "version": "1.0.0"
- },
- "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36",
- "locale": "en-US",
- "os": {
- "name": "",
- "version": ""
- },
- "screen": {
- "density": 2
- }
- },
- "type": "track",
- "messageId": "ec5481b6-a926-4d2e-b293-0b3a77c4d3be",
- "originalTimestamp": "2019-10-14T11:15:18.300Z",
- "anonymousId": "00000000000000000000000000",
- "userId": "12345",
- "event": "Product List Clicked",
- "properties": {
- "list_id": "Sample Product List",
- "category": "Sample Product List",
- "products": []
- },
- "integrations": {
- "All": true
- },
- "sentAt": "2019-10-14T11:15:53.296Z"
- },
- "destination": {
- "Config": {
- "trackingID": "UA-165994240-1",
- "doubleClick": true,
- "enhancedLinkAttribution": true,
- "classic": true,
- "ignoredReferrers": "",
- "serverClassic": false,
- "includeSearch": true,
- "trackCategorizedPages": true,
- "trackNamedPages": true,
- "sampleRate": "100",
- "siteSpeedSampleRate": "1",
- "setAllMappedProps": true,
- "enableServerSideIdentify": true,
- "serverSideIdentifyEventCategory": "cat1",
- "serverSideIdentifyEventAction": "action1",
- "anonymizeIp": true,
- "domain": "domain",
- "enhancedEcommerce": true,
- "nonInteraction": true,
- "optimize": "abc123",
- "sendUserId": true,
- "useGoogleAmpClientId": true,
- "web-useNativeSDK": true,
- "dimensions": [
- {
- "from": "name",
- "to": "dimension1"
- },
- {
- "from": "custom2",
- "to": "dimension2"
- }
- ],
- "metrics": [
- {
- "from": "email",
- "to": "metric1"
- },
- {
- "from": "trait2",
- "to": "metric2"
- }
- ],
- "resetCustomDimensionsOnPage": [
- {
- "resetCustomDimensionsOnPage": "abc"
- },
- {
- "resetCustomDimensionsOnPage": "xyz"
- }
- ],
- "contentGroupings": [
- {
- "from": "plan",
- "to": "contentGroup1"
- },
- {
- "from": "prop2",
- "to": "contentGroup2"
- }
- ]
- },
- "Enabled": true
- }
- }
- ]
- }
- },
- "output": {
- "response": {
- "status": 200,
- "body": [
- {
- "output": {
- "version": "1",
- "type": "REST",
- "method": "POST",
- "endpoint": "https://www.google-analytics.com/collect",
- "headers": {},
- "params": {
- "ni": 1,
- "ea": "Product List Clicked",
- "ec": "Sample Product List",
- "pa": "click",
- "el": "event",
- "v": "1",
- "t": "event",
- "tid": "UA-165994240-1",
- "ds": "web",
- "npa": 1,
- "aip": 1,
- "ua": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36",
- "ul": "en-US",
- "an": "RudderLabs JavaScript SDK",
- "av": "1.0.0",
- "aiid": "com.rudderlabs.javascript",
- "il1nm": "Sample Product List",
- "uid": "12345",
- "cid": "00000000000000000000000000",
- "qt": 124893881700
- },
- "body": {
- "JSON": {},
- "XML": {},
- "JSON_ARRAY": {},
- "FORM": {}
- },
- "files": {},
- "userId": "00000000000000000000000000"
- },
- "statusCode": 200
- }
- ]
- }
- }
- },
- {
- "name": "ga",
- "description": "Test 42",
- "feature": "processor",
- "module": "destination",
- "version": "v0",
- "input": {
- "request": {
- "body": [
- {
- "message": {
- "channel": "web",
- "context": {
- "app": {
- "build": "1.0.0",
- "name": "RudderLabs JavaScript SDK",
- "namespace": "com.rudderlabs.javascript",
- "version": "1.0.0"
- },
- "traits": {
- "email": "test@rudderstack.com"
- },
- "library": {
- "name": "RudderLabs JavaScript SDK",
- "version": "1.0.0"
- },
- "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36",
- "locale": "en-US",
- "os": {
- "name": "",
- "version": ""
- },
- "screen": {
- "density": 2
- }
- },
- "type": "track",
- "messageId": "ec5481b6-a926-4d2e-b293-0b3a77c4d3be",
- "originalTimestamp": "2019-10-14T11:15:18.300Z",
- "anonymousId": "00000000000000000000000000",
- "userId": "12345",
- "event": "Order Cancelled",
- "properties": {
- "order_id": "rudderstackorder1",
- "total": 99.99,
- "shipping": 13.99,
- "tax": 20.99,
- "currency": "INR",
- "products": [
- {
- "quantity": 1,
- "price": 24.75,
- "name": "my product",
- "sku": "p-298",
- "product_id": "1"
- },
- {
- "quantity": 3,
- "price": 24.75,
- "name": "other product",
- "sku": "p-299",
- "product_id": "2"
- }
- ]
- },
- "integrations": {
- "All": true
- },
- "sentAt": "2019-10-14T11:15:53.296Z"
- },
- "destination": {
- "Config": {
- "trackingID": "UA-165994240-1",
- "doubleClick": true,
- "enhancedLinkAttribution": true,
- "classic": true,
- "ignoredReferrers": "",
- "serverClassic": false,
- "includeSearch": true,
- "trackCategorizedPages": true,
- "trackNamedPages": true,
- "sampleRate": "100",
- "siteSpeedSampleRate": "1",
- "setAllMappedProps": true,
- "enableServerSideIdentify": true,
- "serverSideIdentifyEventCategory": "cat1",
- "serverSideIdentifyEventAction": "action1",
- "anonymizeIp": true,
- "domain": "domain",
- "enhancedEcommerce": true,
- "nonInteraction": true,
- "optimize": "abc123",
- "sendUserId": true,
- "useGoogleAmpClientId": true,
- "web-useNativeSDK": true,
- "dimensions": [
- {
- "from": "name",
- "to": "dimension1"
- },
- {
- "from": "custom2",
- "to": "dimension2"
- }
- ],
- "metrics": [
- {
- "from": "email",
- "to": "metric1"
- },
- {
- "from": "trait2",
- "to": "metric2"
- }
- ],
- "resetCustomDimensionsOnPage": [
- {
- "resetCustomDimensionsOnPage": "abc"
- },
- {
- "resetCustomDimensionsOnPage": "xyz"
- }
- ],
- "contentGroupings": [
- {
- "from": "plan",
- "to": "contentGroup1"
- },
- {
- "from": "prop2",
- "to": "contentGroup2"
- }
- ]
- },
- "Enabled": true
- }
- }
- ]
- }
- },
- "output": {
- "response": {
- "status": 200,
- "body": [
- {
- "output": {
- "version": "1",
- "type": "REST",
- "method": "POST",
- "endpoint": "https://www.google-analytics.com/collect",
- "headers": {},
- "params": {
- "pa": "refund",
- "ev": 100,
- "tr": 99.99,
- "pr1id": "1",
- "pr1cd1": "my product",
- "pr1nm": "my product",
- "pr1pr": 24.75,
- "pr2id": "2",
- "pr2cd1": "other product",
- "pr2nm": "other product",
- "pr2pr": 24.75,
- "ea": "Order Cancelled",
- "ec": "EnhancedEcommerce",
- "v": "1",
- "t": "event",
- "el": "event",
- "tid": "UA-165994240-1",
- "ds": "web",
- "an": "RudderLabs JavaScript SDK",
- "av": "1.0.0",
- "aiid": "com.rudderlabs.javascript",
- "npa": 1,
- "aip": 1,
- "cid": "00000000000000000000000000",
- "ti": "rudderstackorder1",
- "ts": 13.99,
- "tt": 20.99,
- "cu": "INR",
- "ua": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36",
- "uid": "12345",
- "ul": "en-US",
- "pr1qt": 1,
- "pr2qt": 3,
- "ni": 1,
- "qt": 124893881700
- },
- "body": {
- "JSON": {},
- "XML": {},
- "JSON_ARRAY": {},
- "FORM": {}
- },
- "files": {},
- "userId": "00000000000000000000000000"
- },
- "statusCode": 200
- }
- ]
- }
- }
- },
- {
- "name": "ga",
- "description": "Test 43",
- "feature": "processor",
- "module": "destination",
- "version": "v0",
- "input": {
- "request": {
- "body": [
- {
- "message": {
- "channel": "web",
- "context": {
- "app": {
- "build": "1.0.0",
- "name": "RudderLabs JavaScript SDK",
- "namespace": "com.rudderlabs.javascript",
- "version": "1.0.0"
- },
- "traits": {
- "email": "test@rudderstack.com"
- },
- "library": {
- "name": "RudderLabs JavaScript SDK",
- "version": "1.0.0"
- },
- "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36",
- "locale": "en-US",
- "os": {
- "name": "",
- "version": ""
- },
- "screen": {
- "density": 2
- }
- },
- "type": "track",
- "messageId": "ec5481b6-a926-4d2e-b293-0b3a77c4d3be",
- "originalTimestamp": "2019-10-14T11:15:18.300Z",
- "anonymousId": "00000000000000000000000000",
- "userId": "12345",
- "event": "Order Cancelled",
- "properties": {
- "order_id": "rudderstackorder1",
- "value": 99.99,
- "shipping": 13.99,
- "tax": 20.99,
- "currency": "INR",
- "products": [
- {
- "quantity": 1,
- "price": 24.75,
- "name": "my product",
- "sku": "p-298",
- "product_id": "1"
- },
- {
- "quantity": 3,
- "price": 24.75,
- "name": "other product",
- "sku": "p-299",
- "product_id": "2"
- }
- ]
- },
- "integrations": {
- "All": true
- },
- "sentAt": "2019-10-14T11:15:53.296Z"
- },
- "destination": {
- "Config": {
- "trackingID": "UA-165994240-1",
- "doubleClick": true,
- "enhancedLinkAttribution": true,
- "classic": true,
- "ignoredReferrers": "",
- "serverClassic": false,
- "includeSearch": true,
- "trackCategorizedPages": true,
- "trackNamedPages": true,
- "sampleRate": "100",
- "siteSpeedSampleRate": "1",
- "setAllMappedProps": true,
- "enableServerSideIdentify": true,
- "serverSideIdentifyEventCategory": "cat1",
- "serverSideIdentifyEventAction": "action1",
- "anonymizeIp": true,
- "domain": "domain",
- "enhancedEcommerce": true,
- "nonInteraction": true,
- "optimize": "abc123",
- "sendUserId": true,
- "useGoogleAmpClientId": true,
- "web-useNativeSDK": true,
- "dimensions": [
- {
- "from": "name",
- "to": "dimension1"
- },
- {
- "from": "custom2",
- "to": "dimension2"
- }
- ],
- "metrics": [
- {
- "from": "email",
- "to": "metric1"
- },
- {
- "from": "trait2",
- "to": "metric2"
- }
- ],
- "resetCustomDimensionsOnPage": [
- {
- "resetCustomDimensionsOnPage": "abc"
- },
- {
- "resetCustomDimensionsOnPage": "xyz"
- }
- ],
- "contentGroupings": [
- {
- "from": "plan",
- "to": "contentGroup1"
- },
- {
- "from": "prop2",
- "to": "contentGroup2"
- }
- ]
- },
- "Enabled": true
- }
- }
- ]
- }
- },
- "output": {
- "response": {
- "status": 200,
- "body": [
- {
- "output": {
- "version": "1",
- "type": "REST",
- "method": "POST",
- "endpoint": "https://www.google-analytics.com/collect",
- "headers": {},
- "params": {
- "pa": "refund",
- "tr": 99.99,
- "pr1id": "1",
- "pr1cd1": "my product",
- "pr1nm": "my product",
- "pr1pr": 24.75,
- "pr2id": "2",
- "pr2cd1": "other product",
- "pr2nm": "other product",
- "pr2pr": 24.75,
- "ea": "Order Cancelled",
- "ev": 100,
- "ec": "EnhancedEcommerce",
- "v": "1",
- "t": "event",
- "el": "event",
- "tid": "UA-165994240-1",
- "ds": "web",
- "an": "RudderLabs JavaScript SDK",
- "av": "1.0.0",
- "aiid": "com.rudderlabs.javascript",
- "npa": 1,
- "aip": 1,
- "cid": "00000000000000000000000000",
- "ti": "rudderstackorder1",
- "ts": 13.99,
- "tt": 20.99,
- "cu": "INR",
- "ua": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36",
- "uid": "12345",
- "ul": "en-US",
- "pr1qt": 1,
- "pr2qt": 3,
- "ni": 1,
- "qt": 124893881700
- },
- "body": {
- "JSON": {},
- "XML": {},
- "JSON_ARRAY": {},
- "FORM": {}
- },
- "files": {},
- "userId": "00000000000000000000000000"
- },
- "statusCode": 200
- }
- ]
- }
- }
- },
- {
- "name": "ga",
- "description": "Test 44",
- "feature": "processor",
- "module": "destination",
- "version": "v0",
- "input": {
- "request": {
- "body": [
- {
- "message": {
- "channel": "web",
- "context": {
- "app": {
- "build": "1.0.0",
- "name": "RudderLabs JavaScript SDK",
- "namespace": "com.rudderlabs.javascript",
- "version": "1.0.0"
- },
- "traits": {
- "email": "test@rudderstack.com"
- },
- "library": {
- "name": "RudderLabs JavaScript SDK",
- "version": "1.0.0"
- },
- "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36",
- "locale": "en-US",
- "os": {
- "name": "",
- "version": ""
- },
- "screen": {
- "density": 2
- }
- },
- "type": "track",
- "messageId": "ec5481b6-a926-4d2e-b293-0b3a77c4d3be",
- "originalTimestamp": "2019-10-14T11:15:18.300Z",
- "anonymousId": "00000000000000000000000000",
- "userId": "12345",
- "event": "Order Cancelled",
- "properties": {
- "order_id": "rudderstackorder1",
- "revenue": 99.99,
- "shipping": 13.99,
- "tax": 20.99,
- "currency": "INR",
- "products": [
- {
- "quantity": 1,
- "price": 24.75,
- "name": "my product",
- "sku": "p-298",
- "product_id": "1"
- },
- {
- "quantity": 3,
- "price": 24.75,
- "name": "other product",
- "sku": "p-299",
- "product_id": "2"
- }
- ]
- },
- "integrations": {
- "All": true
- },
- "sentAt": "2019-10-14T11:15:53.296Z"
- },
- "destination": {
- "Config": {
- "trackingID": "UA-165994240-1",
- "doubleClick": true,
- "enhancedLinkAttribution": true,
- "classic": true,
- "ignoredReferrers": "",
- "serverClassic": false,
- "includeSearch": true,
- "trackCategorizedPages": true,
- "trackNamedPages": true,
- "sampleRate": "100",
- "siteSpeedSampleRate": "1",
- "setAllMappedProps": true,
- "enableServerSideIdentify": true,
- "serverSideIdentifyEventCategory": "cat1",
- "serverSideIdentifyEventAction": "action1",
- "anonymizeIp": true,
- "domain": "domain",
- "enhancedEcommerce": true,
- "nonInteraction": true,
- "optimize": "abc123",
- "sendUserId": true,
- "useGoogleAmpClientId": true,
- "web-useNativeSDK": true,
- "dimensions": [
- {
- "from": "name",
- "to": "dimension1"
- },
- {
- "from": "custom2",
- "to": "dimension2"
- }
- ],
- "metrics": [
- {
- "from": "email",
- "to": "metric1"
- },
- {
- "from": "trait2",
- "to": "metric2"
- }
- ],
- "resetCustomDimensionsOnPage": [
- {
- "resetCustomDimensionsOnPage": "abc"
- },
- {
- "resetCustomDimensionsOnPage": "xyz"
- }
- ],
- "contentGroupings": [
- {
- "from": "plan",
- "to": "contentGroup1"
- },
- {
- "from": "prop2",
- "to": "contentGroup2"
- }
- ]
- },
- "Enabled": true
- }
- }
- ]
- }
- },
- "output": {
- "response": {
- "status": 200,
- "body": [
- {
- "output": {
- "version": "1",
- "type": "REST",
- "method": "POST",
- "endpoint": "https://www.google-analytics.com/collect",
- "headers": {},
- "params": {
- "pa": "refund",
- "tr": 99.99,
- "pr1id": "1",
- "pr1cd1": "my product",
- "pr1nm": "my product",
- "pr1pr": 24.75,
- "pr2id": "2",
- "pr2cd1": "other product",
- "pr2nm": "other product",
- "pr2pr": 24.75,
- "ea": "Order Cancelled",
- "ev": 100,
- "ec": "EnhancedEcommerce",
- "v": "1",
- "t": "event",
- "el": "event",
- "tid": "UA-165994240-1",
- "ds": "web",
- "an": "RudderLabs JavaScript SDK",
- "av": "1.0.0",
- "aiid": "com.rudderlabs.javascript",
- "npa": 1,
- "aip": 1,
- "cid": "00000000000000000000000000",
- "ti": "rudderstackorder1",
- "ts": 13.99,
- "tt": 20.99,
- "cu": "INR",
- "ua": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36",
- "uid": "12345",
- "ul": "en-US",
- "pr1qt": 1,
- "pr2qt": 3,
- "ni": 1,
- "qt": 124893881700
- },
- "body": {
- "JSON": {},
- "XML": {},
- "JSON_ARRAY": {},
- "FORM": {}
- },
- "files": {},
- "userId": "00000000000000000000000000"
- },
- "statusCode": 200
- }
- ]
- }
- }
- },
- {
- "name": "ga",
- "description": "Test 45",
- "feature": "processor",
- "module": "destination",
- "version": "v0",
- "input": {
- "request": {
- "body": [
- {
- "message": {
- "channel": "web",
- "context": {
- "app": {
- "build": "1.0.0",
- "name": "RudderLabs JavaScript SDK",
- "namespace": "com.rudderlabs.javascript",
- "version": "1.0.0"
- },
- "traits": {
- "email": "test@rudderstack.com"
- },
- "library": {
- "name": "RudderLabs JavaScript SDK",
- "version": "1.0.0"
- },
- "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36",
- "locale": "en-US",
- "os": {
- "name": "",
- "version": ""
- },
- "screen": {
- "density": 2
- }
- },
- "type": "track",
- "messageId": "ec5481b6-a926-4d2e-b293-0b3a77c4d3be",
- "originalTimestamp": "2019-10-14T11:15:18.300Z",
- "anonymousId": "00000000000000000000000000",
- "userId": "12345",
- "event": "Order Cancelled",
- "properties": {
- "order_id": "rudderstackorder1",
- "revenue": 99.99,
- "shipping": 13.99,
- "tax": 20.99,
- "currency": "INR",
- "products": []
- },
- "integrations": {
- "All": true
- },
- "sentAt": "2019-10-14T11:15:53.296Z"
- },
- "destination": {
- "Config": {
- "trackingID": "UA-165994240-1",
- "doubleClick": true,
- "enhancedLinkAttribution": true,
- "classic": true,
- "ignoredReferrers": "",
- "serverClassic": false,
- "includeSearch": true,
- "trackCategorizedPages": true,
- "trackNamedPages": true,
- "sampleRate": "100",
- "siteSpeedSampleRate": "1",
- "setAllMappedProps": true,
- "enableServerSideIdentify": true,
- "serverSideIdentifyEventCategory": "cat1",
- "serverSideIdentifyEventAction": "action1",
- "anonymizeIp": true,
- "domain": "domain",
- "enhancedEcommerce": true,
- "nonInteraction": true,
- "optimize": "abc123",
- "sendUserId": true,
- "useGoogleAmpClientId": true,
- "web-useNativeSDK": true,
- "dimensions": [
- {
- "from": "name",
- "to": "dimension1"
- },
- {
- "from": "custom2",
- "to": "dimension2"
- }
- ],
- "metrics": [
- {
- "from": "email",
- "to": "metric1"
- },
- {
- "from": "trait2",
- "to": "metric2"
- }
- ],
- "resetCustomDimensionsOnPage": [
- {
- "resetCustomDimensionsOnPage": "abc"
- },
- {
- "resetCustomDimensionsOnPage": "xyz"
- }
- ],
- "contentGroupings": [
- {
- "from": "plan",
- "to": "contentGroup1"
- },
- {
- "from": "prop2",
- "to": "contentGroup2"
- }
- ]
- },
- "Enabled": true
- }
- }
- ]
- }
- },
- "output": {
- "response": {
- "status": 200,
- "body": [
- {
- "error": "No product information supplied for transaction event",
- "statTags": {
- "destType": "GA",
- "errorCategory": "dataValidation",
- "errorType": "instrumentation",
- "feature": "processor",
- "implementation": "native",
- "module": "destination"
- },
- "statusCode": 400
- }
- ]
- }
- }
- },
- {
- "name": "ga",
- "description": "Test 46",
- "feature": "processor",
- "module": "destination",
- "version": "v0",
- "input": {
- "request": {
- "body": [
- {
- "message": {
- "channel": "web",
- "context": {
- "app": {
- "build": "1.0.0",
- "name": "RudderLabs JavaScript SDK",
- "namespace": "com.rudderlabs.javascript",
- "version": "1.0.0"
- },
- "traits": {
- "email": "test@rudderstack.com"
- },
- "library": {
- "name": "RudderLabs JavaScript SDK",
- "version": "1.0.0"
- },
- "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36",
- "locale": "en-US",
- "os": {
- "name": "",
- "version": ""
- },
- "screen": {
- "density": 2
- }
- },
- "type": "track",
- "messageId": "ec5481b6-a926-4d2e-b293-0b3a77c4d3be",
- "originalTimestamp": "2019-10-14T11:15:18.300Z",
- "anonymousId": "00000000000000000000000000",
- "userId": "12345",
- "event": "Cart Viewed",
- "properties": {
- "order_id": "rudderstackorder1",
- "revenue": 99.99,
- "shipping": 13.99,
- "tax": 20.99,
- "currency": "INR",
- "products": [
- {
- "quantity": 1,
- "price": 24.75,
- "name": "my product",
- "sku": "p-298",
- "product_id": "1"
- },
- {
- "quantity": 3,
- "price": 24.75,
- "name": "other product",
- "sku": "p-299",
- "product_id": "2"
- }
- ]
- },
- "integrations": {
- "All": true
- },
- "sentAt": "2019-10-14T11:15:53.296Z"
- },
- "destination": {
- "Config": {
- "trackingID": "UA-165994240-1",
- "doubleClick": true,
- "enhancedLinkAttribution": true,
- "classic": true,
- "ignoredReferrers": "",
- "serverClassic": false,
- "includeSearch": true,
- "trackCategorizedPages": true,
- "trackNamedPages": true,
- "sampleRate": "100",
- "siteSpeedSampleRate": "1",
- "setAllMappedProps": true,
- "enableServerSideIdentify": true,
- "serverSideIdentifyEventCategory": "cat1",
- "serverSideIdentifyEventAction": "action1",
- "anonymizeIp": true,
- "domain": "domain",
- "enhancedEcommerce": true,
- "nonInteraction": true,
- "optimize": "abc123",
- "sendUserId": true,
- "useGoogleAmpClientId": true,
- "web-useNativeSDK": true,
- "dimensions": [
- {
- "from": "name",
- "to": "dimension1"
- },
- {
- "from": "custom2",
- "to": "dimension2"
- }
- ],
- "metrics": [
- {
- "from": "email",
- "to": "metric1"
- },
- {
- "from": "trait2",
- "to": "metric2"
- }
- ],
- "resetCustomDimensionsOnPage": [
- {
- "resetCustomDimensionsOnPage": "abc"
- },
- {
- "resetCustomDimensionsOnPage": "xyz"
- }
- ],
- "contentGroupings": [
- {
- "from": "plan",
- "to": "contentGroup1"
- },
- {
- "from": "prop2",
- "to": "contentGroup2"
- }
- ]
- },
- "Enabled": true
- }
- }
- ]
- }
- },
- "output": {
- "response": {
- "status": 200,
- "body": [
- {
- "output": {
- "version": "1",
- "type": "REST",
- "method": "POST",
- "endpoint": "https://www.google-analytics.com/collect",
- "headers": {},
- "params": {
- "ea": "Cart Viewed",
- "ev": 100,
- "ec": "EnhancedEcommerce",
- "pa": "detail",
- "v": "1",
- "t": "event",
- "el": "event",
- "tid": "UA-165994240-1",
- "ds": "web",
- "an": "RudderLabs JavaScript SDK",
- "av": "1.0.0",
- "aiid": "com.rudderlabs.javascript",
- "npa": 1,
- "aip": 1,
- "ua": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36",
- "cid": "00000000000000000000000000",
- "uid": "12345",
- "ul": "en-US",
- "ni": 1,
- "pr1cd1": "my product",
- "pr1id": "1",
- "pr1nm": "my product",
- "pr1pr": 24.75,
- "pr1qt": 1,
- "pr2cd1": "other product",
- "pr2id": "2",
- "pr2nm": "other product",
- "pr2pr": 24.75,
- "pr2qt": 3,
- "qt": 124893881700
- },
- "body": {
- "JSON": {},
- "XML": {},
- "JSON_ARRAY": {},
- "FORM": {}
- },
- "files": {},
- "userId": "00000000000000000000000000"
- },
- "statusCode": 200
- }
- ]
- }
- }
- },
- {
- "name": "ga",
- "description": "Test 47",
- "feature": "processor",
- "module": "destination",
- "version": "v0",
- "input": {
- "request": {
- "body": [
- {
- "message": {
- "channel": "web",
- "context": {
- "traits": {
- "name1": "Test"
- },
- "app": {
- "build": "1.0.0",
- "name": "RudderLabs JavaScript SDK",
- "namespace": "com.rudderlabs.javascript",
- "version": "1.0.0"
- },
- "library": {
- "name": "RudderLabs JavaScript SDK",
- "version": "1.0.0"
- },
- "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36",
- "locale": "en-US",
- "ip": "0.0.0.0",
- "os": {
- "name": "",
- "version": ""
- },
- "screen": {
- "density": 2
- }
- },
- "properties": {
- "plan": "standard plan",
- "name": "rudder test"
- },
- "type": "identify",
- "messageId": "84e26acc-56a5-4835-8233-591137fca468",
- "originalTimestamp": "2019-10-14T09:03:17.562Z",
- "anonymousId": "00000000000000000000000000",
- "userId": "123456",
- "integrations": {
- "All": true
- },
- "traits": {
- "name1": "Test"
- },
- "sentAt": "2019-10-14T09:03:22.563Z"
- },
- "destination": {
- "Config": {
- "trackingID": "UA-165994240-1",
- "doubleClick": true,
- "enhancedLinkAttribution": true,
- "classic": true,
- "ignoredReferrers": "",
- "serverClassic": false,
- "includeSearch": true,
- "trackCategorizedPages": true,
- "trackNamedPages": true,
- "sampleRate": "100",
- "siteSpeedSampleRate": "1",
- "setAllMappedProps": true,
- "serverSideIdentifyEventCategory": "name",
- "serverSideIdentifyEventAction": "action1",
- "anonymizeIp": true,
- "domain": "domain",
- "enhancedEcommerce": true,
- "nonInteraction": true,
- "optimize": "abc123",
- "sendUserId": true,
- "useGoogleAmpClientId": true,
- "web-useNativeSDK": true,
- "dimensions": [
- {
- "from": "name",
- "to": "dimension1"
- },
- {
- "from": "custom2",
- "to": "dimension2"
- }
- ],
- "metrics": [
- {
- "from": "email",
- "to": "metric1"
- },
- {
- "from": "trait2",
- "to": "metric2"
- }
- ],
- "resetCustomDimensionsOnPage": [
- {
- "resetCustomDimensionsOnPage": "abc"
- },
- {
- "resetCustomDimensionsOnPage": "xyz"
- }
- ],
- "contentGroupings": [
- {
- "from": "plan",
- "to": "contentGroup1"
- },
- {
- "from": "prop2",
- "to": "contentGroup2"
- }
- ]
- },
- "Enabled": true
- }
- }
- ]
- }
- },
- "output": {
- "response": {
- "status": 200,
- "body": [
- {
- "error": "server side identify is not on",
- "statTags": {
- "destType": "GA",
- "errorCategory": "dataValidation",
- "errorType": "configuration",
- "feature": "processor",
- "implementation": "native",
- "module": "destination"
- },
- "statusCode": 400
- }
- ]
- }
- }
- },
- {
- "name": "ga",
- "description": "Test 48",
- "feature": "processor",
- "module": "destination",
- "version": "v0",
- "input": {
- "request": {
- "body": [
- {
- "message": {
- "channel": "web",
- "context": {
- "app": {
- "build": "1.0.0",
- "name": "RudderLabs JavaScript SDK",
- "namespace": "com.rudderlabs.javascript",
- "version": "1.0.0"
- },
- "traits": {
- "email": "test@rudderstack.com"
- },
- "library": {
- "name": "RudderLabs JavaScript SDK",
- "version": "1.0.0"
- },
- "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36",
- "locale": "en-US",
- "ip": "0.0.0.0",
- "os": {
- "name": "",
- "version": ""
- },
- "screen": {
- "density": 2
- }
- },
- "type": "screen",
- "messageId": "5e10d13a-bf9a-44bf-b884-43a9e591ea71",
- "originalTimestamp": "2019-10-14T11:15:18.299Z",
- "anonymousId": "00000000000000000000000000",
- "userId": "12345",
- "properties": {
- "name": "homescreen"
- },
- "integrations": {
- "All": true
- },
- "sentAt": "2019-10-14T11:15:53.296Z"
- },
- "destination": {
- "Config": {
- "trackingID": "UA-165994240-1",
- "doubleClick": true,
- "enhancedLinkAttribution": true,
- "classic": true,
- "ignoredReferrers": "",
- "serverClassic": false,
- "includeSearch": true,
- "trackCategorizedPages": true,
- "trackNamedPages": true,
- "sampleRate": "100",
- "siteSpeedSampleRate": "1",
- "setAllMappedProps": true,
- "enableServerSideIdentify": true,
- "serverSideIdentifyEventCategory": "cat1",
- "serverSideIdentifyEventAction": "action1",
- "anonymizeIp": true,
- "domain": "domain",
- "enhancedEcommerce": true,
- "nonInteraction": true,
- "optimize": "abc123",
- "sendUserId": true,
- "useGoogleAmpClientId": true,
- "web-useNativeSDK": true,
- "dimensions": [
- {
- "from": "name",
- "to": "dimension1"
- },
- {
- "from": "custom2",
- "to": "dimension2"
- }
- ],
- "metrics": [
- {
- "from": "email",
- "to": "metric1"
- },
- {
- "from": "trait2",
- "to": "metric2"
- }
- ],
- "resetCustomDimensionsOnPage": [
- {
- "resetCustomDimensionsOnPage": "abc"
- },
- {
- "resetCustomDimensionsOnPage": "xyz"
- }
- ],
- "contentGroupings": [
- {
- "from": "plan",
- "to": "contentGroup1"
- },
- {
- "from": "prop2",
- "to": "contentGroup2"
- }
- ]
- },
- "Enabled": true
- }
- }
- ]
- }
- },
- "output": {
- "response": {
- "status": 200,
- "body": [
- {
- "output": {
- "version": "1",
- "type": "REST",
- "method": "POST",
- "endpoint": "https://www.google-analytics.com/collect",
- "headers": {},
- "params": {
- "cd1": "homescreen",
- "v": "1",
- "t": "screenview",
- "tid": "UA-165994240-1",
- "ds": "web",
- "an": "RudderLabs JavaScript SDK",
- "av": "1.0.0",
- "aiid": "com.rudderlabs.javascript",
- "npa": 1,
- "aip": 1,
- "cid": "00000000000000000000000000",
- "cd": "homescreen",
- "ua": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36",
- "uid": "12345",
- "ul": "en-US",
- "uip": "0.0.0.0",
- "qt": 124893881701
- },
- "body": {
- "JSON": {},
- "XML": {},
- "JSON_ARRAY": {},
- "FORM": {}
- },
- "files": {},
- "userId": "00000000000000000000000000"
- },
- "statusCode": 200
- }
- ]
- }
- }
- },
- {
- "name": "ga",
- "description": "Test 49",
- "feature": "processor",
- "module": "destination",
- "version": "v0",
- "input": {
- "request": {
- "body": [
- {
- "message": {
- "channel": "web",
- "context": {
- "app": {
- "build": "1.0.0",
- "name": "RudderLabs JavaScript SDK",
- "namespace": "com.rudderlabs.javascript",
- "version": "1.0.0"
- },
- "traits": {
- "email": "test@rudderstack.com"
- },
- "library": {
- "name": "RudderLabs JavaScript SDK",
- "version": "1.0.0"
- },
- "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36",
- "locale": "en-US",
- "ip": "0.0.0.0",
- "os": {
- "name": "",
- "version": ""
- },
- "screen": {
- "density": 2
- }
- },
- "type": "newtype",
- "messageId": "5e10d13a-bf9a-44bf-b884-43a9e591ea71",
- "originalTimestamp": "2019-10-14T11:15:18.299Z",
- "anonymousId": "00000000000000000000000000",
- "userId": "12345",
- "properties": {
- "name": "homescreen"
- },
- "integrations": {
- "All": true
- },
- "sentAt": "2019-10-14T11:15:53.296Z"
- },
- "destination": {
- "Config": {
- "trackingID": "UA-165994240-1",
- "doubleClick": true,
- "enhancedLinkAttribution": true,
- "classic": true,
- "ignoredReferrers": "",
- "serverClassic": false,
- "includeSearch": true,
- "trackCategorizedPages": true,
- "trackNamedPages": true,
- "sampleRate": "100",
- "siteSpeedSampleRate": "1",
- "setAllMappedProps": true,
- "enableServerSideIdentify": true,
- "serverSideIdentifyEventCategory": "cat1",
- "serverSideIdentifyEventAction": "action1",
- "anonymizeIp": true,
- "domain": "domain",
- "enhancedEcommerce": true,
- "nonInteraction": true,
- "optimize": "abc123",
- "sendUserId": true,
- "useGoogleAmpClientId": true,
- "web-useNativeSDK": true,
- "dimensions": [
- {
- "from": "name",
- "to": "dimension1"
- },
- {
- "from": "custom2",
- "to": "dimension2"
- }
- ],
- "metrics": [
- {
- "from": "email",
- "to": "metric1"
- },
- {
- "from": "trait2",
- "to": "metric2"
- }
- ],
- "resetCustomDimensionsOnPage": [
- {
- "resetCustomDimensionsOnPage": "abc"
- },
- {
- "resetCustomDimensionsOnPage": "xyz"
- }
- ],
- "contentGroupings": [
- {
- "from": "plan",
- "to": "contentGroup1"
- },
- {
- "from": "prop2",
- "to": "contentGroup2"
- }
- ]
- },
- "Enabled": true
- }
- }
- ]
- }
- },
- "output": {
- "response": {
- "status": 200,
- "body": [
- {
- "error": "Message type newtype not supported",
- "statTags": {
- "destType": "GA",
- "errorCategory": "dataValidation",
- "errorType": "instrumentation",
- "feature": "processor",
- "implementation": "native",
- "module": "destination"
- },
- "statusCode": 400
- }
- ]
- }
- }
- },
- {
- "name": "ga",
- "description": "Test 50",
- "feature": "processor",
- "module": "destination",
- "version": "v0",
- "input": {
- "request": {
- "body": [
- {
- "message": {
- "channel": "web",
- "context": {
- "traits": {
- "name": "Test"
- },
- "app": {
- "build": "1.0.0",
- "name": "RudderLabs JavaScript SDK",
- "namespace": "com.rudderlabs.javascript",
- "version": "1.0.0"
- },
- "library": {
- "name": "RudderLabs JavaScript SDK",
- "version": "1.0.0"
- },
- "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36",
- "locale": "en-US",
- "ip": "0.0.0.0",
- "os": {
- "name": "",
- "version": ""
- },
- "screen": {
- "density": 2
- }
- },
- "properties": {
- "plan": "standard plan",
- "name": "rudder test"
- },
- "type": "identify",
- "messageId": "84e26acc-56a5-4835-8233-591137fca468",
- "originalTimestamp": "2019-10-14T09:03:17.562Z",
- "userId": "12345",
- "integrations": {
- "All": true
- },
- "sentAt": "2019-10-14T09:03:22.563Z"
- },
- "destination": {
- "Config": {
- "trackingID": "UA-165994240-1",
- "doubleClick": true,
- "enhancedLinkAttribution": true,
- "classic": true,
- "ignoredReferrers": "",
- "serverClassic": false,
- "includeSearch": true,
- "trackCategorizedPages": true,
- "trackNamedPages": true,
- "sampleRate": "100",
- "siteSpeedSampleRate": "1",
- "setAllMappedProps": true,
- "enableServerSideIdentify": true,
- "serverSideIdentifyEventCategory": "name",
- "serverSideIdentifyEventAction": "action1",
- "anonymizeIp": true,
- "domain": "domain",
- "enhancedEcommerce": true,
- "nonInteraction": true,
- "optimize": "abc123",
- "sendUserId": true,
- "useGoogleAmpClientId": true,
- "web-useNativeSDK": true,
- "dimensions": [
- {
- "from": "name",
- "to": "dimension1"
- },
- {
- "from": "custom2",
- "to": "dimension2"
- }
- ],
- "metrics": [
- {
- "from": "email",
- "to": "metric1"
- },
- {
- "from": "trait2",
- "to": "metric2"
- }
- ],
- "resetCustomDimensionsOnPage": [
- {
- "resetCustomDimensionsOnPage": "abc"
- },
- {
- "resetCustomDimensionsOnPage": "xyz"
- }
- ],
- "contentGroupings": [
- {
- "from": "plan",
- "to": "contentGroup1"
- },
- {
- "from": "prop2",
- "to": "contentGroup2"
- }
- ]
- },
- "Enabled": true
- }
- }
- ]
- }
- },
- "output": {
- "response": {
- "status": 200,
- "body": [
- {
- "output": {
- "version": "1",
- "type": "REST",
- "userId": "12345",
- "method": "POST",
- "endpoint": "https://www.google-analytics.com/collect",
- "headers": {},
- "params": {
- "ea": "action1",
- "ec": "Test",
- "ni": 1,
- "cd1": "Test",
- "v": "1",
- "t": "event",
- "tid": "UA-165994240-1",
- "ds": "web",
- "an": "RudderLabs JavaScript SDK",
- "av": "1.0.0",
- "aiid": "com.rudderlabs.javascript",
- "npa": 1,
- "aip": 1,
- "ua": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36",
- "ul": "en-US",
- "uid": "12345",
- "cid": "827ccb0eea8a706c4c34a16891f84e7b",
- "uip": "0.0.0.0",
- "qt": 124901802438
- },
- "body": {
- "JSON": {},
- "XML": {},
- "JSON_ARRAY": {},
- "FORM": {}
- },
- "files": {}
- },
- "statusCode": 200
- }
- ]
- }
- }
- },
- {
- "name": "ga",
- "description": "Test 51",
- "feature": "processor",
- "module": "destination",
- "version": "v0",
- "input": {
- "request": {
- "body": [
- {
- "message": {
- "channel": "web",
- "context": {
- "traits": {
- "name": "Test"
- },
- "app": {
- "build": "1.0.0",
- "name": "RudderLabs JavaScript SDK",
- "namespace": "com.rudderlabs.javascript",
- "version": "1.0.0"
- },
- "library": {
- "name": "RudderLabs JavaScript SDK",
- "version": "1.0.0"
- },
- "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36",
- "locale": "en-US",
- "ip": "0.0.0.0",
- "os": {
- "name": "",
- "version": ""
- },
- "screen": {
- "density": 2
- }
- },
- "properties": {
- "plan": "standard plan",
- "name": "rudder test"
- },
- "type": "identify",
- "messageId": "84e26acc-56a5-4835-8233-591137fca468",
- "originalTimestamp": "2019-10-14T09:03:17.562Z",
- "userId": "12345",
- "integrations": {
- "All": true
- },
- "sentAt": "2019-10-14T09:03:22.563Z"
- },
- "destination": {
- "Config": {
- "trackingID": "UA-165994240-1",
- "doubleClick": true,
- "enhancedLinkAttribution": true,
- "classic": true,
- "ignoredReferrers": "",
- "serverClassic": false,
- "includeSearch": true,
- "trackCategorizedPages": true,
- "trackNamedPages": true,
- "sampleRate": "100",
- "siteSpeedSampleRate": "1",
- "setAllMappedProps": true,
- "enableServerSideIdentify": true,
- "serverSideIdentifyEventCategory": "name",
- "serverSideIdentifyEventAction": "action1",
- "anonymizeIp": true,
- "disableMd5": true,
- "domain": "domain",
- "enhancedEcommerce": true,
- "nonInteraction": true,
- "optimize": "abc123",
- "sendUserId": true,
- "useGoogleAmpClientId": true,
- "web-useNativeSDK": true,
- "dimensions": [
- {
- "from": "name",
- "to": "dimension1"
- },
- {
- "from": "custom2",
- "to": "dimension2"
- }
- ],
- "metrics": [
- {
- "from": "email",
- "to": "metric1"
- },
- {
- "from": "trait2",
- "to": "metric2"
- }
- ],
- "resetCustomDimensionsOnPage": [
- {
- "resetCustomDimensionsOnPage": "abc"
- },
- {
- "resetCustomDimensionsOnPage": "xyz"
- }
- ],
- "contentGroupings": [
- {
- "from": "plan",
- "to": "contentGroup1"
- },
- {
- "from": "prop2",
- "to": "contentGroup2"
- }
- ]
- },
- "Enabled": true
- }
- }
- ]
- }
- },
- "output": {
- "response": {
- "status": 200,
- "body": [
- {
- "output": {
- "version": "1",
- "type": "REST",
- "userId": "12345",
- "method": "POST",
- "endpoint": "https://www.google-analytics.com/collect",
- "headers": {},
- "params": {
- "ea": "action1",
- "ec": "Test",
- "ni": 1,
- "cd1": "Test",
- "v": "1",
- "t": "event",
- "tid": "UA-165994240-1",
- "ds": "web",
- "an": "RudderLabs JavaScript SDK",
- "av": "1.0.0",
- "aiid": "com.rudderlabs.javascript",
- "npa": 1,
- "aip": 1,
- "ua": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36",
- "ul": "en-US",
- "uid": "12345",
- "uip": "0.0.0.0",
- "qt": 124901802438
- },
- "body": {
- "JSON": {},
- "XML": {},
- "JSON_ARRAY": {},
- "FORM": {}
- },
- "files": {}
- },
- "statusCode": 200
- }
- ]
- }
- }
- },
- {
- "name": "ga",
- "description": "Test 52",
- "feature": "processor",
- "module": "destination",
- "version": "v0",
- "input": {
- "request": {
- "body": [
- {
- "message": {
- "channel": "web",
- "context": {
- "traits": {
- "name": "Test"
- },
- "app": {
- "build": "1.0.0",
- "name": "RudderLabs JavaScript SDK",
- "namespace": "com.rudderlabs.javascript",
- "version": "1.0.0"
- },
- "library": {
- "name": "RudderLabs JavaScript SDK",
- "version": "1.0.0"
- },
- "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36",
- "locale": "en-US",
- "ip": "0.0.0.0",
- "os": {
- "name": "",
- "version": ""
- },
- "screen": {
- "density": 2
- }
- },
- "properties": {
- "plan": "standard plan",
- "name": "rudder test"
- },
- "type": "identify",
- "messageId": "84e26acc-56a5-4835-8233-591137fca468",
- "originalTimestamp": "2019-10-14T09:03:17.562Z",
- "userId": "12345",
- "integrations": {
- "All": true,
- "GA": {
- "clientId": "clientId"
- },
- "Google Analytics": {
- "clientId": "clientId"
- }
- },
- "sentAt": "2019-10-14T09:03:22.563Z"
- },
- "destination": {
- "Config": {
- "trackingID": "UA-165994240-1",
- "doubleClick": true,
- "enhancedLinkAttribution": true,
- "classic": true,
- "ignoredReferrers": "",
- "serverClassic": false,
- "includeSearch": true,
- "trackCategorizedPages": true,
- "trackNamedPages": true,
- "sampleRate": "100",
- "siteSpeedSampleRate": "1",
- "setAllMappedProps": true,
- "enableServerSideIdentify": true,
- "serverSideIdentifyEventCategory": "name",
- "serverSideIdentifyEventAction": "action1",
- "anonymizeIp": true,
- "domain": "domain",
- "enhancedEcommerce": true,
- "nonInteraction": true,
- "optimize": "abc123",
- "sendUserId": true,
- "useGoogleAmpClientId": true,
- "web-useNativeSDK": true,
- "dimensions": [
- {
- "from": "name",
- "to": "dimension1"
- },
- {
- "from": "custom2",
- "to": "dimension2"
- }
- ],
- "metrics": [
- {
- "from": "email",
- "to": "metric1"
- },
- {
- "from": "trait2",
- "to": "metric2"
- }
- ],
- "resetCustomDimensionsOnPage": [
- {
- "resetCustomDimensionsOnPage": "abc"
- },
- {
- "resetCustomDimensionsOnPage": "xyz"
- }
- ],
- "contentGroupings": [
- {
- "from": "plan",
- "to": "contentGroup1"
- },
- {
- "from": "prop2",
- "to": "contentGroup2"
- }
- ]
- },
- "Enabled": true
- }
- }
- ]
- }
- },
- "output": {
- "response": {
- "status": 200,
- "body": [
- {
- "output": {
- "version": "1",
- "type": "REST",
- "userId": "12345",
- "method": "POST",
- "endpoint": "https://www.google-analytics.com/collect",
- "headers": {},
- "params": {
- "ea": "action1",
- "ec": "Test",
- "ni": 1,
- "cd1": "Test",
- "v": "1",
- "t": "event",
- "tid": "UA-165994240-1",
- "ds": "web",
- "an": "RudderLabs JavaScript SDK",
- "av": "1.0.0",
- "aiid": "com.rudderlabs.javascript",
- "npa": 1,
- "aip": 1,
- "ua": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36",
- "ul": "en-US",
- "uid": "12345",
- "cid": "clientId",
- "uip": "0.0.0.0",
- "qt": 124901802438
- },
- "body": {
- "JSON": {},
- "XML": {},
- "JSON_ARRAY": {},
- "FORM": {}
- },
- "files": {}
- },
- "statusCode": 200
- }
- ]
- }
- }
- },
- {
- "name": "ga",
- "description": "Test 53",
- "feature": "processor",
- "module": "destination",
- "version": "v0",
- "input": {
- "request": {
- "body": [
- {
- "message": {
- "channel": "web",
- "context": {
- "externalId": [
- {
- "id": "externalClientId",
- "type": "gaExternalId"
- }
- ],
- "traits": {
- "name": "Test"
- },
- "app": {
- "build": "1.0.0",
- "name": "RudderLabs JavaScript SDK",
- "namespace": "com.rudderlabs.javascript",
- "version": "1.0.0"
- },
- "library": {
- "name": "RudderLabs JavaScript SDK",
- "version": "1.0.0"
- },
- "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36",
- "locale": "en-US",
- "ip": "0.0.0.0",
- "os": {
- "name": "",
- "version": ""
- },
- "screen": {
- "density": 2
- }
- },
- "properties": {
- "plan": "standard plan",
- "name": "rudder test"
- },
- "type": "identify",
- "messageId": "84e26acc-56a5-4835-8233-591137fca468",
- "originalTimestamp": "2019-10-14T09:03:17.562Z",
- "userId": "12345",
- "integrations": {
- "All": true
- },
- "sentAt": "2019-10-14T09:03:22.563Z"
- },
- "destination": {
- "Config": {
- "trackingID": "UA-165994240-1",
- "doubleClick": true,
- "enhancedLinkAttribution": true,
- "classic": true,
- "ignoredReferrers": "",
- "serverClassic": false,
- "includeSearch": true,
- "trackCategorizedPages": true,
- "trackNamedPages": true,
- "sampleRate": "100",
- "siteSpeedSampleRate": "1",
- "setAllMappedProps": true,
- "enableServerSideIdentify": true,
- "serverSideIdentifyEventCategory": "name",
- "serverSideIdentifyEventAction": "action1",
- "anonymizeIp": true,
- "domain": "domain",
- "enhancedEcommerce": true,
- "nonInteraction": true,
- "optimize": "abc123",
- "sendUserId": true,
- "useGoogleAmpClientId": true,
- "web-useNativeSDK": true,
- "dimensions": [
- {
- "from": "name",
- "to": "dimension1"
- },
- {
- "from": "custom2",
- "to": "dimension2"
- }
- ],
- "metrics": [
- {
- "from": "email",
- "to": "metric1"
- },
- {
- "from": "trait2",
- "to": "metric2"
- }
- ],
- "resetCustomDimensionsOnPage": [
- {
- "resetCustomDimensionsOnPage": "abc"
- },
- {
- "resetCustomDimensionsOnPage": "xyz"
- }
- ],
- "contentGroupings": [
- {
- "from": "plan",
- "to": "contentGroup1"
- },
- {
- "from": "prop2",
- "to": "contentGroup2"
- }
- ]
- },
- "Enabled": true
- }
- }
- ]
- }
- },
- "output": {
- "response": {
- "status": 200,
- "body": [
- {
- "output": {
- "version": "1",
- "type": "REST",
- "userId": "12345",
- "method": "POST",
- "endpoint": "https://www.google-analytics.com/collect",
- "headers": {},
- "params": {
- "ea": "action1",
- "ec": "Test",
- "ni": 1,
- "cd1": "Test",
- "v": "1",
- "t": "event",
- "tid": "UA-165994240-1",
- "ds": "web",
- "an": "RudderLabs JavaScript SDK",
- "av": "1.0.0",
- "aiid": "com.rudderlabs.javascript",
- "npa": 1,
- "aip": 1,
- "ua": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36",
- "ul": "en-US",
- "uid": "12345",
- "cid": "externalClientId",
- "uip": "0.0.0.0",
- "qt": 124901802438
- },
- "body": {
- "JSON": {},
- "XML": {},
- "JSON_ARRAY": {},
- "FORM": {}
- },
- "files": {}
- },
- "statusCode": 200
- }
- ]
- }
- }
- },
- {
- "name": "ga",
- "description": "Test 54",
- "feature": "processor",
- "module": "destination",
- "version": "v0",
- "input": {
- "request": {
- "body": [
- {
- "message": {
- "channel": "web",
- "context": {
- "app": {
- "build": "1.0.0",
- "name": "RudderLabs JavaScript SDK",
- "namespace": "com.rudderlabs.javascript",
- "version": "1.0.0"
- },
- "traits": {
- "email": "test@rudderstack.com"
- },
- "library": {
- "name": "RudderLabs JavaScript SDK",
- "version": "1.0.0"
- },
- "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36",
- "locale": "en-US",
- "os": {
- "name": "",
- "version": ""
- },
- "screen": {
- "density": 2
- }
- },
- "type": "track",
- "messageId": "ec5481b6-a926-4d2e-b293-0b3a77c4d3be",
- "originalTimestamp": "2019-10-14T11:15:18.300Z",
- "anonymousId": "00000000000000000000000000",
- "userId": "12345",
- "event": "product list viewed",
- "properties": {
- "nonInteraction": 0,
- "category": "cat 1",
- "list_id": "1234",
- "filters": {
- "a": "department",
- "b": "beauty"
- },
- "sorts": [
- {
- "type": "price",
- "value": "desc"
- }
- ],
- "products": [
- {
- "product_id": "507f1f77bcf86cd799439011",
- "productDimension": "My Product Dimension",
- "productMetric": "My Product Metric",
- "position": 10
- },
- {
- "product_id": "507f1f77bcf86cdef799439011",
- "productDimension": "My Product Dimension1",
- "productMetric": "My Product Metric1",
- "position": -10
- }
- ],
- "testDimension": true,
- "testMetric": true
- },
- "integrations": {
- "All": true
- },
- "sentAt": "2019-10-14T11:15:53.296Z"
- },
- "destination": {
- "Config": {
- "trackingID": "UA-165994240-1",
- "doubleClick": true,
- "enhancedLinkAttribution": true,
- "classic": true,
- "ignoredReferrers": "",
- "serverClassic": false,
- "includeSearch": true,
- "trackCategorizedPages": true,
- "trackNamedPages": true,
- "sampleRate": "100",
- "siteSpeedSampleRate": "1",
- "setAllMappedProps": true,
- "enableServerSideIdentify": true,
- "serverSideIdentifyEventCategory": "cat1",
- "serverSideIdentifyEventAction": "action1",
- "anonymizeIp": true,
- "domain": "domain",
- "enhancedEcommerce": true,
- "nonInteraction": true,
- "optimize": "abc123",
- "sendUserId": true,
- "useGoogleAmpClientId": true,
- "web-useNativeSDK": true,
- "dimensions": [
- {
- "from": "name",
- "to": "dimension1"
- },
- {
- "from": "custom2",
- "to": "dimension2"
- }
- ],
- "metrics": [
- {
- "from": "email",
- "to": "metric1"
- },
- {
- "from": "trait2",
- "to": "metric2"
- }
- ],
- "resetCustomDimensionsOnPage": [
- {
- "resetCustomDimensionsOnPage": "abc"
- },
- {
- "resetCustomDimensionsOnPage": "xyz"
- }
- ],
- "contentGroupings": [
- {
- "from": "plan",
- "to": "content1"
- },
- {
- "from": "prop2",
- "to": "content2"
- }
- ]
- },
- "Enabled": true
- }
- }
- ]
- }
- },
- "output": {
- "response": {
- "status": 200,
- "body": [
- {
- "output": {
- "version": "1",
- "type": "REST",
- "method": "POST",
- "endpoint": "https://www.google-analytics.com/collect",
- "headers": {},
- "params": {
- "ni": 0,
- "ea": "product list viewed",
- "ec": "cat 1",
- "pa": "detail",
- "il1pi1id": "507f1f77bcf86cd799439011",
- "il1pi1va": "::price:desc",
- "il1pi1ps": 10,
- "il1pi1qt": 1,
- "il1pi2id": "507f1f77bcf86cdef799439011",
- "il1pi2va": "::price:desc",
- "il1pi2ps": -10,
- "il1pi2qt": 1,
- "el": "event",
- "v": "1",
- "t": "event",
- "tid": "UA-165994240-1",
- "ds": "web",
- "npa": 1,
- "aip": 1,
- "ua": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36",
- "ul": "en-US",
- "an": "RudderLabs JavaScript SDK",
- "av": "1.0.0",
- "aiid": "com.rudderlabs.javascript",
- "il1nm": "1234",
- "uid": "12345",
- "cid": "00000000000000000000000000",
- "qt": 124893881700
- },
- "body": {
- "JSON": {},
- "XML": {},
- "JSON_ARRAY": {},
- "FORM": {}
- },
- "files": {},
- "userId": "00000000000000000000000000"
- },
- "statusCode": 200
- }
- ]
- }
- }
- },
- {
- "name": "ga",
- "description": "Test 55",
- "feature": "processor",
- "module": "destination",
- "version": "v0",
- "input": {
- "request": {
- "body": [
- {
- "message": {
- "channel": "web",
- "context": {
- "app": {
- "build": "1.0.0",
- "name": "RudderLabs JavaScript SDK",
- "namespace": "com.rudderlabs.javascript",
- "version": "1.0.0"
- },
- "traits": {
- "email": "test@rudderstack.com"
- },
- "library": {
- "name": "RudderLabs JavaScript SDK",
- "version": "1.0.0"
- },
- "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36",
- "locale": "en-US",
- "ip": "0.0.0.0",
- "os": {
- "name": "",
- "version": ""
- },
- "screen": {
- "density": 2
- }
- },
- "type": "page",
- "messageId": "5e10d13a-bf9a-44bf-b884-43a9e591ea71",
- "originalTimestamp": "2019-10-14T11:15:18.299Z",
- "anonymousId": "00000000000000000000000000",
- "userId": "12345",
- "properties": {
- "referrer": "https://google.com/answer/7554821?zippy=%2Cfields-in-event-snippets-for-counter-tags%2Cstep-add-the-global-snippet-to-every-page-of-your-site%2Cstep-add-the-event-snippet-to-pages-with-events-youre-tracking%2Cfields-in-the-global-snippet%2Cfields-in-the-event-snippet---overview%2Cfields-in-all-event-snippets%2Cexample-event-snippet-for-counter---standard-activities%2Cexample-event-snippet-for-counter---unique-activities%2Cexample-event-snippet-for-counter---per-session-activities%2Cfields-in-event-snippets-for-sales-tags%2Cexample-event-snippet-for-sales---transaction-activities%2Cexample-event-snippet-for-sales---items-sold-activities%2Ccustom-fields%2Cnoscript-section-of-event-snippets%2Cdo-i-need-to-set-up-cache-busting-with-the-global-site-tag%2Cwhy-is-the-global-site-tag-placed-in-the-head-when-iframe-and-image-tags-were-placed-in-the-body-of-my-site%2Cwhere-can-i-learn-more-about-the-global-site-tag%2Cstep-add-the-event-snippet-to-pages-with-events-youre-tracking%2Cfields-in-the-global-snippet%2Cfields-in-the-event-snippet---overview%2Cfields-in-all-event-snippets%2Cexample-event-snippet-for-counter---standard-activities%2Cexample-event-snippet-for-counter---unique-activities%2Cexample-event-snippet-for-counter---per-session-activities%2Cfields-in-event-snippets-for-sales-tags%2Cexample-event-snippet-for-sales---transaction-activities%2Cexample-event-snippet-for-sales---items-sold-activities%2Ccustom-fields%2Cnoscript-section-of-event-snippets%2Cdo-i-need-to-set-up-cache-busting-with-the-global-site-tag%2Cwhy-is-the-global-site-tag-placed-in-the-head-when-iframe-and-image-tags-were-placed-in-the-body-of-my-site%2Cwhere-can-i-learn-more-about-the-global-site-tag%2Cstep-add-the-event-snippet-to-pages-with-events-youre-tracking%2Cfields-in-the-global-snippet%2Cfields-in-the-event-snippet---overview%2Cfields-in-all-event-snippets%2Cexample-event-snippet-for-counter---standard-activities%2Cexample-event-snippet-for-counter---unique-activities%2Cexample-event-snippet-for-counter---per-session-activities%2Cfields-in-event-snippets-for-sales-tags%2Cexample-event-snippet-for-sales---transaction-activities%2Cexample-event-snippet-for-sales---items-sold-activities%2Ccustom-fields%2Cnoscript-section-of-event-snippets%2Cdo-i-need-to-set-up-cache-busting-with-the-global-site-tag%2Cwhy-is-the-global-site-tag-placed-in-the-head-when-iframe-and-image-tags-were-placed-in-the-body-of-my-site%2Cwhere-can-i-learn-more-about-the-global-site-tag%2Cwhy-is-the-global-site-tag-placed-in-the-head-when-iframe-and-image-tags-were-placed-in-the-body-of-my-site%2Cwhere-can-i-learn-more-about-the-global-site-tag%2Cwhy-is-the-global-site-tag-placed-in-the-head-when-iframe-and-image-tags-were-placed-in-the-body-of-my-site%2Cwhere-can-i-learn-more-about-the-global-site-tag%2Cwhy-is-the-global-site-tag-placed-in-the-head-when-iframe-and-image-tags-were-placed-in-the-body-of-my-site%2Cwhere-can-i-learn-more-about-the-global-site-tag%2Cwhy-is-the-global-site-tag-placed-in-the-head-when-iframe-and-image-tags-were-placed-in-the-body-of-my-site%2Cwhere-can-i-learn-more-about-the-global-site-tag%2Cwhy-is-the-global-site-tag-placed-in-the-head-when-iframe-and-image-tags-were-placed-in-the-body-of-my-site%2Cwhere-can-i-learn-more-about-tg%2Cwhy-is-the-global-site-tag-placed-in-the-head-when-iframe-and-image-tags-were-placed-in-the-body-of-my-site%2Cwhere-can-i-learns-more-about-the-global-site-tag%2Cwhy-is-the-globalthe-head-when-iframe-and-image-tags-were-placed-in-the-body-placed-of-my-site%2Cwhere-can-i-learn-g2Cwhy-is-the-global-site-tag-placed-in-the-head-when-iframe-and-and-in-the-body-of-my-site%2Cwhere-can-i-learn-more-about-the-global-site-tag%2Cwhy-n-the-head-when-iframe-and-image-tags-were-placed-in-the-body-of-my-site%2Cwhere-can-i-learn-more-about-the-global-site-tag",
- "search": "",
- "title": "a",
- "url": "https://support.google.com/campaignmanager/answer/7554821?zippy=%2Cfields-in-event-snippets-for-counter-tags%2Cstep-add-the-global-snippet-to-every-page-of-your-site%2Cstep-add-the-event-snippet-to-pages-with-events-youre-tracking%2Cfields-in-the-global-snippet%2Cfields-in-the-event-snippet---overview%2Cfields-in-all-event-snippets%2Cexample-event-snippet-for-counter---standard-activities%2Cexample-event-snippet-for-counter---unique-activities%2Cexample-event-snippet-for-counter---per-session-activities%2Cfields-in-event-snippets-for-sales-tags%2Cexample-event-snippet-for-sales---transaction-activities%2Cexample-event-snippet-for-sales---items-sold-activities%2Ccustom-fields%2Cnoscript-section-of-event-snippets%2Cdo-i-need-to-set-up-cache-busting-with-the-global-site-tag%2Cwhy-is-the-global-site-tag-placed-in-the-head-when-iframe-and-image-tags-were-placed-in-the-body-of-my-site%2Cwhere-can-i-learn-more-about-the-global-site-tag%2Cstep-add-the-event-snippet-to-pages-with-events-youre-tracking%2Cfields-in-the-global-snippet%2Cfields-in-the-event-snippet---overview%2Cfields-in-all-event-snippets%2Cexample-event-snippet-for-counter---standard-activities%2Cexample-event-snippet-for-counter---unique-activities%2Cexample-event-snippet-for-counter---per-session-activities%2Cfields-in-event-snippets-for-sales-tags%2Cexample-event-snippet-for-sales---transaction-activities%2Cexample-event-snippet-for-sales---items-sold-activities%2Ccustom-fields%2Cnoscript-section-of-event-snippets%2Cdo-i-need-to-set-up-cache-busting-with-the-global-site-tag%2Cwhy-is-the-global-site-tag-placed-in-the-head-when-iframe-and-image-tags-were-placed-in-the-body-of-my-site%2Cwhere-can-i-learn-more-about-the-global-site-tag%2Cstep-add-the-event-snippet-to-pages-with-events-youre-tracking%2Cfields-in-the-global-snippet%2Cfields-in-the-event-snippet---overview%2Cfields-in-all-event-snippets%2Cexample-event-snippet-for-counter---standard-activities%2Cexample-event-snippet-for-counter---unique-activities%2Cexample-event-snippet-for-counter---per-session-activities%2Cfields-in-event-snippets-for-sales-tags%2Cexample-event-snippet-for-sales---transaction-activities%2Cexample-event-snippet-for-sales---items-sold-activities%2Ccustom-fields%2Cnoscript-section-of-event-snippets%2Cdo-i-need-to-set-up-cache-busting-with-the-global-site-tag%2Cwhy-is-the-global-site-tag-placed-in-the-head-when-iframe-and-image-tags-were-placed-in-the-body-of-my-site%2Cwhere-can-i-learn-more-about-the-global-site-tag%2Cwhy-is-the-global-site-tag-placed-in-the-head-when-iframe-and-image-tags-were-placed-in-the-body-of-my-site%2Cwhere-can-i-learn-more-about-the-global-site-tag%2Cwhy-is-the-global-site-tag-placed-in-the-head-when-iframe-and-image-tags-were-placed-in-the-body-of-my-site%2Cwhere-can-i-learn-more-about-the-global-site-tag%2Cwhy-is-the-global-site-tag-placed-in-the-head-when-iframe-and-image-tags-were-placed-in-the-body-of-my-site%2Cwhere-can-i-learn-more-about-the-global-site-tag%2Cwhy-is-the-global-site-tag-placed-in-the-head-when-iframe-and-image-tags-were-placed-in-the-body-of-my-site%2Cwhere-can-i-learn-more-about-the-global-site-tag%2Cwhy-is-the-global-site-tag-placed-in-the-head-when-iframe-and-image-tags-were-placed-in-the-body-of-my-site%2Cwhere-can-i-learn-more-about-the-global-site-tag%2Cwhy-is-the-global-site-tag-placed-in-the-head-lakjsdlkfjalsdkfjis-the-global-site-tag-placed-in-the-head-lakjsdlkfjalsdkfjis-the-global-site-tag-placed-in-the-head-lakjsdlkfjalsdkfjakljshdlfkjahsldkfjahlskdfjhaklsjdfhalksjdhflakjshdflakjsdhfklasjhdflaksjhdflaksjdfhlakjshdflakjsdhfklasjhdflaksjhdflaksjdfhlakjshdflakjsdhfklasjhdflaksjhdflaksjdfhljkkwoipqpweoirpoqiwerpoqi1111111111111"
- },
- "integrations": {
- "All": true
- },
- "name": "ApplicationLoaded",
- "sentAt": "2019-10-14T11:15:53.296Z"
- },
- "destination": {
- "Config": {
- "anonymizeIp": false,
- "eventDeliveryTS": 1657516676962,
- "eventFilteringOption": "disable",
- "trackingID": "UA-165994240-1"
- }
- }
- }
- ]
- }
- },
- "output": {
- "response": {
- "status": 200,
- "body": [
- {
- "output": {
- "version": "1",
- "type": "REST",
- "method": "POST",
- "endpoint": "https://www.google-analytics.com/collect",
- "headers": {},
- "params": {
- "dp": "%2Fcampaignmanager%2Fanswer%2F7554821",
- "dl": "https://support.google.com/campaignmanager/answer/7554821?zippy=%2Cfields-in-event-snippets-for-counter-tags%2Cstep-add-the-global-snippet-to-every-page-of-your-site%2Cstep-add-the-event-snippet-to-pages-with-events-youre-tracking%2Cfields-in-the-global-snippet%2Cfields-in-the-event-snippet---overview%2Cfields-in-all-event-snippets%2Cexample-event-snippet-for-counter---standard-activities%2Cexample-event-snippet-for-counter---unique-activities%2Cexample-event-snippet-for-counter---per-session-activities%2Cfields-in-event-snippets-for-sales-tags%2Cexample-event-snippet-for-sales---transaction-activities%2Cexample-event-snippet-for-sales---items-sold-activities%2Ccustom-fields%2Cnoscript-section-of-event-snippets%2Cdo-i-need-to-set-up-cache-busting-with-the-global-site-tag%2Cwhy-is-the-global-site-tag-placed-in-the-head-when-iframe-and-image-tags-were-placed-in-the-body-of-my-site%2Cwhere-can-i-learn-more-about-the-global-site-tag%2Cstep-add-the-event-snippet-to-pages-with-events-youre-tracking%2Cfields-in-the-global-snippet%2Cfields-in-the-event-snippet---overview%2Cfields-in-all-event-snippets%2Cexample-event-snippet-for-counter---standard-activities%2Cexample-event-snippet-for-counter---unique-activities%2Cexample-event-snippet-for-counter---per-session-activities%2Cfields-in-event-snippets-for-sales-tags%2Cexample-event-snippet-for-sales---transaction-activities%2Cexample-event-snippet-for-sales---items-sold-activities%2Ccustom-fields%2Cnoscript-section-of-event-snippets%2Cdo-i-need-to-set-up-cache-busting-with-the-global-site-tag%2Cwhy-is-the-global-site-tag-placed-in-the-head-when-iframe-and-image-tags-were-placed-in-the-body-of-my-site%2Cwhere-can-i-learn-more-about-the-global-site-tag%2Cstep-add-the-event-snippet-to-pages-with-events-youre-tracking%2Cfields-in-the-global-snippet%2Cfields-in-the-event-snippet---overview%2Cfields-in-all-event-snippets%2Cexample-event-snippet-for-counter---standard-activities%2Cexample-event-snippet-for-counter---unique-activities%2Cexample-event-snippet-for-counter---per-session-activities%2Cfields-in-event-snippets-for-sales-tags%2Cexample-event-snippet-for-sales---transaction-activities%2Cexample-event-snippet-for-sales---items-sold-activities%2Ccustom-fields%2Cnoscript-section-of-event-snippets%2Cdo-i-need-to-set-up-cache-busting-with-the-global-site-tag%2Cwhy-is-the-global-site-tag-placed-in-the-head-when-iframe-and-image-tags-were-placed-in-the-body-of-my-site%2Cwhere-can-i-learn-more-about-the-global-site-tag%2Cwhy-is-the-global-site-tag-placed-in-the-head-when-iframe-and-image-tags-were-placed-in-the-body-of-my-site%2Cwhere-can-i-learn-more-about-the-global-site-tag%2Cwhy-is-the-global-site-tag-placed-in-the-head-when-iframe-and-image-tags-were-placed-in-the-body-of-my-site%2Cwhere-can-i-learn-more-about-the-global-site-tag%2Cwhy-is-the-global-site-tag-placed-in-the-head-when-iframe-and-image-tags-were-placed-in-the-body-of-my-site%2Cwhere-can-i-learn-more-about-the-global-site-tag%2Cwhy-is-the-global-site-tag-placed-in-the-head-when-iframe-and-image-tags-were-placed-in-the-body-of-my-site%2Cwhere-can-i-learn-more-about-the-global-site-tag%2Cwhy-is-the-global-site-tag-placed-in-the-head-when-iframe-and-image-tags-were-placed-in-the-body-of-my-site%2Cwhere-can-i-learn-more-about-the-global-site-tag%2Cwhy-is-the-global-site-tag-placed-in-the-head-lakjsdlkfjalsdkfjis-the-global-site-tag-placed-in-the-head-lakjsdlkfjalsdkfjis-the-global-site-tag-placed-in-the-head-lakjsdlkfjalsdkfjakljshdlfkjahsldkfjahlskdfjhaklsjdfhalksjdhflakjshdflakjsdhfklasjhdflaksjhdflaksjdfhlakjshdflakjsdhfklasjhdflaksjhdflaksjdfhlakjshdflakjsdhfklasjhdflaksjhdflaksjdfhljkkwoipqpweoirpoqiwerpoqi1111111111111",
- "dh": "support.google.com",
- "dt": "a",
- "dr": "https://google.com/answer/7554821?zippy=%2Cfields-in-event-snippets-for-counter-tags%2Cstep-add-the-global-snippet-to-every-page-of-your-site%2Cstep-add-the-event-snippet-to-pages-with-events-youre-tracking%2Cfields-in-the-global-snippet%2Cfields-in-the-event-snippet---overview%2Cfields-in-all-event-snippets%2Cexample-event-snippet-for-counter---standard-activities%2Cexample-event-snippet-for-counter---unique-activities%2Cexample-event-snippet-for-counter---per-session-activities%2Cfields-in-event-snippets-for-sales-tags%2Cexample-event-snippet-for-sales---transaction-activities%2Cexample-event-snippet-for-sales---items-sold-activities%2Ccustom-fields%2Cnoscript-section-of-event-snippets%2Cdo-i-need-to-set-up-cache-busting-with-the-global-site-tag%2Cwhy-is-the-global-site-tag-placed-in-the-head-when-iframe-and-image-tags-were-placed-in-the-body-of-my-site%2Cwhere-can-i-learn-more-about-the-global-site-tag%2Cstep-add-the-event-snippet-to-pages-with-events-youre-tracking%2Cfields-in-the-global-snippet%2Cfields-in-the-event-snippet---overview%2Cfields-in-all-event-snippets%2Cexample-event-snippet-for-counter---standard-activities%2Cexample-event-snippet-for-counter---unique-activities%2Cexample-event-snippet-for-counter---per-session-activities%2Cfields-in-event-snippets-for-sales-tags%2Cexample-event-snippet-for-sales---transaction-activities%2Cexample-event-snippet-for-sales---items-sold-activities%2Ccustom-fields%2Cnoscript-section-of-event-snippets%2Cdo-i-need-to-set-up-cache-busting-with-the-global-site-tag%2Cwhy-is-the-global-site-tag-placed-in-the-head-when-iframe-and-image-tags-were-placed-in-the-body-of-my-site%2Cwhere-can-i-learn-more-about-the-global-site-tag%2Cstep-add-the-event-snippet-to-pages-with-events-youre-tracking%2Cfields-in-the-global-snippet%2Cfields-in-the-event-snippet---overview%2Cfields-in-all-event-snippets%2Cexample-event-snippet-for-counter---standard-activities%2Cexample-event-snippet-for-counter---unique-activities%2Cexample-event-snippet-for-counter---per-session-activities%2Cfields-in-event-snippets-for-sales-tags%2Cexample-event-snippet-for-sales---transaction-activities%2Cexample-event-snippet-for-sales---items-sold-activities%2Ccustom-fields%2Cnoscript-section-of-event-snippets%2Cdo-i-need-to-set-up-cache-busting-with-the-global-site-tag%2Cwhy-is-the-global-site-tag-placed-in-the-head-when-iframe-and-image-tags-were-placed-in-the-body-of-my-site%2Cwhere-can-i-learn-more-about-the-global-site-tag%2Cwhy-is-the-global-site-tag-placed-in-the-head-when-iframe-and-image-tags-were-placed-in-the-body-of-my-site%2Cwhere-can-i-learn-more-about-the-global-site-tag%2Cwhy-is-the-global-site-tag-placed-in-the-head-when-iframe-and-image-tags-were-placed-in-the-body-of-my-site%2Cwhere-can-i-learn-more-about-the-global-site-tag%2Cwhy-is-the-global-site-tag-placed-in-the-head-when-iframe-and-image-tags-were-placed-in-the-body-of-my-site%2Cwhere-can-i-learn-more-about-the-global-site-tag%2Cwhy-is-the-global-site-tag-placed-in-the-head-when-iframe-and-image-tags-were-placed-in-the-body-of-my-site%2Cwhere-can-i-learn-more-about-the-global-site-tag%2Cwhy-is-the-global-site-tag-placed-in-the-head-when-iframe-and-image-tags-were-placed-in-the-body-of-my-site%2Cwhere-can-i-learn-more-about-tg%2Cwhy-is-the-global-site-tag-placed-in-the-head-when-iframe-and-image-tags-were-placed-in-the-body-of-my-site%2Cwhere-can-i-learns-more-about-the-global-site-tag%2Cwhy-is-the-globalthe-head-when-iframe-and-image-tags-were-placed-in-the-body-placed-of-my-site%2Cwhere-can-i-learn-g2Cwhy-is-the-global-site-tag-placed-in-the-head-when-iframe-and-and-in-the-body-of-my-site%2Cwhere-can-i-learn-more-about-the-global-site-tag%2Cwhy-n-the-head-when-iframe-and-image-tags-were-placed-in-the-body-of-my-site%2Cwhere-can-i-learn-more-about-the-global-site-tag",
- "v": "1",
- "t": "pageview",
- "tid": "UA-165994240-1",
- "ds": "web",
- "ua": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36",
- "ul": "en-US",
- "an": "RudderLabs JavaScript SDK",
- "av": "1.0.0",
- "aiid": "com.rudderlabs.javascript",
- "cid": "00000000000000000000000000",
- "uip": "0.0.0.0",
- "qt": 124893881701
- },
- "body": {
- "JSON": {},
- "JSON_ARRAY": {},
- "XML": {},
- "FORM": {}
- },
- "files": {},
- "userId": "00000000000000000000000000"
- },
- "statusCode": 200
- }
- ]
- }
- }
- }
-].map((d) => ({ ...d, mockFns }))
+ {
+ name: 'ga',
+ description: 'Test 0',
+ feature: 'processor',
+ module: 'destination',
+ version: 'v0',
+ input: {
+ request: {
+ body: [
+ {
+ message: {
+ channel: 'web',
+ context: {
+ externalId: [
+ {
+ id: 'lynnanderson@smith.net',
+ identifierType: 'device_id',
+ type: 'AM-users',
+ },
+ ],
+ mappedToDestination: 'true',
+ app: {
+ build: '1.0.0',
+ name: 'RudderLabs JavaScript SDK',
+ namespace: 'com.rudderlabs.javascript',
+ version: '1.0.0',
+ },
+ traits: {
+ anonymousId: '123456',
+ email: 'test@rudderstack.com',
+ address: {
+ country: 'India',
+ postalCode: 712136,
+ state: 'WB',
+ street: '',
+ os_version: 'test os',
+ },
+ ip: '0.0.0.0',
+ age: 26,
+ },
+ library: {
+ name: 'RudderLabs JavaScript SDK',
+ version: '1.0.0',
+ },
+ userAgent:
+ 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36',
+ locale: 'en-US',
+ ip: '0.0.0.0',
+ os: {
+ name: '',
+ version: '',
+ },
+ screen: {
+ density: 2,
+ },
+ page: {
+ path: '/destinations/amplitude',
+ referrer: '',
+ search: '',
+ title: '',
+ url: 'https://docs.rudderstack.com/destinations/amplitude',
+ category: 'destination',
+ initial_referrer: 'https://docs.rudderstack.com',
+ initial_referring_domain: 'docs.rudderstack.com',
+ },
+ },
+ traits: {
+ anonymousId: '123456',
+ email: 'test@rudderstack.com',
+ city: 'kolkata',
+ address: {
+ country: 'India',
+ postalCode: 712136,
+ state: 'WB',
+ street: '',
+ },
+ os_version: 'test os',
+ ip: '0.0.0.0',
+ age: 26,
+ an: 'Test App name',
+ ul: 'Test ul',
+ },
+ type: 'identify',
+ messageId: '84e26acc-56a5-4835-8233-591137fca468',
+ session_id: '3049dc4c-5a95-4ccd-a3e7-d74a7e411f22',
+ originalTimestamp: '2019-10-14T09:03:17.562Z',
+ anonymousId: '123456',
+ userId: '123456',
+ integrations: {
+ All: true,
+ },
+ sentAt: '2019-10-14T09:03:22.563Z',
+ },
+ destination: {
+ Config: {
+ trackingID: 'UA-165994240-1',
+ doubleClick: true,
+ enhancedLinkAttribution: true,
+ classic: true,
+ ignoredReferrers: '',
+ serverClassic: false,
+ includeSearch: true,
+ trackCategorizedPages: true,
+ trackNamedPages: true,
+ sampleRate: '100',
+ siteSpeedSampleRate: '1',
+ setAllMappedProps: true,
+ enableServerSideIdentify: true,
+ serverSideIdentifyEventCategory: 'name',
+ serverSideIdentifyEventAction: 'action1',
+ anonymizeIp: true,
+ domain: 'domain',
+ enhancedEcommerce: true,
+ nonInteraction: true,
+ optimize: 'abc123',
+ sendUserId: true,
+ useGoogleAmpClientId: true,
+ 'web-useNativeSDK': true,
+ dimensions: [
+ {
+ from: 'name',
+ to: 'dimension1',
+ },
+ {
+ from: 'custom2',
+ to: 'dimension2',
+ },
+ ],
+ metrics: [
+ {
+ from: 'email',
+ to: 'metric1',
+ },
+ {
+ from: 'trait2',
+ to: 'metric2',
+ },
+ ],
+ resetCustomDimensionsOnPage: [
+ {
+ resetCustomDimensionsOnPage: 'abc',
+ },
+ {
+ resetCustomDimensionsOnPage: 'xyz',
+ },
+ ],
+ contentGroupings: [
+ {
+ from: 'plan',
+ to: 'contentGroup1',
+ },
+ {
+ from: 'name',
+ to: 'contentGroup2',
+ },
+ ],
+ },
+ Enabled: true,
+ },
+ },
+ ],
+ },
+ },
+ output: {
+ response: {
+ status: 200,
+ body: [
+ {
+ output: {
+ version: '1',
+ type: 'REST',
+ method: 'POST',
+ endpoint: 'https://www.google-analytics.com/collect',
+ headers: {},
+ params: {
+ ea: 'action1',
+ ec: 'All',
+ ni: 1,
+ ul: 'Test ul',
+ an: 'Test App name',
+ cm1: 'test@rudderstack.com',
+ v: '1',
+ t: 'event',
+ tid: 'UA-165994240-1',
+ ds: 'web',
+ npa: 1,
+ aip: 1,
+ ua: 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36',
+ av: '1.0.0',
+ aiid: 'com.rudderlabs.javascript',
+ uid: '123456',
+ cid: '123456',
+ uip: '0.0.0.0',
+ qt: 124901802438,
+ },
+ body: {
+ JSON: {},
+ JSON_ARRAY: {},
+ XML: {},
+ FORM: {},
+ },
+ files: {},
+ userId: '123456',
+ },
+ statusCode: 200,
+ },
+ ],
+ },
+ },
+ },
+ {
+ name: 'ga',
+ description: 'Test 1',
+ feature: 'processor',
+ module: 'destination',
+ version: 'v0',
+ input: {
+ request: {
+ body: [
+ {
+ message: {
+ channel: 'web',
+ context: {
+ traits: {
+ name: 'Rudder Test',
+ },
+ app: {
+ build: '1.0.0',
+ name: 'RudderLabs JavaScript SDK',
+ namespace: 'com.rudderlabs.javascript',
+ version: '1.0.0',
+ },
+ library: {
+ name: 'RudderLabs JavaScript SDK',
+ version: '1.0.0',
+ },
+ userAgent:
+ 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36',
+ locale: 'en-US',
+ ip: '0.0.0.0',
+ os: {
+ name: '',
+ version: '',
+ },
+ screen: {
+ density: 2,
+ },
+ },
+ properties: {
+ plan: 'standard plan',
+ name: 'rudder test',
+ },
+ type: 'identify',
+ messageId: '84e26acc-56a5-4835-8233-591137fca468',
+ originalTimestamp: '2019-10-14T11:15:18.299Z',
+ anonymousId: '00000000000000000000000000',
+ userId: '123456',
+ integrations: {
+ All: true,
+ },
+ sentAt: '2019-10-14T09:03:22.563Z',
+ },
+ destination: {
+ Config: {
+ trackingID: 'UA-165994240-1',
+ doubleClick: true,
+ enhancedLinkAttribution: true,
+ classic: true,
+ ignoredReferrers: '',
+ serverClassic: false,
+ includeSearch: true,
+ trackCategorizedPages: true,
+ trackNamedPages: true,
+ sampleRate: '100',
+ siteSpeedSampleRate: '1',
+ setAllMappedProps: true,
+ enableServerSideIdentify: true,
+ serverSideIdentifyEventCategory: 'name',
+ serverSideIdentifyEventAction: 'action1',
+ anonymizeIp: true,
+ domain: 'domain',
+ enhancedEcommerce: true,
+ nonInteraction: true,
+ optimize: 'abc123',
+ sendUserId: true,
+ useGoogleAmpClientId: true,
+ 'web-useNativeSDK': true,
+ dimensions: [
+ {
+ from: 'name',
+ to: 'dimension1',
+ },
+ {
+ from: 'custom2',
+ to: 'dimension2',
+ },
+ ],
+ metrics: [
+ {
+ from: 'email',
+ to: 'metric1',
+ },
+ {
+ from: 'trait2',
+ to: 'metric2',
+ },
+ ],
+ resetCustomDimensionsOnPage: [
+ {
+ resetCustomDimensionsOnPage: 'abc',
+ },
+ {
+ resetCustomDimensionsOnPage: 'xyz',
+ },
+ ],
+ contentGroupings: [
+ {
+ from: 'plan',
+ to: 'contentGroup1',
+ },
+ {
+ from: 'name',
+ to: 'contentGroup2',
+ },
+ ],
+ },
+ Enabled: true,
+ },
+ },
+ ],
+ },
+ },
+ output: {
+ response: {
+ status: 200,
+ body: [
+ {
+ output: {
+ version: '1',
+ type: 'REST',
+ method: 'POST',
+ endpoint: 'https://www.google-analytics.com/collect',
+ headers: {},
+ params: {
+ ea: 'action1',
+ ec: 'Rudder Test',
+ cd1: 'Rudder Test',
+ cg2: 'Rudder Test',
+ v: '1',
+ t: 'event',
+ tid: 'UA-165994240-1',
+ ds: 'web',
+ an: 'RudderLabs JavaScript SDK',
+ av: '1.0.0',
+ aiid: 'com.rudderlabs.javascript',
+ npa: 1,
+ aip: 1,
+ uid: '123456',
+ cid: '00000000000000000000000000',
+ ni: 1,
+ uip: '0.0.0.0',
+ ua: 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36',
+ ul: 'en-US',
+ qt: 124893881701,
+ },
+ body: {
+ JSON: {},
+ XML: {},
+ JSON_ARRAY: {},
+ FORM: {},
+ },
+ files: {},
+ userId: '00000000000000000000000000',
+ },
+ statusCode: 200,
+ },
+ ],
+ },
+ },
+ },
+ {
+ name: 'ga',
+ description: 'Test 2',
+ feature: 'processor',
+ module: 'destination',
+ version: 'v0',
+ input: {
+ request: {
+ body: [
+ {
+ message: {
+ channel: 'web',
+ context: {
+ app: {
+ build: '1.0.0',
+ name: 'RudderLabs JavaScript SDK',
+ namespace: 'com.rudderlabs.javascript',
+ version: '1.0.0',
+ },
+ traits: {
+ email: 'test@rudderstack.com',
+ },
+ library: {
+ name: 'RudderLabs JavaScript SDK',
+ version: '1.0.0',
+ },
+ userAgent:
+ 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36',
+ locale: 'en-US',
+ ip: '0.0.0.0',
+ os: {
+ name: '',
+ version: '',
+ },
+ screen: {
+ density: 2,
+ },
+ },
+ type: 'page',
+ messageId: '5e10d13a-bf9a-44bf-b884-43a9e591ea71',
+ originalTimestamp: '2019-10-14T11:15:18.299Z',
+ anonymousId: '00000000000000000000000000',
+ userId: '12345',
+ properties: {
+ path: '/abc',
+ referrer: 'q',
+ search: '',
+ title: 'a',
+ url: 'https://www.example.com/abc',
+ },
+ integrations: {
+ All: true,
+ },
+ name: 'ApplicationLoaded',
+ sentAt: '2019-10-14T11:15:53.296Z',
+ },
+ destination: {
+ Config: {
+ trackingID: 'UA-165994240-1',
+ doubleClick: true,
+ enhancedLinkAttribution: true,
+ classic: true,
+ ignoredReferrers: '',
+ serverClassic: false,
+ includeSearch: true,
+ trackCategorizedPages: true,
+ trackNamedPages: true,
+ sampleRate: '100',
+ siteSpeedSampleRate: '1',
+ setAllMappedProps: true,
+ enableServerSideIdentify: true,
+ serverSideIdentifyEventCategory: 'cat1',
+ serverSideIdentifyEventAction: 'action1',
+ anonymizeIp: true,
+ domain: 'domain',
+ enhancedEcommerce: true,
+ nonInteraction: true,
+ optimize: 'abc123',
+ sendUserId: true,
+ useGoogleAmpClientId: true,
+ 'web-useNativeSDK': true,
+ dimensions: [
+ {
+ from: 'name',
+ to: 'dimension1',
+ },
+ {
+ from: 'custom2',
+ to: 'dimension2',
+ },
+ ],
+ metrics: [
+ {
+ from: 'email',
+ to: 'metric1',
+ },
+ {
+ from: 'trait2',
+ to: 'metric2',
+ },
+ ],
+ resetCustomDimensionsOnPage: [
+ {
+ resetCustomDimensionsOnPage: 'abc',
+ },
+ {
+ resetCustomDimensionsOnPage: 'xyz',
+ },
+ ],
+ contentGroupings: [
+ {
+ from: 'plan',
+ to: 'contentGroup1',
+ },
+ {
+ from: 'prop2',
+ to: 'contentGroup2',
+ },
+ ],
+ },
+ Enabled: true,
+ },
+ },
+ ],
+ },
+ },
+ output: {
+ response: {
+ status: 200,
+ body: [
+ {
+ output: {
+ version: '1',
+ type: 'REST',
+ method: 'POST',
+ endpoint: 'https://www.google-analytics.com/collect',
+ headers: {},
+ params: {
+ v: '1',
+ t: 'pageview',
+ tid: 'UA-165994240-1',
+ ds: 'web',
+ an: 'RudderLabs JavaScript SDK',
+ av: '1.0.0',
+ aiid: 'com.rudderlabs.javascript',
+ npa: 1,
+ aip: 1,
+ cid: '00000000000000000000000000',
+ ua: 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36',
+ uid: '12345',
+ uip: '0.0.0.0',
+ ul: 'en-US',
+ dh: 'www.example.com',
+ dl: 'https://www.example.com/abc',
+ dp: '%2Fabc',
+ dr: 'q',
+ dt: 'a',
+ qt: 124893881701,
+ },
+ body: {
+ JSON: {},
+ XML: {},
+ JSON_ARRAY: {},
+ FORM: {},
+ },
+ files: {},
+ userId: '00000000000000000000000000',
+ },
+ statusCode: 200,
+ },
+ ],
+ },
+ },
+ },
+ {
+ name: 'ga',
+ description: 'Test 3',
+ feature: 'processor',
+ module: 'destination',
+ version: 'v0',
+ input: {
+ request: {
+ body: [
+ {
+ message: {
+ channel: 'web',
+ context: {
+ app: {
+ build: '1.0.0',
+ name: 'RudderLabs JavaScript SDK',
+ namespace: 'com.rudderlabs.javascript',
+ version: '1.0.0',
+ },
+ traits: {
+ email: 'test@rudderstack.com',
+ },
+ library: {
+ name: 'RudderLabs JavaScript SDK',
+ version: '1.0.0',
+ },
+ userAgent:
+ 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36',
+ locale: 'en-US',
+ os: {
+ name: '',
+ version: '',
+ },
+ screen: {
+ density: 2,
+ },
+ },
+ type: 'track',
+ messageId: 'ec5481b6-a926-4d2e-b293-0b3a77c4d3be',
+ originalTimestamp: '2019-10-14T11:15:18.300Z',
+ anonymousId: '00000000000000000000000000',
+ userId: '12345',
+ event: 'test track event GA3',
+ properties: {
+ category: 'test-category',
+ user_actual_role: 'system_admin, system_user',
+ user_actual_id: 12345,
+ },
+ integrations: {
+ All: true,
+ },
+ sentAt: '2019-10-14T11:15:53.296Z',
+ },
+ destination: {
+ Config: {
+ trackingID: 'UA-165994240-1',
+ doubleClick: true,
+ enhancedLinkAttribution: true,
+ classic: true,
+ ignoredReferrers: '',
+ serverClassic: false,
+ includeSearch: true,
+ trackCategorizedPages: true,
+ trackNamedPages: true,
+ sampleRate: '100',
+ siteSpeedSampleRate: '1',
+ setAllMappedProps: true,
+ enableServerSideIdentify: true,
+ serverSideIdentifyEventCategory: 'cat1',
+ serverSideIdentifyEventAction: 'action1',
+ anonymizeIp: true,
+ domain: 'domain',
+ enhancedEcommerce: true,
+ nonInteraction: true,
+ optimize: 'abc123',
+ sendUserId: true,
+ useGoogleAmpClientId: true,
+ 'web-useNativeSDK': true,
+ dimensions: [
+ {
+ from: 'name',
+ to: 'dimension1',
+ },
+ {
+ from: 'custom2',
+ to: 'dimension2',
+ },
+ ],
+ metrics: [
+ {
+ from: 'email',
+ to: 'metric1',
+ },
+ {
+ from: 'trait2',
+ to: 'metric2',
+ },
+ ],
+ resetCustomDimensionsOnPage: [
+ {
+ resetCustomDimensionsOnPage: 'abc',
+ },
+ {
+ resetCustomDimensionsOnPage: 'xyz',
+ },
+ ],
+ contentGroupings: [
+ {
+ from: 'plan',
+ to: 'contentGroup1',
+ },
+ {
+ from: 'prop2',
+ to: 'contentGroup2',
+ },
+ ],
+ },
+ Enabled: true,
+ },
+ },
+ ],
+ },
+ },
+ output: {
+ response: {
+ status: 200,
+ body: [
+ {
+ output: {
+ version: '1',
+ type: 'REST',
+ method: 'POST',
+ endpoint: 'https://www.google-analytics.com/collect',
+ headers: {},
+ params: {
+ ec: 'test-category',
+ ni: 1,
+ v: '1',
+ el: 'event',
+ t: 'event',
+ tid: 'UA-165994240-1',
+ ds: 'web',
+ an: 'RudderLabs JavaScript SDK',
+ av: '1.0.0',
+ aiid: 'com.rudderlabs.javascript',
+ npa: 1,
+ aip: 1,
+ cid: '00000000000000000000000000',
+ ea: 'test track event GA3',
+ ua: 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36',
+ uid: '12345',
+ ul: 'en-US',
+ qt: 124893881700,
+ },
+ body: {
+ JSON: {},
+ XML: {},
+ JSON_ARRAY: {},
+ FORM: {},
+ },
+ files: {},
+ userId: '00000000000000000000000000',
+ },
+ statusCode: 200,
+ },
+ ],
+ },
+ },
+ },
+ {
+ name: 'ga',
+ description: 'Test 4',
+ feature: 'processor',
+ module: 'destination',
+ version: 'v0',
+ input: {
+ request: {
+ body: [
+ {
+ message: {
+ channel: 'web',
+ context: {
+ app: {
+ build: '1.0.0',
+ name: 'RudderLabs JavaScript SDK',
+ namespace: 'com.rudderlabs.javascript',
+ version: '1.0.0',
+ },
+ traits: {
+ email: 'test@rudderstack.com',
+ },
+ library: {
+ name: 'RudderLabs JavaScript SDK',
+ version: '1.0.0',
+ },
+ userAgent:
+ 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36',
+ locale: 'en-US',
+ os: {
+ name: '',
+ version: '',
+ },
+ screen: {
+ density: 2,
+ },
+ },
+ type: 'track',
+ messageId: 'ec5481b6-a926-4d2e-b293-0b3a77c4d3be',
+ originalTimestamp: '2019-10-14T11:15:18.300Z',
+ anonymousId: '00000000000000000000000000',
+ userId: '12345',
+ event: 'order completed',
+ properties: {
+ order_id: 'rudderstackorder1',
+ total: 99.99,
+ shipping: 13.99,
+ tax: 20.99,
+ currency: 'INR',
+ products: [
+ {
+ quantity: 1,
+ price: 24.75,
+ name: 'my product',
+ sku: 'p-298',
+ },
+ {
+ quantity: 3,
+ price: 24.75,
+ name: 'other product',
+ sku: 'p-299',
+ },
+ ],
+ },
+ integrations: {
+ All: true,
+ },
+ sentAt: '2019-10-14T11:15:53.296Z',
+ },
+ destination: {
+ Config: {
+ trackingID: 'UA-165994240-1',
+ doubleClick: true,
+ enhancedLinkAttribution: true,
+ classic: true,
+ ignoredReferrers: '',
+ serverClassic: false,
+ includeSearch: true,
+ trackCategorizedPages: true,
+ trackNamedPages: true,
+ sampleRate: '100',
+ siteSpeedSampleRate: '1',
+ setAllMappedProps: true,
+ enableServerSideIdentify: true,
+ serverSideIdentifyEventCategory: 'cat1',
+ serverSideIdentifyEventAction: 'action1',
+ anonymizeIp: true,
+ domain: 'domain',
+ enhancedEcommerce: true,
+ nonInteraction: true,
+ optimize: 'abc123',
+ sendUserId: true,
+ useGoogleAmpClientId: true,
+ 'web-useNativeSDK': true,
+ dimensions: [
+ {
+ from: 'name',
+ to: 'dimension1',
+ },
+ {
+ from: 'custom2',
+ to: 'dimension2',
+ },
+ ],
+ metrics: [
+ {
+ from: 'email',
+ to: 'metric1',
+ },
+ {
+ from: 'trait2',
+ to: 'metric2',
+ },
+ ],
+ resetCustomDimensionsOnPage: [
+ {
+ resetCustomDimensionsOnPage: 'abc',
+ },
+ {
+ resetCustomDimensionsOnPage: 'xyz',
+ },
+ ],
+ contentGroupings: [
+ {
+ from: 'plan',
+ to: 'contentGroup1',
+ },
+ {
+ from: 'prop2',
+ to: 'contentGroup2',
+ },
+ ],
+ },
+ Enabled: true,
+ },
+ },
+ ],
+ },
+ },
+ output: {
+ response: {
+ status: 200,
+ body: [
+ {
+ output: {
+ version: '1',
+ type: 'REST',
+ method: 'POST',
+ endpoint: 'https://www.google-analytics.com/collect',
+ headers: {},
+ params: {
+ pa: 'purchase',
+ tr: 99.99,
+ ev: 100,
+ pr1id: 'p-298',
+ pr1cd1: 'my product',
+ pr1nm: 'my product',
+ pr1pr: 24.75,
+ pr2id: 'p-299',
+ pr2cd1: 'other product',
+ pr2nm: 'other product',
+ pr2pr: 24.75,
+ ea: 'order completed',
+ ec: 'EnhancedEcommerce',
+ v: '1',
+ t: 'event',
+ el: 'event',
+ tid: 'UA-165994240-1',
+ ds: 'web',
+ an: 'RudderLabs JavaScript SDK',
+ av: '1.0.0',
+ aiid: 'com.rudderlabs.javascript',
+ npa: 1,
+ aip: 1,
+ cid: '00000000000000000000000000',
+ ti: 'rudderstackorder1',
+ ts: 13.99,
+ tt: 20.99,
+ cu: 'INR',
+ ua: 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36',
+ uid: '12345',
+ ni: 1,
+ pr1qt: 1,
+ pr2qt: 3,
+ ul: 'en-US',
+ qt: 124893881700,
+ },
+ body: {
+ JSON: {},
+ XML: {},
+ JSON_ARRAY: {},
+ FORM: {},
+ },
+ files: {},
+ userId: '00000000000000000000000000',
+ },
+ statusCode: 200,
+ },
+ ],
+ },
+ },
+ },
+ {
+ name: 'ga',
+ description: 'Test 5',
+ feature: 'processor',
+ module: 'destination',
+ version: 'v0',
+ input: {
+ request: {
+ body: [
+ {
+ message: {
+ channel: 'web',
+ context: {
+ app: {
+ build: '1.0.0',
+ name: 'RudderLabs JavaScript SDK',
+ namespace: 'com.rudderlabs.javascript',
+ version: '1.0.0',
+ },
+ traits: {
+ email: 'test@rudderstack.com',
+ },
+ library: {
+ name: 'RudderLabs JavaScript SDK',
+ version: '1.0.0',
+ },
+ userAgent:
+ 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36',
+ locale: 'en-US',
+ os: {
+ name: '',
+ version: '',
+ },
+ screen: {
+ density: 2,
+ },
+ },
+ type: 'track',
+ messageId: 'ec5481b6-a926-4d2e-b293-0b3a77c4d3be',
+ originalTimestamp: '2019-10-14T11:15:18.300Z',
+ anonymousId: '00000000000000000000000000',
+ userId: '12345',
+ event: 'product added',
+ properties: {
+ currency: 'CAD',
+ quantity: 1,
+ price: 24.75,
+ name: 'my product 1',
+ category: 'cat 1',
+ sku: 'p-298',
+ testDimension: true,
+ testMetric: true,
+ position: 4.5,
+ },
+ integrations: {
+ All: true,
+ },
+ sentAt: '2019-10-14T11:15:53.296Z',
+ },
+ destination: {
+ Config: {
+ trackingID: 'UA-165994240-1',
+ doubleClick: true,
+ enhancedLinkAttribution: true,
+ classic: true,
+ ignoredReferrers: '',
+ serverClassic: false,
+ includeSearch: true,
+ trackCategorizedPages: true,
+ trackNamedPages: true,
+ sampleRate: '100',
+ siteSpeedSampleRate: '1',
+ setAllMappedProps: true,
+ enableServerSideIdentify: true,
+ serverSideIdentifyEventCategory: 'cat1',
+ serverSideIdentifyEventAction: 'action1',
+ anonymizeIp: true,
+ domain: 'domain',
+ enhancedEcommerce: true,
+ nonInteraction: true,
+ optimize: 'abc123',
+ sendUserId: true,
+ useGoogleAmpClientId: true,
+ 'web-useNativeSDK': true,
+ dimensions: [
+ {
+ from: 'name',
+ to: 'dimension1',
+ },
+ {
+ from: 'custom2',
+ to: 'dimension2',
+ },
+ ],
+ metrics: [
+ {
+ from: 'email',
+ to: 'metric1',
+ },
+ {
+ from: 'trait2',
+ to: 'metric2',
+ },
+ ],
+ resetCustomDimensionsOnPage: [
+ {
+ resetCustomDimensionsOnPage: 'abc',
+ },
+ {
+ resetCustomDimensionsOnPage: 'xyz',
+ },
+ ],
+ contentGroupings: [
+ {
+ from: 'plan',
+ to: 'contentGroup1',
+ },
+ {
+ from: 'prop2',
+ to: 'contentGroup2',
+ },
+ ],
+ },
+ Enabled: true,
+ },
+ },
+ ],
+ },
+ },
+ output: {
+ response: {
+ status: 200,
+ body: [
+ {
+ output: {
+ version: '1',
+ type: 'REST',
+ method: 'POST',
+ endpoint: 'https://www.google-analytics.com/collect',
+ headers: {},
+ params: {
+ ea: 'product added',
+ ec: 'cat 1',
+ pa: 'add',
+ pr1cd1: 'my product 1',
+ pr1id: 'p-298',
+ cd1: 'my product 1',
+ v: '1',
+ t: 'event',
+ el: 'event',
+ tid: 'UA-165994240-1',
+ ds: 'web',
+ an: 'RudderLabs JavaScript SDK',
+ av: '1.0.0',
+ aiid: 'com.rudderlabs.javascript',
+ npa: 1,
+ aip: 1,
+ cid: '00000000000000000000000000',
+ pr1nm: 'my product 1',
+ pr1ca: 'cat 1',
+ cu: 'CAD',
+ pr1ps: 4.5,
+ pr1pr: 24.75,
+ pr1qt: 1,
+ ua: 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36',
+ uid: '12345',
+ ni: 1,
+ ul: 'en-US',
+ qt: 124893881700,
+ },
+ body: {
+ JSON: {},
+ XML: {},
+ JSON_ARRAY: {},
+ FORM: {},
+ },
+ files: {},
+ userId: '00000000000000000000000000',
+ },
+ statusCode: 200,
+ },
+ ],
+ },
+ },
+ },
+ {
+ name: 'ga',
+ description: 'Test 6',
+ feature: 'processor',
+ module: 'destination',
+ version: 'v0',
+ input: {
+ request: {
+ body: [
+ {
+ message: {
+ channel: 'web',
+ context: {
+ app: {
+ build: '1.0.0',
+ name: 'RudderLabs JavaScript SDK',
+ namespace: 'com.rudderlabs.javascript',
+ version: '1.0.0',
+ },
+ traits: {
+ email: 'test@rudderstack.com',
+ },
+ library: {
+ name: 'RudderLabs JavaScript SDK',
+ version: '1.0.0',
+ },
+ userAgent:
+ 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36',
+ locale: 'en-US',
+ os: {
+ name: '',
+ version: '',
+ },
+ screen: {
+ density: 2,
+ },
+ },
+ type: 'track',
+ messageId: 'ec5481b6-a926-4d2e-b293-0b3a77c4d3be',
+ originalTimestamp: '2019-10-14T11:15:18.300Z',
+ anonymousId: '00000000000000000000000000',
+ userId: '12345',
+ event: 'product removed',
+ properties: {
+ currency: 'CAD',
+ quantity: 1,
+ price: 24.75,
+ name: 'my product 1',
+ category: 'cat 1',
+ sku: 'p-298',
+ testDimension: true,
+ testMetric: true,
+ position: 4.5,
+ },
+ integrations: {
+ All: true,
+ },
+ sentAt: '2019-10-14T11:15:53.296Z',
+ },
+ destination: {
+ Config: {
+ trackingID: 'UA-165994240-1',
+ doubleClick: true,
+ enhancedLinkAttribution: true,
+ classic: true,
+ ignoredReferrers: '',
+ serverClassic: false,
+ includeSearch: true,
+ trackCategorizedPages: true,
+ trackNamedPages: true,
+ sampleRate: '100',
+ siteSpeedSampleRate: '1',
+ setAllMappedProps: true,
+ enableServerSideIdentify: true,
+ serverSideIdentifyEventCategory: 'cat1',
+ serverSideIdentifyEventAction: 'action1',
+ anonymizeIp: true,
+ domain: 'domain',
+ enhancedEcommerce: true,
+ nonInteraction: true,
+ optimize: 'abc123',
+ sendUserId: true,
+ useGoogleAmpClientId: true,
+ 'web-useNativeSDK': true,
+ dimensions: [
+ {
+ from: 'name',
+ to: 'dimension1',
+ },
+ {
+ from: 'custom2',
+ to: 'dimension2',
+ },
+ ],
+ metrics: [
+ {
+ from: 'email',
+ to: 'metric1',
+ },
+ {
+ from: 'trait2',
+ to: 'metric2',
+ },
+ ],
+ resetCustomDimensionsOnPage: [
+ {
+ resetCustomDimensionsOnPage: 'abc',
+ },
+ {
+ resetCustomDimensionsOnPage: 'xyz',
+ },
+ ],
+ contentGroupings: [
+ {
+ from: 'plan',
+ to: 'contentGroup1',
+ },
+ {
+ from: 'prop2',
+ to: 'contentGroup2',
+ },
+ ],
+ },
+ Enabled: true,
+ },
+ },
+ ],
+ },
+ },
+ output: {
+ response: {
+ status: 200,
+ body: [
+ {
+ output: {
+ version: '1',
+ type: 'REST',
+ method: 'POST',
+ endpoint: 'https://www.google-analytics.com/collect',
+ headers: {},
+ params: {
+ ea: 'product removed',
+ ec: 'cat 1',
+ pa: 'remove',
+ pr1cd1: 'my product 1',
+ pr1id: 'p-298',
+ cd1: 'my product 1',
+ v: '1',
+ t: 'event',
+ el: 'event',
+ tid: 'UA-165994240-1',
+ ds: 'web',
+ an: 'RudderLabs JavaScript SDK',
+ av: '1.0.0',
+ aiid: 'com.rudderlabs.javascript',
+ npa: 1,
+ aip: 1,
+ cid: '00000000000000000000000000',
+ pr1nm: 'my product 1',
+ pr1ca: 'cat 1',
+ cu: 'CAD',
+ pr1ps: 4.5,
+ pr1pr: 24.75,
+ pr1qt: 1,
+ ua: 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36',
+ uid: '12345',
+ ul: 'en-US',
+ ni: 1,
+ qt: 124893881700,
+ },
+ body: {
+ JSON: {},
+ XML: {},
+ JSON_ARRAY: {},
+ FORM: {},
+ },
+ files: {},
+ userId: '00000000000000000000000000',
+ },
+ statusCode: 200,
+ },
+ ],
+ },
+ },
+ },
+ {
+ name: 'ga',
+ description: 'Test 7',
+ feature: 'processor',
+ module: 'destination',
+ version: 'v0',
+ input: {
+ request: {
+ body: [
+ {
+ message: {
+ channel: 'web',
+ context: {
+ app: {
+ build: '1.0.0',
+ name: 'RudderLabs JavaScript SDK',
+ namespace: 'com.rudderlabs.javascript',
+ version: '1.0.0',
+ },
+ traits: {
+ email: 'test@rudderstack.com',
+ },
+ library: {
+ name: 'RudderLabs JavaScript SDK',
+ version: '1.0.0',
+ },
+ userAgent:
+ 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36',
+ locale: 'en-US',
+ os: {
+ name: '',
+ version: '',
+ },
+ screen: {
+ density: 2,
+ },
+ },
+ type: 'track',
+ messageId: 'ec5481b6-a926-4d2e-b293-0b3a77c4d3be',
+ originalTimestamp: '2019-10-14T11:15:18.300Z',
+ anonymousId: '00000000000000000000000000',
+ userId: '12345',
+ event: 'product viewed',
+ properties: {
+ currency: 'CAD',
+ quantity: 1,
+ price: 24.75,
+ name: 'my product 1',
+ category: 'cat 1',
+ sku: 'p-298',
+ testDimension: true,
+ testMetric: true,
+ position: 4.5,
+ },
+ integrations: {
+ All: true,
+ },
+ sentAt: '2019-10-14T11:15:53.296Z',
+ },
+ destination: {
+ Config: {
+ trackingID: 'UA-165994240-1',
+ doubleClick: true,
+ enhancedLinkAttribution: true,
+ classic: true,
+ ignoredReferrers: '',
+ serverClassic: false,
+ includeSearch: true,
+ trackCategorizedPages: true,
+ trackNamedPages: true,
+ sampleRate: '100',
+ siteSpeedSampleRate: '1',
+ setAllMappedProps: true,
+ enableServerSideIdentify: true,
+ serverSideIdentifyEventCategory: 'cat1',
+ serverSideIdentifyEventAction: 'action1',
+ anonymizeIp: true,
+ domain: 'domain',
+ enhancedEcommerce: true,
+ nonInteraction: true,
+ optimize: 'abc123',
+ sendUserId: true,
+ useGoogleAmpClientId: true,
+ 'web-useNativeSDK': true,
+ dimensions: [
+ {
+ from: 'name',
+ to: 'dimension1',
+ },
+ {
+ from: 'custom2',
+ to: 'dimension2',
+ },
+ ],
+ metrics: [
+ {
+ from: 'email',
+ to: 'metric1',
+ },
+ {
+ from: 'trait2',
+ to: 'metric2',
+ },
+ ],
+ resetCustomDimensionsOnPage: [
+ {
+ resetCustomDimensionsOnPage: 'abc',
+ },
+ {
+ resetCustomDimensionsOnPage: 'xyz',
+ },
+ ],
+ contentGroupings: [
+ {
+ from: 'plan',
+ to: 'contentGroup1',
+ },
+ {
+ from: 'prop2',
+ to: 'contentGroup2',
+ },
+ ],
+ },
+ Enabled: true,
+ },
+ },
+ ],
+ },
+ },
+ output: {
+ response: {
+ status: 200,
+ body: [
+ {
+ output: {
+ version: '1',
+ type: 'REST',
+ method: 'POST',
+ endpoint: 'https://www.google-analytics.com/collect',
+ headers: {},
+ params: {
+ ea: 'product viewed',
+ ec: 'cat 1',
+ pa: 'detail',
+ pr1cd1: 'my product 1',
+ pr1id: 'p-298',
+ cd1: 'my product 1',
+ v: '1',
+ t: 'event',
+ el: 'event',
+ tid: 'UA-165994240-1',
+ ds: 'web',
+ an: 'RudderLabs JavaScript SDK',
+ av: '1.0.0',
+ aiid: 'com.rudderlabs.javascript',
+ npa: 1,
+ aip: 1,
+ cid: '00000000000000000000000000',
+ pr1nm: 'my product 1',
+ pr1ca: 'cat 1',
+ cu: 'CAD',
+ pr1ps: 4.5,
+ pr1pr: 24.75,
+ pr1qt: 1,
+ ua: 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36',
+ uid: '12345',
+ ul: 'en-US',
+ ni: 1,
+ qt: 124893881700,
+ },
+ body: {
+ JSON: {},
+ XML: {},
+ JSON_ARRAY: {},
+ FORM: {},
+ },
+ files: {},
+ userId: '00000000000000000000000000',
+ },
+ statusCode: 200,
+ },
+ ],
+ },
+ },
+ },
+ {
+ name: 'ga',
+ description: 'Test 8',
+ feature: 'processor',
+ module: 'destination',
+ version: 'v0',
+ input: {
+ request: {
+ body: [
+ {
+ message: {
+ channel: 'web',
+ context: {
+ app: {
+ build: '1.0.0',
+ name: 'RudderLabs JavaScript SDK',
+ namespace: 'com.rudderlabs.javascript',
+ version: '1.0.0',
+ },
+ traits: {
+ email: 'test@rudderstack.com',
+ },
+ library: {
+ name: 'RudderLabs JavaScript SDK',
+ version: '1.0.0',
+ },
+ userAgent:
+ 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36',
+ locale: 'en-US',
+ os: {
+ name: '',
+ version: '',
+ },
+ screen: {
+ density: 2,
+ },
+ },
+ type: 'track',
+ messageId: 'ec5481b6-a926-4d2e-b293-0b3a77c4d3be',
+ originalTimestamp: '2019-10-14T11:15:18.299Z',
+ anonymousId: '00000000000000000000000000',
+ userId: '12345',
+ event: 'product removed',
+ properties: {
+ currency: 'CAD',
+ quantity: 1,
+ price: 24.75,
+ name: 'my product 1',
+ category: 'cat 1',
+ sku: 'p-298',
+ testDimension: true,
+ testMetric: true,
+ position: 4.5,
+ },
+ integrations: {
+ All: true,
+ },
+ sentAt: '2019-10-14T11:15:53.296Z',
+ },
+ destination: {
+ Config: {
+ trackingID: 'UA-165994240-1',
+ doubleClick: true,
+ enhancedLinkAttribution: true,
+ classic: true,
+ ignoredReferrers: '',
+ serverClassic: false,
+ includeSearch: true,
+ trackCategorizedPages: true,
+ trackNamedPages: true,
+ sampleRate: '100',
+ siteSpeedSampleRate: '1',
+ setAllMappedProps: true,
+ enableServerSideIdentify: true,
+ serverSideIdentifyEventCategory: 'cat1',
+ serverSideIdentifyEventAction: 'action1',
+ anonymizeIp: true,
+ domain: 'domain',
+ enhancedEcommerce: true,
+ nonInteraction: true,
+ optimize: 'abc123',
+ sendUserId: true,
+ useGoogleAmpClientId: true,
+ 'web-useNativeSDK': true,
+ dimensions: [
+ {
+ from: 'name',
+ to: 'dimension1',
+ },
+ {
+ from: 'custom2',
+ to: 'dimension2',
+ },
+ ],
+ metrics: [
+ {
+ from: 'email',
+ to: 'metric1',
+ },
+ {
+ from: 'trait2',
+ to: 'metric2',
+ },
+ ],
+ resetCustomDimensionsOnPage: [
+ {
+ resetCustomDimensionsOnPage: 'abc',
+ },
+ {
+ resetCustomDimensionsOnPage: 'xyz',
+ },
+ ],
+ contentGroupings: [
+ {
+ from: 'plan',
+ to: 'contentGroup1',
+ },
+ {
+ from: 'prop2',
+ to: 'contentGroup2',
+ },
+ ],
+ },
+ Enabled: true,
+ },
+ },
+ ],
+ },
+ },
+ output: {
+ response: {
+ status: 200,
+ body: [
+ {
+ output: {
+ version: '1',
+ type: 'REST',
+ method: 'POST',
+ endpoint: 'https://www.google-analytics.com/collect',
+ headers: {},
+ params: {
+ ea: 'product removed',
+ ec: 'cat 1',
+ pa: 'remove',
+ pr1cd1: 'my product 1',
+ pr1id: 'p-298',
+ cd1: 'my product 1',
+ v: '1',
+ t: 'event',
+ el: 'event',
+ tid: 'UA-165994240-1',
+ ds: 'web',
+ an: 'RudderLabs JavaScript SDK',
+ av: '1.0.0',
+ aiid: 'com.rudderlabs.javascript',
+ npa: 1,
+ aip: 1,
+ cid: '00000000000000000000000000',
+ pr1nm: 'my product 1',
+ pr1ca: 'cat 1',
+ cu: 'CAD',
+ pr1ps: 4.5,
+ pr1pr: 24.75,
+ pr1qt: 1,
+ ua: 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36',
+ uid: '12345',
+ ul: 'en-US',
+ ni: 1,
+ qt: 124893881701,
+ },
+ body: {
+ JSON: {},
+ XML: {},
+ JSON_ARRAY: {},
+ FORM: {},
+ },
+ files: {},
+ userId: '00000000000000000000000000',
+ },
+ statusCode: 200,
+ },
+ ],
+ },
+ },
+ },
+ {
+ name: 'ga',
+ description: 'Test 9',
+ feature: 'processor',
+ module: 'destination',
+ version: 'v0',
+ input: {
+ request: {
+ body: [
+ {
+ message: {
+ channel: 'web',
+ context: {
+ app: {
+ build: '1.0.0',
+ name: 'RudderLabs JavaScript SDK',
+ namespace: 'com.rudderlabs.javascript',
+ version: '1.0.0',
+ },
+ traits: {
+ email: 'test@rudderstack.com',
+ },
+ library: {
+ name: 'RudderLabs JavaScript SDK',
+ version: '1.0.0',
+ },
+ userAgent:
+ 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36',
+ locale: 'en-US',
+ os: {
+ name: '',
+ version: '',
+ },
+ screen: {
+ density: 2,
+ },
+ },
+ type: 'track',
+ messageId: 'ec5481b6-a926-4d2e-b293-0b3a77c4d3be',
+ originalTimestamp: '2019-10-14T11:15:18.300Z',
+ anonymousId: '00000000000000000000000000',
+ userId: '12345',
+ event: 'product viewed',
+ properties: {
+ currency: 'CAD',
+ quantity: 1,
+ price: 24.75,
+ name: 'my product 1',
+ category: 'cat 1',
+ sku: 'p-298',
+ testDimension: true,
+ testMetric: true,
+ position: 4.5,
+ },
+ integrations: {
+ All: true,
+ },
+ sentAt: '2019-10-14T11:15:53.296Z',
+ },
+ destination: {
+ Config: {
+ trackingID: 'UA-165994240-1',
+ doubleClick: true,
+ enhancedLinkAttribution: true,
+ classic: true,
+ ignoredReferrers: '',
+ serverClassic: false,
+ includeSearch: true,
+ trackCategorizedPages: true,
+ trackNamedPages: true,
+ sampleRate: '100',
+ siteSpeedSampleRate: '1',
+ setAllMappedProps: true,
+ enableServerSideIdentify: true,
+ serverSideIdentifyEventCategory: 'cat1',
+ serverSideIdentifyEventAction: 'action1',
+ anonymizeIp: true,
+ domain: 'domain',
+ enhancedEcommerce: true,
+ nonInteraction: true,
+ optimize: 'abc123',
+ sendUserId: true,
+ useGoogleAmpClientId: true,
+ 'web-useNativeSDK': true,
+ dimensions: [
+ {
+ from: 'name',
+ to: 'dimension1',
+ },
+ {
+ from: 'custom2',
+ to: 'dimension2',
+ },
+ ],
+ metrics: [
+ {
+ from: 'email',
+ to: 'metric1',
+ },
+ {
+ from: 'trait2',
+ to: 'metric2',
+ },
+ ],
+ resetCustomDimensionsOnPage: [
+ {
+ resetCustomDimensionsOnPage: 'abc',
+ },
+ {
+ resetCustomDimensionsOnPage: 'xyz',
+ },
+ ],
+ contentGroupings: [
+ {
+ from: 'plan',
+ to: 'contentGroup1',
+ },
+ {
+ from: 'prop2',
+ to: 'contentGroup2',
+ },
+ ],
+ },
+ Enabled: true,
+ },
+ },
+ ],
+ },
+ },
+ output: {
+ response: {
+ status: 200,
+ body: [
+ {
+ output: {
+ version: '1',
+ type: 'REST',
+ method: 'POST',
+ endpoint: 'https://www.google-analytics.com/collect',
+ headers: {},
+ params: {
+ ea: 'product viewed',
+ ec: 'cat 1',
+ pa: 'detail',
+ pr1cd1: 'my product 1',
+ pr1id: 'p-298',
+ cd1: 'my product 1',
+ v: '1',
+ t: 'event',
+ el: 'event',
+ tid: 'UA-165994240-1',
+ ds: 'web',
+ an: 'RudderLabs JavaScript SDK',
+ av: '1.0.0',
+ aiid: 'com.rudderlabs.javascript',
+ npa: 1,
+ aip: 1,
+ cid: '00000000000000000000000000',
+ pr1nm: 'my product 1',
+ pr1ca: 'cat 1',
+ cu: 'CAD',
+ pr1ps: 4.5,
+ pr1pr: 24.75,
+ pr1qt: 1,
+ ua: 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36',
+ uid: '12345',
+ ul: 'en-US',
+ ni: 1,
+ qt: 124893881700,
+ },
+ body: {
+ JSON: {},
+ XML: {},
+ JSON_ARRAY: {},
+ FORM: {},
+ },
+ files: {},
+ userId: '00000000000000000000000000',
+ },
+ statusCode: 200,
+ },
+ ],
+ },
+ },
+ },
+ {
+ name: 'ga',
+ description: 'Test 10',
+ feature: 'processor',
+ module: 'destination',
+ version: 'v0',
+ input: {
+ request: {
+ body: [
+ {
+ message: {
+ channel: 'web',
+ context: {
+ app: {
+ build: '1.0.0',
+ name: 'RudderLabs JavaScript SDK',
+ namespace: 'com.rudderlabs.javascript',
+ version: '1.0.0',
+ },
+ traits: {
+ email: 'test@rudderstack.com',
+ },
+ library: {
+ name: 'RudderLabs JavaScript SDK',
+ version: '1.0.0',
+ },
+ userAgent:
+ 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36',
+ locale: 'en-US',
+ os: {
+ name: '',
+ version: '',
+ },
+ screen: {
+ density: 2,
+ },
+ },
+ type: 'track',
+ messageId: 'ec5481b6-a926-4d2e-b293-0b3a77c4d3be',
+ originalTimestamp: '2019-10-14T11:15:18.300Z',
+ anonymousId: '00000000000000000000000000',
+ userId: '12345',
+ event: 'product list filtered',
+ properties: {
+ category: 'cat 1',
+ list_id: '1234',
+ filters: [
+ {
+ type: 'department',
+ value: 'beauty',
+ },
+ {
+ type: 'price',
+ value: 'under',
+ },
+ ],
+ sorts: [
+ {
+ type: 'price',
+ value: 'desc',
+ },
+ ],
+ products: [
+ {
+ product_id: '507f1f77bcf86cd799439011',
+ productDimension: 'My Product Dimension',
+ productMetric: 'My Product Metric',
+ },
+ ],
+ testDimension: true,
+ testMetric: true,
+ },
+ integrations: {
+ All: true,
+ },
+ sentAt: '2019-10-14T11:15:53.296Z',
+ },
+ destination: {
+ Config: {
+ trackingID: 'UA-165994240-1',
+ doubleClick: true,
+ enhancedLinkAttribution: true,
+ classic: true,
+ ignoredReferrers: '',
+ serverClassic: false,
+ includeSearch: true,
+ trackCategorizedPages: true,
+ trackNamedPages: true,
+ sampleRate: '100',
+ siteSpeedSampleRate: '1',
+ setAllMappedProps: true,
+ enableServerSideIdentify: true,
+ serverSideIdentifyEventCategory: 'cat1',
+ serverSideIdentifyEventAction: 'action1',
+ anonymizeIp: true,
+ domain: 'domain',
+ enhancedEcommerce: true,
+ nonInteraction: true,
+ optimize: 'abc123',
+ sendUserId: true,
+ useGoogleAmpClientId: true,
+ 'web-useNativeSDK': true,
+ dimensions: [
+ {
+ from: 'name',
+ to: 'dimension1',
+ },
+ {
+ from: 'custom2',
+ to: 'dimension2',
+ },
+ ],
+ metrics: [
+ {
+ from: 'email',
+ to: 'metric1',
+ },
+ {
+ from: 'trait2',
+ to: 'metric2',
+ },
+ ],
+ resetCustomDimensionsOnPage: [
+ {
+ resetCustomDimensionsOnPage: 'abc',
+ },
+ {
+ resetCustomDimensionsOnPage: 'xyz',
+ },
+ ],
+ contentGroupings: [
+ {
+ from: 'plan',
+ to: 'contentGroup1',
+ },
+ {
+ from: 'prop2',
+ to: 'contentGroup2',
+ },
+ ],
+ },
+ Enabled: true,
+ },
+ },
+ ],
+ },
+ },
+ output: {
+ response: {
+ status: 200,
+ body: [
+ {
+ output: {
+ version: '1',
+ type: 'REST',
+ method: 'POST',
+ endpoint: 'https://www.google-analytics.com/collect',
+ headers: {},
+ params: {
+ ea: 'product list filtered',
+ ec: 'cat 1',
+ pa: 'detail',
+ il1pi1id: '507f1f77bcf86cd799439011',
+ v: '1',
+ t: 'event',
+ el: 'event',
+ tid: 'UA-165994240-1',
+ ds: 'web',
+ an: 'RudderLabs JavaScript SDK',
+ av: '1.0.0',
+ aiid: 'com.rudderlabs.javascript',
+ npa: 1,
+ aip: 1,
+ il1nm: '1234',
+ ua: 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36',
+ cid: '00000000000000000000000000',
+ uid: '12345',
+ il1pi1qt: 1,
+ il1pi1va: 'department:beauty,price:under::price:desc',
+ ul: 'en-US',
+ ni: 1,
+ qt: 124893881700,
+ },
+ body: {
+ JSON: {},
+ XML: {},
+ JSON_ARRAY: {},
+ FORM: {},
+ },
+ files: {},
+ userId: '00000000000000000000000000',
+ },
+ statusCode: 200,
+ },
+ ],
+ },
+ },
+ },
+ {
+ name: 'ga',
+ description: 'Test 11',
+ feature: 'processor',
+ module: 'destination',
+ version: 'v0',
+ input: {
+ request: {
+ body: [
+ {
+ message: {
+ channel: 'web',
+ context: {
+ app: {
+ build: '1.0.0',
+ name: 'RudderLabs JavaScript SDK',
+ namespace: 'com.rudderlabs.javascript',
+ version: '1.0.0',
+ },
+ traits: {
+ email: 'test@rudderstack.com',
+ },
+ library: {
+ name: 'RudderLabs JavaScript SDK',
+ version: '1.0.0',
+ },
+ userAgent:
+ 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36',
+ locale: 'en-US',
+ os: {
+ name: '',
+ version: '',
+ },
+ screen: {
+ density: 2,
+ },
+ },
+ type: 'track',
+ messageId: 'ec5481b6-a926-4d2e-b293-0b3a77c4d3be',
+ originalTimestamp: '2019-10-14T11:15:18.300Z',
+ anonymousId: '00000000000000000000000000',
+ userId: '12345',
+ event: 'product list viewed',
+ properties: {
+ category: 'cat 1',
+ list_id: '1234',
+ filters: [
+ {
+ type: 'department',
+ value: 'beauty',
+ },
+ {
+ type: 'price',
+ value: 'under',
+ },
+ ],
+ sorts: [
+ {
+ type: 'price',
+ value: 'desc',
+ },
+ ],
+ products: [
+ {
+ product_id: '507f1f77bcf86cd799439011',
+ productDimension: 'My Product Dimension',
+ productMetric: 'My Product Metric',
+ position: 10,
+ },
+ {
+ product_id: '507f1f77bcf86cdef799439011',
+ productDimension: 'My Product Dimension1',
+ productMetric: 'My Product Metric1',
+ position: -10,
+ },
+ ],
+ testDimension: true,
+ testMetric: true,
+ },
+ integrations: {
+ All: true,
+ },
+ sentAt: '2019-10-14T11:15:53.296Z',
+ },
+ destination: {
+ Config: {
+ trackingID: 'UA-165994240-1',
+ doubleClick: true,
+ enhancedLinkAttribution: true,
+ classic: true,
+ ignoredReferrers: '',
+ serverClassic: false,
+ includeSearch: true,
+ trackCategorizedPages: true,
+ trackNamedPages: true,
+ sampleRate: '100',
+ siteSpeedSampleRate: '1',
+ setAllMappedProps: true,
+ enableServerSideIdentify: true,
+ serverSideIdentifyEventCategory: 'cat1',
+ serverSideIdentifyEventAction: 'action1',
+ anonymizeIp: true,
+ domain: 'domain',
+ enhancedEcommerce: true,
+ nonInteraction: true,
+ optimize: 'abc123',
+ sendUserId: true,
+ useGoogleAmpClientId: true,
+ 'web-useNativeSDK': true,
+ dimensions: [
+ {
+ from: 'name',
+ to: 'dimension1',
+ },
+ {
+ from: 'custom2',
+ to: 'dimension2',
+ },
+ ],
+ metrics: [
+ {
+ from: 'email',
+ to: 'metric1',
+ },
+ {
+ from: 'trait2',
+ to: 'metric2',
+ },
+ ],
+ resetCustomDimensionsOnPage: [
+ {
+ resetCustomDimensionsOnPage: 'abc',
+ },
+ {
+ resetCustomDimensionsOnPage: 'xyz',
+ },
+ ],
+ contentGroupings: [
+ {
+ from: 'plan',
+ to: 'contentGroup1',
+ },
+ {
+ from: 'prop2',
+ to: 'contentGroup2',
+ },
+ ],
+ },
+ Enabled: true,
+ },
+ },
+ ],
+ },
+ },
+ output: {
+ response: {
+ status: 200,
+ body: [
+ {
+ output: {
+ version: '1',
+ type: 'REST',
+ method: 'POST',
+ endpoint: 'https://www.google-analytics.com/collect',
+ headers: {},
+ params: {
+ ea: 'product list viewed',
+ ec: 'cat 1',
+ pa: 'detail',
+ il1pi1id: '507f1f77bcf86cd799439011',
+ il1pi1ps: 10,
+ il1pi2id: '507f1f77bcf86cdef799439011',
+ il1pi2ps: -10,
+ v: '1',
+ t: 'event',
+ el: 'event',
+ tid: 'UA-165994240-1',
+ ds: 'web',
+ an: 'RudderLabs JavaScript SDK',
+ av: '1.0.0',
+ aiid: 'com.rudderlabs.javascript',
+ npa: 1,
+ aip: 1,
+ il1nm: '1234',
+ ua: 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36',
+ cid: '00000000000000000000000000',
+ uid: '12345',
+ il1pi1qt: 1,
+ il1pi1va: 'department:beauty,price:under::price:desc',
+ il1pi2qt: 1,
+ il1pi2va: 'department:beauty,price:under::price:desc',
+ ul: 'en-US',
+ ni: 1,
+ qt: 124893881700,
+ },
+ body: {
+ JSON: {},
+ XML: {},
+ JSON_ARRAY: {},
+ FORM: {},
+ },
+ files: {},
+ userId: '00000000000000000000000000',
+ },
+ statusCode: 200,
+ },
+ ],
+ },
+ },
+ },
+ {
+ name: 'ga',
+ description: 'Test 12',
+ feature: 'processor',
+ module: 'destination',
+ version: 'v0',
+ input: {
+ request: {
+ body: [
+ {
+ message: {
+ channel: 'web',
+ context: {
+ app: {
+ build: '1.0.0',
+ name: 'RudderLabs JavaScript SDK',
+ namespace: 'com.rudderlabs.javascript',
+ version: '1.0.0',
+ },
+ traits: {
+ email: 'test@rudderstack.com',
+ },
+ library: {
+ name: 'RudderLabs JavaScript SDK',
+ version: '1.0.0',
+ },
+ userAgent:
+ 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36',
+ locale: 'en-US',
+ os: {
+ name: '',
+ version: '',
+ },
+ screen: {
+ density: 2,
+ },
+ },
+ type: 'track',
+ messageId: 'ec5481b6-a926-4d2e-b293-0b3a77c4d3be',
+ originalTimestamp: '2019-10-14T11:15:18.300Z',
+ anonymousId: '00000000000000000000000000',
+ userId: '12345',
+ event: 'product clicked',
+ properties: {
+ currency: 'CAD',
+ quantity: 1,
+ price: 24.75,
+ name: 'my product',
+ category: 'cat 1',
+ sku: 'p-298',
+ list: 'search results',
+ testDimension: true,
+ testMetric: true,
+ },
+ integrations: {
+ All: true,
+ },
+ sentAt: '2019-10-14T11:15:53.296Z',
+ },
+ destination: {
+ Config: {
+ trackingID: 'UA-165994240-1',
+ doubleClick: true,
+ enhancedLinkAttribution: true,
+ classic: true,
+ ignoredReferrers: '',
+ serverClassic: false,
+ includeSearch: true,
+ trackCategorizedPages: true,
+ trackNamedPages: true,
+ sampleRate: '100',
+ siteSpeedSampleRate: '1',
+ setAllMappedProps: true,
+ enableServerSideIdentify: true,
+ serverSideIdentifyEventCategory: 'cat1',
+ serverSideIdentifyEventAction: 'action1',
+ anonymizeIp: true,
+ domain: 'domain',
+ enhancedEcommerce: true,
+ nonInteraction: true,
+ optimize: 'abc123',
+ sendUserId: true,
+ useGoogleAmpClientId: true,
+ 'web-useNativeSDK': true,
+ dimensions: [
+ {
+ from: 'name',
+ to: 'dimension1',
+ },
+ {
+ from: 'custom2',
+ to: 'dimension2',
+ },
+ ],
+ metrics: [
+ {
+ from: 'email',
+ to: 'metric1',
+ },
+ {
+ from: 'trait2',
+ to: 'metric2',
+ },
+ ],
+ resetCustomDimensionsOnPage: [
+ {
+ resetCustomDimensionsOnPage: 'abc',
+ },
+ {
+ resetCustomDimensionsOnPage: 'xyz',
+ },
+ ],
+ contentGroupings: [
+ {
+ from: 'plan',
+ to: 'contentGroup1',
+ },
+ {
+ from: 'prop2',
+ to: 'contentGroup2',
+ },
+ ],
+ },
+ Enabled: true,
+ },
+ },
+ ],
+ },
+ },
+ output: {
+ response: {
+ status: 200,
+ body: [
+ {
+ output: {
+ version: '1',
+ type: 'REST',
+ method: 'POST',
+ endpoint: 'https://www.google-analytics.com/collect',
+ headers: {},
+ params: {
+ ea: 'product clicked',
+ ec: 'cat 1',
+ pa: 'click',
+ pr1cd1: 'my product',
+ pr1id: 'p-298',
+ cd1: 'my product',
+ v: '1',
+ t: 'event',
+ el: 'event',
+ tid: 'UA-165994240-1',
+ ds: 'web',
+ an: 'RudderLabs JavaScript SDK',
+ av: '1.0.0',
+ aiid: 'com.rudderlabs.javascript',
+ npa: 1,
+ aip: 1,
+ cid: '00000000000000000000000000',
+ pr1nm: 'my product',
+ pr1ca: 'cat 1',
+ cu: 'CAD',
+ pr1pr: 24.75,
+ pr1qt: 1,
+ ua: 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36',
+ uid: '12345',
+ pal: 'search results',
+ ul: 'en-US',
+ ni: 1,
+ qt: 124893881700,
+ },
+ body: {
+ JSON: {},
+ XML: {},
+ JSON_ARRAY: {},
+ FORM: {},
+ },
+ files: {},
+ userId: '00000000000000000000000000',
+ },
+ statusCode: 200,
+ },
+ ],
+ },
+ },
+ },
+ {
+ name: 'ga',
+ description: 'Test 13',
+ feature: 'processor',
+ module: 'destination',
+ version: 'v0',
+ input: {
+ request: {
+ body: [
+ {
+ message: {
+ channel: 'web',
+ context: {
+ app: {
+ build: '1.0.0',
+ name: 'RudderLabs JavaScript SDK',
+ namespace: 'com.rudderlabs.javascript',
+ version: '1.0.0',
+ },
+ traits: {
+ email: 'test@rudderstack.com',
+ },
+ library: {
+ name: 'RudderLabs JavaScript SDK',
+ version: '1.0.0',
+ },
+ userAgent:
+ 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36',
+ locale: 'en-US',
+ os: {
+ name: '',
+ version: '',
+ },
+ screen: {
+ density: 2,
+ },
+ },
+ type: 'track',
+ messageId: 'ec5481b6-a926-4d2e-b293-0b3a77c4d3be',
+ originalTimestamp: '2019-10-14T11:15:18.300Z',
+ anonymousId: '00000000000000000000000000',
+ userId: '12345',
+ event: 'promotion viewed',
+ properties: {
+ currency: 'CAD',
+ promotion_id: 'PROMO_1234',
+ name: 'my product',
+ creative: 'summer_banner2',
+ position: 'banner_slot1',
+ testDimension: true,
+ testMetric: true,
+ },
+ integrations: {
+ All: true,
+ },
+ sentAt: '2019-10-14T11:15:53.296Z',
+ },
+ destination: {
+ Config: {
+ trackingID: 'UA-165994240-1',
+ doubleClick: true,
+ enhancedLinkAttribution: true,
+ classic: true,
+ ignoredReferrers: '',
+ serverClassic: false,
+ includeSearch: true,
+ trackCategorizedPages: true,
+ trackNamedPages: true,
+ sampleRate: '100',
+ siteSpeedSampleRate: '1',
+ setAllMappedProps: true,
+ enableServerSideIdentify: true,
+ serverSideIdentifyEventCategory: 'cat1',
+ serverSideIdentifyEventAction: 'action1',
+ anonymizeIp: true,
+ domain: 'domain',
+ enhancedEcommerce: true,
+ nonInteraction: true,
+ optimize: 'abc123',
+ sendUserId: true,
+ useGoogleAmpClientId: true,
+ 'web-useNativeSDK': true,
+ dimensions: [
+ {
+ from: 'name',
+ to: 'dimension1',
+ },
+ {
+ from: 'custom2',
+ to: 'dimension2',
+ },
+ ],
+ metrics: [
+ {
+ from: 'email',
+ to: 'metric1',
+ },
+ {
+ from: 'trait2',
+ to: 'metric2',
+ },
+ ],
+ resetCustomDimensionsOnPage: [
+ {
+ resetCustomDimensionsOnPage: 'abc',
+ },
+ {
+ resetCustomDimensionsOnPage: 'xyz',
+ },
+ ],
+ contentGroupings: [
+ {
+ from: 'plan',
+ to: 'contentGroup1',
+ },
+ {
+ from: 'prop2',
+ to: 'contentGroup2',
+ },
+ ],
+ },
+ Enabled: true,
+ },
+ },
+ ],
+ },
+ },
+ output: {
+ response: {
+ status: 200,
+ body: [
+ {
+ output: {
+ version: '1',
+ type: 'REST',
+ method: 'POST',
+ endpoint: 'https://www.google-analytics.com/collect',
+ headers: {},
+ params: {
+ ea: 'promotion viewed',
+ ec: 'EnhancedEcommerce',
+ cu: 'CAD',
+ promoa: 'view',
+ pa: 'view',
+ cd1: 'my product',
+ v: '1',
+ t: 'event',
+ el: 'event',
+ tid: 'UA-165994240-1',
+ ds: 'web',
+ an: 'RudderLabs JavaScript SDK',
+ av: '1.0.0',
+ aiid: 'com.rudderlabs.javascript',
+ npa: 1,
+ aip: 1,
+ cid: '00000000000000000000000000',
+ promo1id: 'PROMO_1234',
+ promo1cr: 'summer_banner2',
+ promo1ps: 'banner_slot1',
+ promo1nm: 'my product',
+ ua: 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36',
+ uid: '12345',
+ ul: 'en-US',
+ ni: 1,
+ qt: 124893881700,
+ },
+ body: {
+ JSON: {},
+ XML: {},
+ JSON_ARRAY: {},
+ FORM: {},
+ },
+ files: {},
+ userId: '00000000000000000000000000',
+ },
+ statusCode: 200,
+ },
+ ],
+ },
+ },
+ },
+ {
+ name: 'ga',
+ description: 'Test 14',
+ feature: 'processor',
+ module: 'destination',
+ version: 'v0',
+ input: {
+ request: {
+ body: [
+ {
+ message: {
+ channel: 'web',
+ context: {
+ app: {
+ build: '1.0.0',
+ name: 'RudderLabs JavaScript SDK',
+ namespace: 'com.rudderlabs.javascript',
+ version: '1.0.0',
+ },
+ traits: {
+ email: 'test@rudderstack.com',
+ },
+ library: {
+ name: 'RudderLabs JavaScript SDK',
+ version: '1.0.0',
+ },
+ userAgent:
+ 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36',
+ locale: 'en-US',
+ os: {
+ name: '',
+ version: '',
+ },
+ screen: {
+ density: 2,
+ },
+ },
+ type: 'track',
+ messageId: 'ec5481b6-a926-4d2e-b293-0b3a77c4d3be',
+ originalTimestamp: '2019-10-14T11:15:18.300Z',
+ anonymousId: '00000000000000000000000000',
+ userId: '12345',
+ event: 'promotion clicked',
+ properties: {
+ currency: 'CAD',
+ promotion_id: 'PROMO_1234',
+ name: 'my product',
+ creative: 'summer_banner2',
+ position: 'banner_slot1',
+ testDimension: true,
+ testMetric: true,
+ },
+ integrations: {
+ All: true,
+ },
+ sentAt: '2019-10-14T11:15:53.296Z',
+ },
+ destination: {
+ Config: {
+ trackingID: 'UA-165994240-1',
+ doubleClick: true,
+ enhancedLinkAttribution: true,
+ classic: true,
+ ignoredReferrers: '',
+ serverClassic: false,
+ includeSearch: true,
+ trackCategorizedPages: true,
+ trackNamedPages: true,
+ sampleRate: '100',
+ siteSpeedSampleRate: '1',
+ setAllMappedProps: true,
+ enableServerSideIdentify: true,
+ serverSideIdentifyEventCategory: 'cat1',
+ serverSideIdentifyEventAction: 'action1',
+ anonymizeIp: true,
+ domain: 'domain',
+ enhancedEcommerce: true,
+ nonInteraction: true,
+ optimize: 'abc123',
+ sendUserId: true,
+ useGoogleAmpClientId: true,
+ 'web-useNativeSDK': true,
+ dimensions: [
+ {
+ from: 'name',
+ to: 'dimension1',
+ },
+ {
+ from: 'custom2',
+ to: 'dimension2',
+ },
+ ],
+ metrics: [
+ {
+ from: 'email',
+ to: 'metric1',
+ },
+ {
+ from: 'trait2',
+ to: 'metric2',
+ },
+ ],
+ resetCustomDimensionsOnPage: [
+ {
+ resetCustomDimensionsOnPage: 'abc',
+ },
+ {
+ resetCustomDimensionsOnPage: 'xyz',
+ },
+ ],
+ contentGroupings: [
+ {
+ from: 'plan',
+ to: 'contentGroup1',
+ },
+ {
+ from: 'prop2',
+ to: 'contentGroup2',
+ },
+ ],
+ },
+ Enabled: true,
+ },
+ },
+ ],
+ },
+ },
+ output: {
+ response: {
+ status: 200,
+ body: [
+ {
+ output: {
+ version: '1',
+ type: 'REST',
+ method: 'POST',
+ endpoint: 'https://www.google-analytics.com/collect',
+ headers: {},
+ params: {
+ ea: 'promotion clicked',
+ ec: 'EnhancedEcommerce',
+ cu: 'CAD',
+ promoa: 'promo_click',
+ pa: 'promo_click',
+ cd1: 'my product',
+ v: '1',
+ t: 'event',
+ el: 'event',
+ tid: 'UA-165994240-1',
+ ds: 'web',
+ an: 'RudderLabs JavaScript SDK',
+ av: '1.0.0',
+ aiid: 'com.rudderlabs.javascript',
+ npa: 1,
+ aip: 1,
+ cid: '00000000000000000000000000',
+ promo1id: 'PROMO_1234',
+ promo1cr: 'summer_banner2',
+ promo1ps: 'banner_slot1',
+ promo1nm: 'my product',
+ ua: 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36',
+ uid: '12345',
+ ul: 'en-US',
+ ni: 1,
+ qt: 124893881700,
+ },
+ body: {
+ JSON: {},
+ XML: {},
+ JSON_ARRAY: {},
+ FORM: {},
+ },
+ files: {},
+ userId: '00000000000000000000000000',
+ },
+ statusCode: 200,
+ },
+ ],
+ },
+ },
+ },
+ {
+ name: 'ga',
+ description: 'Test 15',
+ feature: 'processor',
+ module: 'destination',
+ version: 'v0',
+ input: {
+ request: {
+ body: [
+ {
+ message: {
+ channel: 'web',
+ context: {
+ app: {
+ build: '1.0.0',
+ name: 'RudderLabs JavaScript SDK',
+ namespace: 'com.rudderlabs.javascript',
+ version: '1.0.0',
+ },
+ traits: {
+ email: 'test@rudderstack.com',
+ },
+ library: {
+ name: 'RudderLabs JavaScript SDK',
+ version: '1.0.0',
+ },
+ userAgent:
+ 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36',
+ locale: 'en-US',
+ os: {
+ name: '',
+ version: '',
+ },
+ screen: {
+ density: 2,
+ },
+ },
+ type: 'track',
+ messageId: 'ec5481b6-a926-4d2e-b293-0b3a77c4d3be',
+ originalTimestamp: '2019-10-14T11:15:18.300Z',
+ anonymousId: '00000000000000000000000000',
+ userId: '12345',
+ event: 'checkout started',
+ properties: {
+ currency: 'CAD',
+ products: [
+ {
+ quantity: 1,
+ price: 24.75,
+ name: 'my product',
+ sku: 'p-298',
+ },
+ {
+ quantity: 1,
+ price: 24.75,
+ name: 'my product 2',
+ sku: 'p-299',
+ },
+ ],
+ step: 1,
+ paymentMethod: 'Visa',
+ testDimension: true,
+ testMetric: true,
+ },
+ integrations: {
+ All: true,
+ },
+ sentAt: '2019-10-14T11:15:53.296Z',
+ },
+ destination: {
+ Config: {
+ trackingID: 'UA-165994240-1',
+ doubleClick: true,
+ enhancedLinkAttribution: true,
+ classic: true,
+ ignoredReferrers: '',
+ serverClassic: false,
+ includeSearch: true,
+ trackCategorizedPages: true,
+ trackNamedPages: true,
+ sampleRate: '100',
+ siteSpeedSampleRate: '1',
+ setAllMappedProps: true,
+ enableServerSideIdentify: true,
+ serverSideIdentifyEventCategory: 'cat1',
+ serverSideIdentifyEventAction: 'action1',
+ anonymizeIp: true,
+ domain: 'domain',
+ enhancedEcommerce: true,
+ nonInteraction: true,
+ optimize: 'abc123',
+ sendUserId: true,
+ useGoogleAmpClientId: true,
+ 'web-useNativeSDK': true,
+ dimensions: [
+ {
+ from: 'name',
+ to: 'dimension1',
+ },
+ {
+ from: 'custom2',
+ to: 'dimension2',
+ },
+ ],
+ metrics: [
+ {
+ from: 'email',
+ to: 'metric1',
+ },
+ {
+ from: 'trait2',
+ to: 'metric2',
+ },
+ ],
+ resetCustomDimensionsOnPage: [
+ {
+ resetCustomDimensionsOnPage: 'abc',
+ },
+ {
+ resetCustomDimensionsOnPage: 'xyz',
+ },
+ ],
+ contentGroupings: [
+ {
+ from: 'plan',
+ to: 'contentGroup1',
+ },
+ {
+ from: 'prop2',
+ to: 'contentGroup2',
+ },
+ ],
+ },
+ Enabled: true,
+ },
+ },
+ ],
+ },
+ },
+ output: {
+ response: {
+ status: 200,
+ body: [
+ {
+ output: {
+ version: '1',
+ type: 'REST',
+ method: 'POST',
+ endpoint: 'https://www.google-analytics.com/collect',
+ headers: {},
+ params: {
+ pa: 'checkout',
+ pr1id: 'p-298',
+ pr1cd1: 'my product',
+ pr1nm: 'my product',
+ pr1pr: 24.75,
+ pr2id: 'p-299',
+ pr2cd1: 'my product 2',
+ pr2nm: 'my product 2',
+ pr2pr: 24.75,
+ ea: 'checkout started',
+ ec: 'EnhancedEcommerce',
+ v: '1',
+ t: 'event',
+ el: 'event',
+ tid: 'UA-165994240-1',
+ ds: 'web',
+ an: 'RudderLabs JavaScript SDK',
+ av: '1.0.0',
+ aiid: 'com.rudderlabs.javascript',
+ npa: 1,
+ aip: 1,
+ cid: '00000000000000000000000000',
+ cu: 'CAD',
+ ua: 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36',
+ uid: '12345',
+ cos: 1,
+ pr1qt: 1,
+ pr2qt: 1,
+ ul: 'en-US',
+ ni: 1,
+ qt: 124893881700,
+ },
+ body: {
+ JSON: {},
+ XML: {},
+ JSON_ARRAY: {},
+ FORM: {},
+ },
+ files: {},
+ userId: '00000000000000000000000000',
+ },
+ statusCode: 200,
+ },
+ ],
+ },
+ },
+ },
+ {
+ name: 'ga',
+ description: 'Test 16',
+ feature: 'processor',
+ module: 'destination',
+ version: 'v0',
+ input: {
+ request: {
+ body: [
+ {
+ message: {
+ channel: 'web',
+ context: {
+ app: {
+ build: '1.0.0',
+ name: 'RudderLabs JavaScript SDK',
+ namespace: 'com.rudderlabs.javascript',
+ version: '1.0.0',
+ },
+ traits: {
+ email: 'test@rudderstack.com',
+ },
+ library: {
+ name: 'RudderLabs JavaScript SDK',
+ version: '1.0.0',
+ },
+ userAgent:
+ 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36',
+ locale: 'en-US',
+ os: {
+ name: '',
+ version: '',
+ },
+ screen: {
+ density: 2,
+ },
+ },
+ type: 'track',
+ messageId: 'ec5481b6-a926-4d2e-b293-0b3a77c4d3be',
+ originalTimestamp: '2019-10-14T11:15:18.300Z',
+ anonymousId: '00000000000000000000000000',
+ userId: '12345',
+ event: 'order updated',
+ properties: {
+ currency: 'CAD',
+ products: [
+ {
+ quantity: 1,
+ price: 24.75,
+ name: 'my product',
+ sku: 'p-298',
+ },
+ {
+ quantity: 1,
+ price: 24.75,
+ name: 'my product 2',
+ sku: 'p-299',
+ },
+ ],
+ step: 1,
+ paymentMethod: 'Visa',
+ testDimension: true,
+ testMetric: true,
+ },
+ integrations: {
+ All: true,
+ },
+ sentAt: '2019-10-14T11:15:53.296Z',
+ },
+ destination: {
+ Config: {
+ trackingID: 'UA-165994240-1',
+ doubleClick: true,
+ enhancedLinkAttribution: true,
+ classic: true,
+ ignoredReferrers: '',
+ serverClassic: false,
+ includeSearch: true,
+ trackCategorizedPages: true,
+ trackNamedPages: true,
+ sampleRate: '100',
+ siteSpeedSampleRate: '1',
+ setAllMappedProps: true,
+ enableServerSideIdentify: true,
+ serverSideIdentifyEventCategory: 'cat1',
+ serverSideIdentifyEventAction: 'action1',
+ anonymizeIp: true,
+ domain: 'domain',
+ enhancedEcommerce: true,
+ nonInteraction: true,
+ optimize: 'abc123',
+ sendUserId: true,
+ useGoogleAmpClientId: true,
+ 'web-useNativeSDK': true,
+ dimensions: [
+ {
+ from: 'name',
+ to: 'dimension1',
+ },
+ {
+ from: 'custom2',
+ to: 'dimension2',
+ },
+ ],
+ metrics: [
+ {
+ from: 'email',
+ to: 'metric1',
+ },
+ {
+ from: 'trait2',
+ to: 'metric2',
+ },
+ ],
+ resetCustomDimensionsOnPage: [
+ {
+ resetCustomDimensionsOnPage: 'abc',
+ },
+ {
+ resetCustomDimensionsOnPage: 'xyz',
+ },
+ ],
+ contentGroupings: [
+ {
+ from: 'plan',
+ to: 'contentGroup1',
+ },
+ {
+ from: 'prop2',
+ to: 'contentGroup2',
+ },
+ ],
+ },
+ Enabled: true,
+ },
+ },
+ ],
+ },
+ },
+ output: {
+ response: {
+ status: 200,
+ body: [
+ {
+ output: {
+ version: '1',
+ type: 'REST',
+ method: 'POST',
+ endpoint: 'https://www.google-analytics.com/collect',
+ headers: {},
+ params: {
+ pa: 'checkout',
+ pr1id: 'p-298',
+ pr1cd1: 'my product',
+ pr1nm: 'my product',
+ pr1pr: 24.75,
+ pr2id: 'p-299',
+ pr2cd1: 'my product 2',
+ pr2nm: 'my product 2',
+ pr2pr: 24.75,
+ ea: 'order updated',
+ ec: 'EnhancedEcommerce',
+ v: '1',
+ t: 'event',
+ el: 'event',
+ tid: 'UA-165994240-1',
+ ds: 'web',
+ an: 'RudderLabs JavaScript SDK',
+ av: '1.0.0',
+ aiid: 'com.rudderlabs.javascript',
+ npa: 1,
+ aip: 1,
+ cid: '00000000000000000000000000',
+ cu: 'CAD',
+ ua: 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36',
+ uid: '12345',
+ cos: 1,
+ pr1qt: 1,
+ pr2qt: 1,
+ ul: 'en-US',
+ ni: 1,
+ qt: 124893881700,
+ },
+ body: {
+ JSON: {},
+ XML: {},
+ JSON_ARRAY: {},
+ FORM: {},
+ },
+ files: {},
+ userId: '00000000000000000000000000',
+ },
+ statusCode: 200,
+ },
+ ],
+ },
+ },
+ },
+ {
+ name: 'ga',
+ description: 'Test 17',
+ feature: 'processor',
+ module: 'destination',
+ version: 'v0',
+ input: {
+ request: {
+ body: [
+ {
+ message: {
+ channel: 'web',
+ context: {
+ app: {
+ build: '1.0.0',
+ name: 'RudderLabs JavaScript SDK',
+ namespace: 'com.rudderlabs.javascript',
+ version: '1.0.0',
+ },
+ traits: {
+ email: 'test@rudderstack.com',
+ },
+ library: {
+ name: 'RudderLabs JavaScript SDK',
+ version: '1.0.0',
+ },
+ userAgent:
+ 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36',
+ locale: 'en-US',
+ os: {
+ name: '',
+ version: '',
+ },
+ screen: {
+ density: 2,
+ },
+ },
+ type: 'track',
+ messageId: 'ec5481b6-a926-4d2e-b293-0b3a77c4d3be',
+ originalTimestamp: '2019-10-14T11:15:18.300Z',
+ anonymousId: '00000000000000000000000000',
+ userId: '12345',
+ event: 'checkout step viewed',
+ properties: {
+ currency: 'CAD',
+ step: 1,
+ },
+ integrations: {
+ All: true,
+ },
+ sentAt: '2019-10-14T11:15:53.296Z',
+ },
+ destination: {
+ Config: {
+ trackingID: 'UA-165994240-1',
+ doubleClick: true,
+ enhancedLinkAttribution: true,
+ classic: true,
+ ignoredReferrers: '',
+ serverClassic: false,
+ includeSearch: true,
+ trackCategorizedPages: true,
+ trackNamedPages: true,
+ sampleRate: '100',
+ siteSpeedSampleRate: '1',
+ setAllMappedProps: true,
+ enableServerSideIdentify: true,
+ serverSideIdentifyEventCategory: 'cat1',
+ serverSideIdentifyEventAction: 'action1',
+ anonymizeIp: true,
+ domain: 'domain',
+ enhancedEcommerce: true,
+ nonInteraction: true,
+ optimize: 'abc123',
+ sendUserId: true,
+ useGoogleAmpClientId: true,
+ 'web-useNativeSDK': true,
+ dimensions: [
+ {
+ from: 'name',
+ to: 'dimension1',
+ },
+ {
+ from: 'custom2',
+ to: 'dimension2',
+ },
+ ],
+ metrics: [
+ {
+ from: 'email',
+ to: 'metric1',
+ },
+ {
+ from: 'trait2',
+ to: 'metric2',
+ },
+ ],
+ resetCustomDimensionsOnPage: [
+ {
+ resetCustomDimensionsOnPage: 'abc',
+ },
+ {
+ resetCustomDimensionsOnPage: 'xyz',
+ },
+ ],
+ contentGroupings: [
+ {
+ from: 'plan',
+ to: 'contentGroup1',
+ },
+ {
+ from: 'prop2',
+ to: 'contentGroup2',
+ },
+ ],
+ },
+ Enabled: true,
+ },
+ },
+ ],
+ },
+ },
+ output: {
+ response: {
+ status: 200,
+ body: [
+ {
+ output: {
+ version: '1',
+ type: 'REST',
+ method: 'POST',
+ endpoint: 'https://www.google-analytics.com/collect',
+ headers: {},
+ params: {
+ pa: 'checkout',
+ ea: 'checkout step viewed',
+ ec: 'EnhancedEcommerce',
+ v: '1',
+ t: 'event',
+ el: 'event',
+ tid: 'UA-165994240-1',
+ ds: 'web',
+ an: 'RudderLabs JavaScript SDK',
+ av: '1.0.0',
+ aiid: 'com.rudderlabs.javascript',
+ npa: 1,
+ aip: 1,
+ cid: '00000000000000000000000000',
+ cos: 1,
+ ua: 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36',
+ uid: '12345',
+ ul: 'en-US',
+ ni: 1,
+ qt: 124893881700,
+ },
+ body: {
+ JSON: {},
+ XML: {},
+ JSON_ARRAY: {},
+ FORM: {},
+ },
+ files: {},
+ userId: '00000000000000000000000000',
+ },
+ statusCode: 200,
+ },
+ ],
+ },
+ },
+ },
+ {
+ name: 'ga',
+ description: 'Test 18',
+ feature: 'processor',
+ module: 'destination',
+ version: 'v0',
+ input: {
+ request: {
+ body: [
+ {
+ message: {
+ channel: 'web',
+ context: {
+ app: {
+ build: '1.0.0',
+ name: 'RudderLabs JavaScript SDK',
+ namespace: 'com.rudderlabs.javascript',
+ version: '1.0.0',
+ },
+ traits: {
+ email: 'test@rudderstack.com',
+ },
+ library: {
+ name: 'RudderLabs JavaScript SDK',
+ version: '1.0.0',
+ },
+ userAgent:
+ 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36',
+ locale: 'en-US',
+ os: {
+ name: '',
+ version: '',
+ },
+ screen: {
+ density: 2,
+ },
+ },
+ type: 'track',
+ messageId: 'ec5481b6-a926-4d2e-b293-0b3a77c4d3be',
+ originalTimestamp: '2019-10-14T11:15:18.300Z',
+ anonymousId: '00000000000000000000000000',
+ userId: '12345',
+ event: 'checkout step completed',
+ properties: {
+ currency: 'CAD',
+ step: 1,
+ paymentMethod: 'Visa',
+ },
+ integrations: {
+ All: true,
+ },
+ sentAt: '2019-10-14T11:15:53.296Z',
+ },
+ destination: {
+ Config: {
+ trackingID: 'UA-165994240-1',
+ doubleClick: true,
+ enhancedLinkAttribution: true,
+ classic: true,
+ ignoredReferrers: '',
+ serverClassic: false,
+ includeSearch: true,
+ trackCategorizedPages: true,
+ trackNamedPages: true,
+ sampleRate: '100',
+ siteSpeedSampleRate: '1',
+ setAllMappedProps: true,
+ enableServerSideIdentify: true,
+ serverSideIdentifyEventCategory: 'cat1',
+ serverSideIdentifyEventAction: 'action1',
+ anonymizeIp: true,
+ domain: 'domain',
+ enhancedEcommerce: true,
+ nonInteraction: true,
+ optimize: 'abc123',
+ sendUserId: true,
+ useGoogleAmpClientId: true,
+ 'web-useNativeSDK': true,
+ dimensions: [
+ {
+ from: 'name',
+ to: 'dimension1',
+ },
+ {
+ from: 'custom2',
+ to: 'dimension2',
+ },
+ ],
+ metrics: [
+ {
+ from: 'email',
+ to: 'metric1',
+ },
+ {
+ from: 'trait2',
+ to: 'metric2',
+ },
+ ],
+ resetCustomDimensionsOnPage: [
+ {
+ resetCustomDimensionsOnPage: 'abc',
+ },
+ {
+ resetCustomDimensionsOnPage: 'xyz',
+ },
+ ],
+ contentGroupings: [
+ {
+ from: 'plan',
+ to: 'contentGroup1',
+ },
+ {
+ from: 'prop2',
+ to: 'contentGroup2',
+ },
+ ],
+ },
+ Enabled: true,
+ },
+ },
+ ],
+ },
+ },
+ output: {
+ response: {
+ status: 200,
+ body: [
+ {
+ output: {
+ version: '1',
+ type: 'REST',
+ method: 'POST',
+ endpoint: 'https://www.google-analytics.com/collect',
+ headers: {},
+ params: {
+ pa: 'checkout_option',
+ ea: 'checkout step completed',
+ ec: 'EnhancedEcommerce',
+ v: '1',
+ t: 'event',
+ el: 'event',
+ tid: 'UA-165994240-1',
+ ds: 'web',
+ an: 'RudderLabs JavaScript SDK',
+ av: '1.0.0',
+ aiid: 'com.rudderlabs.javascript',
+ npa: 1,
+ aip: 1,
+ cid: '00000000000000000000000000',
+ cos: 1,
+ ua: 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36',
+ uid: '12345',
+ ul: 'en-US',
+ ni: 1,
+ qt: 124893881700,
+ },
+ body: {
+ JSON: {},
+ XML: {},
+ JSON_ARRAY: {},
+ FORM: {},
+ },
+ files: {},
+ userId: '00000000000000000000000000',
+ },
+ statusCode: 200,
+ },
+ ],
+ },
+ },
+ },
+ {
+ name: 'ga',
+ description: 'Test 19',
+ feature: 'processor',
+ module: 'destination',
+ version: 'v0',
+ input: {
+ request: {
+ body: [
+ {
+ message: {
+ channel: 'web',
+ context: {
+ app: {
+ build: '1.0.0',
+ name: 'RudderLabs JavaScript SDK',
+ namespace: 'com.rudderlabs.javascript',
+ version: '1.0.0',
+ },
+ traits: {
+ email: 'test@rudderstack.com',
+ },
+ library: {
+ name: 'RudderLabs JavaScript SDK',
+ version: '1.0.0',
+ },
+ userAgent:
+ 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36',
+ locale: 'en-US',
+ os: {
+ name: '',
+ version: '',
+ },
+ screen: {
+ density: 2,
+ },
+ },
+ type: 'track',
+ messageId: 'ec5481b6-a926-4d2e-b293-0b3a77c4d3be',
+ originalTimestamp: '2019-10-14T11:15:18.300Z',
+ anonymousId: '00000000000000000000000000',
+ userId: '12345',
+ event: 'order refunded',
+ properties: {
+ products: [
+ {
+ quantity: 1,
+ sku: 'p-298',
+ },
+ {
+ quantity: 1,
+ sku: 'p-299',
+ },
+ ],
+ testDimension: true,
+ testMetric: true,
+ },
+ integrations: {
+ All: true,
+ },
+ sentAt: '2019-10-14T11:15:53.296Z',
+ },
+ destination: {
+ Config: {
+ trackingID: 'UA-165994240-1',
+ doubleClick: true,
+ enhancedLinkAttribution: true,
+ classic: true,
+ ignoredReferrers: '',
+ serverClassic: false,
+ includeSearch: true,
+ trackCategorizedPages: true,
+ trackNamedPages: true,
+ sampleRate: '100',
+ siteSpeedSampleRate: '1',
+ setAllMappedProps: true,
+ enableServerSideIdentify: true,
+ serverSideIdentifyEventCategory: 'cat1',
+ serverSideIdentifyEventAction: 'action1',
+ anonymizeIp: true,
+ domain: 'domain',
+ enhancedEcommerce: true,
+ nonInteraction: true,
+ optimize: 'abc123',
+ sendUserId: true,
+ useGoogleAmpClientId: true,
+ 'web-useNativeSDK': true,
+ dimensions: [
+ {
+ from: 'name',
+ to: 'dimension1',
+ },
+ {
+ from: 'custom2',
+ to: 'dimension2',
+ },
+ ],
+ metrics: [
+ {
+ from: 'email',
+ to: 'metric1',
+ },
+ {
+ from: 'trait2',
+ to: 'metric2',
+ },
+ ],
+ resetCustomDimensionsOnPage: [
+ {
+ resetCustomDimensionsOnPage: 'abc',
+ },
+ {
+ resetCustomDimensionsOnPage: 'xyz',
+ },
+ ],
+ contentGroupings: [
+ {
+ from: 'plan',
+ to: 'contentGroup1',
+ },
+ {
+ from: 'prop2',
+ to: 'contentGroup2',
+ },
+ ],
+ },
+ Enabled: true,
+ },
+ },
+ ],
+ },
+ },
+ output: {
+ response: {
+ status: 200,
+ body: [
+ {
+ output: {
+ version: '1',
+ type: 'REST',
+ method: 'POST',
+ endpoint: 'https://www.google-analytics.com/collect',
+ headers: {},
+ params: {
+ ni: 1,
+ v: '1',
+ t: 'event',
+ el: 'event',
+ tid: 'UA-165994240-1',
+ ds: 'web',
+ an: 'RudderLabs JavaScript SDK',
+ av: '1.0.0',
+ aiid: 'com.rudderlabs.javascript',
+ npa: 1,
+ aip: 1,
+ cid: '00000000000000000000000000',
+ ea: 'order refunded',
+ ec: 'EnhancedEcommerce',
+ ua: 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36',
+ uid: '12345',
+ pa: 'refund',
+ pr1id: 'p-298',
+ pr1qt: 1,
+ pr2id: 'p-299',
+ ul: 'en-US',
+ pr2qt: 1,
+ qt: 124893881700,
+ },
+ body: {
+ JSON: {},
+ XML: {},
+ JSON_ARRAY: {},
+ FORM: {},
+ },
+ files: {},
+ userId: '00000000000000000000000000',
+ },
+ statusCode: 200,
+ },
+ ],
+ },
+ },
+ },
+ {
+ name: 'ga',
+ description: 'Test 20',
+ feature: 'processor',
+ module: 'destination',
+ version: 'v0',
+ input: {
+ request: {
+ body: [
+ {
+ message: {
+ channel: 'web',
+ context: {
+ app: {
+ build: '1.0.0',
+ name: 'RudderLabs JavaScript SDK',
+ namespace: 'com.rudderlabs.javascript',
+ version: '1.0.0',
+ },
+ traits: {
+ email: 'test@rudderstack.com',
+ },
+ library: {
+ name: 'RudderLabs JavaScript SDK',
+ version: '1.0.0',
+ },
+ userAgent:
+ 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36',
+ locale: 'en-US',
+ os: {
+ name: '',
+ version: '',
+ },
+ screen: {
+ density: 2,
+ },
+ },
+ type: 'track',
+ messageId: 'ec5481b6-a926-4d2e-b293-0b3a77c4d3be',
+ originalTimestamp: '2019-10-14T11:15:18.300Z',
+ anonymousId: '00000000000000000000000000',
+ userId: '12345',
+ event: 'order starterefundedd',
+ properties: {
+ products: [
+ {
+ quantity: 1,
+ sku: 'p-298',
+ },
+ {
+ quantity: 1,
+ sku: 'p-299',
+ },
+ ],
+ testDimension: true,
+ testMetric: true,
+ },
+ integrations: {
+ All: true,
+ },
+ sentAt: '2019-10-14T11:15:53.296Z',
+ },
+ destination: {
+ Config: {
+ trackingID: 'UA-165994240-1',
+ doubleClick: true,
+ enhancedLinkAttribution: true,
+ classic: true,
+ ignoredReferrers: '',
+ serverClassic: false,
+ includeSearch: true,
+ trackCategorizedPages: true,
+ trackNamedPages: true,
+ sampleRate: '100',
+ siteSpeedSampleRate: '1',
+ setAllMappedProps: true,
+ enableServerSideIdentify: true,
+ serverSideIdentifyEventCategory: 'cat1',
+ serverSideIdentifyEventAction: 'action1',
+ anonymizeIp: true,
+ domain: 'domain',
+ enhancedEcommerce: true,
+ nonInteraction: true,
+ optimize: 'abc123',
+ sendUserId: true,
+ useGoogleAmpClientId: true,
+ 'web-useNativeSDK': true,
+ metrics: [
+ {
+ from: 'email',
+ to: 'metric1',
+ },
+ {
+ from: 'trait2',
+ to: 'metric2',
+ },
+ ],
+ resetCustomDimensionsOnPage: [
+ {
+ resetCustomDimensionsOnPage: 'abc',
+ },
+ {
+ resetCustomDimensionsOnPage: 'xyz',
+ },
+ ],
+ contentGroupings: [
+ {
+ from: 'plan',
+ to: 'contentGroup1',
+ },
+ {
+ from: 'prop2',
+ to: 'contentGroup2',
+ },
+ ],
+ },
+ Enabled: true,
+ },
+ },
+ ],
+ },
+ },
+ output: {
+ response: {
+ status: 200,
+ body: [
+ {
+ output: {
+ version: '1',
+ type: 'REST',
+ method: 'POST',
+ endpoint: 'https://www.google-analytics.com/collect',
+ headers: {},
+ params: {
+ ul: 'en-US',
+ ec: 'All',
+ ni: 1,
+ v: '1',
+ t: 'event',
+ el: 'event',
+ tid: 'UA-165994240-1',
+ ds: 'web',
+ an: 'RudderLabs JavaScript SDK',
+ av: '1.0.0',
+ aiid: 'com.rudderlabs.javascript',
+ npa: 1,
+ aip: 1,
+ cid: '00000000000000000000000000',
+ ea: 'order starterefundedd',
+ ua: 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36',
+ uid: '12345',
+ qt: 124893881700,
+ },
+ body: {
+ JSON: {},
+ XML: {},
+ JSON_ARRAY: {},
+ FORM: {},
+ },
+ files: {},
+ userId: '00000000000000000000000000',
+ },
+ statusCode: 200,
+ },
+ ],
+ },
+ },
+ },
+ {
+ name: 'ga',
+ description: 'Test 21',
+ feature: 'processor',
+ module: 'destination',
+ version: 'v0',
+ input: {
+ request: {
+ body: [
+ {
+ message: {
+ channel: 'web',
+ context: {
+ traits: {
+ email: 'test@rudderstack.com',
+ },
+ library: {
+ name: 'RudderLabs JavaScript SDK',
+ version: '1.0.0',
+ },
+ userAgent:
+ 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36',
+ locale: 'en-US',
+ os: {
+ name: '',
+ version: '',
+ },
+ screen: {
+ density: 2,
+ },
+ },
+ type: 'track',
+ messageId: 'ec5481b6-a926-4d2e-b293-0b3a77c4d3be',
+ originalTimestamp: '2019-10-14T11:15:18.300Z',
+ anonymousId: '00000000000000000000000000',
+ userId: '12345',
+ event: 'order starterefundedd',
+ properties: {
+ products: [
+ {
+ quantity: 1,
+ sku: 'p-298',
+ },
+ {
+ quantity: 1,
+ sku: 'p-299',
+ },
+ ],
+ testDimension: true,
+ testMetric: true,
+ },
+ integrations: {
+ All: true,
+ },
+ sentAt: '2019-10-14T11:15:53.296Z',
+ },
+ destination: {
+ Config: {
+ trackingID: 'UA-165994240-1',
+ doubleClick: true,
+ enhancedLinkAttribution: true,
+ classic: true,
+ ignoredReferrers: '',
+ serverClassic: false,
+ includeSearch: true,
+ trackCategorizedPages: true,
+ trackNamedPages: true,
+ sampleRate: '100',
+ siteSpeedSampleRate: '1',
+ setAllMappedProps: true,
+ enableServerSideIdentify: true,
+ serverSideIdentifyEventCategory: 'cat1',
+ serverSideIdentifyEventAction: 'action1',
+ anonymizeIp: true,
+ domain: 'domain',
+ enhancedEcommerce: true,
+ nonInteraction: true,
+ optimize: 'abc123',
+ sendUserId: true,
+ useGoogleAmpClientId: true,
+ 'web-useNativeSDK': true,
+ metrics: [
+ {
+ from: 'email',
+ to: 'metric1',
+ },
+ {
+ from: 'trait2',
+ to: 'metric2',
+ },
+ ],
+ resetCustomDimensionsOnPage: [
+ {
+ resetCustomDimensionsOnPage: 'abc',
+ },
+ {
+ resetCustomDimensionsOnPage: 'xyz',
+ },
+ ],
+ contentGroupings: [
+ {
+ from: 'plan',
+ to: 'contentGroup1',
+ },
+ {
+ from: 'prop2',
+ to: 'contentGroup2',
+ },
+ ],
+ },
+ Enabled: true,
+ },
+ },
+ ],
+ },
+ },
+ output: {
+ response: {
+ status: 200,
+ body: [
+ {
+ output: {
+ version: '1',
+ type: 'REST',
+ method: 'POST',
+ endpoint: 'https://www.google-analytics.com/collect',
+ headers: {},
+ params: {
+ ul: 'en-US',
+ ec: 'All',
+ ni: 1,
+ v: '1',
+ t: 'event',
+ el: 'event',
+ tid: 'UA-165994240-1',
+ ds: 'web',
+ npa: 1,
+ aip: 1,
+ cid: '00000000000000000000000000',
+ ea: 'order starterefundedd',
+ ua: 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36',
+ uid: '12345',
+ qt: 124893881700,
+ },
+ body: {
+ JSON: {},
+ XML: {},
+ JSON_ARRAY: {},
+ FORM: {},
+ },
+ files: {},
+ userId: '00000000000000000000000000',
+ },
+ statusCode: 200,
+ },
+ ],
+ },
+ },
+ },
+ {
+ name: 'ga',
+ description: 'Test 22',
+ feature: 'processor',
+ module: 'destination',
+ version: 'v0',
+ input: {
+ request: {
+ body: [
+ {
+ message: {
+ channel: 'web',
+ context: {
+ app: {
+ build: '1.0.0',
+ name: 'RudderLabs JavaScript SDK',
+ namespace: 'com.rudderlabs.javascript',
+ version: '1.0.0',
+ },
+ traits: {
+ email: 'test@rudderstack.com',
+ },
+ library: {
+ name: 'RudderLabs JavaScript SDK',
+ version: '1.0.0',
+ },
+ userAgent:
+ 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36',
+ locale: 'en-US',
+ os: {
+ name: '',
+ version: '',
+ },
+ screen: {
+ density: 2,
+ },
+ },
+ type: 'track',
+ messageId: 'ec5481b6-a926-4d2e-b293-0b3a77c4d3be',
+ originalTimestamp: '2019-10-14T11:15:18.300Z',
+ anonymousId: '00000000000000000000000000',
+ userId: '12345',
+ event: 'order starterefundedd',
+ properties: {
+ products: [
+ {
+ quantity: 1,
+ sku: 'p-298',
+ },
+ {
+ quantity: 1,
+ sku: 'p-299',
+ },
+ ],
+ testDimension: true,
+ testMetric: true,
+ },
+ integrations: {
+ All: true,
+ },
+ sentAt: '2019-10-14T11:15:53.296Z',
+ },
+ destination: {
+ Config: {
+ trackingID: 'UA-165994240-1',
+ enhancedLinkAttribution: true,
+ classic: true,
+ ignoredReferrers: '',
+ serverClassic: false,
+ includeSearch: true,
+ trackCategorizedPages: true,
+ trackNamedPages: true,
+ sampleRate: '100',
+ siteSpeedSampleRate: '1',
+ setAllMappedProps: true,
+ enableServerSideIdentify: true,
+ serverSideIdentifyEventCategory: 'cat1',
+ serverSideIdentifyEventAction: 'action1',
+ anonymizeIp: true,
+ domain: 'domain',
+ enhancedEcommerce: true,
+ nonInteraction: true,
+ optimize: 'abc123',
+ sendUserId: true,
+ useGoogleAmpClientId: true,
+ 'web-useNativeSDK': true,
+ dimensions: [
+ {
+ from: 'name',
+ to: 'dimension1',
+ },
+ {
+ from: 'custom2',
+ to: 'dimension2',
+ },
+ ],
+ metrics: [
+ {
+ from: 'email',
+ to: 'metric1',
+ },
+ {
+ from: 'trait2',
+ to: 'metric2',
+ },
+ ],
+ resetCustomDimensionsOnPage: [
+ {
+ resetCustomDimensionsOnPage: 'abc',
+ },
+ {
+ resetCustomDimensionsOnPage: 'xyz',
+ },
+ ],
+ contentGroupings: [
+ {
+ from: 'plan',
+ to: 'contentGroup1',
+ },
+ {
+ from: 'prop2',
+ to: 'contentGroup2',
+ },
+ ],
+ },
+ Enabled: true,
+ },
+ },
+ ],
+ },
+ },
+ output: {
+ response: {
+ status: 200,
+ body: [
+ {
+ output: {
+ version: '1',
+ type: 'REST',
+ method: 'POST',
+ endpoint: 'https://www.google-analytics.com/collect',
+ headers: {},
+ params: {
+ ul: 'en-US',
+ ec: 'All',
+ ni: 1,
+ v: '1',
+ t: 'event',
+ el: 'event',
+ tid: 'UA-165994240-1',
+ ds: 'web',
+ an: 'RudderLabs JavaScript SDK',
+ av: '1.0.0',
+ aiid: 'com.rudderlabs.javascript',
+ aip: 1,
+ cid: '00000000000000000000000000',
+ ea: 'order starterefundedd',
+ ua: 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36',
+ uid: '12345',
+ qt: 124893881700,
+ },
+ body: {
+ JSON: {},
+ XML: {},
+ JSON_ARRAY: {},
+ FORM: {},
+ },
+ files: {},
+ userId: '00000000000000000000000000',
+ },
+ statusCode: 200,
+ },
+ ],
+ },
+ },
+ },
+ {
+ name: 'ga',
+ description: 'Test 23',
+ feature: 'processor',
+ module: 'destination',
+ version: 'v0',
+ input: {
+ request: {
+ body: [
+ {
+ message: {
+ channel: 'web',
+ context: {
+ app: {
+ build: '1.0.0',
+ name: 'RudderLabs JavaScript SDK',
+ namespace: 'com.rudderlabs.javascript',
+ version: '1.0.0',
+ },
+ traits: {
+ email: 'test@rudderstack.com',
+ },
+ library: {
+ name: 'RudderLabs JavaScript SDK',
+ version: '1.0.0',
+ },
+ userAgent:
+ 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36',
+ locale: 'en-US',
+ os: {
+ name: '',
+ version: '',
+ },
+ screen: {
+ density: 2,
+ },
+ },
+ type: 'track',
+ messageId: 'ec5481b6-a926-4d2e-b293-0b3a77c4d3be',
+ originalTimestamp: '2019-10-14T11:15:18.300Z',
+ anonymousId: '00000000000000000000000000',
+ userId: '12345',
+ event: 'order starterefundedd',
+ properties: {
+ products: [
+ {
+ quantity: 1,
+ sku: 'p-298',
+ },
+ {
+ quantity: 1,
+ sku: 'p-299',
+ },
+ ],
+ testDimension: true,
+ testMetric: true,
+ },
+ integrations: {
+ All: true,
+ },
+ sentAt: '2019-10-14T11:15:53.296Z',
+ },
+ destination: {
+ Config: {
+ trackingID: 'UA-165994240-1',
+ doubleClick: true,
+ enhancedLinkAttribution: true,
+ classic: true,
+ ignoredReferrers: '',
+ serverClassic: false,
+ includeSearch: true,
+ trackCategorizedPages: true,
+ trackNamedPages: true,
+ sampleRate: '100',
+ siteSpeedSampleRate: '1',
+ setAllMappedProps: true,
+ enableServerSideIdentify: true,
+ serverSideIdentifyEventCategory: 'cat1',
+ serverSideIdentifyEventAction: 'action1',
+ domain: 'domain',
+ enhancedEcommerce: true,
+ nonInteraction: true,
+ optimize: 'abc123',
+ sendUserId: true,
+ useGoogleAmpClientId: true,
+ 'web-useNativeSDK': true,
+ dimensions: [
+ {
+ from: 'name',
+ to: 'dimension1',
+ },
+ {
+ from: 'custom2',
+ to: 'dimension2',
+ },
+ ],
+ metrics: [
+ {
+ from: 'email',
+ to: 'metric1',
+ },
+ {
+ from: 'trait2',
+ to: 'metric2',
+ },
+ ],
+ resetCustomDimensionsOnPage: [
+ {
+ resetCustomDimensionsOnPage: 'abc',
+ },
+ {
+ resetCustomDimensionsOnPage: 'xyz',
+ },
+ ],
+ contentGroupings: [
+ {
+ from: 'plan',
+ to: 'contentGroup1',
+ },
+ {
+ from: 'prop2',
+ to: 'contentGroup2',
+ },
+ ],
+ },
+ Enabled: true,
+ },
+ },
+ ],
+ },
+ },
+ output: {
+ response: {
+ status: 200,
+ body: [
+ {
+ output: {
+ version: '1',
+ type: 'REST',
+ method: 'POST',
+ endpoint: 'https://www.google-analytics.com/collect',
+ headers: {},
+ params: {
+ ul: 'en-US',
+ ec: 'All',
+ ni: 1,
+ v: '1',
+ t: 'event',
+ el: 'event',
+ tid: 'UA-165994240-1',
+ ds: 'web',
+ an: 'RudderLabs JavaScript SDK',
+ av: '1.0.0',
+ aiid: 'com.rudderlabs.javascript',
+ npa: 1,
+ cid: '00000000000000000000000000',
+ ea: 'order starterefundedd',
+ ua: 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36',
+ uid: '12345',
+ qt: 124893881700,
+ },
+ body: {
+ JSON: {},
+ XML: {},
+ JSON_ARRAY: {},
+ FORM: {},
+ },
+ files: {},
+ userId: '00000000000000000000000000',
+ },
+ statusCode: 200,
+ },
+ ],
+ },
+ },
+ },
+ {
+ name: 'ga',
+ description: 'Test 24',
+ feature: 'processor',
+ module: 'destination',
+ version: 'v0',
+ input: {
+ request: {
+ body: [
+ {
+ message: {
+ channel: 'web',
+ context: {
+ app: {
+ build: '1.0.0',
+ name: 'RudderLabs JavaScript SDK',
+ namespace: 'com.rudderlabs.javascript',
+ version: '1.0.0',
+ },
+ traits: {
+ email: 'test@rudderstack.com',
+ },
+ library: {
+ name: 'RudderLabs JavaScript SDK',
+ version: '1.0.0',
+ },
+ userAgent:
+ 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36',
+ locale: 'en-US',
+ os: {
+ name: '',
+ version: '',
+ },
+ screen: {
+ density: 2,
+ },
+ },
+ type: 'track',
+ messageId: 'ec5481b6-a926-4d2e-b293-0b3a77c4d3be',
+ originalTimestamp: '2019-10-14T11:15:18.300Z',
+ anonymousId: '00000000000000000000000000',
+ userId: '12345',
+ event: 'order starterefundedd',
+ properties: {
+ products: [
+ {
+ quantity: 1,
+ sku: 'p-298',
+ },
+ {
+ quantity: 1,
+ sku: 'p-299',
+ },
+ ],
+ testDimension: true,
+ testMetric: true,
+ },
+ integrations: {
+ All: true,
+ },
+ sentAt: '2019-10-14T11:15:53.296Z',
+ },
+ destination: {
+ Config: {
+ trackingID: 'UA-165994240-1',
+ doubleClick: true,
+ classic: true,
+ ignoredReferrers: '',
+ serverClassic: false,
+ includeSearch: true,
+ trackCategorizedPages: true,
+ trackNamedPages: true,
+ sampleRate: '100',
+ siteSpeedSampleRate: '1',
+ setAllMappedProps: true,
+ enableServerSideIdentify: true,
+ serverSideIdentifyEventCategory: 'cat1',
+ serverSideIdentifyEventAction: 'action1',
+ anonymizeIp: true,
+ domain: 'domain',
+ enhancedEcommerce: true,
+ nonInteraction: true,
+ optimize: 'abc123',
+ sendUserId: true,
+ useGoogleAmpClientId: true,
+ 'web-useNativeSDK': true,
+ dimensions: [
+ {
+ from: 'name',
+ to: 'dimension1',
+ },
+ {
+ from: 'custom2',
+ to: 'dimension2',
+ },
+ ],
+ metrics: [
+ {
+ from: 'email',
+ to: 'metric1',
+ },
+ {
+ from: 'trait2',
+ to: 'metric2',
+ },
+ ],
+ resetCustomDimensionsOnPage: [
+ {
+ resetCustomDimensionsOnPage: 'abc',
+ },
+ {
+ resetCustomDimensionsOnPage: 'xyz',
+ },
+ ],
+ contentGroupings: [
+ {
+ from: 'plan',
+ to: 'contentGroup1',
+ },
+ {
+ from: 'prop2',
+ to: 'contentGroup2',
+ },
+ ],
+ },
+ Enabled: true,
+ },
+ },
+ ],
+ },
+ },
+ output: {
+ response: {
+ status: 200,
+ body: [
+ {
+ output: {
+ version: '1',
+ type: 'REST',
+ method: 'POST',
+ endpoint: 'https://www.google-analytics.com/collect',
+ headers: {},
+ params: {
+ ul: 'en-US',
+ ec: 'All',
+ ni: 1,
+ v: '1',
+ t: 'event',
+ el: 'event',
+ tid: 'UA-165994240-1',
+ ds: 'web',
+ an: 'RudderLabs JavaScript SDK',
+ av: '1.0.0',
+ aiid: 'com.rudderlabs.javascript',
+ npa: 1,
+ aip: 1,
+ cid: '00000000000000000000000000',
+ ea: 'order starterefundedd',
+ ua: 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36',
+ uid: '12345',
+ qt: 124893881700,
+ },
+ body: {
+ JSON: {},
+ XML: {},
+ JSON_ARRAY: {},
+ FORM: {},
+ },
+ files: {},
+ userId: '00000000000000000000000000',
+ },
+ statusCode: 200,
+ },
+ ],
+ },
+ },
+ },
+ {
+ name: 'ga',
+ description: 'Test 25',
+ feature: 'processor',
+ module: 'destination',
+ version: 'v0',
+ input: {
+ request: {
+ body: [
+ {
+ message: {
+ channel: 'web',
+ context: {
+ app: {
+ build: '1.0.0',
+ name: 'RudderLabs JavaScript SDK',
+ namespace: 'com.rudderlabs.javascript',
+ version: '1.0.0',
+ },
+ traits: {
+ email: 'test@rudderstack.com',
+ },
+ library: {
+ name: 'RudderLabs JavaScript SDK',
+ version: '1.0.0',
+ },
+ userAgent:
+ 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36',
+ locale: 'en-US',
+ os: {
+ name: '',
+ version: '',
+ },
+ screen: {
+ density: 2,
+ },
+ },
+ type: 'track',
+ messageId: 'ec5481b6-a926-4d2e-b293-0b3a77c4d3be',
+ originalTimestamp: '2019-10-14T11:15:18.300Z',
+ anonymousId: '00000000000000000000000000',
+ userId: '12345',
+ event: 'linkid test',
+ properties: {
+ linkid: 'abc123',
+ testDimension: true,
+ testMetric: true,
+ },
+ integrations: {
+ All: true,
+ },
+ sentAt: '2019-10-14T11:15:53.296Z',
+ },
+ destination: {
+ Config: {
+ trackingID: 'UA-165994240-1',
+ doubleClick: true,
+ enhancedLinkAttribution: true,
+ classic: true,
+ ignoredReferrers: '',
+ serverClassic: false,
+ includeSearch: true,
+ trackCategorizedPages: true,
+ trackNamedPages: true,
+ sampleRate: '100',
+ siteSpeedSampleRate: '1',
+ setAllMappedProps: true,
+ enableServerSideIdentify: true,
+ serverSideIdentifyEventCategory: 'cat1',
+ serverSideIdentifyEventAction: 'action1',
+ domain: 'domain',
+ enhancedEcommerce: true,
+ nonInteraction: true,
+ optimize: 'abc123',
+ sendUserId: true,
+ useGoogleAmpClientId: true,
+ 'web-useNativeSDK': true,
+ dimensions: [
+ {
+ from: 'name',
+ to: 'dimension1',
+ },
+ {
+ from: 'custom2',
+ to: 'dimension2',
+ },
+ ],
+ metrics: [
+ {
+ from: 'email',
+ to: 'metric1',
+ },
+ {
+ from: 'trait2',
+ to: 'metric2',
+ },
+ ],
+ resetCustomDimensionsOnPage: [
+ {
+ resetCustomDimensionsOnPage: 'abc',
+ },
+ {
+ resetCustomDimensionsOnPage: 'xyz',
+ },
+ ],
+ contentGroupings: [
+ {
+ from: 'plan',
+ to: 'contentGroup1',
+ },
+ {
+ from: 'prop2',
+ to: 'contentGroup2',
+ },
+ ],
+ },
+ Enabled: true,
+ },
+ },
+ ],
+ },
+ },
+ output: {
+ response: {
+ status: 200,
+ body: [
+ {
+ output: {
+ version: '1',
+ type: 'REST',
+ method: 'POST',
+ endpoint: 'https://www.google-analytics.com/collect',
+ headers: {},
+ params: {
+ ul: 'en-US',
+ ec: 'All',
+ ni: 1,
+ v: '1',
+ t: 'event',
+ el: 'event',
+ tid: 'UA-165994240-1',
+ ds: 'web',
+ an: 'RudderLabs JavaScript SDK',
+ av: '1.0.0',
+ aiid: 'com.rudderlabs.javascript',
+ npa: 1,
+ linkid: 'abc123',
+ cid: '00000000000000000000000000',
+ ea: 'linkid test',
+ ua: 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36',
+ uid: '12345',
+ qt: 124893881700,
+ },
+ body: {
+ JSON: {},
+ XML: {},
+ JSON_ARRAY: {},
+ FORM: {},
+ },
+ files: {},
+ userId: '00000000000000000000000000',
+ },
+ statusCode: 200,
+ },
+ ],
+ },
+ },
+ },
+ {
+ name: 'ga',
+ description: 'Test 26',
+ feature: 'processor',
+ module: 'destination',
+ version: 'v0',
+ input: {
+ request: {
+ body: [
+ {
+ message: {
+ channel: 'web',
+ context: {
+ app: {
+ build: '1.0.0',
+ name: 'RudderLabs JavaScript SDK',
+ namespace: 'com.rudderlabs.javascript',
+ version: '1.0.0',
+ },
+ traits: {
+ email: 'test@rudderstack.com',
+ },
+ library: {
+ name: 'RudderLabs JavaScript SDK',
+ version: '1.0.0',
+ },
+ userAgent:
+ 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36',
+ locale: 'en-US',
+ os: {
+ name: '',
+ version: '',
+ },
+ screen: {
+ density: 2,
+ },
+ campaign: {
+ name: 'sampleName',
+ source: 'sampleSource',
+ medium: 'sampleMedium',
+ content: 'sampleContent',
+ term: 'sampleTerm',
+ },
+ },
+ type: 'track',
+ messageId: 'ec5481b6-a926-4d2e-b293-0b3a77c4d3be',
+ originalTimestamp: '2019-10-14T11:15:18.300Z',
+ anonymousId: '00000000000000000000000000',
+ userId: '12345',
+ event: 'campaign test',
+ properties: {
+ testDimension: true,
+ testMetric: true,
+ },
+ integrations: {
+ All: true,
+ },
+ sentAt: '2019-10-14T11:15:53.296Z',
+ },
+ destination: {
+ Config: {
+ trackingID: 'UA-165994240-1',
+ doubleClick: true,
+ enhancedLinkAttribution: true,
+ classic: true,
+ ignoredReferrers: '',
+ serverClassic: false,
+ includeSearch: true,
+ trackCategorizedPages: true,
+ trackNamedPages: true,
+ sampleRate: '100',
+ siteSpeedSampleRate: '1',
+ setAllMappedProps: true,
+ enableServerSideIdentify: true,
+ serverSideIdentifyEventCategory: 'cat1',
+ serverSideIdentifyEventAction: 'action1',
+ domain: 'domain',
+ enhancedEcommerce: true,
+ nonInteraction: true,
+ optimize: 'abc123',
+ sendUserId: true,
+ useGoogleAmpClientId: true,
+ 'web-useNativeSDK': true,
+ dimensions: [
+ {
+ from: 'name',
+ to: 'dimension1',
+ },
+ {
+ from: 'custom2',
+ to: 'dimension2',
+ },
+ ],
+ metrics: [
+ {
+ from: 'email',
+ to: 'metric1',
+ },
+ {
+ from: 'trait2',
+ to: 'metric2',
+ },
+ ],
+ resetCustomDimensionsOnPage: [
+ {
+ resetCustomDimensionsOnPage: 'abc',
+ },
+ {
+ resetCustomDimensionsOnPage: 'xyz',
+ },
+ ],
+ contentGroupings: [
+ {
+ from: 'plan',
+ to: 'contentGroup1',
+ },
+ {
+ from: 'prop2',
+ to: 'contentGroup2',
+ },
+ ],
+ },
+ Enabled: true,
+ },
+ },
+ ],
+ },
+ },
+ output: {
+ response: {
+ status: 200,
+ body: [
+ {
+ output: {
+ version: '1',
+ type: 'REST',
+ method: 'POST',
+ endpoint: 'https://www.google-analytics.com/collect',
+ headers: {},
+ params: {
+ ul: 'en-US',
+ ec: 'All',
+ ni: 1,
+ v: '1',
+ t: 'event',
+ el: 'event',
+ tid: 'UA-165994240-1',
+ ds: 'web',
+ an: 'RudderLabs JavaScript SDK',
+ av: '1.0.0',
+ aiid: 'com.rudderlabs.javascript',
+ npa: 1,
+ cn: 'sampleName',
+ cs: 'sampleSource',
+ cm: 'sampleMedium',
+ cc: 'sampleContent',
+ ck: 'sampleTerm',
+ cid: '00000000000000000000000000',
+ ea: 'campaign test',
+ ua: 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36',
+ uid: '12345',
+ qt: 124893881700,
+ },
+ body: {
+ JSON: {},
+ XML: {},
+ JSON_ARRAY: {},
+ FORM: {},
+ },
+ files: {},
+ userId: '00000000000000000000000000',
+ },
+ statusCode: 200,
+ },
+ ],
+ },
+ },
+ },
+ {
+ name: 'ga',
+ description: 'Test 27',
+ feature: 'processor',
+ module: 'destination',
+ version: 'v0',
+ input: {
+ request: {
+ body: [
+ {
+ message: {
+ channel: 'web',
+ context: {
+ app: {
+ build: '1.0.0',
+ name: 'RudderLabs JavaScript SDK',
+ namespace: 'com.rudderlabs.javascript',
+ version: '1.0.0',
+ },
+ traits: {
+ email: 'test@rudderstack.com',
+ },
+ library: {
+ name: 'RudderLabs JavaScript SDK',
+ version: '1.0.0',
+ },
+ userAgent:
+ 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36',
+ locale: 'en-US',
+ os: {
+ name: '',
+ version: '',
+ },
+ screen: {
+ density: 2,
+ },
+ campaign: {
+ name: 'sampleName',
+ source: 'sampleSource',
+ medium: 'sampleMedium',
+ content: 'sampleContent',
+ term: 'sampleTerm',
+ },
+ },
+ type: 'track',
+ messageId: 'ec5481b6-a926-4d2e-b293-0b3a77c4d3be',
+ originalTimestamp: '2019-10-14T11:15:18.300Z',
+ anonymousId: '00000000000000000000000000',
+ event: 'campaign test',
+ properties: {
+ testDimension: true,
+ testMetric: true,
+ },
+ integrations: {
+ All: true,
+ },
+ sentAt: '2019-10-14T11:15:53.296Z',
+ },
+ destination: {
+ Config: {
+ trackingID: 'UA-165994240-1',
+ doubleClick: true,
+ enhancedLinkAttribution: true,
+ classic: true,
+ ignoredReferrers: '',
+ serverClassic: false,
+ includeSearch: true,
+ trackCategorizedPages: true,
+ trackNamedPages: true,
+ sampleRate: '100',
+ siteSpeedSampleRate: '1',
+ setAllMappedProps: true,
+ enableServerSideIdentify: true,
+ serverSideIdentifyEventCategory: 'cat1',
+ serverSideIdentifyEventAction: 'action1',
+ domain: 'domain',
+ enhancedEcommerce: true,
+ nonInteraction: true,
+ optimize: 'abc123',
+ sendUserId: true,
+ useGoogleAmpClientId: true,
+ 'web-useNativeSDK': true,
+ dimensions: [
+ {
+ from: 'name',
+ to: 'dimension1',
+ },
+ {
+ from: 'custom2',
+ to: 'dimension2',
+ },
+ ],
+ metrics: [
+ {
+ from: 'email',
+ to: 'metric1',
+ },
+ {
+ from: 'trait2',
+ to: 'metric2',
+ },
+ ],
+ resetCustomDimensionsOnPage: [
+ {
+ resetCustomDimensionsOnPage: 'abc',
+ },
+ {
+ resetCustomDimensionsOnPage: 'xyz',
+ },
+ ],
+ contentGroupings: [
+ {
+ from: 'plan',
+ to: 'contentGroup1',
+ },
+ {
+ from: 'prop2',
+ to: 'contentGroup2',
+ },
+ ],
+ },
+ Enabled: true,
+ },
+ },
+ ],
+ },
+ },
+ output: {
+ response: {
+ status: 200,
+ body: [
+ {
+ output: {
+ version: '1',
+ type: 'REST',
+ method: 'POST',
+ endpoint: 'https://www.google-analytics.com/collect',
+ headers: {},
+ params: {
+ ul: 'en-US',
+ ec: 'All',
+ ni: 1,
+ v: '1',
+ t: 'event',
+ el: 'event',
+ tid: 'UA-165994240-1',
+ ds: 'web',
+ an: 'RudderLabs JavaScript SDK',
+ av: '1.0.0',
+ aiid: 'com.rudderlabs.javascript',
+ npa: 1,
+ cn: 'sampleName',
+ cs: 'sampleSource',
+ cm: 'sampleMedium',
+ cc: 'sampleContent',
+ ck: 'sampleTerm',
+ cid: '00000000000000000000000000',
+ ea: 'campaign test',
+ ua: 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36',
+ qt: 124893881700,
+ },
+ body: {
+ JSON: {},
+ XML: {},
+ JSON_ARRAY: {},
+ FORM: {},
+ },
+ files: {},
+ userId: '00000000000000000000000000',
+ },
+ statusCode: 200,
+ },
+ ],
+ },
+ },
+ },
+ {
+ name: 'ga',
+ description: 'Test 28',
+ feature: 'processor',
+ module: 'destination',
+ version: 'v0',
+ input: {
+ request: {
+ body: [
+ {
+ message: {
+ channel: 'web',
+ context: {
+ app: {
+ build: '1.0.0',
+ name: 'RudderLabs JavaScript SDK',
+ namespace: 'com.rudderlabs.javascript',
+ version: '1.0.0',
+ },
+ traits: {
+ email: 'test@rudderstack.com',
+ },
+ library: {
+ name: 'RudderLabs JavaScript SDK',
+ version: '1.0.0',
+ },
+ userAgent:
+ 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36',
+ locale: 'en-US',
+ os: {
+ name: '',
+ version: '',
+ },
+ screen: {
+ density: 2,
+ },
+ campaign: {
+ name: 'sampleName',
+ source: 'sampleSource',
+ medium: 'sampleMedium',
+ content: 'sampleContent',
+ term: 'sampleTerm',
+ },
+ },
+ type: 'track',
+ messageId: 'ec5481b6-a926-4d2e-b293-0b3a77c4d3be',
+ originalTimestamp: '2019-10-14T11:15:18.300Z',
+ anonymousId: '00000000000000000000000000',
+ event: 'campaign test',
+ properties: {
+ testDimension: true,
+ testMetric: true,
+ },
+ integrations: {
+ All: true,
+ },
+ sentAt: '2019-10-14T11:15:53.296Z',
+ },
+ destination: {
+ Config: {
+ trackingID: 'UA-165994240-1',
+ doubleClick: true,
+ enhancedLinkAttribution: true,
+ classic: true,
+ ignoredReferrers: '',
+ serverClassic: false,
+ includeSearch: true,
+ trackCategorizedPages: true,
+ trackNamedPages: true,
+ sampleRate: '100',
+ siteSpeedSampleRate: '1',
+ setAllMappedProps: true,
+ enableServerSideIdentify: true,
+ serverSideIdentifyEventCategory: 'cat1',
+ domain: 'domain',
+ enhancedEcommerce: true,
+ nonInteraction: true,
+ optimize: 'abc123',
+ sendUserId: true,
+ useGoogleAmpClientId: true,
+ 'web-useNativeSDK': true,
+ dimensions: [
+ {
+ from: 'name',
+ to: 'dimension1',
+ },
+ {
+ from: 'custom2',
+ to: 'dimension2',
+ },
+ ],
+ metrics: [
+ {
+ from: 'email',
+ to: 'metric1',
+ },
+ {
+ from: 'trait2',
+ to: 'metric2',
+ },
+ ],
+ resetCustomDimensionsOnPage: [
+ {
+ resetCustomDimensionsOnPage: 'abc',
+ },
+ {
+ resetCustomDimensionsOnPage: 'xyz',
+ },
+ ],
+ contentGroupings: [
+ {
+ from: 'plan',
+ to: 'contentGroup1',
+ },
+ {
+ from: 'prop2',
+ to: 'contentGroup2',
+ },
+ ],
+ },
+ Enabled: true,
+ },
+ },
+ ],
+ },
+ },
+ output: {
+ response: {
+ status: 200,
+ body: [
+ {
+ output: {
+ version: '1',
+ type: 'REST',
+ method: 'POST',
+ endpoint: 'https://www.google-analytics.com/collect',
+ headers: {},
+ params: {
+ ul: 'en-US',
+ ec: 'All',
+ ni: 1,
+ v: '1',
+ t: 'event',
+ el: 'event',
+ tid: 'UA-165994240-1',
+ ds: 'web',
+ an: 'RudderLabs JavaScript SDK',
+ av: '1.0.0',
+ aiid: 'com.rudderlabs.javascript',
+ npa: 1,
+ cn: 'sampleName',
+ cs: 'sampleSource',
+ cm: 'sampleMedium',
+ cc: 'sampleContent',
+ ck: 'sampleTerm',
+ cid: '00000000000000000000000000',
+ ea: 'campaign test',
+ ua: 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36',
+ qt: 124893881700,
+ },
+ body: {
+ JSON: {},
+ XML: {},
+ JSON_ARRAY: {},
+ FORM: {},
+ },
+ files: {},
+ userId: '00000000000000000000000000',
+ },
+ statusCode: 200,
+ },
+ ],
+ },
+ },
+ },
+ {
+ name: 'ga',
+ description: 'Test 29',
+ feature: 'processor',
+ module: 'destination',
+ version: 'v0',
+ input: {
+ request: {
+ body: [
+ {
+ message: {
+ channel: 'web',
+ context: {
+ app: {
+ build: '1.0.0',
+ name: 'RudderLabs JavaScript SDK',
+ namespace: 'com.rudderlabs.javascript',
+ version: '1.1.2',
+ },
+ traits: {
+ abc: '1234',
+ },
+ library: {
+ name: 'RudderLabs JavaScript SDK',
+ version: '1.1.2',
+ },
+ userAgent:
+ 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/83.0.4103.97 Safari/537.36',
+ locale: 'en-GB',
+ os: {
+ name: '',
+ version: '',
+ },
+ screen: {
+ density: 2,
+ },
+ page: {
+ path: '/tests/html/ecomm_test.html',
+ referrer: 'http://0.0.0.0:1112/tests/html/',
+ search: '',
+ title: 'GA Ecommerce Test',
+ url: 'http://0.0.0.0:1112/tests/html/ecomm_test.html',
+ },
+ },
+ type: 'identify',
+ messageId: 'bc8a6af8-37fd-46a9-9592-ea29a256435f',
+ originalTimestamp: '2020-06-22T11:30:32.493Z',
+ anonymousId: '38e169a1-3234-46f7-9ceb-c1a6a69005fe',
+ userId: '123',
+ integrations: {
+ All: true,
+ },
+ sentAt: '2020-06-22T11:30:32.494Z',
+ },
+ destination: {
+ Config: {
+ trackingID: 'UA-165994240-1',
+ doubleClick: true,
+ enhancedLinkAttribution: true,
+ classic: true,
+ ignoredReferrers: '',
+ serverClassic: false,
+ includeSearch: true,
+ trackCategorizedPages: true,
+ trackNamedPages: true,
+ sampleRate: '100',
+ siteSpeedSampleRate: '1',
+ setAllMappedProps: true,
+ enableServerSideIdentify: true,
+ serverSideIdentifyEventCategory: 'cat1',
+ domain: 'domain',
+ enhancedEcommerce: true,
+ nonInteraction: true,
+ optimize: 'abc123',
+ sendUserId: true,
+ useGoogleAmpClientId: true,
+ 'web-useNativeSDK': true,
+ dimensions: [
+ {
+ from: 'name',
+ to: 'dimension1',
+ },
+ {
+ from: 'custom2',
+ to: 'dimension2',
+ },
+ ],
+ metrics: [
+ {
+ from: 'email',
+ to: 'metric1',
+ },
+ {
+ from: 'trait2',
+ to: 'metric2',
+ },
+ ],
+ resetCustomDimensionsOnPage: [
+ {
+ resetCustomDimensionsOnPage: 'abc',
+ },
+ {
+ resetCustomDimensionsOnPage: 'xyz',
+ },
+ ],
+ contentGroupings: [
+ {
+ from: 'plan',
+ to: 'contentGroup1',
+ },
+ {
+ from: 'prop2',
+ to: 'contentGroup2',
+ },
+ ],
+ },
+ Enabled: true,
+ },
+ },
+ ],
+ },
+ },
+ output: {
+ response: {
+ status: 200,
+ body: [
+ {
+ output: {
+ version: '1',
+ type: 'REST',
+ method: 'POST',
+ endpoint: 'https://www.google-analytics.com/collect',
+ headers: {},
+ params: {
+ ea: 'User Enriched',
+ dt: 'GA Ecommerce Test',
+ ec: 'All',
+ v: '1',
+ t: 'event',
+ tid: 'UA-165994240-1',
+ ds: 'web',
+ an: 'RudderLabs JavaScript SDK',
+ av: '1.1.2',
+ aiid: 'com.rudderlabs.javascript',
+ npa: 1,
+ uid: '123',
+ cid: '38e169a1-3234-46f7-9ceb-c1a6a69005fe',
+ ni: 1,
+ ua: 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/83.0.4103.97 Safari/537.36',
+ ul: 'en-GB',
+ qt: 103120167507,
+ },
+ body: {
+ JSON: {},
+ XML: {},
+ JSON_ARRAY: {},
+ FORM: {},
+ },
+ files: {},
+ userId: '38e169a1-3234-46f7-9ceb-c1a6a69005fe',
+ },
+ statusCode: 200,
+ },
+ ],
+ },
+ },
+ },
+ {
+ name: 'ga',
+ description: 'Test 30',
+ feature: 'processor',
+ module: 'destination',
+ version: 'v0',
+ input: {
+ request: {
+ body: [
+ {
+ message: {
+ channel: 'web',
+ context: {
+ app: {
+ build: '1.0.0',
+ name: 'RudderLabs JavaScript SDK',
+ namespace: 'com.rudderlabs.javascript',
+ version: '1.0.0',
+ },
+ traits: {
+ email: 'test@rudderstack.com',
+ },
+ library: {
+ name: 'RudderLabs JavaScript SDK',
+ version: '1.0.0',
+ },
+ userAgent:
+ 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36',
+ locale: 'en-US',
+ ip: '0.0.0.0',
+ os: {
+ name: '',
+ version: '',
+ },
+ screen: {
+ density: 2,
+ },
+ },
+ type: 'page',
+ messageId: '5e10d13a-bf9a-44bf-b884-43a9e591ea71',
+ originalTimestamp: '2019-10-14T11:15:18.299Z',
+ anonymousId: '00000000000000000000000000',
+ userId: '12345',
+ integrations: {
+ All: true,
+ },
+ name: 'ApplicationLoaded',
+ sentAt: '2019-10-14T11:15:53.296Z',
+ },
+ destination: {
+ Config: {
+ trackingID: 'UA-165994240-1',
+ doubleClick: true,
+ enhancedLinkAttribution: true,
+ classic: true,
+ ignoredReferrers: '',
+ serverClassic: false,
+ includeSearch: true,
+ trackCategorizedPages: true,
+ trackNamedPages: true,
+ sampleRate: '100',
+ siteSpeedSampleRate: '1',
+ setAllMappedProps: true,
+ enableServerSideIdentify: true,
+ serverSideIdentifyEventCategory: 'cat1',
+ serverSideIdentifyEventAction: 'action1',
+ anonymizeIp: true,
+ domain: 'domain',
+ enhancedEcommerce: true,
+ nonInteraction: true,
+ optimize: 'abc123',
+ sendUserId: true,
+ useGoogleAmpClientId: true,
+ 'web-useNativeSDK': true,
+ dimensions: [
+ {
+ from: 'name',
+ to: 'dimension1',
+ },
+ {
+ from: 'custom2',
+ to: 'dimension2',
+ },
+ ],
+ metrics: [
+ {
+ from: 'email',
+ to: 'metric1',
+ },
+ {
+ from: 'trait2',
+ to: 'metric2',
+ },
+ ],
+ resetCustomDimensionsOnPage: [
+ {
+ resetCustomDimensionsOnPage: 'abc',
+ },
+ {
+ resetCustomDimensionsOnPage: 'xyz',
+ },
+ ],
+ contentGroupings: [
+ {
+ from: 'plan',
+ to: 'contentGroup1',
+ },
+ {
+ from: 'prop2',
+ to: 'contentGroup2',
+ },
+ ],
+ },
+ Enabled: true,
+ },
+ },
+ ],
+ },
+ },
+ output: {
+ response: {
+ status: 200,
+ body: [
+ {
+ output: {
+ version: '1',
+ type: 'REST',
+ method: 'POST',
+ endpoint: 'https://www.google-analytics.com/collect',
+ headers: {},
+ params: {
+ v: '1',
+ t: 'pageview',
+ tid: 'UA-165994240-1',
+ ds: 'web',
+ an: 'RudderLabs JavaScript SDK',
+ av: '1.0.0',
+ aiid: 'com.rudderlabs.javascript',
+ npa: 1,
+ aip: 1,
+ cid: '00000000000000000000000000',
+ ua: 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36',
+ uid: '12345',
+ ul: 'en-US',
+ uip: '0.0.0.0',
+ qt: 124893881701,
+ },
+ body: {
+ JSON: {},
+ XML: {},
+ JSON_ARRAY: {},
+ FORM: {},
+ },
+ files: {},
+ userId: '00000000000000000000000000',
+ },
+ statusCode: 200,
+ },
+ ],
+ },
+ },
+ },
+ {
+ name: 'ga',
+ description: 'Test 31',
+ feature: 'processor',
+ module: 'destination',
+ version: 'v0',
+ input: {
+ request: {
+ body: [
+ {
+ message: {
+ channel: 'web',
+ context: {
+ app: {
+ build: '1.0.0',
+ name: 'RudderLabs JavaScript SDK',
+ namespace: 'com.rudderlabs.javascript',
+ version: '1.0.0',
+ },
+ traits: {
+ email: 'test@rudderstack.com',
+ },
+ library: {
+ name: 'RudderLabs JavaScript SDK',
+ version: '1.0.0',
+ },
+ userAgent:
+ 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36',
+ locale: 'en-US',
+ ip: '0.0.0.0',
+ os: {
+ name: '',
+ version: '',
+ },
+ screen: {
+ density: 2,
+ },
+ },
+ type: 'page',
+ messageId: '5e10d13a-bf9a-44bf-b884-43a9e591ea71',
+ originalTimestamp: '2019-10-14T11:15:18.299Z',
+ anonymousId: '00000000000000000000000000',
+ userId: '12345',
+ properties: {
+ path: '/abc',
+ referrer: '',
+ search: '?xyz=1',
+ title: '',
+ url: 'https://www.example.com/abc',
+ },
+ integrations: {
+ All: true,
+ },
+ name: 'ApplicationLoaded',
+ sentAt: '2019-10-14T11:15:53.296Z',
+ },
+ destination: {
+ Config: {
+ trackingID: 'UA-165994240-1',
+ doubleClick: true,
+ enhancedLinkAttribution: true,
+ classic: true,
+ ignoredReferrers: '',
+ serverClassic: false,
+ includeSearch: true,
+ trackCategorizedPages: true,
+ trackNamedPages: true,
+ sampleRate: '100',
+ siteSpeedSampleRate: '1',
+ setAllMappedProps: true,
+ enableServerSideIdentify: true,
+ serverSideIdentifyEventCategory: 'cat1',
+ serverSideIdentifyEventAction: 'action1',
+ anonymizeIp: true,
+ domain: 'domain',
+ enhancedEcommerce: true,
+ nonInteraction: true,
+ optimize: 'abc123',
+ sendUserId: true,
+ useGoogleAmpClientId: true,
+ 'web-useNativeSDK': true,
+ dimensions: [
+ {
+ from: 'name',
+ to: 'dimension1',
+ },
+ {
+ from: 'custom2',
+ to: 'dimension2',
+ },
+ ],
+ metrics: [
+ {
+ from: 'email',
+ to: 'metric1',
+ },
+ {
+ from: 'trait2',
+ to: 'metric2',
+ },
+ ],
+ resetCustomDimensionsOnPage: [
+ {
+ resetCustomDimensionsOnPage: 'abc',
+ },
+ {
+ resetCustomDimensionsOnPage: 'xyz',
+ },
+ ],
+ contentGroupings: [
+ {
+ from: 'plan',
+ to: 'contentGroup1',
+ },
+ {
+ from: 'prop2',
+ to: 'contentGroup2',
+ },
+ ],
+ },
+ Enabled: true,
+ },
+ },
+ ],
+ },
+ },
+ output: {
+ response: {
+ status: 200,
+ body: [
+ {
+ output: {
+ version: '1',
+ type: 'REST',
+ method: 'POST',
+ endpoint: 'https://www.google-analytics.com/collect',
+ headers: {},
+ params: {
+ v: '1',
+ t: 'pageview',
+ tid: 'UA-165994240-1',
+ ds: 'web',
+ an: 'RudderLabs JavaScript SDK',
+ av: '1.0.0',
+ aiid: 'com.rudderlabs.javascript',
+ npa: 1,
+ aip: 1,
+ cid: '00000000000000000000000000',
+ ua: 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36',
+ uid: '12345',
+ ul: 'en-US',
+ uip: '0.0.0.0',
+ dh: 'www.example.com',
+ dl: 'https://www.example.com/abc',
+ dp: '%2Fabc%3Fxyz%3D1',
+ qt: 124893881701,
+ },
+ body: {
+ JSON: {},
+ XML: {},
+ JSON_ARRAY: {},
+ FORM: {},
+ },
+ files: {},
+ userId: '00000000000000000000000000',
+ },
+ statusCode: 200,
+ },
+ ],
+ },
+ },
+ },
+ {
+ name: 'ga',
+ description: 'Test 32',
+ feature: 'processor',
+ module: 'destination',
+ version: 'v0',
+ input: {
+ request: {
+ body: [
+ {
+ message: {
+ channel: 'web',
+ context: {
+ app: {
+ build: '1.0.0',
+ name: 'RudderLabs JavaScript SDK',
+ namespace: 'com.rudderlabs.javascript',
+ version: '1.0.0',
+ },
+ traits: {
+ email: 'test@rudderstack.com',
+ },
+ library: {
+ name: 'RudderLabs JavaScript SDK',
+ version: '1.0.0',
+ },
+ userAgent:
+ 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36',
+ locale: 'en-US',
+ ip: '0.0.0.0',
+ os: {
+ name: '',
+ version: '',
+ },
+ screen: {
+ density: 2,
+ },
+ },
+ type: 'track',
+ messageId: '5e10d13a-bf9a-44bf-b884-43a9e591ea71',
+ originalTimestamp: '2019-10-14T11:15:18.299Z',
+ anonymousId: '00000000000000000000000000',
+ userId: '12345',
+ integrations: {
+ All: true,
+ },
+ event: 'sample event',
+ sentAt: '2019-10-14T11:15:53.296Z',
+ },
+ destination: {
+ Config: {
+ trackingID: 'UA-165994240-1',
+ doubleClick: true,
+ enhancedLinkAttribution: true,
+ classic: true,
+ ignoredReferrers: '',
+ serverClassic: false,
+ includeSearch: true,
+ trackCategorizedPages: true,
+ trackNamedPages: true,
+ sampleRate: '100',
+ siteSpeedSampleRate: '1',
+ setAllMappedProps: true,
+ enableServerSideIdentify: true,
+ serverSideIdentifyEventCategory: 'cat1',
+ serverSideIdentifyEventAction: 'action1',
+ anonymizeIp: true,
+ domain: 'domain',
+ nonInteraction: true,
+ optimize: 'abc123',
+ sendUserId: true,
+ useGoogleAmpClientId: true,
+ 'web-useNativeSDK': true,
+ dimensions: [
+ {
+ from: 'name',
+ to: 'dimension1',
+ },
+ {
+ from: 'custom2',
+ to: 'dimension2',
+ },
+ ],
+ metrics: [
+ {
+ from: 'email',
+ to: 'metric1',
+ },
+ {
+ from: 'trait2',
+ to: 'metric2',
+ },
+ ],
+ resetCustomDimensionsOnPage: [
+ {
+ resetCustomDimensionsOnPage: 'abc',
+ },
+ {
+ resetCustomDimensionsOnPage: 'xyz',
+ },
+ ],
+ contentGroupings: [
+ {
+ from: 'plan',
+ to: 'contentGroup1',
+ },
+ {
+ from: 'prop2',
+ to: 'contentGroup2',
+ },
+ ],
+ },
+ Enabled: true,
+ },
+ },
+ ],
+ },
+ },
+ output: {
+ response: {
+ status: 200,
+ body: [
+ {
+ output: {
+ version: '1',
+ type: 'REST',
+ method: 'POST',
+ endpoint: 'https://www.google-analytics.com/collect',
+ headers: {},
+ params: {
+ ec: 'All',
+ ni: 1,
+ v: '1',
+ t: 'event',
+ el: 'event',
+ tid: 'UA-165994240-1',
+ ds: 'web',
+ an: 'RudderLabs JavaScript SDK',
+ av: '1.0.0',
+ aiid: 'com.rudderlabs.javascript',
+ npa: 1,
+ aip: 1,
+ cid: '00000000000000000000000000',
+ ea: 'sample event',
+ ua: 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36',
+ uid: '12345',
+ ul: 'en-US',
+ uip: '0.0.0.0',
+ qt: 124893881701,
+ },
+ body: {
+ JSON: {},
+ XML: {},
+ JSON_ARRAY: {},
+ FORM: {},
+ },
+ files: {},
+ userId: '00000000000000000000000000',
+ },
+ statusCode: 200,
+ },
+ ],
+ },
+ },
+ },
+ {
+ name: 'ga',
+ description: 'Test 33',
+ feature: 'processor',
+ module: 'destination',
+ version: 'v0',
+ input: {
+ request: {
+ body: [
+ {
+ message: {
+ channel: 'web',
+ context: {
+ app: {
+ build: '1.0.0',
+ name: 'RudderLabs JavaScript SDK',
+ namespace: 'com.rudderlabs.javascript',
+ version: '1.0.0',
+ },
+ traits: {
+ email: 'test@rudderstack.com',
+ },
+ library: {
+ name: 'RudderLabs JavaScript SDK',
+ version: '1.0.0',
+ },
+ userAgent:
+ 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36',
+ locale: 'en-US',
+ os: {
+ name: '',
+ version: '',
+ },
+ screen: {
+ density: 2,
+ },
+ },
+ type: 'track',
+ messageId: 'ec5481b6-a926-4d2e-b293-0b3a77c4d3be',
+ originalTimestamp: '2019-10-14T11:15:18.300Z',
+ anonymousId: '00000000000000000000000000',
+ userId: '12345',
+ event: 'Order Refunded',
+ properties: {
+ order_id: 'rudderstackorder1',
+ total: 99.99,
+ shipping: 13.99,
+ tax: 20.99,
+ currency: 'INR',
+ products: [
+ {
+ quantity: 1,
+ price: 24.75,
+ name: 'my product',
+ sku: 'p-298',
+ },
+ {
+ quantity: 3,
+ price: 24.75,
+ name: 'other product',
+ sku: 'p-299',
+ },
+ ],
+ },
+ integrations: {
+ All: true,
+ },
+ sentAt: '2019-10-14T11:15:53.296Z',
+ },
+ destination: {
+ Config: {
+ trackingID: 'UA-165994240-1',
+ doubleClick: true,
+ enhancedLinkAttribution: true,
+ classic: true,
+ ignoredReferrers: '',
+ serverClassic: false,
+ includeSearch: true,
+ trackCategorizedPages: true,
+ trackNamedPages: true,
+ sampleRate: '100',
+ siteSpeedSampleRate: '1',
+ setAllMappedProps: true,
+ enableServerSideIdentify: true,
+ serverSideIdentifyEventCategory: 'cat1',
+ serverSideIdentifyEventAction: 'action1',
+ anonymizeIp: true,
+ domain: 'domain',
+ enhancedEcommerce: true,
+ nonInteraction: true,
+ optimize: 'abc123',
+ sendUserId: true,
+ useGoogleAmpClientId: true,
+ 'web-useNativeSDK': true,
+ dimensions: [
+ {
+ from: 'name',
+ to: 'dimension1',
+ },
+ {
+ from: 'custom2',
+ to: 'dimension2',
+ },
+ ],
+ metrics: [
+ {
+ from: 'email',
+ to: 'metric1',
+ },
+ {
+ from: 'trait2',
+ to: 'metric2',
+ },
+ ],
+ resetCustomDimensionsOnPage: [
+ {
+ resetCustomDimensionsOnPage: 'abc',
+ },
+ {
+ resetCustomDimensionsOnPage: 'xyz',
+ },
+ ],
+ contentGroupings: [
+ {
+ from: 'plan',
+ to: 'contentGroup1',
+ },
+ {
+ from: 'prop2',
+ to: 'contentGroup2',
+ },
+ ],
+ },
+ Enabled: true,
+ },
+ },
+ ],
+ },
+ },
+ output: {
+ response: {
+ status: 200,
+ body: [
+ {
+ output: {
+ version: '1',
+ type: 'REST',
+ method: 'POST',
+ endpoint: 'https://www.google-analytics.com/collect',
+ headers: {},
+ params: {
+ pa: 'refund',
+ ev: 100,
+ pr1id: 'p-298',
+ pr1cd1: 'my product',
+ pr1nm: 'my product',
+ pr1pr: 24.75,
+ pr1qt: 1,
+ pr2id: 'p-299',
+ pr2cd1: 'other product',
+ pr2nm: 'other product',
+ pr2pr: 24.75,
+ pr2qt: 3,
+ ea: 'Order Refunded',
+ ec: 'EnhancedEcommerce',
+ v: '1',
+ t: 'event',
+ el: 'event',
+ tid: 'UA-165994240-1',
+ ds: 'web',
+ an: 'RudderLabs JavaScript SDK',
+ av: '1.0.0',
+ aiid: 'com.rudderlabs.javascript',
+ npa: 1,
+ aip: 1,
+ ua: 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36',
+ cid: '00000000000000000000000000',
+ ti: 'rudderstackorder1',
+ uid: '12345',
+ ul: 'en-US',
+ ni: 1,
+ qt: 124893881700,
+ },
+ body: {
+ JSON: {},
+ XML: {},
+ JSON_ARRAY: {},
+ FORM: {},
+ },
+ files: {},
+ userId: '00000000000000000000000000',
+ },
+ statusCode: 200,
+ },
+ ],
+ },
+ },
+ },
+ {
+ name: 'ga',
+ description: 'Test 34',
+ feature: 'processor',
+ module: 'destination',
+ version: 'v0',
+ input: {
+ request: {
+ body: [
+ {
+ message: {
+ channel: 'web',
+ context: {
+ app: {
+ build: '1.0.0',
+ name: 'RudderLabs JavaScript SDK',
+ namespace: 'com.rudderlabs.javascript',
+ version: '1.0.0',
+ },
+ traits: {
+ email: 'test@rudderstack.com',
+ },
+ library: {
+ name: 'RudderLabs JavaScript SDK',
+ version: '1.0.0',
+ },
+ userAgent:
+ 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36',
+ locale: 'en-US',
+ os: {
+ name: '',
+ version: '',
+ },
+ screen: {
+ density: 2,
+ },
+ },
+ type: 'track',
+ messageId: 'ec5481b6-a926-4d2e-b293-0b3a77c4d3be',
+ originalTimestamp: '2019-10-14T11:15:18.300Z',
+ anonymousId: '00000000000000000000000000',
+ userId: '12345',
+ event: 'Order Refunded',
+ properties: {
+ order_id: 'rudderstackorder1',
+ total: 99.99,
+ shipping: 13.99,
+ tax: 20.99,
+ currency: 'INR',
+ },
+ integrations: {
+ All: true,
+ },
+ sentAt: '2019-10-14T11:15:53.296Z',
+ },
+ destination: {
+ Config: {
+ trackingID: 'UA-165994240-1',
+ doubleClick: true,
+ enhancedLinkAttribution: true,
+ classic: true,
+ ignoredReferrers: '',
+ serverClassic: false,
+ includeSearch: true,
+ trackCategorizedPages: true,
+ trackNamedPages: true,
+ sampleRate: '100',
+ siteSpeedSampleRate: '1',
+ setAllMappedProps: true,
+ enableServerSideIdentify: true,
+ serverSideIdentifyEventCategory: 'cat1',
+ serverSideIdentifyEventAction: 'action1',
+ anonymizeIp: true,
+ domain: 'domain',
+ enhancedEcommerce: true,
+ nonInteraction: true,
+ optimize: 'abc123',
+ sendUserId: true,
+ useGoogleAmpClientId: true,
+ 'web-useNativeSDK': true,
+ dimensions: [
+ {
+ from: 'name',
+ to: 'dimension1',
+ },
+ {
+ from: 'custom2',
+ to: 'dimension2',
+ },
+ ],
+ metrics: [
+ {
+ from: 'email',
+ to: 'metric1',
+ },
+ {
+ from: 'trait2',
+ to: 'metric2',
+ },
+ ],
+ resetCustomDimensionsOnPage: [
+ {
+ resetCustomDimensionsOnPage: 'abc',
+ },
+ {
+ resetCustomDimensionsOnPage: 'xyz',
+ },
+ ],
+ contentGroupings: [
+ {
+ from: 'plan',
+ to: 'contentGroup1',
+ },
+ {
+ from: 'prop2',
+ to: 'contentGroup2',
+ },
+ ],
+ },
+ Enabled: true,
+ },
+ },
+ ],
+ },
+ },
+ output: {
+ response: {
+ status: 200,
+ body: [
+ {
+ output: {
+ version: '1',
+ type: 'REST',
+ method: 'POST',
+ endpoint: 'https://www.google-analytics.com/collect',
+ headers: {},
+ params: {
+ ev: 100,
+ pa: 'refund',
+ ti: 'rudderstackorder1',
+ ea: 'Order Refunded',
+ ec: 'EnhancedEcommerce',
+ v: '1',
+ t: 'event',
+ el: 'event',
+ tid: 'UA-165994240-1',
+ ds: 'web',
+ an: 'RudderLabs JavaScript SDK',
+ av: '1.0.0',
+ aiid: 'com.rudderlabs.javascript',
+ npa: 1,
+ aip: 1,
+ ua: 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36',
+ cid: '00000000000000000000000000',
+ uid: '12345',
+ ul: 'en-US',
+ ni: 1,
+ qt: 124893881700,
+ },
+ body: {
+ JSON: {},
+ XML: {},
+ JSON_ARRAY: {},
+ FORM: {},
+ },
+ files: {},
+ userId: '00000000000000000000000000',
+ },
+ statusCode: 200,
+ },
+ ],
+ },
+ },
+ },
+ {
+ name: 'ga',
+ description: 'Test 35',
+ feature: 'processor',
+ module: 'destination',
+ version: 'v0',
+ input: {
+ request: {
+ body: [
+ {
+ message: {
+ channel: 'web',
+ context: {
+ app: {
+ build: '1.0.0',
+ name: 'RudderLabs JavaScript SDK',
+ namespace: 'com.rudderlabs.javascript',
+ version: '1.0.0',
+ },
+ traits: {
+ email: 'test@rudderstack.com',
+ },
+ library: {
+ name: 'RudderLabs JavaScript SDK',
+ version: '1.0.0',
+ },
+ userAgent:
+ 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36',
+ locale: 'en-US',
+ os: {
+ name: '',
+ version: '',
+ },
+ screen: {
+ density: 2,
+ },
+ },
+ type: 'track',
+ messageId: 'ec5481b6-a926-4d2e-b293-0b3a77c4d3be',
+ originalTimestamp: '2019-10-14T11:15:18.300Z',
+ anonymousId: '00000000000000000000000000',
+ userId: '12345',
+ event: 'Order Refunded',
+ properties: {
+ order_id: 'rudderstackorder1',
+ total: 99.99,
+ shipping: 13.99,
+ tax: 20.99,
+ currency: 'INR',
+ products: [],
+ },
+ integrations: {
+ All: true,
+ },
+ sentAt: '2019-10-14T11:15:53.296Z',
+ },
+ destination: {
+ Config: {
+ trackingID: 'UA-165994240-1',
+ doubleClick: true,
+ enhancedLinkAttribution: true,
+ classic: true,
+ ignoredReferrers: '',
+ serverClassic: false,
+ includeSearch: true,
+ trackCategorizedPages: true,
+ trackNamedPages: true,
+ sampleRate: '100',
+ siteSpeedSampleRate: '1',
+ setAllMappedProps: true,
+ enableServerSideIdentify: true,
+ serverSideIdentifyEventCategory: 'cat1',
+ serverSideIdentifyEventAction: 'action1',
+ anonymizeIp: true,
+ domain: 'domain',
+ enhancedEcommerce: true,
+ nonInteraction: true,
+ optimize: 'abc123',
+ sendUserId: true,
+ useGoogleAmpClientId: true,
+ 'web-useNativeSDK': true,
+ dimensions: [
+ {
+ from: 'name',
+ to: 'dimension1',
+ },
+ {
+ from: 'custom2',
+ to: 'dimension2',
+ },
+ ],
+ metrics: [
+ {
+ from: 'email',
+ to: 'metric1',
+ },
+ {
+ from: 'trait2',
+ to: 'metric2',
+ },
+ ],
+ resetCustomDimensionsOnPage: [
+ {
+ resetCustomDimensionsOnPage: 'abc',
+ },
+ {
+ resetCustomDimensionsOnPage: 'xyz',
+ },
+ ],
+ contentGroupings: [
+ {
+ from: 'plan',
+ to: 'contentGroup1',
+ },
+ {
+ from: 'prop2',
+ to: 'contentGroup2',
+ },
+ ],
+ },
+ Enabled: true,
+ },
+ },
+ ],
+ },
+ },
+ output: {
+ response: {
+ status: 200,
+ body: [
+ {
+ output: {
+ version: '1',
+ type: 'REST',
+ method: 'POST',
+ endpoint: 'https://www.google-analytics.com/collect',
+ headers: {},
+ params: {
+ ev: 100,
+ pa: 'refund',
+ ti: 'rudderstackorder1',
+ ea: 'Order Refunded',
+ ec: 'EnhancedEcommerce',
+ v: '1',
+ t: 'event',
+ el: 'event',
+ tid: 'UA-165994240-1',
+ ds: 'web',
+ an: 'RudderLabs JavaScript SDK',
+ av: '1.0.0',
+ aiid: 'com.rudderlabs.javascript',
+ npa: 1,
+ aip: 1,
+ ua: 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36',
+ cid: '00000000000000000000000000',
+ uid: '12345',
+ ul: 'en-US',
+ ni: 1,
+ qt: 124893881700,
+ },
+ body: {
+ JSON: {},
+ XML: {},
+ JSON_ARRAY: {},
+ FORM: {},
+ },
+ files: {},
+ userId: '00000000000000000000000000',
+ },
+ statusCode: 200,
+ },
+ ],
+ },
+ },
+ },
+ {
+ name: 'ga',
+ description: 'Test 36',
+ feature: 'processor',
+ module: 'destination',
+ version: 'v0',
+ input: {
+ request: {
+ body: [
+ {
+ message: {
+ channel: 'web',
+ context: {
+ app: {
+ build: '1.0.0',
+ name: 'RudderLabs JavaScript SDK',
+ namespace: 'com.rudderlabs.javascript',
+ version: '1.0.0',
+ },
+ traits: {
+ email: 'test@rudderstack.com',
+ },
+ library: {
+ name: 'RudderLabs JavaScript SDK',
+ version: '1.0.0',
+ },
+ userAgent:
+ 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36',
+ locale: 'en-US',
+ os: {
+ name: '',
+ version: '',
+ },
+ screen: {
+ density: 2,
+ },
+ },
+ type: 'track',
+ messageId: 'ec5481b6-a926-4d2e-b293-0b3a77c4d3be',
+ originalTimestamp: '2019-10-14T11:15:18.300Z',
+ anonymousId: '00000000000000000000000000',
+ userId: '12345',
+ event: 'Order Refunded',
+ properties: {
+ order_id: 'rudderstackorder1',
+ total: 99.99,
+ shipping: 13.99,
+ tax: 20.99,
+ currency: 'INR',
+ products: [
+ {
+ quantity: 1,
+ price: 24.75,
+ name: 'my product',
+ sku: 'p-298',
+ product_id: '1',
+ },
+ {
+ quantity: 3,
+ price: 24.75,
+ name: 'other product',
+ sku: 'p-299',
+ product_id: '2',
+ },
+ ],
+ },
+ integrations: {
+ All: true,
+ },
+ sentAt: '2019-10-14T11:15:53.296Z',
+ },
+ destination: {
+ Config: {
+ trackingID: 'UA-165994240-1',
+ doubleClick: true,
+ enhancedLinkAttribution: true,
+ classic: true,
+ ignoredReferrers: '',
+ serverClassic: false,
+ includeSearch: true,
+ trackCategorizedPages: true,
+ trackNamedPages: true,
+ sampleRate: '100',
+ siteSpeedSampleRate: '1',
+ setAllMappedProps: true,
+ enableServerSideIdentify: true,
+ serverSideIdentifyEventCategory: 'cat1',
+ serverSideIdentifyEventAction: 'action1',
+ anonymizeIp: true,
+ domain: 'domain',
+ enhancedEcommerce: true,
+ nonInteraction: true,
+ optimize: 'abc123',
+ sendUserId: true,
+ useGoogleAmpClientId: true,
+ 'web-useNativeSDK': true,
+ dimensions: [
+ {
+ from: 'name',
+ to: 'dimension1',
+ },
+ {
+ from: 'custom2',
+ to: 'dimension2',
+ },
+ ],
+ metrics: [
+ {
+ from: 'email',
+ to: 'metric1',
+ },
+ {
+ from: 'trait2',
+ to: 'metric2',
+ },
+ ],
+ resetCustomDimensionsOnPage: [
+ {
+ resetCustomDimensionsOnPage: 'abc',
+ },
+ {
+ resetCustomDimensionsOnPage: 'xyz',
+ },
+ ],
+ contentGroupings: [
+ {
+ from: 'plan',
+ to: 'contentGroup1',
+ },
+ {
+ from: 'prop2',
+ to: 'contentGroup2',
+ },
+ ],
+ },
+ Enabled: true,
+ },
+ },
+ ],
+ },
+ },
+ output: {
+ response: {
+ status: 200,
+ body: [
+ {
+ output: {
+ version: '1',
+ type: 'REST',
+ method: 'POST',
+ endpoint: 'https://www.google-analytics.com/collect',
+ headers: {},
+ params: {
+ ev: 100,
+ pa: 'refund',
+ pr1id: '1',
+ pr1cd1: 'my product',
+ pr1nm: 'my product',
+ pr1pr: 24.75,
+ pr1qt: 1,
+ pr2id: '2',
+ pr2cd1: 'other product',
+ pr2nm: 'other product',
+ pr2pr: 24.75,
+ pr2qt: 3,
+ ea: 'Order Refunded',
+ ec: 'EnhancedEcommerce',
+ v: '1',
+ t: 'event',
+ el: 'event',
+ tid: 'UA-165994240-1',
+ ds: 'web',
+ an: 'RudderLabs JavaScript SDK',
+ av: '1.0.0',
+ aiid: 'com.rudderlabs.javascript',
+ npa: 1,
+ aip: 1,
+ ua: 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36',
+ cid: '00000000000000000000000000',
+ ti: 'rudderstackorder1',
+ uid: '12345',
+ ul: 'en-US',
+ ni: 1,
+ qt: 124893881700,
+ },
+ body: {
+ JSON: {},
+ XML: {},
+ JSON_ARRAY: {},
+ FORM: {},
+ },
+ files: {},
+ userId: '00000000000000000000000000',
+ },
+ statusCode: 200,
+ },
+ ],
+ },
+ },
+ },
+ {
+ name: 'ga',
+ description: 'Test 37',
+ feature: 'processor',
+ module: 'destination',
+ version: 'v0',
+ input: {
+ request: {
+ body: [
+ {
+ message: {
+ channel: 'web',
+ context: {
+ app: {
+ build: '1.0.0',
+ name: 'RudderLabs JavaScript SDK',
+ namespace: 'com.rudderlabs.javascript',
+ version: '1.0.0',
+ },
+ traits: {
+ email: 'test@rudderstack.com',
+ },
+ library: {
+ name: 'RudderLabs JavaScript SDK',
+ version: '1.0.0',
+ },
+ userAgent:
+ 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36',
+ locale: 'en-US',
+ os: {
+ name: '',
+ version: '',
+ },
+ screen: {
+ density: 2,
+ },
+ },
+ type: 'track',
+ messageId: 'ec5481b6-a926-4d2e-b293-0b3a77c4d3be',
+ originalTimestamp: '2019-10-14T11:15:18.300Z',
+ anonymousId: '00000000000000000000000000',
+ userId: '12345',
+ event: 'Cart Shared',
+ properties: {
+ order_id: 'rudderstackorder1',
+ total: 99.99,
+ shipping: 13.99,
+ tax: 20.99,
+ currency: 'INR',
+ products: [
+ {
+ quantity: 1,
+ price: 24.75,
+ name: 'my product',
+ sku: 'p-298',
+ product_id: '1',
+ },
+ {
+ quantity: 3,
+ price: 24.75,
+ name: 'other product',
+ sku: 'p-299',
+ product_id: '2',
+ },
+ ],
+ },
+ integrations: {
+ All: true,
+ },
+ sentAt: '2019-10-14T11:15:53.296Z',
+ },
+ destination: {
+ Config: {
+ trackingID: 'UA-165994240-1',
+ doubleClick: true,
+ enhancedLinkAttribution: true,
+ classic: true,
+ ignoredReferrers: '',
+ serverClassic: false,
+ includeSearch: true,
+ trackCategorizedPages: true,
+ trackNamedPages: true,
+ sampleRate: '100',
+ siteSpeedSampleRate: '1',
+ setAllMappedProps: true,
+ enableServerSideIdentify: true,
+ serverSideIdentifyEventCategory: 'cat1',
+ serverSideIdentifyEventAction: 'action1',
+ anonymizeIp: true,
+ domain: 'domain',
+ enhancedEcommerce: true,
+ nonInteraction: true,
+ optimize: 'abc123',
+ sendUserId: true,
+ useGoogleAmpClientId: true,
+ 'web-useNativeSDK': true,
+ dimensions: [
+ {
+ from: 'name',
+ to: 'dimension1',
+ },
+ {
+ from: 'custom2',
+ to: 'dimension2',
+ },
+ ],
+ metrics: [
+ {
+ from: 'email',
+ to: 'metric1',
+ },
+ {
+ from: 'trait2',
+ to: 'metric2',
+ },
+ ],
+ resetCustomDimensionsOnPage: [
+ {
+ resetCustomDimensionsOnPage: 'abc',
+ },
+ {
+ resetCustomDimensionsOnPage: 'xyz',
+ },
+ ],
+ contentGroupings: [
+ {
+ from: 'plan',
+ to: 'contentGroup1',
+ },
+ {
+ from: 'prop2',
+ to: 'contentGroup2',
+ },
+ ],
+ },
+ Enabled: true,
+ },
+ },
+ ],
+ },
+ },
+ output: {
+ response: {
+ status: 200,
+ body: [
+ {
+ output: {
+ version: '1',
+ type: 'REST',
+ method: 'POST',
+ endpoint: 'https://www.google-analytics.com/collect',
+ headers: {},
+ params: {
+ ev: 100,
+ ea: 'Cart Shared',
+ ec: 'All',
+ ni: 1,
+ v: '1',
+ t: 'event',
+ el: 'event',
+ tid: 'UA-165994240-1',
+ ds: 'web',
+ an: 'RudderLabs JavaScript SDK',
+ av: '1.0.0',
+ aiid: 'com.rudderlabs.javascript',
+ npa: 1,
+ aip: 1,
+ cid: '00000000000000000000000000',
+ ua: 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36',
+ uid: '12345',
+ st: ' 1 2',
+ ul: 'en-US',
+ qt: 124893881700,
+ },
+ body: {
+ JSON: {},
+ XML: {},
+ JSON_ARRAY: {},
+ FORM: {},
+ },
+ files: {},
+ userId: '00000000000000000000000000',
+ },
+ statusCode: 200,
+ },
+ ],
+ },
+ },
+ },
+ {
+ name: 'ga',
+ description: 'Test 38',
+ feature: 'processor',
+ module: 'destination',
+ version: 'v0',
+ input: {
+ request: {
+ body: [
+ {
+ message: {
+ channel: 'web',
+ context: {
+ app: {
+ build: '1.0.0',
+ name: 'RudderLabs JavaScript SDK',
+ namespace: 'com.rudderlabs.javascript',
+ version: '1.0.0',
+ },
+ traits: {
+ email: 'test@rudderstack.com',
+ },
+ library: {
+ name: 'RudderLabs JavaScript SDK',
+ version: '1.0.0',
+ },
+ userAgent:
+ 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36',
+ locale: 'en-US',
+ os: {
+ name: '',
+ version: '',
+ },
+ screen: {
+ density: 2,
+ },
+ },
+ type: 'track',
+ messageId: 'ec5481b6-a926-4d2e-b293-0b3a77c4d3be',
+ originalTimestamp: '2019-10-14T11:15:18.300Z',
+ anonymousId: '00000000000000000000000000',
+ userId: '12345',
+ event: 'Product Shared',
+ properties: {
+ product_id: 'rudderstackorder1',
+ total: 99.99,
+ shipping: 13.99,
+ tax: 20.99,
+ currency: 'INR',
+ url: 'https://www.example.com/abc',
+ },
+ integrations: {
+ All: true,
+ },
+ sentAt: '2019-10-14T11:15:53.296Z',
+ },
+ destination: {
+ Config: {
+ trackingID: 'UA-165994240-1',
+ doubleClick: true,
+ enhancedLinkAttribution: true,
+ classic: true,
+ ignoredReferrers: '',
+ serverClassic: false,
+ includeSearch: true,
+ trackCategorizedPages: true,
+ trackNamedPages: true,
+ sampleRate: '100',
+ siteSpeedSampleRate: '1',
+ setAllMappedProps: true,
+ enableServerSideIdentify: true,
+ serverSideIdentifyEventCategory: 'cat1',
+ serverSideIdentifyEventAction: 'action1',
+ anonymizeIp: true,
+ domain: 'domain',
+ enhancedEcommerce: true,
+ nonInteraction: true,
+ optimize: 'abc123',
+ sendUserId: true,
+ useGoogleAmpClientId: true,
+ 'web-useNativeSDK': true,
+ dimensions: [
+ {
+ from: 'name',
+ to: 'dimension1',
+ },
+ {
+ from: 'custom2',
+ to: 'dimension2',
+ },
+ ],
+ metrics: [
+ {
+ from: 'email',
+ to: 'metric1',
+ },
+ {
+ from: 'trait2',
+ to: 'metric2',
+ },
+ ],
+ resetCustomDimensionsOnPage: [
+ {
+ resetCustomDimensionsOnPage: 'abc',
+ },
+ {
+ resetCustomDimensionsOnPage: 'xyz',
+ },
+ ],
+ contentGroupings: [
+ {
+ from: 'plan',
+ to: 'contentGroup1',
+ },
+ {
+ from: 'prop2',
+ to: 'contentGroup2',
+ },
+ ],
+ },
+ Enabled: true,
+ },
+ },
+ ],
+ },
+ },
+ output: {
+ response: {
+ status: 200,
+ body: [
+ {
+ output: {
+ version: '1',
+ type: 'REST',
+ method: 'POST',
+ endpoint: 'https://www.google-analytics.com/collect',
+ headers: {},
+ params: {
+ ev: 100,
+ ea: 'Product Shared',
+ ec: 'All',
+ ni: 1,
+ v: '1',
+ t: 'event',
+ el: 'event',
+ tid: 'UA-165994240-1',
+ ds: 'web',
+ an: 'RudderLabs JavaScript SDK',
+ av: '1.0.0',
+ aiid: 'com.rudderlabs.javascript',
+ npa: 1,
+ aip: 1,
+ cid: '00000000000000000000000000',
+ ua: 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36',
+ uid: '12345',
+ st: 'https://www.example.com/abc',
+ dh: 'www.example.com',
+ dl: 'https://www.example.com/abc',
+ dp: '%2Fabc',
+ ul: 'en-US',
+ qt: 124893881700,
+ },
+ body: {
+ JSON: {},
+ XML: {},
+ JSON_ARRAY: {},
+ FORM: {},
+ },
+ files: {},
+ userId: '00000000000000000000000000',
+ },
+ statusCode: 200,
+ },
+ ],
+ },
+ },
+ },
+ {
+ name: 'ga',
+ description: 'Test 39',
+ feature: 'processor',
+ module: 'destination',
+ version: 'v0',
+ input: {
+ request: {
+ body: [
+ {
+ message: {
+ channel: 'web',
+ context: {
+ app: {
+ build: '1.0.0',
+ name: 'RudderLabs JavaScript SDK',
+ namespace: 'com.rudderlabs.javascript',
+ version: '1.0.0',
+ },
+ traits: {
+ email: 'test@rudderstack.com',
+ },
+ library: {
+ name: 'RudderLabs JavaScript SDK',
+ version: '1.0.0',
+ },
+ userAgent:
+ 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36',
+ locale: 'en-US',
+ os: {
+ name: '',
+ version: '',
+ },
+ screen: {
+ density: 2,
+ },
+ },
+ type: 'track',
+ messageId: 'ec5481b6-a926-4d2e-b293-0b3a77c4d3be',
+ originalTimestamp: '2019-10-14T11:15:18.300Z',
+ anonymousId: '00000000000000000000000000',
+ userId: '12345',
+ event: 'Product List Clicked',
+ properties: {
+ list_id: 'Sample Product List',
+ category: 'Sample Product List',
+ products: [
+ {
+ quantity: 1,
+ price: 24.75,
+ name: 'my product',
+ sku: 'p-298',
+ product_id: '1',
+ },
+ {
+ quantity: 3,
+ price: 24.75,
+ name: 'other product',
+ sku: 'p-299',
+ product_id: '2',
+ },
+ ],
+ },
+ integrations: {
+ All: true,
+ },
+ sentAt: '2019-10-14T11:15:53.296Z',
+ },
+ destination: {
+ Config: {
+ trackingID: 'UA-165994240-1',
+ doubleClick: true,
+ enhancedLinkAttribution: true,
+ classic: true,
+ ignoredReferrers: '',
+ serverClassic: false,
+ includeSearch: true,
+ trackCategorizedPages: true,
+ trackNamedPages: true,
+ sampleRate: '100',
+ siteSpeedSampleRate: '1',
+ setAllMappedProps: true,
+ enableServerSideIdentify: true,
+ serverSideIdentifyEventCategory: 'cat1',
+ serverSideIdentifyEventAction: 'action1',
+ anonymizeIp: true,
+ domain: 'domain',
+ enhancedEcommerce: true,
+ nonInteraction: true,
+ optimize: 'abc123',
+ sendUserId: true,
+ useGoogleAmpClientId: true,
+ 'web-useNativeSDK': true,
+ dimensions: [
+ {
+ from: 'name',
+ to: 'dimension1',
+ },
+ {
+ from: 'custom2',
+ to: 'dimension2',
+ },
+ ],
+ metrics: [
+ {
+ from: 'email',
+ to: 'metric1',
+ },
+ {
+ from: 'trait2',
+ to: 'metric2',
+ },
+ ],
+ resetCustomDimensionsOnPage: [
+ {
+ resetCustomDimensionsOnPage: 'abc',
+ },
+ {
+ resetCustomDimensionsOnPage: 'xyz',
+ },
+ ],
+ contentGroupings: [
+ {
+ from: 'plan',
+ to: 'contentGroup1',
+ },
+ {
+ from: 'prop2',
+ to: 'contentGroup2',
+ },
+ ],
+ },
+ Enabled: true,
+ },
+ },
+ ],
+ },
+ },
+ output: {
+ response: {
+ status: 200,
+ body: [
+ {
+ output: {
+ version: '1',
+ type: 'REST',
+ method: 'POST',
+ endpoint: 'https://www.google-analytics.com/collect',
+ headers: {},
+ params: {
+ ea: 'Product List Clicked',
+ ec: 'Sample Product List',
+ pa: 'click',
+ il1pi1id: '1',
+ pr1cd1: 'my product',
+ il1pi1nm: 'my product',
+ il1pi1pr: 24.75,
+ il1pi2id: '2',
+ pr2cd1: 'other product',
+ il1pi2nm: 'other product',
+ il1pi2pr: 24.75,
+ v: '1',
+ t: 'event',
+ el: 'event',
+ tid: 'UA-165994240-1',
+ ds: 'web',
+ an: 'RudderLabs JavaScript SDK',
+ av: '1.0.0',
+ aiid: 'com.rudderlabs.javascript',
+ npa: 1,
+ aip: 1,
+ il1nm: 'Sample Product List',
+ ua: 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36',
+ cid: '00000000000000000000000000',
+ uid: '12345',
+ ni: 1,
+ il1pi2qt: 3,
+ il1pi1qt: 1,
+ ul: 'en-US',
+ qt: 124893881700,
+ },
+ body: {
+ JSON: {},
+ XML: {},
+ JSON_ARRAY: {},
+ FORM: {},
+ },
+ files: {},
+ userId: '00000000000000000000000000',
+ },
+ statusCode: 200,
+ },
+ ],
+ },
+ },
+ },
+ {
+ name: 'ga',
+ description: 'Test 40',
+ feature: 'processor',
+ module: 'destination',
+ version: 'v0',
+ input: {
+ request: {
+ body: [
+ {
+ message: {
+ channel: 'web',
+ context: {
+ app: {
+ build: '1.0.0',
+ name: 'RudderLabs JavaScript SDK',
+ namespace: 'com.rudderlabs.javascript',
+ version: '1.0.0',
+ },
+ traits: {
+ email: 'test@rudderstack.com',
+ },
+ library: {
+ name: 'RudderLabs JavaScript SDK',
+ version: '1.0.0',
+ },
+ userAgent:
+ 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36',
+ locale: 'en-US',
+ os: {
+ name: '',
+ version: '',
+ },
+ screen: {
+ density: 2,
+ },
+ },
+ type: 'track',
+ messageId: 'ec5481b6-a926-4d2e-b293-0b3a77c4d3be',
+ originalTimestamp: '2019-10-14T11:15:18.300Z',
+ anonymousId: '00000000000000000000000000',
+ userId: '12345',
+ event: 'Product List Clicked',
+ properties: {
+ list_id: 'Sample Product List',
+ category: 'Sample Product List',
+ products: [
+ {
+ quantity: 1,
+ price: 24.75,
+ name: 'my product',
+ sku: 'p-298',
+ },
+ {
+ quantity: 3,
+ price: 24.75,
+ name: 'other product',
+ sku: 'p-299',
+ },
+ ],
+ },
+ integrations: {
+ All: true,
+ },
+ sentAt: '2019-10-14T11:15:53.296Z',
+ },
+ destination: {
+ Config: {
+ trackingID: 'UA-165994240-1',
+ doubleClick: true,
+ enhancedLinkAttribution: true,
+ classic: true,
+ ignoredReferrers: '',
+ serverClassic: false,
+ includeSearch: true,
+ trackCategorizedPages: true,
+ trackNamedPages: true,
+ sampleRate: '100',
+ siteSpeedSampleRate: '1',
+ setAllMappedProps: true,
+ enableServerSideIdentify: true,
+ serverSideIdentifyEventCategory: 'cat1',
+ serverSideIdentifyEventAction: 'action1',
+ anonymizeIp: true,
+ domain: 'domain',
+ enhancedEcommerce: true,
+ nonInteraction: true,
+ optimize: 'abc123',
+ sendUserId: true,
+ useGoogleAmpClientId: true,
+ 'web-useNativeSDK': true,
+ dimensions: [
+ {
+ from: 'name',
+ to: 'dimension1',
+ },
+ {
+ from: 'custom2',
+ to: 'dimension2',
+ },
+ ],
+ metrics: [
+ {
+ from: 'email',
+ to: 'metric1',
+ },
+ {
+ from: 'trait2',
+ to: 'metric2',
+ },
+ ],
+ resetCustomDimensionsOnPage: [
+ {
+ resetCustomDimensionsOnPage: 'abc',
+ },
+ {
+ resetCustomDimensionsOnPage: 'xyz',
+ },
+ ],
+ contentGroupings: [
+ {
+ from: 'plan',
+ to: 'contentGroup1',
+ },
+ {
+ from: 'prop2',
+ to: 'contentGroup2',
+ },
+ ],
+ },
+ Enabled: true,
+ },
+ },
+ ],
+ },
+ },
+ output: {
+ response: {
+ status: 200,
+ body: [
+ {
+ output: {
+ version: '1',
+ type: 'REST',
+ method: 'POST',
+ endpoint: 'https://www.google-analytics.com/collect',
+ headers: {},
+ params: {
+ ea: 'Product List Clicked',
+ ec: 'Sample Product List',
+ pa: 'click',
+ il1pi1id: 'p-298',
+ pr1cd1: 'my product',
+ il1pi1nm: 'my product',
+ il1pi1pr: 24.75,
+ il1pi2id: 'p-299',
+ pr2cd1: 'other product',
+ il1pi2nm: 'other product',
+ il1pi2pr: 24.75,
+ v: '1',
+ t: 'event',
+ el: 'event',
+ tid: 'UA-165994240-1',
+ ds: 'web',
+ an: 'RudderLabs JavaScript SDK',
+ av: '1.0.0',
+ aiid: 'com.rudderlabs.javascript',
+ npa: 1,
+ aip: 1,
+ il1nm: 'Sample Product List',
+ ua: 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36',
+ cid: '00000000000000000000000000',
+ uid: '12345',
+ ul: 'en-US',
+ il1pi2qt: 3,
+ il1pi1qt: 1,
+ ni: 1,
+ qt: 124893881700,
+ },
+ body: {
+ JSON: {},
+ XML: {},
+ JSON_ARRAY: {},
+ FORM: {},
+ },
+ files: {},
+ userId: '00000000000000000000000000',
+ },
+ statusCode: 200,
+ },
+ ],
+ },
+ },
+ },
+ {
+ name: 'ga',
+ description: 'Test 41',
+ feature: 'processor',
+ module: 'destination',
+ version: 'v0',
+ input: {
+ request: {
+ body: [
+ {
+ message: {
+ channel: 'web',
+ context: {
+ app: {
+ build: '1.0.0',
+ name: 'RudderLabs JavaScript SDK',
+ namespace: 'com.rudderlabs.javascript',
+ version: '1.0.0',
+ },
+ traits: {
+ email: 'test@rudderstack.com',
+ },
+ library: {
+ name: 'RudderLabs JavaScript SDK',
+ version: '1.0.0',
+ },
+ userAgent:
+ 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36',
+ locale: 'en-US',
+ os: {
+ name: '',
+ version: '',
+ },
+ screen: {
+ density: 2,
+ },
+ },
+ type: 'track',
+ messageId: 'ec5481b6-a926-4d2e-b293-0b3a77c4d3be',
+ originalTimestamp: '2019-10-14T11:15:18.300Z',
+ anonymousId: '00000000000000000000000000',
+ userId: '12345',
+ event: 'Product List Clicked',
+ properties: {
+ list_id: 'Sample Product List',
+ category: 'Sample Product List',
+ products: [],
+ },
+ integrations: {
+ All: true,
+ },
+ sentAt: '2019-10-14T11:15:53.296Z',
+ },
+ destination: {
+ Config: {
+ trackingID: 'UA-165994240-1',
+ doubleClick: true,
+ enhancedLinkAttribution: true,
+ classic: true,
+ ignoredReferrers: '',
+ serverClassic: false,
+ includeSearch: true,
+ trackCategorizedPages: true,
+ trackNamedPages: true,
+ sampleRate: '100',
+ siteSpeedSampleRate: '1',
+ setAllMappedProps: true,
+ enableServerSideIdentify: true,
+ serverSideIdentifyEventCategory: 'cat1',
+ serverSideIdentifyEventAction: 'action1',
+ anonymizeIp: true,
+ domain: 'domain',
+ enhancedEcommerce: true,
+ nonInteraction: true,
+ optimize: 'abc123',
+ sendUserId: true,
+ useGoogleAmpClientId: true,
+ 'web-useNativeSDK': true,
+ dimensions: [
+ {
+ from: 'name',
+ to: 'dimension1',
+ },
+ {
+ from: 'custom2',
+ to: 'dimension2',
+ },
+ ],
+ metrics: [
+ {
+ from: 'email',
+ to: 'metric1',
+ },
+ {
+ from: 'trait2',
+ to: 'metric2',
+ },
+ ],
+ resetCustomDimensionsOnPage: [
+ {
+ resetCustomDimensionsOnPage: 'abc',
+ },
+ {
+ resetCustomDimensionsOnPage: 'xyz',
+ },
+ ],
+ contentGroupings: [
+ {
+ from: 'plan',
+ to: 'contentGroup1',
+ },
+ {
+ from: 'prop2',
+ to: 'contentGroup2',
+ },
+ ],
+ },
+ Enabled: true,
+ },
+ },
+ ],
+ },
+ },
+ output: {
+ response: {
+ status: 200,
+ body: [
+ {
+ output: {
+ version: '1',
+ type: 'REST',
+ method: 'POST',
+ endpoint: 'https://www.google-analytics.com/collect',
+ headers: {},
+ params: {
+ ni: 1,
+ ea: 'Product List Clicked',
+ ec: 'Sample Product List',
+ pa: 'click',
+ el: 'event',
+ v: '1',
+ t: 'event',
+ tid: 'UA-165994240-1',
+ ds: 'web',
+ npa: 1,
+ aip: 1,
+ ua: 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36',
+ ul: 'en-US',
+ an: 'RudderLabs JavaScript SDK',
+ av: '1.0.0',
+ aiid: 'com.rudderlabs.javascript',
+ il1nm: 'Sample Product List',
+ uid: '12345',
+ cid: '00000000000000000000000000',
+ qt: 124893881700,
+ },
+ body: {
+ JSON: {},
+ XML: {},
+ JSON_ARRAY: {},
+ FORM: {},
+ },
+ files: {},
+ userId: '00000000000000000000000000',
+ },
+ statusCode: 200,
+ },
+ ],
+ },
+ },
+ },
+ {
+ name: 'ga',
+ description: 'Test 42',
+ feature: 'processor',
+ module: 'destination',
+ version: 'v0',
+ input: {
+ request: {
+ body: [
+ {
+ message: {
+ channel: 'web',
+ context: {
+ app: {
+ build: '1.0.0',
+ name: 'RudderLabs JavaScript SDK',
+ namespace: 'com.rudderlabs.javascript',
+ version: '1.0.0',
+ },
+ traits: {
+ email: 'test@rudderstack.com',
+ },
+ library: {
+ name: 'RudderLabs JavaScript SDK',
+ version: '1.0.0',
+ },
+ userAgent:
+ 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36',
+ locale: 'en-US',
+ os: {
+ name: '',
+ version: '',
+ },
+ screen: {
+ density: 2,
+ },
+ },
+ type: 'track',
+ messageId: 'ec5481b6-a926-4d2e-b293-0b3a77c4d3be',
+ originalTimestamp: '2019-10-14T11:15:18.300Z',
+ anonymousId: '00000000000000000000000000',
+ userId: '12345',
+ event: 'Order Cancelled',
+ properties: {
+ order_id: 'rudderstackorder1',
+ total: 99.99,
+ shipping: 13.99,
+ tax: 20.99,
+ currency: 'INR',
+ products: [
+ {
+ quantity: 1,
+ price: 24.75,
+ name: 'my product',
+ sku: 'p-298',
+ product_id: '1',
+ },
+ {
+ quantity: 3,
+ price: 24.75,
+ name: 'other product',
+ sku: 'p-299',
+ product_id: '2',
+ },
+ ],
+ },
+ integrations: {
+ All: true,
+ },
+ sentAt: '2019-10-14T11:15:53.296Z',
+ },
+ destination: {
+ Config: {
+ trackingID: 'UA-165994240-1',
+ doubleClick: true,
+ enhancedLinkAttribution: true,
+ classic: true,
+ ignoredReferrers: '',
+ serverClassic: false,
+ includeSearch: true,
+ trackCategorizedPages: true,
+ trackNamedPages: true,
+ sampleRate: '100',
+ siteSpeedSampleRate: '1',
+ setAllMappedProps: true,
+ enableServerSideIdentify: true,
+ serverSideIdentifyEventCategory: 'cat1',
+ serverSideIdentifyEventAction: 'action1',
+ anonymizeIp: true,
+ domain: 'domain',
+ enhancedEcommerce: true,
+ nonInteraction: true,
+ optimize: 'abc123',
+ sendUserId: true,
+ useGoogleAmpClientId: true,
+ 'web-useNativeSDK': true,
+ dimensions: [
+ {
+ from: 'name',
+ to: 'dimension1',
+ },
+ {
+ from: 'custom2',
+ to: 'dimension2',
+ },
+ ],
+ metrics: [
+ {
+ from: 'email',
+ to: 'metric1',
+ },
+ {
+ from: 'trait2',
+ to: 'metric2',
+ },
+ ],
+ resetCustomDimensionsOnPage: [
+ {
+ resetCustomDimensionsOnPage: 'abc',
+ },
+ {
+ resetCustomDimensionsOnPage: 'xyz',
+ },
+ ],
+ contentGroupings: [
+ {
+ from: 'plan',
+ to: 'contentGroup1',
+ },
+ {
+ from: 'prop2',
+ to: 'contentGroup2',
+ },
+ ],
+ },
+ Enabled: true,
+ },
+ },
+ ],
+ },
+ },
+ output: {
+ response: {
+ status: 200,
+ body: [
+ {
+ output: {
+ version: '1',
+ type: 'REST',
+ method: 'POST',
+ endpoint: 'https://www.google-analytics.com/collect',
+ headers: {},
+ params: {
+ pa: 'refund',
+ ev: 100,
+ tr: 99.99,
+ pr1id: '1',
+ pr1cd1: 'my product',
+ pr1nm: 'my product',
+ pr1pr: 24.75,
+ pr2id: '2',
+ pr2cd1: 'other product',
+ pr2nm: 'other product',
+ pr2pr: 24.75,
+ ea: 'Order Cancelled',
+ ec: 'EnhancedEcommerce',
+ v: '1',
+ t: 'event',
+ el: 'event',
+ tid: 'UA-165994240-1',
+ ds: 'web',
+ an: 'RudderLabs JavaScript SDK',
+ av: '1.0.0',
+ aiid: 'com.rudderlabs.javascript',
+ npa: 1,
+ aip: 1,
+ cid: '00000000000000000000000000',
+ ti: 'rudderstackorder1',
+ ts: 13.99,
+ tt: 20.99,
+ cu: 'INR',
+ ua: 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36',
+ uid: '12345',
+ ul: 'en-US',
+ pr1qt: 1,
+ pr2qt: 3,
+ ni: 1,
+ qt: 124893881700,
+ },
+ body: {
+ JSON: {},
+ XML: {},
+ JSON_ARRAY: {},
+ FORM: {},
+ },
+ files: {},
+ userId: '00000000000000000000000000',
+ },
+ statusCode: 200,
+ },
+ ],
+ },
+ },
+ },
+ {
+ name: 'ga',
+ description: 'Test 43',
+ feature: 'processor',
+ module: 'destination',
+ version: 'v0',
+ input: {
+ request: {
+ body: [
+ {
+ message: {
+ channel: 'web',
+ context: {
+ app: {
+ build: '1.0.0',
+ name: 'RudderLabs JavaScript SDK',
+ namespace: 'com.rudderlabs.javascript',
+ version: '1.0.0',
+ },
+ traits: {
+ email: 'test@rudderstack.com',
+ },
+ library: {
+ name: 'RudderLabs JavaScript SDK',
+ version: '1.0.0',
+ },
+ userAgent:
+ 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36',
+ locale: 'en-US',
+ os: {
+ name: '',
+ version: '',
+ },
+ screen: {
+ density: 2,
+ },
+ },
+ type: 'track',
+ messageId: 'ec5481b6-a926-4d2e-b293-0b3a77c4d3be',
+ originalTimestamp: '2019-10-14T11:15:18.300Z',
+ anonymousId: '00000000000000000000000000',
+ userId: '12345',
+ event: 'Order Cancelled',
+ properties: {
+ order_id: 'rudderstackorder1',
+ value: 99.99,
+ shipping: 13.99,
+ tax: 20.99,
+ currency: 'INR',
+ products: [
+ {
+ quantity: 1,
+ price: 24.75,
+ name: 'my product',
+ sku: 'p-298',
+ product_id: '1',
+ },
+ {
+ quantity: 3,
+ price: 24.75,
+ name: 'other product',
+ sku: 'p-299',
+ product_id: '2',
+ },
+ ],
+ },
+ integrations: {
+ All: true,
+ },
+ sentAt: '2019-10-14T11:15:53.296Z',
+ },
+ destination: {
+ Config: {
+ trackingID: 'UA-165994240-1',
+ doubleClick: true,
+ enhancedLinkAttribution: true,
+ classic: true,
+ ignoredReferrers: '',
+ serverClassic: false,
+ includeSearch: true,
+ trackCategorizedPages: true,
+ trackNamedPages: true,
+ sampleRate: '100',
+ siteSpeedSampleRate: '1',
+ setAllMappedProps: true,
+ enableServerSideIdentify: true,
+ serverSideIdentifyEventCategory: 'cat1',
+ serverSideIdentifyEventAction: 'action1',
+ anonymizeIp: true,
+ domain: 'domain',
+ enhancedEcommerce: true,
+ nonInteraction: true,
+ optimize: 'abc123',
+ sendUserId: true,
+ useGoogleAmpClientId: true,
+ 'web-useNativeSDK': true,
+ dimensions: [
+ {
+ from: 'name',
+ to: 'dimension1',
+ },
+ {
+ from: 'custom2',
+ to: 'dimension2',
+ },
+ ],
+ metrics: [
+ {
+ from: 'email',
+ to: 'metric1',
+ },
+ {
+ from: 'trait2',
+ to: 'metric2',
+ },
+ ],
+ resetCustomDimensionsOnPage: [
+ {
+ resetCustomDimensionsOnPage: 'abc',
+ },
+ {
+ resetCustomDimensionsOnPage: 'xyz',
+ },
+ ],
+ contentGroupings: [
+ {
+ from: 'plan',
+ to: 'contentGroup1',
+ },
+ {
+ from: 'prop2',
+ to: 'contentGroup2',
+ },
+ ],
+ },
+ Enabled: true,
+ },
+ },
+ ],
+ },
+ },
+ output: {
+ response: {
+ status: 200,
+ body: [
+ {
+ output: {
+ version: '1',
+ type: 'REST',
+ method: 'POST',
+ endpoint: 'https://www.google-analytics.com/collect',
+ headers: {},
+ params: {
+ pa: 'refund',
+ tr: 99.99,
+ pr1id: '1',
+ pr1cd1: 'my product',
+ pr1nm: 'my product',
+ pr1pr: 24.75,
+ pr2id: '2',
+ pr2cd1: 'other product',
+ pr2nm: 'other product',
+ pr2pr: 24.75,
+ ea: 'Order Cancelled',
+ ev: 100,
+ ec: 'EnhancedEcommerce',
+ v: '1',
+ t: 'event',
+ el: 'event',
+ tid: 'UA-165994240-1',
+ ds: 'web',
+ an: 'RudderLabs JavaScript SDK',
+ av: '1.0.0',
+ aiid: 'com.rudderlabs.javascript',
+ npa: 1,
+ aip: 1,
+ cid: '00000000000000000000000000',
+ ti: 'rudderstackorder1',
+ ts: 13.99,
+ tt: 20.99,
+ cu: 'INR',
+ ua: 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36',
+ uid: '12345',
+ ul: 'en-US',
+ pr1qt: 1,
+ pr2qt: 3,
+ ni: 1,
+ qt: 124893881700,
+ },
+ body: {
+ JSON: {},
+ XML: {},
+ JSON_ARRAY: {},
+ FORM: {},
+ },
+ files: {},
+ userId: '00000000000000000000000000',
+ },
+ statusCode: 200,
+ },
+ ],
+ },
+ },
+ },
+ {
+ name: 'ga',
+ description: 'Test 44',
+ feature: 'processor',
+ module: 'destination',
+ version: 'v0',
+ input: {
+ request: {
+ body: [
+ {
+ message: {
+ channel: 'web',
+ context: {
+ app: {
+ build: '1.0.0',
+ name: 'RudderLabs JavaScript SDK',
+ namespace: 'com.rudderlabs.javascript',
+ version: '1.0.0',
+ },
+ traits: {
+ email: 'test@rudderstack.com',
+ },
+ library: {
+ name: 'RudderLabs JavaScript SDK',
+ version: '1.0.0',
+ },
+ userAgent:
+ 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36',
+ locale: 'en-US',
+ os: {
+ name: '',
+ version: '',
+ },
+ screen: {
+ density: 2,
+ },
+ },
+ type: 'track',
+ messageId: 'ec5481b6-a926-4d2e-b293-0b3a77c4d3be',
+ originalTimestamp: '2019-10-14T11:15:18.300Z',
+ anonymousId: '00000000000000000000000000',
+ userId: '12345',
+ event: 'Order Cancelled',
+ properties: {
+ order_id: 'rudderstackorder1',
+ revenue: 99.99,
+ shipping: 13.99,
+ tax: 20.99,
+ currency: 'INR',
+ products: [
+ {
+ quantity: 1,
+ price: 24.75,
+ name: 'my product',
+ sku: 'p-298',
+ product_id: '1',
+ },
+ {
+ quantity: 3,
+ price: 24.75,
+ name: 'other product',
+ sku: 'p-299',
+ product_id: '2',
+ },
+ ],
+ },
+ integrations: {
+ All: true,
+ },
+ sentAt: '2019-10-14T11:15:53.296Z',
+ },
+ destination: {
+ Config: {
+ trackingID: 'UA-165994240-1',
+ doubleClick: true,
+ enhancedLinkAttribution: true,
+ classic: true,
+ ignoredReferrers: '',
+ serverClassic: false,
+ includeSearch: true,
+ trackCategorizedPages: true,
+ trackNamedPages: true,
+ sampleRate: '100',
+ siteSpeedSampleRate: '1',
+ setAllMappedProps: true,
+ enableServerSideIdentify: true,
+ serverSideIdentifyEventCategory: 'cat1',
+ serverSideIdentifyEventAction: 'action1',
+ anonymizeIp: true,
+ domain: 'domain',
+ enhancedEcommerce: true,
+ nonInteraction: true,
+ optimize: 'abc123',
+ sendUserId: true,
+ useGoogleAmpClientId: true,
+ 'web-useNativeSDK': true,
+ dimensions: [
+ {
+ from: 'name',
+ to: 'dimension1',
+ },
+ {
+ from: 'custom2',
+ to: 'dimension2',
+ },
+ ],
+ metrics: [
+ {
+ from: 'email',
+ to: 'metric1',
+ },
+ {
+ from: 'trait2',
+ to: 'metric2',
+ },
+ ],
+ resetCustomDimensionsOnPage: [
+ {
+ resetCustomDimensionsOnPage: 'abc',
+ },
+ {
+ resetCustomDimensionsOnPage: 'xyz',
+ },
+ ],
+ contentGroupings: [
+ {
+ from: 'plan',
+ to: 'contentGroup1',
+ },
+ {
+ from: 'prop2',
+ to: 'contentGroup2',
+ },
+ ],
+ },
+ Enabled: true,
+ },
+ },
+ ],
+ },
+ },
+ output: {
+ response: {
+ status: 200,
+ body: [
+ {
+ output: {
+ version: '1',
+ type: 'REST',
+ method: 'POST',
+ endpoint: 'https://www.google-analytics.com/collect',
+ headers: {},
+ params: {
+ pa: 'refund',
+ tr: 99.99,
+ pr1id: '1',
+ pr1cd1: 'my product',
+ pr1nm: 'my product',
+ pr1pr: 24.75,
+ pr2id: '2',
+ pr2cd1: 'other product',
+ pr2nm: 'other product',
+ pr2pr: 24.75,
+ ea: 'Order Cancelled',
+ ev: 100,
+ ec: 'EnhancedEcommerce',
+ v: '1',
+ t: 'event',
+ el: 'event',
+ tid: 'UA-165994240-1',
+ ds: 'web',
+ an: 'RudderLabs JavaScript SDK',
+ av: '1.0.0',
+ aiid: 'com.rudderlabs.javascript',
+ npa: 1,
+ aip: 1,
+ cid: '00000000000000000000000000',
+ ti: 'rudderstackorder1',
+ ts: 13.99,
+ tt: 20.99,
+ cu: 'INR',
+ ua: 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36',
+ uid: '12345',
+ ul: 'en-US',
+ pr1qt: 1,
+ pr2qt: 3,
+ ni: 1,
+ qt: 124893881700,
+ },
+ body: {
+ JSON: {},
+ XML: {},
+ JSON_ARRAY: {},
+ FORM: {},
+ },
+ files: {},
+ userId: '00000000000000000000000000',
+ },
+ statusCode: 200,
+ },
+ ],
+ },
+ },
+ },
+ {
+ name: 'ga',
+ description: 'Test 45',
+ feature: 'processor',
+ module: 'destination',
+ version: 'v0',
+ input: {
+ request: {
+ body: [
+ {
+ message: {
+ channel: 'web',
+ context: {
+ app: {
+ build: '1.0.0',
+ name: 'RudderLabs JavaScript SDK',
+ namespace: 'com.rudderlabs.javascript',
+ version: '1.0.0',
+ },
+ traits: {
+ email: 'test@rudderstack.com',
+ },
+ library: {
+ name: 'RudderLabs JavaScript SDK',
+ version: '1.0.0',
+ },
+ userAgent:
+ 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36',
+ locale: 'en-US',
+ os: {
+ name: '',
+ version: '',
+ },
+ screen: {
+ density: 2,
+ },
+ },
+ type: 'track',
+ messageId: 'ec5481b6-a926-4d2e-b293-0b3a77c4d3be',
+ originalTimestamp: '2019-10-14T11:15:18.300Z',
+ anonymousId: '00000000000000000000000000',
+ userId: '12345',
+ event: 'Order Cancelled',
+ properties: {
+ order_id: 'rudderstackorder1',
+ revenue: 99.99,
+ shipping: 13.99,
+ tax: 20.99,
+ currency: 'INR',
+ products: [],
+ },
+ integrations: {
+ All: true,
+ },
+ sentAt: '2019-10-14T11:15:53.296Z',
+ },
+ destination: {
+ Config: {
+ trackingID: 'UA-165994240-1',
+ doubleClick: true,
+ enhancedLinkAttribution: true,
+ classic: true,
+ ignoredReferrers: '',
+ serverClassic: false,
+ includeSearch: true,
+ trackCategorizedPages: true,
+ trackNamedPages: true,
+ sampleRate: '100',
+ siteSpeedSampleRate: '1',
+ setAllMappedProps: true,
+ enableServerSideIdentify: true,
+ serverSideIdentifyEventCategory: 'cat1',
+ serverSideIdentifyEventAction: 'action1',
+ anonymizeIp: true,
+ domain: 'domain',
+ enhancedEcommerce: true,
+ nonInteraction: true,
+ optimize: 'abc123',
+ sendUserId: true,
+ useGoogleAmpClientId: true,
+ 'web-useNativeSDK': true,
+ dimensions: [
+ {
+ from: 'name',
+ to: 'dimension1',
+ },
+ {
+ from: 'custom2',
+ to: 'dimension2',
+ },
+ ],
+ metrics: [
+ {
+ from: 'email',
+ to: 'metric1',
+ },
+ {
+ from: 'trait2',
+ to: 'metric2',
+ },
+ ],
+ resetCustomDimensionsOnPage: [
+ {
+ resetCustomDimensionsOnPage: 'abc',
+ },
+ {
+ resetCustomDimensionsOnPage: 'xyz',
+ },
+ ],
+ contentGroupings: [
+ {
+ from: 'plan',
+ to: 'contentGroup1',
+ },
+ {
+ from: 'prop2',
+ to: 'contentGroup2',
+ },
+ ],
+ },
+ Enabled: true,
+ },
+ },
+ ],
+ },
+ },
+ output: {
+ response: {
+ status: 200,
+ body: [
+ {
+ error: 'No product information supplied for transaction event',
+ statTags: {
+ destType: 'GA',
+ errorCategory: 'dataValidation',
+ errorType: 'instrumentation',
+ feature: 'processor',
+ implementation: 'native',
+ module: 'destination',
+ },
+ statusCode: 400,
+ },
+ ],
+ },
+ },
+ },
+ {
+ name: 'ga',
+ description: 'Test 46',
+ feature: 'processor',
+ module: 'destination',
+ version: 'v0',
+ input: {
+ request: {
+ body: [
+ {
+ message: {
+ channel: 'web',
+ context: {
+ app: {
+ build: '1.0.0',
+ name: 'RudderLabs JavaScript SDK',
+ namespace: 'com.rudderlabs.javascript',
+ version: '1.0.0',
+ },
+ traits: {
+ email: 'test@rudderstack.com',
+ },
+ library: {
+ name: 'RudderLabs JavaScript SDK',
+ version: '1.0.0',
+ },
+ userAgent:
+ 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36',
+ locale: 'en-US',
+ os: {
+ name: '',
+ version: '',
+ },
+ screen: {
+ density: 2,
+ },
+ },
+ type: 'track',
+ messageId: 'ec5481b6-a926-4d2e-b293-0b3a77c4d3be',
+ originalTimestamp: '2019-10-14T11:15:18.300Z',
+ anonymousId: '00000000000000000000000000',
+ userId: '12345',
+ event: 'Cart Viewed',
+ properties: {
+ order_id: 'rudderstackorder1',
+ revenue: 99.99,
+ shipping: 13.99,
+ tax: 20.99,
+ currency: 'INR',
+ products: [
+ {
+ quantity: 1,
+ price: 24.75,
+ name: 'my product',
+ sku: 'p-298',
+ product_id: '1',
+ },
+ {
+ quantity: 3,
+ price: 24.75,
+ name: 'other product',
+ sku: 'p-299',
+ product_id: '2',
+ },
+ ],
+ },
+ integrations: {
+ All: true,
+ },
+ sentAt: '2019-10-14T11:15:53.296Z',
+ },
+ destination: {
+ Config: {
+ trackingID: 'UA-165994240-1',
+ doubleClick: true,
+ enhancedLinkAttribution: true,
+ classic: true,
+ ignoredReferrers: '',
+ serverClassic: false,
+ includeSearch: true,
+ trackCategorizedPages: true,
+ trackNamedPages: true,
+ sampleRate: '100',
+ siteSpeedSampleRate: '1',
+ setAllMappedProps: true,
+ enableServerSideIdentify: true,
+ serverSideIdentifyEventCategory: 'cat1',
+ serverSideIdentifyEventAction: 'action1',
+ anonymizeIp: true,
+ domain: 'domain',
+ enhancedEcommerce: true,
+ nonInteraction: true,
+ optimize: 'abc123',
+ sendUserId: true,
+ useGoogleAmpClientId: true,
+ 'web-useNativeSDK': true,
+ dimensions: [
+ {
+ from: 'name',
+ to: 'dimension1',
+ },
+ {
+ from: 'custom2',
+ to: 'dimension2',
+ },
+ ],
+ metrics: [
+ {
+ from: 'email',
+ to: 'metric1',
+ },
+ {
+ from: 'trait2',
+ to: 'metric2',
+ },
+ ],
+ resetCustomDimensionsOnPage: [
+ {
+ resetCustomDimensionsOnPage: 'abc',
+ },
+ {
+ resetCustomDimensionsOnPage: 'xyz',
+ },
+ ],
+ contentGroupings: [
+ {
+ from: 'plan',
+ to: 'contentGroup1',
+ },
+ {
+ from: 'prop2',
+ to: 'contentGroup2',
+ },
+ ],
+ },
+ Enabled: true,
+ },
+ },
+ ],
+ },
+ },
+ output: {
+ response: {
+ status: 200,
+ body: [
+ {
+ output: {
+ version: '1',
+ type: 'REST',
+ method: 'POST',
+ endpoint: 'https://www.google-analytics.com/collect',
+ headers: {},
+ params: {
+ ea: 'Cart Viewed',
+ ev: 100,
+ ec: 'EnhancedEcommerce',
+ pa: 'detail',
+ v: '1',
+ t: 'event',
+ el: 'event',
+ tid: 'UA-165994240-1',
+ ds: 'web',
+ an: 'RudderLabs JavaScript SDK',
+ av: '1.0.0',
+ aiid: 'com.rudderlabs.javascript',
+ npa: 1,
+ aip: 1,
+ ua: 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36',
+ cid: '00000000000000000000000000',
+ uid: '12345',
+ ul: 'en-US',
+ ni: 1,
+ pr1cd1: 'my product',
+ pr1id: '1',
+ pr1nm: 'my product',
+ pr1pr: 24.75,
+ pr1qt: 1,
+ pr2cd1: 'other product',
+ pr2id: '2',
+ pr2nm: 'other product',
+ pr2pr: 24.75,
+ pr2qt: 3,
+ qt: 124893881700,
+ },
+ body: {
+ JSON: {},
+ XML: {},
+ JSON_ARRAY: {},
+ FORM: {},
+ },
+ files: {},
+ userId: '00000000000000000000000000',
+ },
+ statusCode: 200,
+ },
+ ],
+ },
+ },
+ },
+ {
+ name: 'ga',
+ description: 'Test 47',
+ feature: 'processor',
+ module: 'destination',
+ version: 'v0',
+ input: {
+ request: {
+ body: [
+ {
+ message: {
+ channel: 'web',
+ context: {
+ traits: {
+ name1: 'Test',
+ },
+ app: {
+ build: '1.0.0',
+ name: 'RudderLabs JavaScript SDK',
+ namespace: 'com.rudderlabs.javascript',
+ version: '1.0.0',
+ },
+ library: {
+ name: 'RudderLabs JavaScript SDK',
+ version: '1.0.0',
+ },
+ userAgent:
+ 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36',
+ locale: 'en-US',
+ ip: '0.0.0.0',
+ os: {
+ name: '',
+ version: '',
+ },
+ screen: {
+ density: 2,
+ },
+ },
+ properties: {
+ plan: 'standard plan',
+ name: 'rudder test',
+ },
+ type: 'identify',
+ messageId: '84e26acc-56a5-4835-8233-591137fca468',
+ originalTimestamp: '2019-10-14T09:03:17.562Z',
+ anonymousId: '00000000000000000000000000',
+ userId: '123456',
+ integrations: {
+ All: true,
+ },
+ traits: {
+ name1: 'Test',
+ },
+ sentAt: '2019-10-14T09:03:22.563Z',
+ },
+ destination: {
+ Config: {
+ trackingID: 'UA-165994240-1',
+ doubleClick: true,
+ enhancedLinkAttribution: true,
+ classic: true,
+ ignoredReferrers: '',
+ serverClassic: false,
+ includeSearch: true,
+ trackCategorizedPages: true,
+ trackNamedPages: true,
+ sampleRate: '100',
+ siteSpeedSampleRate: '1',
+ setAllMappedProps: true,
+ serverSideIdentifyEventCategory: 'name',
+ serverSideIdentifyEventAction: 'action1',
+ anonymizeIp: true,
+ domain: 'domain',
+ enhancedEcommerce: true,
+ nonInteraction: true,
+ optimize: 'abc123',
+ sendUserId: true,
+ useGoogleAmpClientId: true,
+ 'web-useNativeSDK': true,
+ dimensions: [
+ {
+ from: 'name',
+ to: 'dimension1',
+ },
+ {
+ from: 'custom2',
+ to: 'dimension2',
+ },
+ ],
+ metrics: [
+ {
+ from: 'email',
+ to: 'metric1',
+ },
+ {
+ from: 'trait2',
+ to: 'metric2',
+ },
+ ],
+ resetCustomDimensionsOnPage: [
+ {
+ resetCustomDimensionsOnPage: 'abc',
+ },
+ {
+ resetCustomDimensionsOnPage: 'xyz',
+ },
+ ],
+ contentGroupings: [
+ {
+ from: 'plan',
+ to: 'contentGroup1',
+ },
+ {
+ from: 'prop2',
+ to: 'contentGroup2',
+ },
+ ],
+ },
+ Enabled: true,
+ },
+ },
+ ],
+ },
+ },
+ output: {
+ response: {
+ status: 200,
+ body: [
+ {
+ error: 'server side identify is not on',
+ statTags: {
+ destType: 'GA',
+ errorCategory: 'dataValidation',
+ errorType: 'configuration',
+ feature: 'processor',
+ implementation: 'native',
+ module: 'destination',
+ },
+ statusCode: 400,
+ },
+ ],
+ },
+ },
+ },
+ {
+ name: 'ga',
+ description: 'Test 48',
+ feature: 'processor',
+ module: 'destination',
+ version: 'v0',
+ input: {
+ request: {
+ body: [
+ {
+ message: {
+ channel: 'web',
+ context: {
+ app: {
+ build: '1.0.0',
+ name: 'RudderLabs JavaScript SDK',
+ namespace: 'com.rudderlabs.javascript',
+ version: '1.0.0',
+ },
+ traits: {
+ email: 'test@rudderstack.com',
+ },
+ library: {
+ name: 'RudderLabs JavaScript SDK',
+ version: '1.0.0',
+ },
+ userAgent:
+ 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36',
+ locale: 'en-US',
+ ip: '0.0.0.0',
+ os: {
+ name: '',
+ version: '',
+ },
+ screen: {
+ density: 2,
+ },
+ },
+ type: 'screen',
+ messageId: '5e10d13a-bf9a-44bf-b884-43a9e591ea71',
+ originalTimestamp: '2019-10-14T11:15:18.299Z',
+ anonymousId: '00000000000000000000000000',
+ userId: '12345',
+ properties: {
+ name: 'homescreen',
+ },
+ integrations: {
+ All: true,
+ },
+ sentAt: '2019-10-14T11:15:53.296Z',
+ },
+ destination: {
+ Config: {
+ trackingID: 'UA-165994240-1',
+ doubleClick: true,
+ enhancedLinkAttribution: true,
+ classic: true,
+ ignoredReferrers: '',
+ serverClassic: false,
+ includeSearch: true,
+ trackCategorizedPages: true,
+ trackNamedPages: true,
+ sampleRate: '100',
+ siteSpeedSampleRate: '1',
+ setAllMappedProps: true,
+ enableServerSideIdentify: true,
+ serverSideIdentifyEventCategory: 'cat1',
+ serverSideIdentifyEventAction: 'action1',
+ anonymizeIp: true,
+ domain: 'domain',
+ enhancedEcommerce: true,
+ nonInteraction: true,
+ optimize: 'abc123',
+ sendUserId: true,
+ useGoogleAmpClientId: true,
+ 'web-useNativeSDK': true,
+ dimensions: [
+ {
+ from: 'name',
+ to: 'dimension1',
+ },
+ {
+ from: 'custom2',
+ to: 'dimension2',
+ },
+ ],
+ metrics: [
+ {
+ from: 'email',
+ to: 'metric1',
+ },
+ {
+ from: 'trait2',
+ to: 'metric2',
+ },
+ ],
+ resetCustomDimensionsOnPage: [
+ {
+ resetCustomDimensionsOnPage: 'abc',
+ },
+ {
+ resetCustomDimensionsOnPage: 'xyz',
+ },
+ ],
+ contentGroupings: [
+ {
+ from: 'plan',
+ to: 'contentGroup1',
+ },
+ {
+ from: 'prop2',
+ to: 'contentGroup2',
+ },
+ ],
+ },
+ Enabled: true,
+ },
+ },
+ ],
+ },
+ },
+ output: {
+ response: {
+ status: 200,
+ body: [
+ {
+ output: {
+ version: '1',
+ type: 'REST',
+ method: 'POST',
+ endpoint: 'https://www.google-analytics.com/collect',
+ headers: {},
+ params: {
+ cd1: 'homescreen',
+ v: '1',
+ t: 'screenview',
+ tid: 'UA-165994240-1',
+ ds: 'web',
+ an: 'RudderLabs JavaScript SDK',
+ av: '1.0.0',
+ aiid: 'com.rudderlabs.javascript',
+ npa: 1,
+ aip: 1,
+ cid: '00000000000000000000000000',
+ cd: 'homescreen',
+ ua: 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36',
+ uid: '12345',
+ ul: 'en-US',
+ uip: '0.0.0.0',
+ qt: 124893881701,
+ },
+ body: {
+ JSON: {},
+ XML: {},
+ JSON_ARRAY: {},
+ FORM: {},
+ },
+ files: {},
+ userId: '00000000000000000000000000',
+ },
+ statusCode: 200,
+ },
+ ],
+ },
+ },
+ },
+ {
+ name: 'ga',
+ description: 'Test 49',
+ feature: 'processor',
+ module: 'destination',
+ version: 'v0',
+ input: {
+ request: {
+ body: [
+ {
+ message: {
+ channel: 'web',
+ context: {
+ app: {
+ build: '1.0.0',
+ name: 'RudderLabs JavaScript SDK',
+ namespace: 'com.rudderlabs.javascript',
+ version: '1.0.0',
+ },
+ traits: {
+ email: 'test@rudderstack.com',
+ },
+ library: {
+ name: 'RudderLabs JavaScript SDK',
+ version: '1.0.0',
+ },
+ userAgent:
+ 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36',
+ locale: 'en-US',
+ ip: '0.0.0.0',
+ os: {
+ name: '',
+ version: '',
+ },
+ screen: {
+ density: 2,
+ },
+ },
+ type: 'newtype',
+ messageId: '5e10d13a-bf9a-44bf-b884-43a9e591ea71',
+ originalTimestamp: '2019-10-14T11:15:18.299Z',
+ anonymousId: '00000000000000000000000000',
+ userId: '12345',
+ properties: {
+ name: 'homescreen',
+ },
+ integrations: {
+ All: true,
+ },
+ sentAt: '2019-10-14T11:15:53.296Z',
+ },
+ destination: {
+ Config: {
+ trackingID: 'UA-165994240-1',
+ doubleClick: true,
+ enhancedLinkAttribution: true,
+ classic: true,
+ ignoredReferrers: '',
+ serverClassic: false,
+ includeSearch: true,
+ trackCategorizedPages: true,
+ trackNamedPages: true,
+ sampleRate: '100',
+ siteSpeedSampleRate: '1',
+ setAllMappedProps: true,
+ enableServerSideIdentify: true,
+ serverSideIdentifyEventCategory: 'cat1',
+ serverSideIdentifyEventAction: 'action1',
+ anonymizeIp: true,
+ domain: 'domain',
+ enhancedEcommerce: true,
+ nonInteraction: true,
+ optimize: 'abc123',
+ sendUserId: true,
+ useGoogleAmpClientId: true,
+ 'web-useNativeSDK': true,
+ dimensions: [
+ {
+ from: 'name',
+ to: 'dimension1',
+ },
+ {
+ from: 'custom2',
+ to: 'dimension2',
+ },
+ ],
+ metrics: [
+ {
+ from: 'email',
+ to: 'metric1',
+ },
+ {
+ from: 'trait2',
+ to: 'metric2',
+ },
+ ],
+ resetCustomDimensionsOnPage: [
+ {
+ resetCustomDimensionsOnPage: 'abc',
+ },
+ {
+ resetCustomDimensionsOnPage: 'xyz',
+ },
+ ],
+ contentGroupings: [
+ {
+ from: 'plan',
+ to: 'contentGroup1',
+ },
+ {
+ from: 'prop2',
+ to: 'contentGroup2',
+ },
+ ],
+ },
+ Enabled: true,
+ },
+ },
+ ],
+ },
+ },
+ output: {
+ response: {
+ status: 200,
+ body: [
+ {
+ error: 'Message type newtype not supported',
+ statTags: {
+ destType: 'GA',
+ errorCategory: 'dataValidation',
+ errorType: 'instrumentation',
+ feature: 'processor',
+ implementation: 'native',
+ module: 'destination',
+ },
+ statusCode: 400,
+ },
+ ],
+ },
+ },
+ },
+ {
+ name: 'ga',
+ description: 'Test 50',
+ feature: 'processor',
+ module: 'destination',
+ version: 'v0',
+ input: {
+ request: {
+ body: [
+ {
+ message: {
+ channel: 'web',
+ context: {
+ traits: {
+ name: 'Test',
+ },
+ app: {
+ build: '1.0.0',
+ name: 'RudderLabs JavaScript SDK',
+ namespace: 'com.rudderlabs.javascript',
+ version: '1.0.0',
+ },
+ library: {
+ name: 'RudderLabs JavaScript SDK',
+ version: '1.0.0',
+ },
+ userAgent:
+ 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36',
+ locale: 'en-US',
+ ip: '0.0.0.0',
+ os: {
+ name: '',
+ version: '',
+ },
+ screen: {
+ density: 2,
+ },
+ },
+ properties: {
+ plan: 'standard plan',
+ name: 'rudder test',
+ },
+ type: 'identify',
+ messageId: '84e26acc-56a5-4835-8233-591137fca468',
+ originalTimestamp: '2019-10-14T09:03:17.562Z',
+ userId: '12345',
+ integrations: {
+ All: true,
+ },
+ sentAt: '2019-10-14T09:03:22.563Z',
+ },
+ destination: {
+ Config: {
+ trackingID: 'UA-165994240-1',
+ doubleClick: true,
+ enhancedLinkAttribution: true,
+ classic: true,
+ ignoredReferrers: '',
+ serverClassic: false,
+ includeSearch: true,
+ trackCategorizedPages: true,
+ trackNamedPages: true,
+ sampleRate: '100',
+ siteSpeedSampleRate: '1',
+ setAllMappedProps: true,
+ enableServerSideIdentify: true,
+ serverSideIdentifyEventCategory: 'name',
+ serverSideIdentifyEventAction: 'action1',
+ anonymizeIp: true,
+ domain: 'domain',
+ enhancedEcommerce: true,
+ nonInteraction: true,
+ optimize: 'abc123',
+ sendUserId: true,
+ useGoogleAmpClientId: true,
+ 'web-useNativeSDK': true,
+ dimensions: [
+ {
+ from: 'name',
+ to: 'dimension1',
+ },
+ {
+ from: 'custom2',
+ to: 'dimension2',
+ },
+ ],
+ metrics: [
+ {
+ from: 'email',
+ to: 'metric1',
+ },
+ {
+ from: 'trait2',
+ to: 'metric2',
+ },
+ ],
+ resetCustomDimensionsOnPage: [
+ {
+ resetCustomDimensionsOnPage: 'abc',
+ },
+ {
+ resetCustomDimensionsOnPage: 'xyz',
+ },
+ ],
+ contentGroupings: [
+ {
+ from: 'plan',
+ to: 'contentGroup1',
+ },
+ {
+ from: 'prop2',
+ to: 'contentGroup2',
+ },
+ ],
+ },
+ Enabled: true,
+ },
+ },
+ ],
+ },
+ },
+ output: {
+ response: {
+ status: 200,
+ body: [
+ {
+ output: {
+ version: '1',
+ type: 'REST',
+ userId: '12345',
+ method: 'POST',
+ endpoint: 'https://www.google-analytics.com/collect',
+ headers: {},
+ params: {
+ ea: 'action1',
+ ec: 'Test',
+ ni: 1,
+ cd1: 'Test',
+ v: '1',
+ t: 'event',
+ tid: 'UA-165994240-1',
+ ds: 'web',
+ an: 'RudderLabs JavaScript SDK',
+ av: '1.0.0',
+ aiid: 'com.rudderlabs.javascript',
+ npa: 1,
+ aip: 1,
+ ua: 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36',
+ ul: 'en-US',
+ uid: '12345',
+ cid: '827ccb0eea8a706c4c34a16891f84e7b',
+ uip: '0.0.0.0',
+ qt: 124901802438,
+ },
+ body: {
+ JSON: {},
+ XML: {},
+ JSON_ARRAY: {},
+ FORM: {},
+ },
+ files: {},
+ },
+ statusCode: 200,
+ },
+ ],
+ },
+ },
+ },
+ {
+ name: 'ga',
+ description: 'Test 51',
+ feature: 'processor',
+ module: 'destination',
+ version: 'v0',
+ input: {
+ request: {
+ body: [
+ {
+ message: {
+ channel: 'web',
+ context: {
+ traits: {
+ name: 'Test',
+ },
+ app: {
+ build: '1.0.0',
+ name: 'RudderLabs JavaScript SDK',
+ namespace: 'com.rudderlabs.javascript',
+ version: '1.0.0',
+ },
+ library: {
+ name: 'RudderLabs JavaScript SDK',
+ version: '1.0.0',
+ },
+ userAgent:
+ 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36',
+ locale: 'en-US',
+ ip: '0.0.0.0',
+ os: {
+ name: '',
+ version: '',
+ },
+ screen: {
+ density: 2,
+ },
+ },
+ properties: {
+ plan: 'standard plan',
+ name: 'rudder test',
+ },
+ type: 'identify',
+ messageId: '84e26acc-56a5-4835-8233-591137fca468',
+ originalTimestamp: '2019-10-14T09:03:17.562Z',
+ userId: '12345',
+ integrations: {
+ All: true,
+ },
+ sentAt: '2019-10-14T09:03:22.563Z',
+ },
+ destination: {
+ Config: {
+ trackingID: 'UA-165994240-1',
+ doubleClick: true,
+ enhancedLinkAttribution: true,
+ classic: true,
+ ignoredReferrers: '',
+ serverClassic: false,
+ includeSearch: true,
+ trackCategorizedPages: true,
+ trackNamedPages: true,
+ sampleRate: '100',
+ siteSpeedSampleRate: '1',
+ setAllMappedProps: true,
+ enableServerSideIdentify: true,
+ serverSideIdentifyEventCategory: 'name',
+ serverSideIdentifyEventAction: 'action1',
+ anonymizeIp: true,
+ disableMd5: true,
+ domain: 'domain',
+ enhancedEcommerce: true,
+ nonInteraction: true,
+ optimize: 'abc123',
+ sendUserId: true,
+ useGoogleAmpClientId: true,
+ 'web-useNativeSDK': true,
+ dimensions: [
+ {
+ from: 'name',
+ to: 'dimension1',
+ },
+ {
+ from: 'custom2',
+ to: 'dimension2',
+ },
+ ],
+ metrics: [
+ {
+ from: 'email',
+ to: 'metric1',
+ },
+ {
+ from: 'trait2',
+ to: 'metric2',
+ },
+ ],
+ resetCustomDimensionsOnPage: [
+ {
+ resetCustomDimensionsOnPage: 'abc',
+ },
+ {
+ resetCustomDimensionsOnPage: 'xyz',
+ },
+ ],
+ contentGroupings: [
+ {
+ from: 'plan',
+ to: 'contentGroup1',
+ },
+ {
+ from: 'prop2',
+ to: 'contentGroup2',
+ },
+ ],
+ },
+ Enabled: true,
+ },
+ },
+ ],
+ },
+ },
+ output: {
+ response: {
+ status: 200,
+ body: [
+ {
+ output: {
+ version: '1',
+ type: 'REST',
+ userId: '12345',
+ method: 'POST',
+ endpoint: 'https://www.google-analytics.com/collect',
+ headers: {},
+ params: {
+ ea: 'action1',
+ ec: 'Test',
+ ni: 1,
+ cd1: 'Test',
+ v: '1',
+ t: 'event',
+ tid: 'UA-165994240-1',
+ ds: 'web',
+ an: 'RudderLabs JavaScript SDK',
+ av: '1.0.0',
+ aiid: 'com.rudderlabs.javascript',
+ npa: 1,
+ aip: 1,
+ ua: 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36',
+ ul: 'en-US',
+ uid: '12345',
+ uip: '0.0.0.0',
+ qt: 124901802438,
+ },
+ body: {
+ JSON: {},
+ XML: {},
+ JSON_ARRAY: {},
+ FORM: {},
+ },
+ files: {},
+ },
+ statusCode: 200,
+ },
+ ],
+ },
+ },
+ },
+ {
+ name: 'ga',
+ description: 'Test 52',
+ feature: 'processor',
+ module: 'destination',
+ version: 'v0',
+ input: {
+ request: {
+ body: [
+ {
+ message: {
+ channel: 'web',
+ context: {
+ traits: {
+ name: 'Test',
+ },
+ app: {
+ build: '1.0.0',
+ name: 'RudderLabs JavaScript SDK',
+ namespace: 'com.rudderlabs.javascript',
+ version: '1.0.0',
+ },
+ library: {
+ name: 'RudderLabs JavaScript SDK',
+ version: '1.0.0',
+ },
+ userAgent:
+ 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36',
+ locale: 'en-US',
+ ip: '0.0.0.0',
+ os: {
+ name: '',
+ version: '',
+ },
+ screen: {
+ density: 2,
+ },
+ },
+ properties: {
+ plan: 'standard plan',
+ name: 'rudder test',
+ },
+ type: 'identify',
+ messageId: '84e26acc-56a5-4835-8233-591137fca468',
+ originalTimestamp: '2019-10-14T09:03:17.562Z',
+ userId: '12345',
+ integrations: {
+ All: true,
+ GA: {
+ clientId: 'clientId',
+ },
+ 'Google Analytics': {
+ clientId: 'clientId',
+ },
+ },
+ sentAt: '2019-10-14T09:03:22.563Z',
+ },
+ destination: {
+ Config: {
+ trackingID: 'UA-165994240-1',
+ doubleClick: true,
+ enhancedLinkAttribution: true,
+ classic: true,
+ ignoredReferrers: '',
+ serverClassic: false,
+ includeSearch: true,
+ trackCategorizedPages: true,
+ trackNamedPages: true,
+ sampleRate: '100',
+ siteSpeedSampleRate: '1',
+ setAllMappedProps: true,
+ enableServerSideIdentify: true,
+ serverSideIdentifyEventCategory: 'name',
+ serverSideIdentifyEventAction: 'action1',
+ anonymizeIp: true,
+ domain: 'domain',
+ enhancedEcommerce: true,
+ nonInteraction: true,
+ optimize: 'abc123',
+ sendUserId: true,
+ useGoogleAmpClientId: true,
+ 'web-useNativeSDK': true,
+ dimensions: [
+ {
+ from: 'name',
+ to: 'dimension1',
+ },
+ {
+ from: 'custom2',
+ to: 'dimension2',
+ },
+ ],
+ metrics: [
+ {
+ from: 'email',
+ to: 'metric1',
+ },
+ {
+ from: 'trait2',
+ to: 'metric2',
+ },
+ ],
+ resetCustomDimensionsOnPage: [
+ {
+ resetCustomDimensionsOnPage: 'abc',
+ },
+ {
+ resetCustomDimensionsOnPage: 'xyz',
+ },
+ ],
+ contentGroupings: [
+ {
+ from: 'plan',
+ to: 'contentGroup1',
+ },
+ {
+ from: 'prop2',
+ to: 'contentGroup2',
+ },
+ ],
+ },
+ Enabled: true,
+ },
+ },
+ ],
+ },
+ },
+ output: {
+ response: {
+ status: 200,
+ body: [
+ {
+ output: {
+ version: '1',
+ type: 'REST',
+ userId: '12345',
+ method: 'POST',
+ endpoint: 'https://www.google-analytics.com/collect',
+ headers: {},
+ params: {
+ ea: 'action1',
+ ec: 'Test',
+ ni: 1,
+ cd1: 'Test',
+ v: '1',
+ t: 'event',
+ tid: 'UA-165994240-1',
+ ds: 'web',
+ an: 'RudderLabs JavaScript SDK',
+ av: '1.0.0',
+ aiid: 'com.rudderlabs.javascript',
+ npa: 1,
+ aip: 1,
+ ua: 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36',
+ ul: 'en-US',
+ uid: '12345',
+ cid: 'clientId',
+ uip: '0.0.0.0',
+ qt: 124901802438,
+ },
+ body: {
+ JSON: {},
+ XML: {},
+ JSON_ARRAY: {},
+ FORM: {},
+ },
+ files: {},
+ },
+ statusCode: 200,
+ },
+ ],
+ },
+ },
+ },
+ {
+ name: 'ga',
+ description: 'Test 53',
+ feature: 'processor',
+ module: 'destination',
+ version: 'v0',
+ input: {
+ request: {
+ body: [
+ {
+ message: {
+ channel: 'web',
+ context: {
+ externalId: [
+ {
+ id: 'externalClientId',
+ type: 'gaExternalId',
+ },
+ ],
+ traits: {
+ name: 'Test',
+ },
+ app: {
+ build: '1.0.0',
+ name: 'RudderLabs JavaScript SDK',
+ namespace: 'com.rudderlabs.javascript',
+ version: '1.0.0',
+ },
+ library: {
+ name: 'RudderLabs JavaScript SDK',
+ version: '1.0.0',
+ },
+ userAgent:
+ 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36',
+ locale: 'en-US',
+ ip: '0.0.0.0',
+ os: {
+ name: '',
+ version: '',
+ },
+ screen: {
+ density: 2,
+ },
+ },
+ properties: {
+ plan: 'standard plan',
+ name: 'rudder test',
+ },
+ type: 'identify',
+ messageId: '84e26acc-56a5-4835-8233-591137fca468',
+ originalTimestamp: '2019-10-14T09:03:17.562Z',
+ userId: '12345',
+ integrations: {
+ All: true,
+ },
+ sentAt: '2019-10-14T09:03:22.563Z',
+ },
+ destination: {
+ Config: {
+ trackingID: 'UA-165994240-1',
+ doubleClick: true,
+ enhancedLinkAttribution: true,
+ classic: true,
+ ignoredReferrers: '',
+ serverClassic: false,
+ includeSearch: true,
+ trackCategorizedPages: true,
+ trackNamedPages: true,
+ sampleRate: '100',
+ siteSpeedSampleRate: '1',
+ setAllMappedProps: true,
+ enableServerSideIdentify: true,
+ serverSideIdentifyEventCategory: 'name',
+ serverSideIdentifyEventAction: 'action1',
+ anonymizeIp: true,
+ domain: 'domain',
+ enhancedEcommerce: true,
+ nonInteraction: true,
+ optimize: 'abc123',
+ sendUserId: true,
+ useGoogleAmpClientId: true,
+ 'web-useNativeSDK': true,
+ dimensions: [
+ {
+ from: 'name',
+ to: 'dimension1',
+ },
+ {
+ from: 'custom2',
+ to: 'dimension2',
+ },
+ ],
+ metrics: [
+ {
+ from: 'email',
+ to: 'metric1',
+ },
+ {
+ from: 'trait2',
+ to: 'metric2',
+ },
+ ],
+ resetCustomDimensionsOnPage: [
+ {
+ resetCustomDimensionsOnPage: 'abc',
+ },
+ {
+ resetCustomDimensionsOnPage: 'xyz',
+ },
+ ],
+ contentGroupings: [
+ {
+ from: 'plan',
+ to: 'contentGroup1',
+ },
+ {
+ from: 'prop2',
+ to: 'contentGroup2',
+ },
+ ],
+ },
+ Enabled: true,
+ },
+ },
+ ],
+ },
+ },
+ output: {
+ response: {
+ status: 200,
+ body: [
+ {
+ output: {
+ version: '1',
+ type: 'REST',
+ userId: '12345',
+ method: 'POST',
+ endpoint: 'https://www.google-analytics.com/collect',
+ headers: {},
+ params: {
+ ea: 'action1',
+ ec: 'Test',
+ ni: 1,
+ cd1: 'Test',
+ v: '1',
+ t: 'event',
+ tid: 'UA-165994240-1',
+ ds: 'web',
+ an: 'RudderLabs JavaScript SDK',
+ av: '1.0.0',
+ aiid: 'com.rudderlabs.javascript',
+ npa: 1,
+ aip: 1,
+ ua: 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36',
+ ul: 'en-US',
+ uid: '12345',
+ cid: 'externalClientId',
+ uip: '0.0.0.0',
+ qt: 124901802438,
+ },
+ body: {
+ JSON: {},
+ XML: {},
+ JSON_ARRAY: {},
+ FORM: {},
+ },
+ files: {},
+ },
+ statusCode: 200,
+ },
+ ],
+ },
+ },
+ },
+ {
+ name: 'ga',
+ description: 'Test 54',
+ feature: 'processor',
+ module: 'destination',
+ version: 'v0',
+ input: {
+ request: {
+ body: [
+ {
+ message: {
+ channel: 'web',
+ context: {
+ app: {
+ build: '1.0.0',
+ name: 'RudderLabs JavaScript SDK',
+ namespace: 'com.rudderlabs.javascript',
+ version: '1.0.0',
+ },
+ traits: {
+ email: 'test@rudderstack.com',
+ },
+ library: {
+ name: 'RudderLabs JavaScript SDK',
+ version: '1.0.0',
+ },
+ userAgent:
+ 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36',
+ locale: 'en-US',
+ os: {
+ name: '',
+ version: '',
+ },
+ screen: {
+ density: 2,
+ },
+ },
+ type: 'track',
+ messageId: 'ec5481b6-a926-4d2e-b293-0b3a77c4d3be',
+ originalTimestamp: '2019-10-14T11:15:18.300Z',
+ anonymousId: '00000000000000000000000000',
+ userId: '12345',
+ event: 'product list viewed',
+ properties: {
+ nonInteraction: 0,
+ category: 'cat 1',
+ list_id: '1234',
+ filters: {
+ a: 'department',
+ b: 'beauty',
+ },
+ sorts: [
+ {
+ type: 'price',
+ value: 'desc',
+ },
+ ],
+ products: [
+ {
+ product_id: '507f1f77bcf86cd799439011',
+ productDimension: 'My Product Dimension',
+ productMetric: 'My Product Metric',
+ position: 10,
+ },
+ {
+ product_id: '507f1f77bcf86cdef799439011',
+ productDimension: 'My Product Dimension1',
+ productMetric: 'My Product Metric1',
+ position: -10,
+ },
+ ],
+ testDimension: true,
+ testMetric: true,
+ },
+ integrations: {
+ All: true,
+ },
+ sentAt: '2019-10-14T11:15:53.296Z',
+ },
+ destination: {
+ Config: {
+ trackingID: 'UA-165994240-1',
+ doubleClick: true,
+ enhancedLinkAttribution: true,
+ classic: true,
+ ignoredReferrers: '',
+ serverClassic: false,
+ includeSearch: true,
+ trackCategorizedPages: true,
+ trackNamedPages: true,
+ sampleRate: '100',
+ siteSpeedSampleRate: '1',
+ setAllMappedProps: true,
+ enableServerSideIdentify: true,
+ serverSideIdentifyEventCategory: 'cat1',
+ serverSideIdentifyEventAction: 'action1',
+ anonymizeIp: true,
+ domain: 'domain',
+ enhancedEcommerce: true,
+ nonInteraction: true,
+ optimize: 'abc123',
+ sendUserId: true,
+ useGoogleAmpClientId: true,
+ 'web-useNativeSDK': true,
+ dimensions: [
+ {
+ from: 'name',
+ to: 'dimension1',
+ },
+ {
+ from: 'custom2',
+ to: 'dimension2',
+ },
+ ],
+ metrics: [
+ {
+ from: 'email',
+ to: 'metric1',
+ },
+ {
+ from: 'trait2',
+ to: 'metric2',
+ },
+ ],
+ resetCustomDimensionsOnPage: [
+ {
+ resetCustomDimensionsOnPage: 'abc',
+ },
+ {
+ resetCustomDimensionsOnPage: 'xyz',
+ },
+ ],
+ contentGroupings: [
+ {
+ from: 'plan',
+ to: 'content1',
+ },
+ {
+ from: 'prop2',
+ to: 'content2',
+ },
+ ],
+ },
+ Enabled: true,
+ },
+ },
+ ],
+ },
+ },
+ output: {
+ response: {
+ status: 200,
+ body: [
+ {
+ output: {
+ version: '1',
+ type: 'REST',
+ method: 'POST',
+ endpoint: 'https://www.google-analytics.com/collect',
+ headers: {},
+ params: {
+ ni: 0,
+ ea: 'product list viewed',
+ ec: 'cat 1',
+ pa: 'detail',
+ il1pi1id: '507f1f77bcf86cd799439011',
+ il1pi1va: '::price:desc',
+ il1pi1ps: 10,
+ il1pi1qt: 1,
+ il1pi2id: '507f1f77bcf86cdef799439011',
+ il1pi2va: '::price:desc',
+ il1pi2ps: -10,
+ il1pi2qt: 1,
+ el: 'event',
+ v: '1',
+ t: 'event',
+ tid: 'UA-165994240-1',
+ ds: 'web',
+ npa: 1,
+ aip: 1,
+ ua: 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36',
+ ul: 'en-US',
+ an: 'RudderLabs JavaScript SDK',
+ av: '1.0.0',
+ aiid: 'com.rudderlabs.javascript',
+ il1nm: '1234',
+ uid: '12345',
+ cid: '00000000000000000000000000',
+ qt: 124893881700,
+ },
+ body: {
+ JSON: {},
+ XML: {},
+ JSON_ARRAY: {},
+ FORM: {},
+ },
+ files: {},
+ userId: '00000000000000000000000000',
+ },
+ statusCode: 200,
+ },
+ ],
+ },
+ },
+ },
+ {
+ name: 'ga',
+ description: 'Test 55',
+ feature: 'processor',
+ module: 'destination',
+ version: 'v0',
+ input: {
+ request: {
+ body: [
+ {
+ message: {
+ channel: 'web',
+ context: {
+ app: {
+ build: '1.0.0',
+ name: 'RudderLabs JavaScript SDK',
+ namespace: 'com.rudderlabs.javascript',
+ version: '1.0.0',
+ },
+ traits: {
+ email: 'test@rudderstack.com',
+ },
+ library: {
+ name: 'RudderLabs JavaScript SDK',
+ version: '1.0.0',
+ },
+ userAgent:
+ 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36',
+ locale: 'en-US',
+ ip: '0.0.0.0',
+ os: {
+ name: '',
+ version: '',
+ },
+ screen: {
+ density: 2,
+ },
+ },
+ type: 'page',
+ messageId: '5e10d13a-bf9a-44bf-b884-43a9e591ea71',
+ originalTimestamp: '2019-10-14T11:15:18.299Z',
+ anonymousId: '00000000000000000000000000',
+ userId: '12345',
+ properties: {
+ referrer:
+ 'https://google.com/answer/7554821?zippy=%2Cfields-in-event-snippets-for-counter-tags%2Cstep-add-the-global-snippet-to-every-page-of-your-site%2Cstep-add-the-event-snippet-to-pages-with-events-youre-tracking%2Cfields-in-the-global-snippet%2Cfields-in-the-event-snippet---overview%2Cfields-in-all-event-snippets%2Cexample-event-snippet-for-counter---standard-activities%2Cexample-event-snippet-for-counter---unique-activities%2Cexample-event-snippet-for-counter---per-session-activities%2Cfields-in-event-snippets-for-sales-tags%2Cexample-event-snippet-for-sales---transaction-activities%2Cexample-event-snippet-for-sales---items-sold-activities%2Ccustom-fields%2Cnoscript-section-of-event-snippets%2Cdo-i-need-to-set-up-cache-busting-with-the-global-site-tag%2Cwhy-is-the-global-site-tag-placed-in-the-head-when-iframe-and-image-tags-were-placed-in-the-body-of-my-site%2Cwhere-can-i-learn-more-about-the-global-site-tag%2Cstep-add-the-event-snippet-to-pages-with-events-youre-tracking%2Cfields-in-the-global-snippet%2Cfields-in-the-event-snippet---overview%2Cfields-in-all-event-snippets%2Cexample-event-snippet-for-counter---standard-activities%2Cexample-event-snippet-for-counter---unique-activities%2Cexample-event-snippet-for-counter---per-session-activities%2Cfields-in-event-snippets-for-sales-tags%2Cexample-event-snippet-for-sales---transaction-activities%2Cexample-event-snippet-for-sales---items-sold-activities%2Ccustom-fields%2Cnoscript-section-of-event-snippets%2Cdo-i-need-to-set-up-cache-busting-with-the-global-site-tag%2Cwhy-is-the-global-site-tag-placed-in-the-head-when-iframe-and-image-tags-were-placed-in-the-body-of-my-site%2Cwhere-can-i-learn-more-about-the-global-site-tag%2Cstep-add-the-event-snippet-to-pages-with-events-youre-tracking%2Cfields-in-the-global-snippet%2Cfields-in-the-event-snippet---overview%2Cfields-in-all-event-snippets%2Cexample-event-snippet-for-counter---standard-activities%2Cexample-event-snippet-for-counter---unique-activities%2Cexample-event-snippet-for-counter---per-session-activities%2Cfields-in-event-snippets-for-sales-tags%2Cexample-event-snippet-for-sales---transaction-activities%2Cexample-event-snippet-for-sales---items-sold-activities%2Ccustom-fields%2Cnoscript-section-of-event-snippets%2Cdo-i-need-to-set-up-cache-busting-with-the-global-site-tag%2Cwhy-is-the-global-site-tag-placed-in-the-head-when-iframe-and-image-tags-were-placed-in-the-body-of-my-site%2Cwhere-can-i-learn-more-about-the-global-site-tag%2Cwhy-is-the-global-site-tag-placed-in-the-head-when-iframe-and-image-tags-were-placed-in-the-body-of-my-site%2Cwhere-can-i-learn-more-about-the-global-site-tag%2Cwhy-is-the-global-site-tag-placed-in-the-head-when-iframe-and-image-tags-were-placed-in-the-body-of-my-site%2Cwhere-can-i-learn-more-about-the-global-site-tag%2Cwhy-is-the-global-site-tag-placed-in-the-head-when-iframe-and-image-tags-were-placed-in-the-body-of-my-site%2Cwhere-can-i-learn-more-about-the-global-site-tag%2Cwhy-is-the-global-site-tag-placed-in-the-head-when-iframe-and-image-tags-were-placed-in-the-body-of-my-site%2Cwhere-can-i-learn-more-about-the-global-site-tag%2Cwhy-is-the-global-site-tag-placed-in-the-head-when-iframe-and-image-tags-were-placed-in-the-body-of-my-site%2Cwhere-can-i-learn-more-about-tg%2Cwhy-is-the-global-site-tag-placed-in-the-head-when-iframe-and-image-tags-were-placed-in-the-body-of-my-site%2Cwhere-can-i-learns-more-about-the-global-site-tag%2Cwhy-is-the-globalthe-head-when-iframe-and-image-tags-were-placed-in-the-body-placed-of-my-site%2Cwhere-can-i-learn-g2Cwhy-is-the-global-site-tag-placed-in-the-head-when-iframe-and-and-in-the-body-of-my-site%2Cwhere-can-i-learn-more-about-the-global-site-tag%2Cwhy-n-the-head-when-iframe-and-image-tags-were-placed-in-the-body-of-my-site%2Cwhere-can-i-learn-more-about-the-global-site-tag',
+ search: '',
+ title: 'a',
+ url: 'https://support.google.com/campaignmanager/answer/7554821?zippy=%2Cfields-in-event-snippets-for-counter-tags%2Cstep-add-the-global-snippet-to-every-page-of-your-site%2Cstep-add-the-event-snippet-to-pages-with-events-youre-tracking%2Cfields-in-the-global-snippet%2Cfields-in-the-event-snippet---overview%2Cfields-in-all-event-snippets%2Cexample-event-snippet-for-counter---standard-activities%2Cexample-event-snippet-for-counter---unique-activities%2Cexample-event-snippet-for-counter---per-session-activities%2Cfields-in-event-snippets-for-sales-tags%2Cexample-event-snippet-for-sales---transaction-activities%2Cexample-event-snippet-for-sales---items-sold-activities%2Ccustom-fields%2Cnoscript-section-of-event-snippets%2Cdo-i-need-to-set-up-cache-busting-with-the-global-site-tag%2Cwhy-is-the-global-site-tag-placed-in-the-head-when-iframe-and-image-tags-were-placed-in-the-body-of-my-site%2Cwhere-can-i-learn-more-about-the-global-site-tag%2Cstep-add-the-event-snippet-to-pages-with-events-youre-tracking%2Cfields-in-the-global-snippet%2Cfields-in-the-event-snippet---overview%2Cfields-in-all-event-snippets%2Cexample-event-snippet-for-counter---standard-activities%2Cexample-event-snippet-for-counter---unique-activities%2Cexample-event-snippet-for-counter---per-session-activities%2Cfields-in-event-snippets-for-sales-tags%2Cexample-event-snippet-for-sales---transaction-activities%2Cexample-event-snippet-for-sales---items-sold-activities%2Ccustom-fields%2Cnoscript-section-of-event-snippets%2Cdo-i-need-to-set-up-cache-busting-with-the-global-site-tag%2Cwhy-is-the-global-site-tag-placed-in-the-head-when-iframe-and-image-tags-were-placed-in-the-body-of-my-site%2Cwhere-can-i-learn-more-about-the-global-site-tag%2Cstep-add-the-event-snippet-to-pages-with-events-youre-tracking%2Cfields-in-the-global-snippet%2Cfields-in-the-event-snippet---overview%2Cfields-in-all-event-snippets%2Cexample-event-snippet-for-counter---standard-activities%2Cexample-event-snippet-for-counter---unique-activities%2Cexample-event-snippet-for-counter---per-session-activities%2Cfields-in-event-snippets-for-sales-tags%2Cexample-event-snippet-for-sales---transaction-activities%2Cexample-event-snippet-for-sales---items-sold-activities%2Ccustom-fields%2Cnoscript-section-of-event-snippets%2Cdo-i-need-to-set-up-cache-busting-with-the-global-site-tag%2Cwhy-is-the-global-site-tag-placed-in-the-head-when-iframe-and-image-tags-were-placed-in-the-body-of-my-site%2Cwhere-can-i-learn-more-about-the-global-site-tag%2Cwhy-is-the-global-site-tag-placed-in-the-head-when-iframe-and-image-tags-were-placed-in-the-body-of-my-site%2Cwhere-can-i-learn-more-about-the-global-site-tag%2Cwhy-is-the-global-site-tag-placed-in-the-head-when-iframe-and-image-tags-were-placed-in-the-body-of-my-site%2Cwhere-can-i-learn-more-about-the-global-site-tag%2Cwhy-is-the-global-site-tag-placed-in-the-head-when-iframe-and-image-tags-were-placed-in-the-body-of-my-site%2Cwhere-can-i-learn-more-about-the-global-site-tag%2Cwhy-is-the-global-site-tag-placed-in-the-head-when-iframe-and-image-tags-were-placed-in-the-body-of-my-site%2Cwhere-can-i-learn-more-about-the-global-site-tag%2Cwhy-is-the-global-site-tag-placed-in-the-head-when-iframe-and-image-tags-were-placed-in-the-body-of-my-site%2Cwhere-can-i-learn-more-about-the-global-site-tag%2Cwhy-is-the-global-site-tag-placed-in-the-head-lakjsdlkfjalsdkfjis-the-global-site-tag-placed-in-the-head-lakjsdlkfjalsdkfjis-the-global-site-tag-placed-in-the-head-lakjsdlkfjalsdkfjakljshdlfkjahsldkfjahlskdfjhaklsjdfhalksjdhflakjshdflakjsdhfklasjhdflaksjhdflaksjdfhlakjshdflakjsdhfklasjhdflaksjhdflaksjdfhlakjshdflakjsdhfklasjhdflaksjhdflaksjdfhljkkwoipqpweoirpoqiwerpoqi1111111111111',
+ },
+ integrations: {
+ All: true,
+ },
+ name: 'ApplicationLoaded',
+ sentAt: '2019-10-14T11:15:53.296Z',
+ },
+ destination: {
+ Config: {
+ anonymizeIp: false,
+ eventDeliveryTS: 1657516676962,
+ eventFilteringOption: 'disable',
+ trackingID: 'UA-165994240-1',
+ },
+ },
+ },
+ ],
+ },
+ },
+ output: {
+ response: {
+ status: 200,
+ body: [
+ {
+ output: {
+ version: '1',
+ type: 'REST',
+ method: 'POST',
+ endpoint: 'https://www.google-analytics.com/collect',
+ headers: {},
+ params: {
+ dp: '%2Fcampaignmanager%2Fanswer%2F7554821',
+ dl: 'https://support.google.com/campaignmanager/answer/7554821?zippy=%2Cfields-in-event-snippets-for-counter-tags%2Cstep-add-the-global-snippet-to-every-page-of-your-site%2Cstep-add-the-event-snippet-to-pages-with-events-youre-tracking%2Cfields-in-the-global-snippet%2Cfields-in-the-event-snippet---overview%2Cfields-in-all-event-snippets%2Cexample-event-snippet-for-counter---standard-activities%2Cexample-event-snippet-for-counter---unique-activities%2Cexample-event-snippet-for-counter---per-session-activities%2Cfields-in-event-snippets-for-sales-tags%2Cexample-event-snippet-for-sales---transaction-activities%2Cexample-event-snippet-for-sales---items-sold-activities%2Ccustom-fields%2Cnoscript-section-of-event-snippets%2Cdo-i-need-to-set-up-cache-busting-with-the-global-site-tag%2Cwhy-is-the-global-site-tag-placed-in-the-head-when-iframe-and-image-tags-were-placed-in-the-body-of-my-site%2Cwhere-can-i-learn-more-about-the-global-site-tag%2Cstep-add-the-event-snippet-to-pages-with-events-youre-tracking%2Cfields-in-the-global-snippet%2Cfields-in-the-event-snippet---overview%2Cfields-in-all-event-snippets%2Cexample-event-snippet-for-counter---standard-activities%2Cexample-event-snippet-for-counter---unique-activities%2Cexample-event-snippet-for-counter---per-session-activities%2Cfields-in-event-snippets-for-sales-tags%2Cexample-event-snippet-for-sales---transaction-activities%2Cexample-event-snippet-for-sales---items-sold-activities%2Ccustom-fields%2Cnoscript-section-of-event-snippets%2Cdo-i-need-to-set-up-cache-busting-with-the-global-site-tag%2Cwhy-is-the-global-site-tag-placed-in-the-head-when-iframe-and-image-tags-were-placed-in-the-body-of-my-site%2Cwhere-can-i-learn-more-about-the-global-site-tag%2Cstep-add-the-event-snippet-to-pages-with-events-youre-tracking%2Cfields-in-the-global-snippet%2Cfields-in-the-event-snippet---overview%2Cfields-in-all-event-snippets%2Cexample-event-snippet-for-counter---standard-activities%2Cexample-event-snippet-for-counter---unique-activities%2Cexample-event-snippet-for-counter---per-session-activities%2Cfields-in-event-snippets-for-sales-tags%2Cexample-event-snippet-for-sales---transaction-activities%2Cexample-event-snippet-for-sales---items-sold-activities%2Ccustom-fields%2Cnoscript-section-of-event-snippets%2Cdo-i-need-to-set-up-cache-busting-with-the-global-site-tag%2Cwhy-is-the-global-site-tag-placed-in-the-head-when-iframe-and-image-tags-were-placed-in-the-body-of-my-site%2Cwhere-can-i-learn-more-about-the-global-site-tag%2Cwhy-is-the-global-site-tag-placed-in-the-head-when-iframe-and-image-tags-were-placed-in-the-body-of-my-site%2Cwhere-can-i-learn-more-about-the-global-site-tag%2Cwhy-is-the-global-site-tag-placed-in-the-head-when-iframe-and-image-tags-were-placed-in-the-body-of-my-site%2Cwhere-can-i-learn-more-about-the-global-site-tag%2Cwhy-is-the-global-site-tag-placed-in-the-head-when-iframe-and-image-tags-were-placed-in-the-body-of-my-site%2Cwhere-can-i-learn-more-about-the-global-site-tag%2Cwhy-is-the-global-site-tag-placed-in-the-head-when-iframe-and-image-tags-were-placed-in-the-body-of-my-site%2Cwhere-can-i-learn-more-about-the-global-site-tag%2Cwhy-is-the-global-site-tag-placed-in-the-head-when-iframe-and-image-tags-were-placed-in-the-body-of-my-site%2Cwhere-can-i-learn-more-about-the-global-site-tag%2Cwhy-is-the-global-site-tag-placed-in-the-head-lakjsdlkfjalsdkfjis-the-global-site-tag-placed-in-the-head-lakjsdlkfjalsdkfjis-the-global-site-tag-placed-in-the-head-lakjsdlkfjalsdkfjakljshdlfkjahsldkfjahlskdfjhaklsjdfhalksjdhflakjshdflakjsdhfklasjhdflaksjhdflaksjdfhlakjshdflakjsdhfklasjhdflaksjhdflaksjdfhlakjshdflakjsdhfklasjhdflaksjhdflaksjdfhljkkwoipqpweoirpoqiwerpoqi1111111111111',
+ dh: 'support.google.com',
+ dt: 'a',
+ dr: 'https://google.com/answer/7554821?zippy=%2Cfields-in-event-snippets-for-counter-tags%2Cstep-add-the-global-snippet-to-every-page-of-your-site%2Cstep-add-the-event-snippet-to-pages-with-events-youre-tracking%2Cfields-in-the-global-snippet%2Cfields-in-the-event-snippet---overview%2Cfields-in-all-event-snippets%2Cexample-event-snippet-for-counter---standard-activities%2Cexample-event-snippet-for-counter---unique-activities%2Cexample-event-snippet-for-counter---per-session-activities%2Cfields-in-event-snippets-for-sales-tags%2Cexample-event-snippet-for-sales---transaction-activities%2Cexample-event-snippet-for-sales---items-sold-activities%2Ccustom-fields%2Cnoscript-section-of-event-snippets%2Cdo-i-need-to-set-up-cache-busting-with-the-global-site-tag%2Cwhy-is-the-global-site-tag-placed-in-the-head-when-iframe-and-image-tags-were-placed-in-the-body-of-my-site%2Cwhere-can-i-learn-more-about-the-global-site-tag%2Cstep-add-the-event-snippet-to-pages-with-events-youre-tracking%2Cfields-in-the-global-snippet%2Cfields-in-the-event-snippet---overview%2Cfields-in-all-event-snippets%2Cexample-event-snippet-for-counter---standard-activities%2Cexample-event-snippet-for-counter---unique-activities%2Cexample-event-snippet-for-counter---per-session-activities%2Cfields-in-event-snippets-for-sales-tags%2Cexample-event-snippet-for-sales---transaction-activities%2Cexample-event-snippet-for-sales---items-sold-activities%2Ccustom-fields%2Cnoscript-section-of-event-snippets%2Cdo-i-need-to-set-up-cache-busting-with-the-global-site-tag%2Cwhy-is-the-global-site-tag-placed-in-the-head-when-iframe-and-image-tags-were-placed-in-the-body-of-my-site%2Cwhere-can-i-learn-more-about-the-global-site-tag%2Cstep-add-the-event-snippet-to-pages-with-events-youre-tracking%2Cfields-in-the-global-snippet%2Cfields-in-the-event-snippet---overview%2Cfields-in-all-event-snippets%2Cexample-event-snippet-for-counter---standard-activities%2Cexample-event-snippet-for-counter---unique-activities%2Cexample-event-snippet-for-counter---per-session-activities%2Cfields-in-event-snippets-for-sales-tags%2Cexample-event-snippet-for-sales---transaction-activities%2Cexample-event-snippet-for-sales---items-sold-activities%2Ccustom-fields%2Cnoscript-section-of-event-snippets%2Cdo-i-need-to-set-up-cache-busting-with-the-global-site-tag%2Cwhy-is-the-global-site-tag-placed-in-the-head-when-iframe-and-image-tags-were-placed-in-the-body-of-my-site%2Cwhere-can-i-learn-more-about-the-global-site-tag%2Cwhy-is-the-global-site-tag-placed-in-the-head-when-iframe-and-image-tags-were-placed-in-the-body-of-my-site%2Cwhere-can-i-learn-more-about-the-global-site-tag%2Cwhy-is-the-global-site-tag-placed-in-the-head-when-iframe-and-image-tags-were-placed-in-the-body-of-my-site%2Cwhere-can-i-learn-more-about-the-global-site-tag%2Cwhy-is-the-global-site-tag-placed-in-the-head-when-iframe-and-image-tags-were-placed-in-the-body-of-my-site%2Cwhere-can-i-learn-more-about-the-global-site-tag%2Cwhy-is-the-global-site-tag-placed-in-the-head-when-iframe-and-image-tags-were-placed-in-the-body-of-my-site%2Cwhere-can-i-learn-more-about-the-global-site-tag%2Cwhy-is-the-global-site-tag-placed-in-the-head-when-iframe-and-image-tags-were-placed-in-the-body-of-my-site%2Cwhere-can-i-learn-more-about-tg%2Cwhy-is-the-global-site-tag-placed-in-the-head-when-iframe-and-image-tags-were-placed-in-the-body-of-my-site%2Cwhere-can-i-learns-more-about-the-global-site-tag%2Cwhy-is-the-globalthe-head-when-iframe-and-image-tags-were-placed-in-the-body-placed-of-my-site%2Cwhere-can-i-learn-g2Cwhy-is-the-global-site-tag-placed-in-the-head-when-iframe-and-and-in-the-body-of-my-site%2Cwhere-can-i-learn-more-about-the-global-site-tag%2Cwhy-n-the-head-when-iframe-and-image-tags-were-placed-in-the-body-of-my-site%2Cwhere-can-i-learn-more-about-the-global-site-tag',
+ v: '1',
+ t: 'pageview',
+ tid: 'UA-165994240-1',
+ ds: 'web',
+ ua: 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36',
+ ul: 'en-US',
+ an: 'RudderLabs JavaScript SDK',
+ av: '1.0.0',
+ aiid: 'com.rudderlabs.javascript',
+ cid: '00000000000000000000000000',
+ uip: '0.0.0.0',
+ qt: 124893881701,
+ },
+ body: {
+ JSON: {},
+ JSON_ARRAY: {},
+ XML: {},
+ FORM: {},
+ },
+ files: {},
+ userId: '00000000000000000000000000',
+ },
+ statusCode: 200,
+ },
+ ],
+ },
+ },
+ },
+].map((d) => ({ ...d, mockFns }));
diff --git a/test/integrations/destinations/ga360/processor/data.ts b/test/integrations/destinations/ga360/processor/data.ts
index 66de4079ff..40b3495062 100644
--- a/test/integrations/destinations/ga360/processor/data.ts
+++ b/test/integrations/destinations/ga360/processor/data.ts
@@ -1,9456 +1,9507 @@
export const mockFns = (_) => {
// @ts-ignore
- jest
- .useFakeTimers()
- .setSystemTime(new Date('2023-09-29'));
+ jest.useFakeTimers().setSystemTime(new Date('2023-09-29'));
};
export const data = [
{
- "name": "ga360",
- "description": "Test 0",
- "feature": "processor",
- "module": "destination",
- "version": "v0",
- "input": {
- "request": {
- "body": [
- {
- "message": {
- "channel": "web",
- "context": {
- "traits": {
- "name": "Rudder Test"
- },
- "app": {
- "build": "1.0.0",
- "name": "RudderLabs JavaScript SDK",
- "namespace": "com.rudderlabs.javascript",
- "version": "1.0.0"
- },
- "library": {
- "name": "RudderLabs JavaScript SDK",
- "version": "1.0.0"
- },
- "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36",
- "locale": "en-US",
- "ip": "0.0.0.0",
- "os": {
- "name": "",
- "version": ""
- },
- "screen": {
- "density": 2
- }
- },
- "properties": {
- "plan": "standard plan",
- "name": "rudder test"
- },
- "type": "identify",
- "messageId": "84e26acc-56a5-4835-8233-591137fca468",
- "originalTimestamp": "2019-10-14T09:03:17.562Z",
- "anonymousId": "00000000000000000000000000",
- "userId": "123456",
- "integrations": {
- "All": true
- },
- "sentAt": "2019-10-14T09:03:22.563Z"
- },
- "destination": {
- "Config": {
- "trackingID": "UA-165994240-1",
- "doubleClick": true,
- "enhancedLinkAttribution": true,
- "classic": true,
- "ignoredReferrers": "",
- "serverClassic": false,
- "includeSearch": true,
- "trackCategorizedPages": true,
- "trackNamedPages": true,
- "sampleRate": "100",
- "siteSpeedSampleRate": "1",
- "setAllMappedProps": true,
- "enableServerSideIdentify": true,
- "serverSideIdentifyEventCategory": "name",
- "serverSideIdentifyEventAction": "action1",
- "anonymizeIp": true,
- "domain": "domain",
- "enhancedEcommerce": true,
- "nonInteraction": true,
- "optimize": "abc123",
- "sendUserId": true,
- "useGoogleAmpClientId": true,
- "web-useNativeSDK": true,
- "dimensions": [
- {
- "from": "name",
- "to": "dimension1"
- },
- {
- "from": "custom2",
- "to": "dimension2"
- }
- ],
- "metrics": [
- {
- "from": "email",
- "to": "metric1"
- },
- {
- "from": "trait2",
- "to": "metric2"
- }
- ],
- "resetCustomDimensionsOnPage": [
- {
- "resetCustomDimensionsOnPage": "abc"
- },
- {
- "resetCustomDimensionsOnPage": "xyz"
- }
- ],
- "contentGroupings": [
- {
- "from": "plan",
- "to": "contentGroup1"
- },
- {
- "from": "name",
- "to": "contentGroup2"
- }
- ]
- },
- "Enabled": true
- }
- }
- ]
- }
+ name: 'ga360',
+ description: 'Test 0',
+ feature: 'processor',
+ module: 'destination',
+ version: 'v0',
+ input: {
+ request: {
+ body: [
+ {
+ message: {
+ channel: 'web',
+ context: {
+ traits: {
+ name: 'Rudder Test',
+ },
+ app: {
+ build: '1.0.0',
+ name: 'RudderLabs JavaScript SDK',
+ namespace: 'com.rudderlabs.javascript',
+ version: '1.0.0',
+ },
+ library: {
+ name: 'RudderLabs JavaScript SDK',
+ version: '1.0.0',
+ },
+ userAgent:
+ 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36',
+ locale: 'en-US',
+ ip: '0.0.0.0',
+ os: {
+ name: '',
+ version: '',
+ },
+ screen: {
+ density: 2,
+ },
+ },
+ properties: {
+ plan: 'standard plan',
+ name: 'rudder test',
+ },
+ type: 'identify',
+ messageId: '84e26acc-56a5-4835-8233-591137fca468',
+ originalTimestamp: '2019-10-14T09:03:17.562Z',
+ anonymousId: '00000000000000000000000000',
+ userId: '123456',
+ integrations: {
+ All: true,
+ },
+ sentAt: '2019-10-14T09:03:22.563Z',
+ },
+ destination: {
+ Config: {
+ trackingID: 'UA-165994240-1',
+ doubleClick: true,
+ enhancedLinkAttribution: true,
+ classic: true,
+ ignoredReferrers: '',
+ serverClassic: false,
+ includeSearch: true,
+ trackCategorizedPages: true,
+ trackNamedPages: true,
+ sampleRate: '100',
+ siteSpeedSampleRate: '1',
+ setAllMappedProps: true,
+ enableServerSideIdentify: true,
+ serverSideIdentifyEventCategory: 'name',
+ serverSideIdentifyEventAction: 'action1',
+ anonymizeIp: true,
+ domain: 'domain',
+ enhancedEcommerce: true,
+ nonInteraction: true,
+ optimize: 'abc123',
+ sendUserId: true,
+ useGoogleAmpClientId: true,
+ 'web-useNativeSDK': true,
+ dimensions: [
+ {
+ from: 'name',
+ to: 'dimension1',
+ },
+ {
+ from: 'custom2',
+ to: 'dimension2',
+ },
+ ],
+ metrics: [
+ {
+ from: 'email',
+ to: 'metric1',
+ },
+ {
+ from: 'trait2',
+ to: 'metric2',
+ },
+ ],
+ resetCustomDimensionsOnPage: [
+ {
+ resetCustomDimensionsOnPage: 'abc',
+ },
+ {
+ resetCustomDimensionsOnPage: 'xyz',
+ },
+ ],
+ contentGroupings: [
+ {
+ from: 'plan',
+ to: 'contentGroup1',
+ },
+ {
+ from: 'name',
+ to: 'contentGroup2',
+ },
+ ],
+ },
+ Enabled: true,
+ },
+ },
+ ],
+ },
+ },
+ output: {
+ response: {
+ status: 200,
+ body: [
+ {
+ output: {
+ version: '1',
+ type: 'REST',
+ method: 'POST',
+ endpoint: 'https://www.google-analytics.com/collect',
+ headers: {},
+ params: {
+ ea: 'action1',
+ ec: 'Rudder Test',
+ cd1: 'Rudder Test',
+ cg2: 'Rudder Test',
+ v: '1',
+ t: 'event',
+ tid: 'UA-165994240-1',
+ ds: 'web',
+ an: 'RudderLabs JavaScript SDK',
+ av: '1.0.0',
+ aiid: 'com.rudderlabs.javascript',
+ npa: 1,
+ aip: 1,
+ uid: '123456',
+ cid: '00000000000000000000000000',
+ ni: 1,
+ uip: '0.0.0.0',
+ ua: 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36',
+ ul: 'en-US',
+ qt: 124901802438,
+ },
+ body: {
+ JSON: {},
+ XML: {},
+ JSON_ARRAY: {},
+ FORM: {},
+ },
+ files: {},
+ userId: '00000000000000000000000000',
+ },
+ statusCode: 200,
+ },
+ ],
+ },
+ },
+ },
+ {
+ name: 'ga360',
+ description: 'Test 1',
+ feature: 'processor',
+ module: 'destination',
+ version: 'v0',
+ input: {
+ request: {
+ body: [
+ {
+ message: {
+ channel: 'web',
+ context: {
+ app: {
+ build: '1.0.0',
+ name: 'RudderLabs JavaScript SDK',
+ namespace: 'com.rudderlabs.javascript',
+ version: '1.0.0',
+ },
+ traits: {
+ email: 'test@rudderstack.com',
+ },
+ library: {
+ name: 'RudderLabs JavaScript SDK',
+ version: '1.0.0',
+ },
+ userAgent:
+ 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36',
+ locale: 'en-US',
+ ip: '0.0.0.0',
+ os: {
+ name: '',
+ version: '',
+ },
+ screen: {
+ density: 2,
+ },
+ },
+ type: 'page',
+ messageId: '5e10d13a-bf9a-44bf-b884-43a9e591ea71',
+ originalTimestamp: '2019-10-14T11:15:18.299Z',
+ anonymousId: '00000000000000000000000000',
+ userId: '12345',
+ properties: {
+ path: '/abc',
+ referrer: 'q',
+ search: '',
+ title: 'a',
+ url: 'https://www.example.com/abc',
+ },
+ integrations: {
+ All: true,
+ },
+ name: 'ApplicationLoaded',
+ sentAt: '2019-10-14T11:15:53.296Z',
+ },
+ destination: {
+ Config: {
+ trackingID: 'UA-165994240-1',
+ doubleClick: true,
+ enhancedLinkAttribution: true,
+ classic: true,
+ ignoredReferrers: '',
+ serverClassic: false,
+ includeSearch: true,
+ trackCategorizedPages: true,
+ trackNamedPages: true,
+ sampleRate: '100',
+ siteSpeedSampleRate: '1',
+ setAllMappedProps: true,
+ enableServerSideIdentify: true,
+ serverSideIdentifyEventCategory: 'cat1',
+ serverSideIdentifyEventAction: 'action1',
+ anonymizeIp: true,
+ domain: 'domain',
+ enhancedEcommerce: true,
+ nonInteraction: true,
+ optimize: 'abc123',
+ sendUserId: true,
+ useGoogleAmpClientId: true,
+ 'web-useNativeSDK': true,
+ dimensions: [
+ {
+ from: 'name',
+ to: 'dimension1',
+ },
+ {
+ from: 'custom2',
+ to: 'dimension2',
+ },
+ ],
+ metrics: [
+ {
+ from: 'email',
+ to: 'metric1',
+ },
+ {
+ from: 'trait2',
+ to: 'metric2',
+ },
+ ],
+ resetCustomDimensionsOnPage: [
+ {
+ resetCustomDimensionsOnPage: 'abc',
+ },
+ {
+ resetCustomDimensionsOnPage: 'xyz',
+ },
+ ],
+ contentGroupings: [
+ {
+ from: 'plan',
+ to: 'contentGroup1',
+ },
+ {
+ from: 'prop2',
+ to: 'contentGroup2',
+ },
+ ],
+ },
+ Enabled: true,
+ },
+ },
+ ],
+ },
+ },
+ output: {
+ response: {
+ status: 200,
+ body: [
+ {
+ output: {
+ version: '1',
+ type: 'REST',
+ method: 'POST',
+ endpoint: 'https://www.google-analytics.com/collect',
+ headers: {},
+ params: {
+ v: '1',
+ t: 'pageview',
+ tid: 'UA-165994240-1',
+ ds: 'web',
+ an: 'RudderLabs JavaScript SDK',
+ av: '1.0.0',
+ aiid: 'com.rudderlabs.javascript',
+ npa: 1,
+ aip: 1,
+ cid: '00000000000000000000000000',
+ ua: 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36',
+ uid: '12345',
+ uip: '0.0.0.0',
+ ul: 'en-US',
+ dh: 'www.example.com',
+ dl: 'https://www.example.com/abc',
+ dp: '%2Fabc',
+ dr: 'q',
+ dt: 'a',
+ qt: 124893881701,
+ },
+ body: {
+ JSON: {},
+ XML: {},
+ JSON_ARRAY: {},
+ FORM: {},
+ },
+ files: {},
+ userId: '00000000000000000000000000',
+ },
+ statusCode: 200,
+ },
+ ],
+ },
+ },
+ },
+ {
+ name: 'ga360',
+ description: 'Test 2',
+ feature: 'processor',
+ module: 'destination',
+ version: 'v0',
+ input: {
+ request: {
+ body: [
+ {
+ message: {
+ channel: 'web',
+ context: {
+ app: {
+ build: '1.0.0',
+ name: 'RudderLabs JavaScript SDK',
+ namespace: 'com.rudderlabs.javascript',
+ version: '1.0.0',
+ },
+ traits: {
+ email: 'test@rudderstack.com',
+ },
+ library: {
+ name: 'RudderLabs JavaScript SDK',
+ version: '1.0.0',
+ },
+ userAgent:
+ 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36',
+ locale: 'en-US',
+ os: {
+ name: '',
+ version: '',
+ },
+ screen: {
+ density: 2,
+ },
+ },
+ type: 'track',
+ messageId: 'ec5481b6-a926-4d2e-b293-0b3a77c4d3be',
+ originalTimestamp: '2019-10-14T11:15:18.300Z',
+ anonymousId: '00000000000000000000000000',
+ userId: '12345',
+ event: 'test track event GA3',
+ properties: {
+ category: 'test-category',
+ user_actual_role: 'system_admin, system_user',
+ user_actual_id: 12345,
+ },
+ integrations: {
+ All: true,
+ },
+ sentAt: '2019-10-14T11:15:53.296Z',
+ },
+ destination: {
+ Config: {
+ trackingID: 'UA-165994240-1',
+ doubleClick: true,
+ enhancedLinkAttribution: true,
+ classic: true,
+ ignoredReferrers: '',
+ serverClassic: false,
+ includeSearch: true,
+ trackCategorizedPages: true,
+ trackNamedPages: true,
+ sampleRate: '100',
+ siteSpeedSampleRate: '1',
+ setAllMappedProps: true,
+ enableServerSideIdentify: true,
+ serverSideIdentifyEventCategory: 'cat1',
+ serverSideIdentifyEventAction: 'action1',
+ anonymizeIp: true,
+ domain: 'domain',
+ enhancedEcommerce: true,
+ nonInteraction: true,
+ optimize: 'abc123',
+ sendUserId: true,
+ useGoogleAmpClientId: true,
+ 'web-useNativeSDK': true,
+ dimensions: [
+ {
+ from: 'name',
+ to: 'dimension1',
+ },
+ {
+ from: 'custom2',
+ to: 'dimension2',
+ },
+ ],
+ metrics: [
+ {
+ from: 'email',
+ to: 'metric1',
+ },
+ {
+ from: 'trait2',
+ to: 'metric2',
+ },
+ ],
+ resetCustomDimensionsOnPage: [
+ {
+ resetCustomDimensionsOnPage: 'abc',
+ },
+ {
+ resetCustomDimensionsOnPage: 'xyz',
+ },
+ ],
+ contentGroupings: [
+ {
+ from: 'plan',
+ to: 'contentGroup1',
+ },
+ {
+ from: 'prop2',
+ to: 'contentGroup2',
+ },
+ ],
+ },
+ Enabled: true,
+ },
+ },
+ ],
+ },
+ },
+ output: {
+ response: {
+ status: 200,
+ body: [
+ {
+ output: {
+ version: '1',
+ type: 'REST',
+ method: 'POST',
+ endpoint: 'https://www.google-analytics.com/collect',
+ headers: {},
+ params: {
+ ec: 'test-category',
+ ni: 1,
+ v: '1',
+ el: 'event',
+ t: 'event',
+ tid: 'UA-165994240-1',
+ ds: 'web',
+ an: 'RudderLabs JavaScript SDK',
+ av: '1.0.0',
+ aiid: 'com.rudderlabs.javascript',
+ npa: 1,
+ aip: 1,
+ cid: '00000000000000000000000000',
+ ea: 'test track event GA3',
+ ua: 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36',
+ uid: '12345',
+ ul: 'en-US',
+ qt: 124893881700,
+ },
+ body: {
+ JSON: {},
+ XML: {},
+ JSON_ARRAY: {},
+ FORM: {},
+ },
+ files: {},
+ userId: '00000000000000000000000000',
+ },
+ statusCode: 200,
+ },
+ ],
+ },
+ },
+ },
+ {
+ name: 'ga360',
+ description: 'Test 3',
+ feature: 'processor',
+ module: 'destination',
+ version: 'v0',
+ input: {
+ request: {
+ body: [
+ {
+ message: {
+ channel: 'web',
+ context: {
+ app: {
+ build: '1.0.0',
+ name: 'RudderLabs JavaScript SDK',
+ namespace: 'com.rudderlabs.javascript',
+ version: '1.0.0',
+ },
+ traits: {
+ email: 'test@rudderstack.com',
+ },
+ library: {
+ name: 'RudderLabs JavaScript SDK',
+ version: '1.0.0',
+ },
+ userAgent:
+ 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36',
+ locale: 'en-US',
+ os: {
+ name: '',
+ version: '',
+ },
+ screen: {
+ density: 2,
+ },
+ },
+ type: 'track',
+ messageId: 'ec5481b6-a926-4d2e-b293-0b3a77c4d3be',
+ originalTimestamp: '2019-10-14T11:15:18.300Z',
+ anonymousId: '00000000000000000000000000',
+ userId: '12345',
+ event: 'order completed',
+ properties: {
+ order_id: 'rudderstackorder1',
+ total: 99.99,
+ shipping: 13.99,
+ tax: 20.99,
+ currency: 'INR',
+ products: [
+ {
+ quantity: 1,
+ price: 24.75,
+ name: 'my product',
+ sku: 'p-298',
+ },
+ {
+ quantity: 3,
+ price: 24.75,
+ name: 'other product',
+ sku: 'p-299',
+ },
+ ],
+ },
+ integrations: {
+ All: true,
+ },
+ sentAt: '2019-10-14T11:15:53.296Z',
+ },
+ destination: {
+ Config: {
+ trackingID: 'UA-165994240-1',
+ doubleClick: true,
+ enhancedLinkAttribution: true,
+ classic: true,
+ ignoredReferrers: '',
+ serverClassic: false,
+ includeSearch: true,
+ trackCategorizedPages: true,
+ trackNamedPages: true,
+ sampleRate: '100',
+ siteSpeedSampleRate: '1',
+ setAllMappedProps: true,
+ enableServerSideIdentify: true,
+ serverSideIdentifyEventCategory: 'cat1',
+ serverSideIdentifyEventAction: 'action1',
+ anonymizeIp: true,
+ domain: 'domain',
+ enhancedEcommerce: true,
+ nonInteraction: true,
+ optimize: 'abc123',
+ sendUserId: true,
+ useGoogleAmpClientId: true,
+ 'web-useNativeSDK': true,
+ dimensions: [
+ {
+ from: 'name',
+ to: 'dimension1',
+ },
+ {
+ from: 'custom2',
+ to: 'dimension2',
+ },
+ ],
+ metrics: [
+ {
+ from: 'email',
+ to: 'metric1',
+ },
+ {
+ from: 'trait2',
+ to: 'metric2',
+ },
+ ],
+ resetCustomDimensionsOnPage: [
+ {
+ resetCustomDimensionsOnPage: 'abc',
+ },
+ {
+ resetCustomDimensionsOnPage: 'xyz',
+ },
+ ],
+ contentGroupings: [
+ {
+ from: 'plan',
+ to: 'contentGroup1',
+ },
+ {
+ from: 'prop2',
+ to: 'contentGroup2',
+ },
+ ],
+ },
+ Enabled: true,
+ },
+ },
+ ],
+ },
+ },
+ output: {
+ response: {
+ status: 200,
+ body: [
+ {
+ output: {
+ version: '1',
+ type: 'REST',
+ method: 'POST',
+ endpoint: 'https://www.google-analytics.com/collect',
+ headers: {},
+ params: {
+ pa: 'purchase',
+ tr: 99.99,
+ ev: 100,
+ pr1id: 'p-298',
+ pr1cd1: 'my product',
+ pr1nm: 'my product',
+ pr1pr: 24.75,
+ pr2id: 'p-299',
+ pr2cd1: 'other product',
+ pr2nm: 'other product',
+ pr2pr: 24.75,
+ ea: 'order completed',
+ ec: 'EnhancedEcommerce',
+ v: '1',
+ t: 'event',
+ el: 'event',
+ tid: 'UA-165994240-1',
+ ds: 'web',
+ an: 'RudderLabs JavaScript SDK',
+ av: '1.0.0',
+ aiid: 'com.rudderlabs.javascript',
+ npa: 1,
+ aip: 1,
+ cid: '00000000000000000000000000',
+ ti: 'rudderstackorder1',
+ ts: 13.99,
+ tt: 20.99,
+ cu: 'INR',
+ ua: 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36',
+ uid: '12345',
+ ni: 1,
+ pr1qt: 1,
+ pr2qt: 3,
+ ul: 'en-US',
+ qt: 124893881700,
+ },
+ body: {
+ JSON: {},
+ XML: {},
+ JSON_ARRAY: {},
+ FORM: {},
+ },
+ files: {},
+ userId: '00000000000000000000000000',
+ },
+ statusCode: 200,
+ },
+ ],
+ },
+ },
+ },
+ {
+ name: 'ga360',
+ description: 'Test 4',
+ feature: 'processor',
+ module: 'destination',
+ version: 'v0',
+ input: {
+ request: {
+ body: [
+ {
+ message: {
+ channel: 'web',
+ context: {
+ app: {
+ build: '1.0.0',
+ name: 'RudderLabs JavaScript SDK',
+ namespace: 'com.rudderlabs.javascript',
+ version: '1.0.0',
+ },
+ traits: {
+ email: 'test@rudderstack.com',
+ },
+ library: {
+ name: 'RudderLabs JavaScript SDK',
+ version: '1.0.0',
+ },
+ userAgent:
+ 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36',
+ locale: 'en-US',
+ os: {
+ name: '',
+ version: '',
+ },
+ screen: {
+ density: 2,
+ },
+ },
+ type: 'track',
+ messageId: 'ec5481b6-a926-4d2e-b293-0b3a77c4d3be',
+ originalTimestamp: '2019-10-14T11:15:18.300Z',
+ anonymousId: '00000000000000000000000000',
+ userId: '12345',
+ event: 'product added',
+ properties: {
+ currency: 'CAD',
+ quantity: 1,
+ price: 24.75,
+ name: 'my product 1',
+ category: 'cat 1',
+ sku: 'p-298',
+ testDimension: true,
+ testMetric: true,
+ position: 4.5,
+ },
+ integrations: {
+ All: true,
+ },
+ sentAt: '2019-10-14T11:15:53.296Z',
+ },
+ destination: {
+ Config: {
+ trackingID: 'UA-165994240-1',
+ doubleClick: true,
+ enhancedLinkAttribution: true,
+ classic: true,
+ ignoredReferrers: '',
+ serverClassic: false,
+ includeSearch: true,
+ trackCategorizedPages: true,
+ trackNamedPages: true,
+ sampleRate: '100',
+ siteSpeedSampleRate: '1',
+ setAllMappedProps: true,
+ enableServerSideIdentify: true,
+ serverSideIdentifyEventCategory: 'cat1',
+ serverSideIdentifyEventAction: 'action1',
+ anonymizeIp: true,
+ domain: 'domain',
+ enhancedEcommerce: true,
+ nonInteraction: true,
+ optimize: 'abc123',
+ sendUserId: true,
+ useGoogleAmpClientId: true,
+ 'web-useNativeSDK': true,
+ dimensions: [
+ {
+ from: 'name',
+ to: 'dimension1',
+ },
+ {
+ from: 'custom2',
+ to: 'dimension2',
+ },
+ ],
+ metrics: [
+ {
+ from: 'email',
+ to: 'metric1',
+ },
+ {
+ from: 'trait2',
+ to: 'metric2',
+ },
+ ],
+ resetCustomDimensionsOnPage: [
+ {
+ resetCustomDimensionsOnPage: 'abc',
+ },
+ {
+ resetCustomDimensionsOnPage: 'xyz',
+ },
+ ],
+ contentGroupings: [
+ {
+ from: 'plan',
+ to: 'contentGroup1',
+ },
+ {
+ from: 'prop2',
+ to: 'contentGroup2',
+ },
+ ],
+ },
+ Enabled: true,
+ },
+ },
+ ],
+ },
+ },
+ output: {
+ response: {
+ status: 200,
+ body: [
+ {
+ output: {
+ version: '1',
+ type: 'REST',
+ method: 'POST',
+ endpoint: 'https://www.google-analytics.com/collect',
+ headers: {},
+ params: {
+ ea: 'product added',
+ ec: 'cat 1',
+ pa: 'add',
+ pr1cd1: 'my product 1',
+ pr1id: 'p-298',
+ cd1: 'my product 1',
+ v: '1',
+ t: 'event',
+ el: 'event',
+ tid: 'UA-165994240-1',
+ ds: 'web',
+ an: 'RudderLabs JavaScript SDK',
+ av: '1.0.0',
+ aiid: 'com.rudderlabs.javascript',
+ npa: 1,
+ aip: 1,
+ cid: '00000000000000000000000000',
+ pr1nm: 'my product 1',
+ pr1ca: 'cat 1',
+ cu: 'CAD',
+ pr1ps: 4.5,
+ pr1pr: 24.75,
+ pr1qt: 1,
+ ua: 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36',
+ uid: '12345',
+ ni: 1,
+ ul: 'en-US',
+ qt: 124893881700,
+ },
+ body: {
+ JSON: {},
+ XML: {},
+ JSON_ARRAY: {},
+ FORM: {},
+ },
+ files: {},
+ userId: '00000000000000000000000000',
+ },
+ statusCode: 200,
+ },
+ ],
+ },
+ },
+ },
+ {
+ name: 'ga360',
+ description: 'Test 5',
+ feature: 'processor',
+ module: 'destination',
+ version: 'v0',
+ input: {
+ request: {
+ body: [
+ {
+ message: {
+ channel: 'web',
+ context: {
+ app: {
+ build: '1.0.0',
+ name: 'RudderLabs JavaScript SDK',
+ namespace: 'com.rudderlabs.javascript',
+ version: '1.0.0',
+ },
+ traits: {
+ email: 'test@rudderstack.com',
+ },
+ library: {
+ name: 'RudderLabs JavaScript SDK',
+ version: '1.0.0',
+ },
+ userAgent:
+ 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36',
+ locale: 'en-US',
+ os: {
+ name: '',
+ version: '',
+ },
+ screen: {
+ density: 2,
+ },
+ },
+ type: 'track',
+ messageId: 'ec5481b6-a926-4d2e-b293-0b3a77c4d3be',
+ originalTimestamp: '2019-10-14T11:15:18.300Z',
+ anonymousId: '00000000000000000000000000',
+ userId: '12345',
+ event: 'product removed',
+ properties: {
+ currency: 'CAD',
+ quantity: 1,
+ price: 24.75,
+ name: 'my product 1',
+ category: 'cat 1',
+ sku: 'p-298',
+ testDimension: true,
+ testMetric: true,
+ position: 4.5,
+ },
+ integrations: {
+ All: true,
+ },
+ sentAt: '2019-10-14T11:15:53.296Z',
+ },
+ destination: {
+ Config: {
+ trackingID: 'UA-165994240-1',
+ doubleClick: true,
+ enhancedLinkAttribution: true,
+ classic: true,
+ ignoredReferrers: '',
+ serverClassic: false,
+ includeSearch: true,
+ trackCategorizedPages: true,
+ trackNamedPages: true,
+ sampleRate: '100',
+ siteSpeedSampleRate: '1',
+ setAllMappedProps: true,
+ enableServerSideIdentify: true,
+ serverSideIdentifyEventCategory: 'cat1',
+ serverSideIdentifyEventAction: 'action1',
+ anonymizeIp: true,
+ domain: 'domain',
+ enhancedEcommerce: true,
+ nonInteraction: true,
+ optimize: 'abc123',
+ sendUserId: true,
+ useGoogleAmpClientId: true,
+ 'web-useNativeSDK': true,
+ dimensions: [
+ {
+ from: 'name',
+ to: 'dimension1',
+ },
+ {
+ from: 'custom2',
+ to: 'dimension2',
+ },
+ ],
+ metrics: [
+ {
+ from: 'email',
+ to: 'metric1',
+ },
+ {
+ from: 'trait2',
+ to: 'metric2',
+ },
+ ],
+ resetCustomDimensionsOnPage: [
+ {
+ resetCustomDimensionsOnPage: 'abc',
+ },
+ {
+ resetCustomDimensionsOnPage: 'xyz',
+ },
+ ],
+ contentGroupings: [
+ {
+ from: 'plan',
+ to: 'contentGroup1',
+ },
+ {
+ from: 'prop2',
+ to: 'contentGroup2',
+ },
+ ],
+ },
+ Enabled: true,
+ },
+ },
+ ],
+ },
+ },
+ output: {
+ response: {
+ status: 200,
+ body: [
+ {
+ output: {
+ version: '1',
+ type: 'REST',
+ method: 'POST',
+ endpoint: 'https://www.google-analytics.com/collect',
+ headers: {},
+ params: {
+ ea: 'product removed',
+ ec: 'cat 1',
+ pa: 'remove',
+ pr1cd1: 'my product 1',
+ pr1id: 'p-298',
+ cd1: 'my product 1',
+ v: '1',
+ t: 'event',
+ el: 'event',
+ tid: 'UA-165994240-1',
+ ds: 'web',
+ an: 'RudderLabs JavaScript SDK',
+ av: '1.0.0',
+ aiid: 'com.rudderlabs.javascript',
+ npa: 1,
+ aip: 1,
+ cid: '00000000000000000000000000',
+ pr1nm: 'my product 1',
+ pr1ca: 'cat 1',
+ cu: 'CAD',
+ pr1ps: 4.5,
+ pr1pr: 24.75,
+ pr1qt: 1,
+ ua: 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36',
+ uid: '12345',
+ ul: 'en-US',
+ ni: 1,
+ qt: 124893881700,
+ },
+ body: {
+ JSON: {},
+ XML: {},
+ JSON_ARRAY: {},
+ FORM: {},
+ },
+ files: {},
+ userId: '00000000000000000000000000',
+ },
+ statusCode: 200,
+ },
+ ],
+ },
+ },
+ },
+ {
+ name: 'ga360',
+ description: 'Test 6',
+ feature: 'processor',
+ module: 'destination',
+ version: 'v0',
+ input: {
+ request: {
+ body: [
+ {
+ message: {
+ channel: 'web',
+ context: {
+ app: {
+ build: '1.0.0',
+ name: 'RudderLabs JavaScript SDK',
+ namespace: 'com.rudderlabs.javascript',
+ version: '1.0.0',
+ },
+ traits: {
+ email: 'test@rudderstack.com',
+ },
+ library: {
+ name: 'RudderLabs JavaScript SDK',
+ version: '1.0.0',
+ },
+ userAgent:
+ 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36',
+ locale: 'en-US',
+ os: {
+ name: '',
+ version: '',
+ },
+ screen: {
+ density: 2,
+ },
+ },
+ type: 'track',
+ messageId: 'ec5481b6-a926-4d2e-b293-0b3a77c4d3be',
+ originalTimestamp: '2019-10-14T11:15:18.300Z',
+ anonymousId: '00000000000000000000000000',
+ userId: '12345',
+ event: 'product viewed',
+ properties: {
+ currency: 'CAD',
+ quantity: 1,
+ price: 24.75,
+ name: 'my product 1',
+ category: 'cat 1',
+ sku: 'p-298',
+ testDimension: true,
+ testMetric: true,
+ position: 4.5,
+ },
+ integrations: {
+ All: true,
+ },
+ sentAt: '2019-10-14T11:15:53.296Z',
+ },
+ destination: {
+ Config: {
+ trackingID: 'UA-165994240-1',
+ doubleClick: true,
+ enhancedLinkAttribution: true,
+ classic: true,
+ ignoredReferrers: '',
+ serverClassic: false,
+ includeSearch: true,
+ trackCategorizedPages: true,
+ trackNamedPages: true,
+ sampleRate: '100',
+ siteSpeedSampleRate: '1',
+ setAllMappedProps: true,
+ enableServerSideIdentify: true,
+ serverSideIdentifyEventCategory: 'cat1',
+ serverSideIdentifyEventAction: 'action1',
+ anonymizeIp: true,
+ domain: 'domain',
+ enhancedEcommerce: true,
+ nonInteraction: true,
+ optimize: 'abc123',
+ sendUserId: true,
+ useGoogleAmpClientId: true,
+ 'web-useNativeSDK': true,
+ dimensions: [
+ {
+ from: 'name',
+ to: 'dimension1',
+ },
+ {
+ from: 'custom2',
+ to: 'dimension2',
+ },
+ ],
+ metrics: [
+ {
+ from: 'email',
+ to: 'metric1',
+ },
+ {
+ from: 'trait2',
+ to: 'metric2',
+ },
+ ],
+ resetCustomDimensionsOnPage: [
+ {
+ resetCustomDimensionsOnPage: 'abc',
+ },
+ {
+ resetCustomDimensionsOnPage: 'xyz',
+ },
+ ],
+ contentGroupings: [
+ {
+ from: 'plan',
+ to: 'contentGroup1',
+ },
+ {
+ from: 'prop2',
+ to: 'contentGroup2',
+ },
+ ],
+ },
+ Enabled: true,
+ },
+ },
+ ],
+ },
+ },
+ output: {
+ response: {
+ status: 200,
+ body: [
+ {
+ output: {
+ version: '1',
+ type: 'REST',
+ method: 'POST',
+ endpoint: 'https://www.google-analytics.com/collect',
+ headers: {},
+ params: {
+ ea: 'product viewed',
+ ec: 'cat 1',
+ pa: 'detail',
+ pr1cd1: 'my product 1',
+ pr1id: 'p-298',
+ cd1: 'my product 1',
+ v: '1',
+ t: 'event',
+ el: 'event',
+ tid: 'UA-165994240-1',
+ ds: 'web',
+ an: 'RudderLabs JavaScript SDK',
+ av: '1.0.0',
+ aiid: 'com.rudderlabs.javascript',
+ npa: 1,
+ aip: 1,
+ cid: '00000000000000000000000000',
+ pr1nm: 'my product 1',
+ pr1ca: 'cat 1',
+ cu: 'CAD',
+ pr1ps: 4.5,
+ pr1pr: 24.75,
+ pr1qt: 1,
+ ua: 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36',
+ uid: '12345',
+ ul: 'en-US',
+ ni: 1,
+ qt: 124893881700,
+ },
+ body: {
+ JSON: {},
+ XML: {},
+ JSON_ARRAY: {},
+ FORM: {},
+ },
+ files: {},
+ userId: '00000000000000000000000000',
+ },
+ statusCode: 200,
+ },
+ ],
+ },
+ },
+ },
+ {
+ name: 'ga360',
+ description: 'Test 7',
+ feature: 'processor',
+ module: 'destination',
+ version: 'v0',
+ input: {
+ request: {
+ body: [
+ {
+ message: {
+ channel: 'web',
+ context: {
+ app: {
+ build: '1.0.0',
+ name: 'RudderLabs JavaScript SDK',
+ namespace: 'com.rudderlabs.javascript',
+ version: '1.0.0',
+ },
+ traits: {
+ email: 'test@rudderstack.com',
+ },
+ library: {
+ name: 'RudderLabs JavaScript SDK',
+ version: '1.0.0',
+ },
+ userAgent:
+ 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36',
+ locale: 'en-US',
+ os: {
+ name: '',
+ version: '',
+ },
+ screen: {
+ density: 2,
+ },
+ },
+ type: 'track',
+ messageId: 'ec5481b6-a926-4d2e-b293-0b3a77c4d3be',
+ originalTimestamp: '2019-10-14T11:15:18.300Z',
+ anonymousId: '00000000000000000000000000',
+ userId: '12345',
+ event: 'product removed',
+ properties: {
+ currency: 'CAD',
+ quantity: 1,
+ price: 24.75,
+ name: 'my product 1',
+ category: 'cat 1',
+ sku: 'p-298',
+ testDimension: true,
+ testMetric: true,
+ position: 4.5,
+ },
+ integrations: {
+ All: true,
+ },
+ sentAt: '2019-10-14T11:15:53.296Z',
+ },
+ destination: {
+ Config: {
+ trackingID: 'UA-165994240-1',
+ doubleClick: true,
+ enhancedLinkAttribution: true,
+ classic: true,
+ ignoredReferrers: '',
+ serverClassic: false,
+ includeSearch: true,
+ trackCategorizedPages: true,
+ trackNamedPages: true,
+ sampleRate: '100',
+ siteSpeedSampleRate: '1',
+ setAllMappedProps: true,
+ enableServerSideIdentify: true,
+ serverSideIdentifyEventCategory: 'cat1',
+ serverSideIdentifyEventAction: 'action1',
+ anonymizeIp: true,
+ domain: 'domain',
+ enhancedEcommerce: true,
+ nonInteraction: true,
+ optimize: 'abc123',
+ sendUserId: true,
+ useGoogleAmpClientId: true,
+ 'web-useNativeSDK': true,
+ dimensions: [
+ {
+ from: 'name',
+ to: 'dimension1',
+ },
+ {
+ from: 'custom2',
+ to: 'dimension2',
+ },
+ ],
+ metrics: [
+ {
+ from: 'email',
+ to: 'metric1',
+ },
+ {
+ from: 'trait2',
+ to: 'metric2',
+ },
+ ],
+ resetCustomDimensionsOnPage: [
+ {
+ resetCustomDimensionsOnPage: 'abc',
+ },
+ {
+ resetCustomDimensionsOnPage: 'xyz',
+ },
+ ],
+ contentGroupings: [
+ {
+ from: 'plan',
+ to: 'contentGroup1',
+ },
+ {
+ from: 'prop2',
+ to: 'contentGroup2',
+ },
+ ],
+ },
+ Enabled: true,
+ },
+ },
+ ],
+ },
+ },
+ output: {
+ response: {
+ status: 200,
+ body: [
+ {
+ output: {
+ version: '1',
+ type: 'REST',
+ method: 'POST',
+ endpoint: 'https://www.google-analytics.com/collect',
+ headers: {},
+ params: {
+ ea: 'product removed',
+ ec: 'cat 1',
+ pa: 'remove',
+ pr1cd1: 'my product 1',
+ pr1id: 'p-298',
+ cd1: 'my product 1',
+ v: '1',
+ t: 'event',
+ el: 'event',
+ tid: 'UA-165994240-1',
+ ds: 'web',
+ an: 'RudderLabs JavaScript SDK',
+ av: '1.0.0',
+ aiid: 'com.rudderlabs.javascript',
+ npa: 1,
+ aip: 1,
+ cid: '00000000000000000000000000',
+ pr1nm: 'my product 1',
+ pr1ca: 'cat 1',
+ cu: 'CAD',
+ pr1ps: 4.5,
+ pr1pr: 24.75,
+ pr1qt: 1,
+ ua: 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36',
+ uid: '12345',
+ ul: 'en-US',
+ ni: 1,
+ qt: 124893881700,
+ },
+ body: {
+ JSON: {},
+ XML: {},
+ JSON_ARRAY: {},
+ FORM: {},
+ },
+ files: {},
+ userId: '00000000000000000000000000',
+ },
+ statusCode: 200,
+ },
+ ],
+ },
+ },
+ },
+ {
+ name: 'ga360',
+ description: 'Test 8',
+ feature: 'processor',
+ module: 'destination',
+ version: 'v0',
+ input: {
+ request: {
+ body: [
+ {
+ message: {
+ channel: 'web',
+ context: {
+ app: {
+ build: '1.0.0',
+ name: 'RudderLabs JavaScript SDK',
+ namespace: 'com.rudderlabs.javascript',
+ version: '1.0.0',
+ },
+ traits: {
+ email: 'test@rudderstack.com',
+ },
+ library: {
+ name: 'RudderLabs JavaScript SDK',
+ version: '1.0.0',
+ },
+ userAgent:
+ 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36',
+ locale: 'en-US',
+ os: {
+ name: '',
+ version: '',
+ },
+ screen: {
+ density: 2,
+ },
+ },
+ type: 'track',
+ messageId: 'ec5481b6-a926-4d2e-b293-0b3a77c4d3be',
+ originalTimestamp: '2019-10-14T11:15:18.300Z',
+ anonymousId: '00000000000000000000000000',
+ userId: '12345',
+ event: 'product viewed',
+ properties: {
+ currency: 'CAD',
+ quantity: 1,
+ price: 24.75,
+ name: 'my product 1',
+ category: 'cat 1',
+ sku: 'p-298',
+ testDimension: true,
+ testMetric: true,
+ position: 4.5,
+ },
+ integrations: {
+ All: true,
+ },
+ sentAt: '2019-10-14T11:15:53.296Z',
+ },
+ destination: {
+ Config: {
+ trackingID: 'UA-165994240-1',
+ doubleClick: true,
+ enhancedLinkAttribution: true,
+ classic: true,
+ ignoredReferrers: '',
+ serverClassic: false,
+ includeSearch: true,
+ trackCategorizedPages: true,
+ trackNamedPages: true,
+ sampleRate: '100',
+ siteSpeedSampleRate: '1',
+ setAllMappedProps: true,
+ enableServerSideIdentify: true,
+ serverSideIdentifyEventCategory: 'cat1',
+ serverSideIdentifyEventAction: 'action1',
+ anonymizeIp: true,
+ domain: 'domain',
+ enhancedEcommerce: true,
+ nonInteraction: true,
+ optimize: 'abc123',
+ sendUserId: true,
+ useGoogleAmpClientId: true,
+ 'web-useNativeSDK': true,
+ dimensions: [
+ {
+ from: 'name',
+ to: 'dimension1',
+ },
+ {
+ from: 'custom2',
+ to: 'dimension2',
+ },
+ ],
+ metrics: [
+ {
+ from: 'email',
+ to: 'metric1',
+ },
+ {
+ from: 'trait2',
+ to: 'metric2',
+ },
+ ],
+ resetCustomDimensionsOnPage: [
+ {
+ resetCustomDimensionsOnPage: 'abc',
+ },
+ {
+ resetCustomDimensionsOnPage: 'xyz',
+ },
+ ],
+ contentGroupings: [
+ {
+ from: 'plan',
+ to: 'contentGroup1',
+ },
+ {
+ from: 'prop2',
+ to: 'contentGroup2',
+ },
+ ],
+ },
+ Enabled: true,
+ },
+ },
+ ],
+ },
+ },
+ output: {
+ response: {
+ status: 200,
+ body: [
+ {
+ output: {
+ version: '1',
+ type: 'REST',
+ method: 'POST',
+ endpoint: 'https://www.google-analytics.com/collect',
+ headers: {},
+ params: {
+ ea: 'product viewed',
+ ec: 'cat 1',
+ pa: 'detail',
+ pr1cd1: 'my product 1',
+ pr1id: 'p-298',
+ cd1: 'my product 1',
+ v: '1',
+ t: 'event',
+ el: 'event',
+ tid: 'UA-165994240-1',
+ ds: 'web',
+ an: 'RudderLabs JavaScript SDK',
+ av: '1.0.0',
+ aiid: 'com.rudderlabs.javascript',
+ npa: 1,
+ aip: 1,
+ cid: '00000000000000000000000000',
+ pr1nm: 'my product 1',
+ pr1ca: 'cat 1',
+ cu: 'CAD',
+ pr1ps: 4.5,
+ pr1pr: 24.75,
+ pr1qt: 1,
+ ua: 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36',
+ uid: '12345',
+ ul: 'en-US',
+ ni: 1,
+ qt: 124893881700,
+ },
+ body: {
+ JSON: {},
+ XML: {},
+ JSON_ARRAY: {},
+ FORM: {},
+ },
+ files: {},
+ userId: '00000000000000000000000000',
+ },
+ statusCode: 200,
+ },
+ ],
+ },
+ },
+ },
+ {
+ name: 'ga360',
+ description: 'Test 9',
+ feature: 'processor',
+ module: 'destination',
+ version: 'v0',
+ input: {
+ request: {
+ body: [
+ {
+ message: {
+ channel: 'web',
+ context: {
+ app: {
+ build: '1.0.0',
+ name: 'RudderLabs JavaScript SDK',
+ namespace: 'com.rudderlabs.javascript',
+ version: '1.0.0',
+ },
+ traits: {
+ email: 'test@rudderstack.com',
+ },
+ library: {
+ name: 'RudderLabs JavaScript SDK',
+ version: '1.0.0',
+ },
+ userAgent:
+ 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36',
+ locale: 'en-US',
+ os: {
+ name: '',
+ version: '',
+ },
+ screen: {
+ density: 2,
+ },
+ },
+ type: 'track',
+ messageId: 'ec5481b6-a926-4d2e-b293-0b3a77c4d3be',
+ originalTimestamp: '2019-10-14T11:15:18.300Z',
+ anonymousId: '00000000000000000000000000',
+ userId: '12345',
+ event: 'product list filtered',
+ properties: {
+ category: 'cat 1',
+ list_id: '1234',
+ filters: [
+ {
+ type: 'department',
+ value: 'beauty',
+ },
+ {
+ type: 'price',
+ value: 'under',
+ },
+ ],
+ sorts: [
+ {
+ type: 'price',
+ value: 'desc',
+ },
+ ],
+ products: [
+ {
+ product_id: '507f1f77bcf86cd799439011',
+ productDimension: 'My Product Dimension',
+ productMetric: 'My Product Metric',
+ },
+ ],
+ testDimension: true,
+ testMetric: true,
+ },
+ integrations: {
+ All: true,
+ },
+ sentAt: '2019-10-14T11:15:53.296Z',
+ },
+ destination: {
+ Config: {
+ trackingID: 'UA-165994240-1',
+ doubleClick: true,
+ enhancedLinkAttribution: true,
+ classic: true,
+ ignoredReferrers: '',
+ serverClassic: false,
+ includeSearch: true,
+ trackCategorizedPages: true,
+ trackNamedPages: true,
+ sampleRate: '100',
+ siteSpeedSampleRate: '1',
+ setAllMappedProps: true,
+ enableServerSideIdentify: true,
+ serverSideIdentifyEventCategory: 'cat1',
+ serverSideIdentifyEventAction: 'action1',
+ anonymizeIp: true,
+ domain: 'domain',
+ enhancedEcommerce: true,
+ nonInteraction: true,
+ optimize: 'abc123',
+ sendUserId: true,
+ useGoogleAmpClientId: true,
+ 'web-useNativeSDK': true,
+ dimensions: [
+ {
+ from: 'name',
+ to: 'dimension1',
+ },
+ {
+ from: 'custom2',
+ to: 'dimension2',
+ },
+ ],
+ metrics: [
+ {
+ from: 'email',
+ to: 'metric1',
+ },
+ {
+ from: 'trait2',
+ to: 'metric2',
+ },
+ ],
+ resetCustomDimensionsOnPage: [
+ {
+ resetCustomDimensionsOnPage: 'abc',
+ },
+ {
+ resetCustomDimensionsOnPage: 'xyz',
+ },
+ ],
+ contentGroupings: [
+ {
+ from: 'plan',
+ to: 'contentGroup1',
+ },
+ {
+ from: 'prop2',
+ to: 'contentGroup2',
+ },
+ ],
+ },
+ Enabled: true,
+ },
+ },
+ ],
+ },
+ },
+ output: {
+ response: {
+ status: 200,
+ body: [
+ {
+ output: {
+ version: '1',
+ type: 'REST',
+ method: 'POST',
+ endpoint: 'https://www.google-analytics.com/collect',
+ headers: {},
+ params: {
+ ea: 'product list filtered',
+ ec: 'cat 1',
+ pa: 'detail',
+ il1pi1id: '507f1f77bcf86cd799439011',
+ v: '1',
+ t: 'event',
+ el: 'event',
+ tid: 'UA-165994240-1',
+ ds: 'web',
+ an: 'RudderLabs JavaScript SDK',
+ av: '1.0.0',
+ aiid: 'com.rudderlabs.javascript',
+ npa: 1,
+ aip: 1,
+ il1nm: '1234',
+ ua: 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36',
+ cid: '00000000000000000000000000',
+ uid: '12345',
+ il1pi1qt: 1,
+ il1pi1va: 'department:beauty,price:under::price:desc',
+ ul: 'en-US',
+ ni: 1,
+ qt: 124893881700,
+ },
+ body: {
+ JSON: {},
+ XML: {},
+ JSON_ARRAY: {},
+ FORM: {},
+ },
+ files: {},
+ userId: '00000000000000000000000000',
+ },
+ statusCode: 200,
+ },
+ ],
+ },
+ },
+ },
+ {
+ name: 'ga360',
+ description: 'Test 10',
+ feature: 'processor',
+ module: 'destination',
+ version: 'v0',
+ input: {
+ request: {
+ body: [
+ {
+ message: {
+ channel: 'web',
+ context: {
+ app: {
+ build: '1.0.0',
+ name: 'RudderLabs JavaScript SDK',
+ namespace: 'com.rudderlabs.javascript',
+ version: '1.0.0',
+ },
+ traits: {
+ email: 'test@rudderstack.com',
+ },
+ library: {
+ name: 'RudderLabs JavaScript SDK',
+ version: '1.0.0',
+ },
+ userAgent:
+ 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36',
+ locale: 'en-US',
+ os: {
+ name: '',
+ version: '',
+ },
+ screen: {
+ density: 2,
+ },
+ },
+ type: 'track',
+ messageId: 'ec5481b6-a926-4d2e-b293-0b3a77c4d3be',
+ originalTimestamp: '2019-10-14T11:15:18.300Z',
+ anonymousId: '00000000000000000000000000',
+ userId: '12345',
+ event: 'product list viewed',
+ properties: {
+ category: 'cat 1',
+ list_id: '1234',
+ filters: [
+ {
+ type: 'department',
+ value: 'beauty',
+ },
+ {
+ type: 'price',
+ value: 'under',
+ },
+ ],
+ sorts: [
+ {
+ type: 'price',
+ value: 'desc',
+ },
+ ],
+ products: [
+ {
+ product_id: '507f1f77bcf86cd799439011',
+ productDimension: 'My Product Dimension',
+ productMetric: 'My Product Metric',
+ position: 10,
+ },
+ {
+ product_id: '507f1f77bcf86cdef799439011',
+ productDimension: 'My Product Dimension1',
+ productMetric: 'My Product Metric1',
+ position: -10,
+ },
+ ],
+ testDimension: true,
+ testMetric: true,
+ },
+ integrations: {
+ All: true,
+ },
+ sentAt: '2019-10-14T11:15:53.296Z',
+ },
+ destination: {
+ Config: {
+ trackingID: 'UA-165994240-1',
+ doubleClick: true,
+ enhancedLinkAttribution: true,
+ classic: true,
+ ignoredReferrers: '',
+ serverClassic: false,
+ includeSearch: true,
+ trackCategorizedPages: true,
+ trackNamedPages: true,
+ sampleRate: '100',
+ siteSpeedSampleRate: '1',
+ setAllMappedProps: true,
+ enableServerSideIdentify: true,
+ serverSideIdentifyEventCategory: 'cat1',
+ serverSideIdentifyEventAction: 'action1',
+ anonymizeIp: true,
+ domain: 'domain',
+ enhancedEcommerce: true,
+ nonInteraction: true,
+ optimize: 'abc123',
+ sendUserId: true,
+ useGoogleAmpClientId: true,
+ 'web-useNativeSDK': true,
+ dimensions: [
+ {
+ from: 'name',
+ to: 'dimension1',
+ },
+ {
+ from: 'custom2',
+ to: 'dimension2',
+ },
+ ],
+ metrics: [
+ {
+ from: 'email',
+ to: 'metric1',
+ },
+ {
+ from: 'trait2',
+ to: 'metric2',
+ },
+ ],
+ resetCustomDimensionsOnPage: [
+ {
+ resetCustomDimensionsOnPage: 'abc',
+ },
+ {
+ resetCustomDimensionsOnPage: 'xyz',
+ },
+ ],
+ contentGroupings: [
+ {
+ from: 'plan',
+ to: 'contentGroup1',
+ },
+ {
+ from: 'prop2',
+ to: 'contentGroup2',
+ },
+ ],
+ },
+ Enabled: true,
+ },
+ },
+ ],
+ },
+ },
+ output: {
+ response: {
+ status: 200,
+ body: [
+ {
+ output: {
+ version: '1',
+ type: 'REST',
+ method: 'POST',
+ endpoint: 'https://www.google-analytics.com/collect',
+ headers: {},
+ params: {
+ ea: 'product list viewed',
+ ec: 'cat 1',
+ pa: 'detail',
+ il1pi1id: '507f1f77bcf86cd799439011',
+ il1pi1ps: 10,
+ il1pi2id: '507f1f77bcf86cdef799439011',
+ il1pi2ps: -10,
+ v: '1',
+ t: 'event',
+ el: 'event',
+ tid: 'UA-165994240-1',
+ ds: 'web',
+ an: 'RudderLabs JavaScript SDK',
+ av: '1.0.0',
+ aiid: 'com.rudderlabs.javascript',
+ npa: 1,
+ aip: 1,
+ il1nm: '1234',
+ ua: 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36',
+ cid: '00000000000000000000000000',
+ uid: '12345',
+ il1pi1qt: 1,
+ il1pi1va: 'department:beauty,price:under::price:desc',
+ il1pi2qt: 1,
+ il1pi2va: 'department:beauty,price:under::price:desc',
+ ul: 'en-US',
+ ni: 1,
+ qt: 124893881700,
+ },
+ body: {
+ JSON: {},
+ XML: {},
+ JSON_ARRAY: {},
+ FORM: {},
+ },
+ files: {},
+ userId: '00000000000000000000000000',
+ },
+ statusCode: 200,
+ },
+ ],
+ },
+ },
+ },
+ {
+ name: 'ga360',
+ description: 'Test 11',
+ feature: 'processor',
+ module: 'destination',
+ version: 'v0',
+ input: {
+ request: {
+ body: [
+ {
+ message: {
+ channel: 'web',
+ context: {
+ app: {
+ build: '1.0.0',
+ name: 'RudderLabs JavaScript SDK',
+ namespace: 'com.rudderlabs.javascript',
+ version: '1.0.0',
+ },
+ traits: {
+ email: 'test@rudderstack.com',
+ },
+ library: {
+ name: 'RudderLabs JavaScript SDK',
+ version: '1.0.0',
+ },
+ userAgent:
+ 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36',
+ locale: 'en-US',
+ os: {
+ name: '',
+ version: '',
+ },
+ screen: {
+ density: 2,
+ },
+ },
+ type: 'track',
+ messageId: 'ec5481b6-a926-4d2e-b293-0b3a77c4d3be',
+ originalTimestamp: '2019-10-14T11:15:18.300Z',
+ anonymousId: '00000000000000000000000000',
+ userId: '12345',
+ event: 'product clicked',
+ properties: {
+ currency: 'CAD',
+ quantity: 1,
+ price: 24.75,
+ name: 'my product',
+ category: 'cat 1',
+ sku: 'p-298',
+ list: 'search results',
+ testDimension: true,
+ testMetric: true,
+ },
+ integrations: {
+ All: true,
+ },
+ sentAt: '2019-10-14T11:15:53.296Z',
+ },
+ destination: {
+ Config: {
+ trackingID: 'UA-165994240-1',
+ doubleClick: true,
+ enhancedLinkAttribution: true,
+ classic: true,
+ ignoredReferrers: '',
+ serverClassic: false,
+ includeSearch: true,
+ trackCategorizedPages: true,
+ trackNamedPages: true,
+ sampleRate: '100',
+ siteSpeedSampleRate: '1',
+ setAllMappedProps: true,
+ enableServerSideIdentify: true,
+ serverSideIdentifyEventCategory: 'cat1',
+ serverSideIdentifyEventAction: 'action1',
+ anonymizeIp: true,
+ domain: 'domain',
+ enhancedEcommerce: true,
+ nonInteraction: true,
+ optimize: 'abc123',
+ sendUserId: true,
+ useGoogleAmpClientId: true,
+ 'web-useNativeSDK': true,
+ dimensions: [
+ {
+ from: 'name',
+ to: 'dimension1',
+ },
+ {
+ from: 'custom2',
+ to: 'dimension2',
+ },
+ ],
+ metrics: [
+ {
+ from: 'email',
+ to: 'metric1',
+ },
+ {
+ from: 'trait2',
+ to: 'metric2',
+ },
+ ],
+ resetCustomDimensionsOnPage: [
+ {
+ resetCustomDimensionsOnPage: 'abc',
+ },
+ {
+ resetCustomDimensionsOnPage: 'xyz',
+ },
+ ],
+ contentGroupings: [
+ {
+ from: 'plan',
+ to: 'contentGroup1',
+ },
+ {
+ from: 'prop2',
+ to: 'contentGroup2',
+ },
+ ],
+ },
+ Enabled: true,
+ },
+ },
+ ],
+ },
+ },
+ output: {
+ response: {
+ status: 200,
+ body: [
+ {
+ output: {
+ version: '1',
+ type: 'REST',
+ method: 'POST',
+ endpoint: 'https://www.google-analytics.com/collect',
+ headers: {},
+ params: {
+ ea: 'product clicked',
+ ec: 'cat 1',
+ pa: 'click',
+ pr1cd1: 'my product',
+ pr1id: 'p-298',
+ cd1: 'my product',
+ v: '1',
+ t: 'event',
+ el: 'event',
+ tid: 'UA-165994240-1',
+ ds: 'web',
+ an: 'RudderLabs JavaScript SDK',
+ av: '1.0.0',
+ aiid: 'com.rudderlabs.javascript',
+ npa: 1,
+ aip: 1,
+ cid: '00000000000000000000000000',
+ pr1nm: 'my product',
+ pr1ca: 'cat 1',
+ cu: 'CAD',
+ pr1pr: 24.75,
+ pr1qt: 1,
+ ua: 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36',
+ uid: '12345',
+ pal: 'search results',
+ ul: 'en-US',
+ ni: 1,
+ qt: 124893881700,
+ },
+ body: {
+ JSON: {},
+ XML: {},
+ JSON_ARRAY: {},
+ FORM: {},
+ },
+ files: {},
+ userId: '00000000000000000000000000',
+ },
+ statusCode: 200,
+ },
+ ],
+ },
+ },
+ },
+ {
+ name: 'ga360',
+ description: 'Test 12',
+ feature: 'processor',
+ module: 'destination',
+ version: 'v0',
+ input: {
+ request: {
+ body: [
+ {
+ message: {
+ channel: 'web',
+ context: {
+ app: {
+ build: '1.0.0',
+ name: 'RudderLabs JavaScript SDK',
+ namespace: 'com.rudderlabs.javascript',
+ version: '1.0.0',
+ },
+ traits: {
+ email: 'test@rudderstack.com',
+ },
+ library: {
+ name: 'RudderLabs JavaScript SDK',
+ version: '1.0.0',
+ },
+ userAgent:
+ 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36',
+ locale: 'en-US',
+ os: {
+ name: '',
+ version: '',
+ },
+ screen: {
+ density: 2,
+ },
+ },
+ type: 'track',
+ messageId: 'ec5481b6-a926-4d2e-b293-0b3a77c4d3be',
+ originalTimestamp: '2019-10-14T11:15:18.300Z',
+ anonymousId: '00000000000000000000000000',
+ userId: '12345',
+ event: 'promotion viewed',
+ properties: {
+ currency: 'CAD',
+ promotion_id: 'PROMO_1234',
+ name: 'my product',
+ creative: 'summer_banner2',
+ position: 'banner_slot1',
+ testDimension: true,
+ testMetric: true,
+ },
+ integrations: {
+ All: true,
+ },
+ sentAt: '2019-10-14T11:15:53.296Z',
+ },
+ destination: {
+ Config: {
+ trackingID: 'UA-165994240-1',
+ doubleClick: true,
+ enhancedLinkAttribution: true,
+ classic: true,
+ ignoredReferrers: '',
+ serverClassic: false,
+ includeSearch: true,
+ trackCategorizedPages: true,
+ trackNamedPages: true,
+ sampleRate: '100',
+ siteSpeedSampleRate: '1',
+ setAllMappedProps: true,
+ enableServerSideIdentify: true,
+ serverSideIdentifyEventCategory: 'cat1',
+ serverSideIdentifyEventAction: 'action1',
+ anonymizeIp: true,
+ domain: 'domain',
+ enhancedEcommerce: true,
+ nonInteraction: true,
+ optimize: 'abc123',
+ sendUserId: true,
+ useGoogleAmpClientId: true,
+ 'web-useNativeSDK': true,
+ dimensions: [
+ {
+ from: 'name',
+ to: 'dimension1',
+ },
+ {
+ from: 'custom2',
+ to: 'dimension2',
+ },
+ ],
+ metrics: [
+ {
+ from: 'email',
+ to: 'metric1',
+ },
+ {
+ from: 'trait2',
+ to: 'metric2',
+ },
+ ],
+ resetCustomDimensionsOnPage: [
+ {
+ resetCustomDimensionsOnPage: 'abc',
+ },
+ {
+ resetCustomDimensionsOnPage: 'xyz',
+ },
+ ],
+ contentGroupings: [
+ {
+ from: 'plan',
+ to: 'contentGroup1',
+ },
+ {
+ from: 'prop2',
+ to: 'contentGroup2',
+ },
+ ],
+ },
+ Enabled: true,
+ },
+ },
+ ],
+ },
+ },
+ output: {
+ response: {
+ status: 200,
+ body: [
+ {
+ output: {
+ version: '1',
+ type: 'REST',
+ method: 'POST',
+ endpoint: 'https://www.google-analytics.com/collect',
+ headers: {},
+ params: {
+ ea: 'promotion viewed',
+ ec: 'EnhancedEcommerce',
+ cu: 'CAD',
+ promoa: 'view',
+ pa: 'view',
+ cd1: 'my product',
+ v: '1',
+ t: 'event',
+ el: 'event',
+ tid: 'UA-165994240-1',
+ ds: 'web',
+ an: 'RudderLabs JavaScript SDK',
+ av: '1.0.0',
+ aiid: 'com.rudderlabs.javascript',
+ npa: 1,
+ aip: 1,
+ cid: '00000000000000000000000000',
+ promo1id: 'PROMO_1234',
+ promo1cr: 'summer_banner2',
+ promo1ps: 'banner_slot1',
+ promo1nm: 'my product',
+ ua: 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36',
+ uid: '12345',
+ ul: 'en-US',
+ ni: 1,
+ qt: 124893881700,
+ },
+ body: {
+ JSON: {},
+ XML: {},
+ JSON_ARRAY: {},
+ FORM: {},
+ },
+ files: {},
+ userId: '00000000000000000000000000',
+ },
+ statusCode: 200,
+ },
+ ],
+ },
+ },
+ },
+ {
+ name: 'ga360',
+ description: 'Test 13',
+ feature: 'processor',
+ module: 'destination',
+ version: 'v0',
+ input: {
+ request: {
+ body: [
+ {
+ message: {
+ channel: 'web',
+ context: {
+ app: {
+ build: '1.0.0',
+ name: 'RudderLabs JavaScript SDK',
+ namespace: 'com.rudderlabs.javascript',
+ version: '1.0.0',
+ },
+ traits: {
+ email: 'test@rudderstack.com',
+ },
+ library: {
+ name: 'RudderLabs JavaScript SDK',
+ version: '1.0.0',
+ },
+ userAgent:
+ 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36',
+ locale: 'en-US',
+ os: {
+ name: '',
+ version: '',
+ },
+ screen: {
+ density: 2,
+ },
+ },
+ type: 'track',
+ messageId: 'ec5481b6-a926-4d2e-b293-0b3a77c4d3be',
+ originalTimestamp: '2019-10-14T11:15:18.300Z',
+ anonymousId: '00000000000000000000000000',
+ userId: '12345',
+ event: 'promotion clicked',
+ properties: {
+ currency: 'CAD',
+ promotion_id: 'PROMO_1234',
+ name: 'my product',
+ creative: 'summer_banner2',
+ position: 'banner_slot1',
+ testDimension: true,
+ testMetric: true,
+ },
+ integrations: {
+ All: true,
+ },
+ sentAt: '2019-10-14T11:15:53.296Z',
+ },
+ destination: {
+ Config: {
+ trackingID: 'UA-165994240-1',
+ doubleClick: true,
+ enhancedLinkAttribution: true,
+ classic: true,
+ ignoredReferrers: '',
+ serverClassic: false,
+ includeSearch: true,
+ trackCategorizedPages: true,
+ trackNamedPages: true,
+ sampleRate: '100',
+ siteSpeedSampleRate: '1',
+ setAllMappedProps: true,
+ enableServerSideIdentify: true,
+ serverSideIdentifyEventCategory: 'cat1',
+ serverSideIdentifyEventAction: 'action1',
+ anonymizeIp: true,
+ domain: 'domain',
+ enhancedEcommerce: true,
+ nonInteraction: true,
+ optimize: 'abc123',
+ sendUserId: true,
+ useGoogleAmpClientId: true,
+ 'web-useNativeSDK': true,
+ dimensions: [
+ {
+ from: 'name',
+ to: 'dimension1',
+ },
+ {
+ from: 'custom2',
+ to: 'dimension2',
+ },
+ ],
+ metrics: [
+ {
+ from: 'email',
+ to: 'metric1',
+ },
+ {
+ from: 'trait2',
+ to: 'metric2',
+ },
+ ],
+ resetCustomDimensionsOnPage: [
+ {
+ resetCustomDimensionsOnPage: 'abc',
+ },
+ {
+ resetCustomDimensionsOnPage: 'xyz',
+ },
+ ],
+ contentGroupings: [
+ {
+ from: 'plan',
+ to: 'contentGroup1',
+ },
+ {
+ from: 'prop2',
+ to: 'contentGroup2',
+ },
+ ],
+ },
+ Enabled: true,
+ },
+ },
+ ],
+ },
+ },
+ output: {
+ response: {
+ status: 200,
+ body: [
+ {
+ output: {
+ version: '1',
+ type: 'REST',
+ method: 'POST',
+ endpoint: 'https://www.google-analytics.com/collect',
+ headers: {},
+ params: {
+ ea: 'promotion clicked',
+ ec: 'EnhancedEcommerce',
+ cu: 'CAD',
+ promoa: 'promo_click',
+ pa: 'promo_click',
+ cd1: 'my product',
+ v: '1',
+ t: 'event',
+ el: 'event',
+ tid: 'UA-165994240-1',
+ ds: 'web',
+ an: 'RudderLabs JavaScript SDK',
+ av: '1.0.0',
+ aiid: 'com.rudderlabs.javascript',
+ npa: 1,
+ aip: 1,
+ cid: '00000000000000000000000000',
+ promo1id: 'PROMO_1234',
+ promo1cr: 'summer_banner2',
+ promo1ps: 'banner_slot1',
+ promo1nm: 'my product',
+ ua: 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36',
+ uid: '12345',
+ ul: 'en-US',
+ ni: 1,
+ qt: 124893881700,
+ },
+ body: {
+ JSON: {},
+ XML: {},
+ JSON_ARRAY: {},
+ FORM: {},
+ },
+ files: {},
+ userId: '00000000000000000000000000',
+ },
+ statusCode: 200,
+ },
+ ],
+ },
+ },
+ },
+ {
+ name: 'ga360',
+ description: 'Test 14',
+ feature: 'processor',
+ module: 'destination',
+ version: 'v0',
+ input: {
+ request: {
+ body: [
+ {
+ message: {
+ channel: 'web',
+ context: {
+ app: {
+ build: '1.0.0',
+ name: 'RudderLabs JavaScript SDK',
+ namespace: 'com.rudderlabs.javascript',
+ version: '1.0.0',
+ },
+ traits: {
+ email: 'test@rudderstack.com',
+ },
+ library: {
+ name: 'RudderLabs JavaScript SDK',
+ version: '1.0.0',
+ },
+ userAgent:
+ 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36',
+ locale: 'en-US',
+ os: {
+ name: '',
+ version: '',
+ },
+ screen: {
+ density: 2,
+ },
+ },
+ type: 'track',
+ messageId: 'ec5481b6-a926-4d2e-b293-0b3a77c4d3be',
+ originalTimestamp: '2019-10-14T11:15:18.300Z',
+ anonymousId: '00000000000000000000000000',
+ userId: '12345',
+ event: 'checkout started',
+ properties: {
+ currency: 'CAD',
+ products: [
+ {
+ quantity: 1,
+ price: 24.75,
+ name: 'my product',
+ sku: 'p-298',
+ },
+ {
+ quantity: 1,
+ price: 24.75,
+ name: 'my product 2',
+ sku: 'p-299',
+ },
+ ],
+ step: 1,
+ paymentMethod: 'Visa',
+ testDimension: true,
+ testMetric: true,
+ },
+ integrations: {
+ All: true,
+ },
+ sentAt: '2019-10-14T11:15:53.296Z',
+ },
+ destination: {
+ Config: {
+ trackingID: 'UA-165994240-1',
+ doubleClick: true,
+ enhancedLinkAttribution: true,
+ classic: true,
+ ignoredReferrers: '',
+ serverClassic: false,
+ includeSearch: true,
+ trackCategorizedPages: true,
+ trackNamedPages: true,
+ sampleRate: '100',
+ siteSpeedSampleRate: '1',
+ setAllMappedProps: true,
+ enableServerSideIdentify: true,
+ serverSideIdentifyEventCategory: 'cat1',
+ serverSideIdentifyEventAction: 'action1',
+ anonymizeIp: true,
+ domain: 'domain',
+ enhancedEcommerce: true,
+ nonInteraction: true,
+ optimize: 'abc123',
+ sendUserId: true,
+ useGoogleAmpClientId: true,
+ 'web-useNativeSDK': true,
+ dimensions: [
+ {
+ from: 'name',
+ to: 'dimension1',
+ },
+ {
+ from: 'custom2',
+ to: 'dimension2',
+ },
+ ],
+ metrics: [
+ {
+ from: 'email',
+ to: 'metric1',
+ },
+ {
+ from: 'trait2',
+ to: 'metric2',
+ },
+ ],
+ resetCustomDimensionsOnPage: [
+ {
+ resetCustomDimensionsOnPage: 'abc',
+ },
+ {
+ resetCustomDimensionsOnPage: 'xyz',
+ },
+ ],
+ contentGroupings: [
+ {
+ from: 'plan',
+ to: 'contentGroup1',
+ },
+ {
+ from: 'prop2',
+ to: 'contentGroup2',
+ },
+ ],
+ },
+ Enabled: true,
+ },
+ },
+ ],
+ },
+ },
+ output: {
+ response: {
+ status: 200,
+ body: [
+ {
+ output: {
+ version: '1',
+ type: 'REST',
+ method: 'POST',
+ endpoint: 'https://www.google-analytics.com/collect',
+ headers: {},
+ params: {
+ pa: 'checkout',
+ pr1id: 'p-298',
+ pr1cd1: 'my product',
+ pr1nm: 'my product',
+ pr1pr: 24.75,
+ pr2id: 'p-299',
+ pr2cd1: 'my product 2',
+ pr2nm: 'my product 2',
+ pr2pr: 24.75,
+ ea: 'checkout started',
+ ec: 'EnhancedEcommerce',
+ v: '1',
+ t: 'event',
+ el: 'event',
+ tid: 'UA-165994240-1',
+ ds: 'web',
+ an: 'RudderLabs JavaScript SDK',
+ av: '1.0.0',
+ aiid: 'com.rudderlabs.javascript',
+ npa: 1,
+ aip: 1,
+ cid: '00000000000000000000000000',
+ cu: 'CAD',
+ ua: 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36',
+ uid: '12345',
+ cos: 1,
+ pr1qt: 1,
+ pr2qt: 1,
+ ul: 'en-US',
+ ni: 1,
+ qt: 124893881700,
+ },
+ body: {
+ JSON: {},
+ XML: {},
+ JSON_ARRAY: {},
+ FORM: {},
+ },
+ files: {},
+ userId: '00000000000000000000000000',
+ },
+ statusCode: 200,
+ },
+ ],
+ },
+ },
+ },
+ {
+ name: 'ga360',
+ description: 'Test 15',
+ feature: 'processor',
+ module: 'destination',
+ version: 'v0',
+ input: {
+ request: {
+ body: [
+ {
+ message: {
+ channel: 'web',
+ context: {
+ app: {
+ build: '1.0.0',
+ name: 'RudderLabs JavaScript SDK',
+ namespace: 'com.rudderlabs.javascript',
+ version: '1.0.0',
+ },
+ traits: {
+ email: 'test@rudderstack.com',
+ },
+ library: {
+ name: 'RudderLabs JavaScript SDK',
+ version: '1.0.0',
+ },
+ userAgent:
+ 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36',
+ locale: 'en-US',
+ os: {
+ name: '',
+ version: '',
+ },
+ screen: {
+ density: 2,
+ },
+ },
+ type: 'track',
+ messageId: 'ec5481b6-a926-4d2e-b293-0b3a77c4d3be',
+ originalTimestamp: '2019-10-14T11:15:18.300Z',
+ anonymousId: '00000000000000000000000000',
+ userId: '12345',
+ event: 'order updated',
+ properties: {
+ currency: 'CAD',
+ products: [
+ {
+ quantity: 1,
+ price: 24.75,
+ name: 'my product',
+ sku: 'p-298',
+ },
+ {
+ quantity: 1,
+ price: 24.75,
+ name: 'my product 2',
+ sku: 'p-299',
+ },
+ ],
+ step: 1,
+ paymentMethod: 'Visa',
+ testDimension: true,
+ testMetric: true,
+ },
+ integrations: {
+ All: true,
+ },
+ sentAt: '2019-10-14T11:15:53.296Z',
+ },
+ destination: {
+ Config: {
+ trackingID: 'UA-165994240-1',
+ doubleClick: true,
+ enhancedLinkAttribution: true,
+ classic: true,
+ ignoredReferrers: '',
+ serverClassic: false,
+ includeSearch: true,
+ trackCategorizedPages: true,
+ trackNamedPages: true,
+ sampleRate: '100',
+ siteSpeedSampleRate: '1',
+ setAllMappedProps: true,
+ enableServerSideIdentify: true,
+ serverSideIdentifyEventCategory: 'cat1',
+ serverSideIdentifyEventAction: 'action1',
+ anonymizeIp: true,
+ domain: 'domain',
+ enhancedEcommerce: true,
+ nonInteraction: true,
+ optimize: 'abc123',
+ sendUserId: true,
+ useGoogleAmpClientId: true,
+ 'web-useNativeSDK': true,
+ dimensions: [
+ {
+ from: 'name',
+ to: 'dimension1',
+ },
+ {
+ from: 'custom2',
+ to: 'dimension2',
+ },
+ ],
+ metrics: [
+ {
+ from: 'email',
+ to: 'metric1',
+ },
+ {
+ from: 'trait2',
+ to: 'metric2',
+ },
+ ],
+ resetCustomDimensionsOnPage: [
+ {
+ resetCustomDimensionsOnPage: 'abc',
+ },
+ {
+ resetCustomDimensionsOnPage: 'xyz',
+ },
+ ],
+ contentGroupings: [
+ {
+ from: 'plan',
+ to: 'contentGroup1',
+ },
+ {
+ from: 'prop2',
+ to: 'contentGroup2',
+ },
+ ],
+ },
+ Enabled: true,
+ },
+ },
+ ],
+ },
+ },
+ output: {
+ response: {
+ status: 200,
+ body: [
+ {
+ output: {
+ version: '1',
+ type: 'REST',
+ method: 'POST',
+ endpoint: 'https://www.google-analytics.com/collect',
+ headers: {},
+ params: {
+ pa: 'checkout',
+ pr1id: 'p-298',
+ pr1cd1: 'my product',
+ pr1nm: 'my product',
+ pr1pr: 24.75,
+ pr2id: 'p-299',
+ pr2cd1: 'my product 2',
+ pr2nm: 'my product 2',
+ pr2pr: 24.75,
+ ea: 'order updated',
+ ec: 'EnhancedEcommerce',
+ v: '1',
+ t: 'event',
+ el: 'event',
+ tid: 'UA-165994240-1',
+ ds: 'web',
+ an: 'RudderLabs JavaScript SDK',
+ av: '1.0.0',
+ aiid: 'com.rudderlabs.javascript',
+ npa: 1,
+ aip: 1,
+ cid: '00000000000000000000000000',
+ cu: 'CAD',
+ ua: 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36',
+ uid: '12345',
+ cos: 1,
+ pr1qt: 1,
+ pr2qt: 1,
+ ul: 'en-US',
+ ni: 1,
+ qt: 124893881700,
+ },
+ body: {
+ JSON: {},
+ XML: {},
+ JSON_ARRAY: {},
+ FORM: {},
+ },
+ files: {},
+ userId: '00000000000000000000000000',
+ },
+ statusCode: 200,
+ },
+ ],
+ },
+ },
+ },
+ {
+ name: 'ga360',
+ description: 'Test 16',
+ feature: 'processor',
+ module: 'destination',
+ version: 'v0',
+ input: {
+ request: {
+ body: [
+ {
+ message: {
+ channel: 'web',
+ context: {
+ app: {
+ build: '1.0.0',
+ name: 'RudderLabs JavaScript SDK',
+ namespace: 'com.rudderlabs.javascript',
+ version: '1.0.0',
+ },
+ traits: {
+ email: 'test@rudderstack.com',
+ },
+ library: {
+ name: 'RudderLabs JavaScript SDK',
+ version: '1.0.0',
+ },
+ userAgent:
+ 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36',
+ locale: 'en-US',
+ os: {
+ name: '',
+ version: '',
+ },
+ screen: {
+ density: 2,
+ },
+ },
+ type: 'track',
+ messageId: 'ec5481b6-a926-4d2e-b293-0b3a77c4d3be',
+ originalTimestamp: '2019-10-14T11:15:18.300Z',
+ anonymousId: '00000000000000000000000000',
+ userId: '12345',
+ event: 'checkout step viewed',
+ properties: {
+ currency: 'CAD',
+ step: 1,
+ },
+ integrations: {
+ All: true,
+ },
+ sentAt: '2019-10-14T11:15:53.296Z',
+ },
+ destination: {
+ Config: {
+ trackingID: 'UA-165994240-1',
+ doubleClick: true,
+ enhancedLinkAttribution: true,
+ classic: true,
+ ignoredReferrers: '',
+ serverClassic: false,
+ includeSearch: true,
+ trackCategorizedPages: true,
+ trackNamedPages: true,
+ sampleRate: '100',
+ siteSpeedSampleRate: '1',
+ setAllMappedProps: true,
+ enableServerSideIdentify: true,
+ serverSideIdentifyEventCategory: 'cat1',
+ serverSideIdentifyEventAction: 'action1',
+ anonymizeIp: true,
+ domain: 'domain',
+ enhancedEcommerce: true,
+ nonInteraction: true,
+ optimize: 'abc123',
+ sendUserId: true,
+ useGoogleAmpClientId: true,
+ 'web-useNativeSDK': true,
+ dimensions: [
+ {
+ from: 'name',
+ to: 'dimension1',
+ },
+ {
+ from: 'custom2',
+ to: 'dimension2',
+ },
+ ],
+ metrics: [
+ {
+ from: 'email',
+ to: 'metric1',
+ },
+ {
+ from: 'trait2',
+ to: 'metric2',
+ },
+ ],
+ resetCustomDimensionsOnPage: [
+ {
+ resetCustomDimensionsOnPage: 'abc',
+ },
+ {
+ resetCustomDimensionsOnPage: 'xyz',
+ },
+ ],
+ contentGroupings: [
+ {
+ from: 'plan',
+ to: 'contentGroup1',
+ },
+ {
+ from: 'prop2',
+ to: 'contentGroup2',
+ },
+ ],
+ },
+ Enabled: true,
+ },
+ },
+ ],
+ },
+ },
+ output: {
+ response: {
+ status: 200,
+ body: [
+ {
+ output: {
+ version: '1',
+ type: 'REST',
+ method: 'POST',
+ endpoint: 'https://www.google-analytics.com/collect',
+ headers: {},
+ params: {
+ pa: 'checkout',
+ ea: 'checkout step viewed',
+ ec: 'EnhancedEcommerce',
+ v: '1',
+ t: 'event',
+ el: 'event',
+ tid: 'UA-165994240-1',
+ ds: 'web',
+ an: 'RudderLabs JavaScript SDK',
+ av: '1.0.0',
+ aiid: 'com.rudderlabs.javascript',
+ npa: 1,
+ aip: 1,
+ cid: '00000000000000000000000000',
+ cos: 1,
+ ua: 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36',
+ uid: '12345',
+ ul: 'en-US',
+ ni: 1,
+ qt: 124893881700,
+ },
+ body: {
+ JSON: {},
+ XML: {},
+ JSON_ARRAY: {},
+ FORM: {},
+ },
+ files: {},
+ userId: '00000000000000000000000000',
+ },
+ statusCode: 200,
+ },
+ ],
+ },
+ },
+ },
+ {
+ name: 'ga360',
+ description: 'Test 17',
+ feature: 'processor',
+ module: 'destination',
+ version: 'v0',
+ input: {
+ request: {
+ body: [
+ {
+ message: {
+ channel: 'web',
+ context: {
+ app: {
+ build: '1.0.0',
+ name: 'RudderLabs JavaScript SDK',
+ namespace: 'com.rudderlabs.javascript',
+ version: '1.0.0',
+ },
+ traits: {
+ email: 'test@rudderstack.com',
+ },
+ library: {
+ name: 'RudderLabs JavaScript SDK',
+ version: '1.0.0',
+ },
+ userAgent:
+ 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36',
+ locale: 'en-US',
+ os: {
+ name: '',
+ version: '',
+ },
+ screen: {
+ density: 2,
+ },
+ },
+ type: 'track',
+ messageId: 'ec5481b6-a926-4d2e-b293-0b3a77c4d3be',
+ originalTimestamp: '2019-10-14T11:15:18.300Z',
+ anonymousId: '00000000000000000000000000',
+ userId: '12345',
+ event: 'checkout step completed',
+ properties: {
+ currency: 'CAD',
+ step: 1,
+ paymentMethod: 'Visa',
+ },
+ integrations: {
+ All: true,
+ },
+ sentAt: '2019-10-14T11:15:53.296Z',
+ },
+ destination: {
+ Config: {
+ trackingID: 'UA-165994240-1',
+ doubleClick: true,
+ enhancedLinkAttribution: true,
+ classic: true,
+ ignoredReferrers: '',
+ serverClassic: false,
+ includeSearch: true,
+ trackCategorizedPages: true,
+ trackNamedPages: true,
+ sampleRate: '100',
+ siteSpeedSampleRate: '1',
+ setAllMappedProps: true,
+ enableServerSideIdentify: true,
+ serverSideIdentifyEventCategory: 'cat1',
+ serverSideIdentifyEventAction: 'action1',
+ anonymizeIp: true,
+ domain: 'domain',
+ enhancedEcommerce: true,
+ nonInteraction: true,
+ optimize: 'abc123',
+ sendUserId: true,
+ useGoogleAmpClientId: true,
+ 'web-useNativeSDK': true,
+ dimensions: [
+ {
+ from: 'name',
+ to: 'dimension1',
+ },
+ {
+ from: 'custom2',
+ to: 'dimension2',
+ },
+ ],
+ metrics: [
+ {
+ from: 'email',
+ to: 'metric1',
+ },
+ {
+ from: 'trait2',
+ to: 'metric2',
+ },
+ ],
+ resetCustomDimensionsOnPage: [
+ {
+ resetCustomDimensionsOnPage: 'abc',
+ },
+ {
+ resetCustomDimensionsOnPage: 'xyz',
+ },
+ ],
+ contentGroupings: [
+ {
+ from: 'plan',
+ to: 'contentGroup1',
+ },
+ {
+ from: 'prop2',
+ to: 'contentGroup2',
+ },
+ ],
+ },
+ Enabled: true,
+ },
+ },
+ ],
+ },
+ },
+ output: {
+ response: {
+ status: 200,
+ body: [
+ {
+ output: {
+ version: '1',
+ type: 'REST',
+ method: 'POST',
+ endpoint: 'https://www.google-analytics.com/collect',
+ headers: {},
+ params: {
+ pa: 'checkout_option',
+ ea: 'checkout step completed',
+ ec: 'EnhancedEcommerce',
+ v: '1',
+ t: 'event',
+ el: 'event',
+ tid: 'UA-165994240-1',
+ ds: 'web',
+ an: 'RudderLabs JavaScript SDK',
+ av: '1.0.0',
+ aiid: 'com.rudderlabs.javascript',
+ npa: 1,
+ aip: 1,
+ cid: '00000000000000000000000000',
+ cos: 1,
+ ua: 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36',
+ uid: '12345',
+ ul: 'en-US',
+ ni: 1,
+ qt: 124893881700,
+ },
+ body: {
+ JSON: {},
+ XML: {},
+ JSON_ARRAY: {},
+ FORM: {},
+ },
+ files: {},
+ userId: '00000000000000000000000000',
+ },
+ statusCode: 200,
+ },
+ ],
+ },
+ },
+ },
+ {
+ name: 'ga360',
+ description: 'Test 18',
+ feature: 'processor',
+ module: 'destination',
+ version: 'v0',
+ input: {
+ request: {
+ body: [
+ {
+ message: {
+ channel: 'web',
+ context: {
+ app: {
+ build: '1.0.0',
+ name: 'RudderLabs JavaScript SDK',
+ namespace: 'com.rudderlabs.javascript',
+ version: '1.0.0',
+ },
+ traits: {
+ email: 'test@rudderstack.com',
+ },
+ library: {
+ name: 'RudderLabs JavaScript SDK',
+ version: '1.0.0',
+ },
+ userAgent:
+ 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36',
+ locale: 'en-US',
+ os: {
+ name: '',
+ version: '',
+ },
+ screen: {
+ density: 2,
+ },
+ },
+ type: 'track',
+ messageId: 'ec5481b6-a926-4d2e-b293-0b3a77c4d3be',
+ originalTimestamp: '2019-10-14T11:15:18.300Z',
+ anonymousId: '00000000000000000000000000',
+ userId: '12345',
+ event: 'order refunded',
+ properties: {
+ products: [
+ {
+ quantity: 1,
+ sku: 'p-298',
+ },
+ {
+ quantity: 1,
+ sku: 'p-299',
+ },
+ ],
+ testDimension: true,
+ testMetric: true,
+ },
+ integrations: {
+ All: true,
+ },
+ sentAt: '2019-10-14T11:15:53.296Z',
+ },
+ destination: {
+ Config: {
+ trackingID: 'UA-165994240-1',
+ doubleClick: true,
+ enhancedLinkAttribution: true,
+ classic: true,
+ ignoredReferrers: '',
+ serverClassic: false,
+ includeSearch: true,
+ trackCategorizedPages: true,
+ trackNamedPages: true,
+ sampleRate: '100',
+ siteSpeedSampleRate: '1',
+ setAllMappedProps: true,
+ enableServerSideIdentify: true,
+ serverSideIdentifyEventCategory: 'cat1',
+ serverSideIdentifyEventAction: 'action1',
+ anonymizeIp: true,
+ domain: 'domain',
+ enhancedEcommerce: true,
+ nonInteraction: true,
+ optimize: 'abc123',
+ sendUserId: true,
+ useGoogleAmpClientId: true,
+ 'web-useNativeSDK': true,
+ dimensions: [
+ {
+ from: 'name',
+ to: 'dimension1',
+ },
+ {
+ from: 'custom2',
+ to: 'dimension2',
+ },
+ ],
+ metrics: [
+ {
+ from: 'email',
+ to: 'metric1',
+ },
+ {
+ from: 'trait2',
+ to: 'metric2',
+ },
+ ],
+ resetCustomDimensionsOnPage: [
+ {
+ resetCustomDimensionsOnPage: 'abc',
+ },
+ {
+ resetCustomDimensionsOnPage: 'xyz',
+ },
+ ],
+ contentGroupings: [
+ {
+ from: 'plan',
+ to: 'contentGroup1',
+ },
+ {
+ from: 'prop2',
+ to: 'contentGroup2',
+ },
+ ],
+ },
+ Enabled: true,
+ },
+ },
+ ],
+ },
+ },
+ output: {
+ response: {
+ status: 200,
+ body: [
+ {
+ output: {
+ version: '1',
+ type: 'REST',
+ method: 'POST',
+ endpoint: 'https://www.google-analytics.com/collect',
+ headers: {},
+ params: {
+ ni: 1,
+ v: '1',
+ t: 'event',
+ el: 'event',
+ tid: 'UA-165994240-1',
+ ds: 'web',
+ an: 'RudderLabs JavaScript SDK',
+ av: '1.0.0',
+ aiid: 'com.rudderlabs.javascript',
+ npa: 1,
+ aip: 1,
+ cid: '00000000000000000000000000',
+ ea: 'order refunded',
+ ec: 'EnhancedEcommerce',
+ ua: 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36',
+ uid: '12345',
+ pa: 'refund',
+ pr1id: 'p-298',
+ pr1qt: 1,
+ pr2id: 'p-299',
+ ul: 'en-US',
+ pr2qt: 1,
+ qt: 124893881700,
+ },
+ body: {
+ JSON: {},
+ XML: {},
+ JSON_ARRAY: {},
+ FORM: {},
+ },
+ files: {},
+ userId: '00000000000000000000000000',
+ },
+ statusCode: 200,
+ },
+ ],
+ },
+ },
+ },
+ {
+ name: 'ga360',
+ description: 'Test 19',
+ feature: 'processor',
+ module: 'destination',
+ version: 'v0',
+ input: {
+ request: {
+ body: [
+ {
+ message: {
+ channel: 'web',
+ context: {
+ app: {
+ build: '1.0.0',
+ name: 'RudderLabs JavaScript SDK',
+ namespace: 'com.rudderlabs.javascript',
+ version: '1.0.0',
+ },
+ traits: {
+ email: 'test@rudderstack.com',
+ },
+ library: {
+ name: 'RudderLabs JavaScript SDK',
+ version: '1.0.0',
+ },
+ userAgent:
+ 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36',
+ locale: 'en-US',
+ os: {
+ name: '',
+ version: '',
+ },
+ screen: {
+ density: 2,
+ },
+ },
+ type: 'track',
+ messageId: 'ec5481b6-a926-4d2e-b293-0b3a77c4d3be',
+ originalTimestamp: '2019-10-14T11:15:18.300Z',
+ anonymousId: '00000000000000000000000000',
+ userId: '12345',
+ event: 'order starterefundedd',
+ properties: {
+ products: [
+ {
+ quantity: 1,
+ sku: 'p-298',
+ },
+ {
+ quantity: 1,
+ sku: 'p-299',
+ },
+ ],
+ testDimension: true,
+ testMetric: true,
+ },
+ integrations: {
+ All: true,
+ },
+ sentAt: '2019-10-14T11:15:53.296Z',
+ },
+ destination: {
+ Config: {
+ trackingID: 'UA-165994240-1',
+ doubleClick: true,
+ enhancedLinkAttribution: true,
+ classic: true,
+ ignoredReferrers: '',
+ serverClassic: false,
+ includeSearch: true,
+ trackCategorizedPages: true,
+ trackNamedPages: true,
+ sampleRate: '100',
+ siteSpeedSampleRate: '1',
+ setAllMappedProps: true,
+ enableServerSideIdentify: true,
+ serverSideIdentifyEventCategory: 'cat1',
+ serverSideIdentifyEventAction: 'action1',
+ anonymizeIp: true,
+ domain: 'domain',
+ enhancedEcommerce: true,
+ nonInteraction: true,
+ optimize: 'abc123',
+ sendUserId: true,
+ useGoogleAmpClientId: true,
+ 'web-useNativeSDK': true,
+ metrics: [
+ {
+ from: 'email',
+ to: 'metric1',
+ },
+ {
+ from: 'trait2',
+ to: 'metric2',
+ },
+ ],
+ resetCustomDimensionsOnPage: [
+ {
+ resetCustomDimensionsOnPage: 'abc',
+ },
+ {
+ resetCustomDimensionsOnPage: 'xyz',
+ },
+ ],
+ contentGroupings: [
+ {
+ from: 'plan',
+ to: 'contentGroup1',
+ },
+ {
+ from: 'prop2',
+ to: 'contentGroup2',
+ },
+ ],
+ },
+ Enabled: true,
+ },
+ },
+ ],
+ },
+ },
+ output: {
+ response: {
+ status: 200,
+ body: [
+ {
+ output: {
+ version: '1',
+ type: 'REST',
+ method: 'POST',
+ endpoint: 'https://www.google-analytics.com/collect',
+ headers: {},
+ params: {
+ ul: 'en-US',
+ ec: 'All',
+ ni: 1,
+ v: '1',
+ t: 'event',
+ el: 'event',
+ tid: 'UA-165994240-1',
+ ds: 'web',
+ an: 'RudderLabs JavaScript SDK',
+ av: '1.0.0',
+ aiid: 'com.rudderlabs.javascript',
+ npa: 1,
+ aip: 1,
+ cid: '00000000000000000000000000',
+ ea: 'order starterefundedd',
+ ua: 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36',
+ uid: '12345',
+ qt: 124893881700,
+ },
+ body: {
+ JSON: {},
+ XML: {},
+ JSON_ARRAY: {},
+ FORM: {},
+ },
+ files: {},
+ userId: '00000000000000000000000000',
+ },
+ statusCode: 200,
+ },
+ ],
+ },
+ },
+ },
+ {
+ name: 'ga360',
+ description: 'Test 20',
+ feature: 'processor',
+ module: 'destination',
+ version: 'v0',
+ input: {
+ request: {
+ body: [
+ {
+ message: {
+ channel: 'web',
+ context: {
+ traits: {
+ email: 'test@rudderstack.com',
+ },
+ library: {
+ name: 'RudderLabs JavaScript SDK',
+ version: '1.0.0',
+ },
+ userAgent:
+ 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36',
+ locale: 'en-US',
+ os: {
+ name: '',
+ version: '',
+ },
+ screen: {
+ density: 2,
+ },
+ },
+ type: 'track',
+ messageId: 'ec5481b6-a926-4d2e-b293-0b3a77c4d3be',
+ originalTimestamp: '2019-10-14T11:15:18.300Z',
+ anonymousId: '00000000000000000000000000',
+ userId: '12345',
+ event: 'order starterefundedd',
+ properties: {
+ products: [
+ {
+ quantity: 1,
+ sku: 'p-298',
+ },
+ {
+ quantity: 1,
+ sku: 'p-299',
+ },
+ ],
+ testDimension: true,
+ testMetric: true,
+ },
+ integrations: {
+ All: true,
+ },
+ sentAt: '2019-10-14T11:15:53.296Z',
+ },
+ destination: {
+ Config: {
+ trackingID: 'UA-165994240-1',
+ doubleClick: true,
+ enhancedLinkAttribution: true,
+ classic: true,
+ ignoredReferrers: '',
+ serverClassic: false,
+ includeSearch: true,
+ trackCategorizedPages: true,
+ trackNamedPages: true,
+ sampleRate: '100',
+ siteSpeedSampleRate: '1',
+ setAllMappedProps: true,
+ enableServerSideIdentify: true,
+ serverSideIdentifyEventCategory: 'cat1',
+ serverSideIdentifyEventAction: 'action1',
+ anonymizeIp: true,
+ domain: 'domain',
+ enhancedEcommerce: true,
+ nonInteraction: true,
+ optimize: 'abc123',
+ sendUserId: true,
+ useGoogleAmpClientId: true,
+ 'web-useNativeSDK': true,
+ metrics: [
+ {
+ from: 'email',
+ to: 'metric1',
+ },
+ {
+ from: 'trait2',
+ to: 'metric2',
+ },
+ ],
+ resetCustomDimensionsOnPage: [
+ {
+ resetCustomDimensionsOnPage: 'abc',
+ },
+ {
+ resetCustomDimensionsOnPage: 'xyz',
+ },
+ ],
+ contentGroupings: [
+ {
+ from: 'plan',
+ to: 'contentGroup1',
+ },
+ {
+ from: 'prop2',
+ to: 'contentGroup2',
+ },
+ ],
+ },
+ Enabled: true,
+ },
+ },
+ ],
+ },
+ },
+ output: {
+ response: {
+ status: 200,
+ body: [
+ {
+ output: {
+ version: '1',
+ type: 'REST',
+ method: 'POST',
+ endpoint: 'https://www.google-analytics.com/collect',
+ headers: {},
+ params: {
+ ul: 'en-US',
+ ec: 'All',
+ ni: 1,
+ v: '1',
+ t: 'event',
+ el: 'event',
+ tid: 'UA-165994240-1',
+ ds: 'web',
+ npa: 1,
+ aip: 1,
+ cid: '00000000000000000000000000',
+ ea: 'order starterefundedd',
+ ua: 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36',
+ uid: '12345',
+ qt: 124893881700,
+ },
+ body: {
+ JSON: {},
+ XML: {},
+ JSON_ARRAY: {},
+ FORM: {},
+ },
+ files: {},
+ userId: '00000000000000000000000000',
+ },
+ statusCode: 200,
+ },
+ ],
+ },
+ },
+ },
+ {
+ name: 'ga360',
+ description: 'Test 21',
+ feature: 'processor',
+ module: 'destination',
+ version: 'v0',
+ input: {
+ request: {
+ body: [
+ {
+ message: {
+ channel: 'web',
+ context: {
+ app: {
+ build: '1.0.0',
+ name: 'RudderLabs JavaScript SDK',
+ namespace: 'com.rudderlabs.javascript',
+ version: '1.0.0',
+ },
+ traits: {
+ email: 'test@rudderstack.com',
+ },
+ library: {
+ name: 'RudderLabs JavaScript SDK',
+ version: '1.0.0',
+ },
+ userAgent:
+ 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36',
+ locale: 'en-US',
+ os: {
+ name: '',
+ version: '',
+ },
+ screen: {
+ density: 2,
+ },
+ },
+ type: 'track',
+ messageId: 'ec5481b6-a926-4d2e-b293-0b3a77c4d3be',
+ originalTimestamp: '2019-10-14T11:15:18.300Z',
+ anonymousId: '00000000000000000000000000',
+ userId: '12345',
+ event: 'order starterefundedd',
+ properties: {
+ products: [
+ {
+ quantity: 1,
+ sku: 'p-298',
+ },
+ {
+ quantity: 1,
+ sku: 'p-299',
+ },
+ ],
+ testDimension: true,
+ testMetric: true,
+ },
+ integrations: {
+ All: true,
+ },
+ sentAt: '2019-10-14T11:15:53.296Z',
+ },
+ destination: {
+ Config: {
+ trackingID: 'UA-165994240-1',
+ enhancedLinkAttribution: true,
+ classic: true,
+ ignoredReferrers: '',
+ serverClassic: false,
+ includeSearch: true,
+ trackCategorizedPages: true,
+ trackNamedPages: true,
+ sampleRate: '100',
+ siteSpeedSampleRate: '1',
+ setAllMappedProps: true,
+ enableServerSideIdentify: true,
+ serverSideIdentifyEventCategory: 'cat1',
+ serverSideIdentifyEventAction: 'action1',
+ anonymizeIp: true,
+ domain: 'domain',
+ enhancedEcommerce: true,
+ nonInteraction: true,
+ optimize: 'abc123',
+ sendUserId: true,
+ useGoogleAmpClientId: true,
+ 'web-useNativeSDK': true,
+ dimensions: [
+ {
+ from: 'name',
+ to: 'dimension1',
+ },
+ {
+ from: 'custom2',
+ to: 'dimension2',
+ },
+ ],
+ metrics: [
+ {
+ from: 'email',
+ to: 'metric1',
+ },
+ {
+ from: 'trait2',
+ to: 'metric2',
+ },
+ ],
+ resetCustomDimensionsOnPage: [
+ {
+ resetCustomDimensionsOnPage: 'abc',
+ },
+ {
+ resetCustomDimensionsOnPage: 'xyz',
+ },
+ ],
+ contentGroupings: [
+ {
+ from: 'plan',
+ to: 'contentGroup1',
+ },
+ {
+ from: 'prop2',
+ to: 'contentGroup2',
+ },
+ ],
+ },
+ Enabled: true,
+ },
+ },
+ ],
},
- "output": {
- "response": {
- "status": 200,
- "body": [
- {
- "output": {
- "version": "1",
- "type": "REST",
- "method": "POST",
- "endpoint": "https://www.google-analytics.com/collect",
- "headers": {},
- "params": {
- "ea": "action1",
- "ec": "Rudder Test",
- "cd1": "Rudder Test",
- "cg2": "Rudder Test",
- "v": "1",
- "t": "event",
- "tid": "UA-165994240-1",
- "ds": "web",
- "an": "RudderLabs JavaScript SDK",
- "av": "1.0.0",
- "aiid": "com.rudderlabs.javascript",
- "npa": 1,
- "aip": 1,
- "uid": "123456",
- "cid": "00000000000000000000000000",
- "ni": 1,
- "uip": "0.0.0.0",
- "ua": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36",
- "ul": "en-US",
- "qt": 124901802438
- },
- "body": {
- "JSON": {},
- "XML": {},
- "JSON_ARRAY": {},
- "FORM": {}
- },
- "files": {},
- "userId": "00000000000000000000000000"
- },
- "statusCode": 200
- }
- ]
- }
- }
+ },
+ output: {
+ response: {
+ status: 200,
+ body: [
+ {
+ output: {
+ version: '1',
+ type: 'REST',
+ method: 'POST',
+ endpoint: 'https://www.google-analytics.com/collect',
+ headers: {},
+ params: {
+ ul: 'en-US',
+ ec: 'All',
+ ni: 1,
+ v: '1',
+ t: 'event',
+ el: 'event',
+ tid: 'UA-165994240-1',
+ ds: 'web',
+ an: 'RudderLabs JavaScript SDK',
+ av: '1.0.0',
+ aiid: 'com.rudderlabs.javascript',
+ aip: 1,
+ cid: '00000000000000000000000000',
+ ea: 'order starterefundedd',
+ ua: 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36',
+ uid: '12345',
+ qt: 124893881700,
+ },
+ body: {
+ JSON: {},
+ XML: {},
+ JSON_ARRAY: {},
+ FORM: {},
+ },
+ files: {},
+ userId: '00000000000000000000000000',
+ },
+ statusCode: 200,
+ },
+ ],
+ },
+ },
},
{
- "name": "ga360",
- "description": "Test 1",
- "feature": "processor",
- "module": "destination",
- "version": "v0",
- "input": {
- "request": {
- "body": [
- {
- "message": {
- "channel": "web",
- "context": {
- "app": {
- "build": "1.0.0",
- "name": "RudderLabs JavaScript SDK",
- "namespace": "com.rudderlabs.javascript",
- "version": "1.0.0"
- },
- "traits": {
- "email": "test@rudderstack.com"
- },
- "library": {
- "name": "RudderLabs JavaScript SDK",
- "version": "1.0.0"
- },
- "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36",
- "locale": "en-US",
- "ip": "0.0.0.0",
- "os": {
- "name": "",
- "version": ""
- },
- "screen": {
- "density": 2
- }
- },
- "type": "page",
- "messageId": "5e10d13a-bf9a-44bf-b884-43a9e591ea71",
- "originalTimestamp": "2019-10-14T11:15:18.299Z",
- "anonymousId": "00000000000000000000000000",
- "userId": "12345",
- "properties": {
- "path": "/abc",
- "referrer": "q",
- "search": "",
- "title": "a",
- "url": "https://www.example.com/abc"
- },
- "integrations": {
- "All": true
- },
- "name": "ApplicationLoaded",
- "sentAt": "2019-10-14T11:15:53.296Z"
- },
- "destination": {
- "Config": {
- "trackingID": "UA-165994240-1",
- "doubleClick": true,
- "enhancedLinkAttribution": true,
- "classic": true,
- "ignoredReferrers": "",
- "serverClassic": false,
- "includeSearch": true,
- "trackCategorizedPages": true,
- "trackNamedPages": true,
- "sampleRate": "100",
- "siteSpeedSampleRate": "1",
- "setAllMappedProps": true,
- "enableServerSideIdentify": true,
- "serverSideIdentifyEventCategory": "cat1",
- "serverSideIdentifyEventAction": "action1",
- "anonymizeIp": true,
- "domain": "domain",
- "enhancedEcommerce": true,
- "nonInteraction": true,
- "optimize": "abc123",
- "sendUserId": true,
- "useGoogleAmpClientId": true,
- "web-useNativeSDK": true,
- "dimensions": [
- {
- "from": "name",
- "to": "dimension1"
- },
- {
- "from": "custom2",
- "to": "dimension2"
- }
- ],
- "metrics": [
- {
- "from": "email",
- "to": "metric1"
- },
- {
- "from": "trait2",
- "to": "metric2"
- }
- ],
- "resetCustomDimensionsOnPage": [
- {
- "resetCustomDimensionsOnPage": "abc"
- },
- {
- "resetCustomDimensionsOnPage": "xyz"
- }
- ],
- "contentGroupings": [
- {
- "from": "plan",
- "to": "contentGroup1"
- },
- {
- "from": "prop2",
- "to": "contentGroup2"
- }
- ]
- },
- "Enabled": true
- }
- }
- ]
- }
+ name: 'ga360',
+ description: 'Test 22',
+ feature: 'processor',
+ module: 'destination',
+ version: 'v0',
+ input: {
+ request: {
+ body: [
+ {
+ message: {
+ channel: 'web',
+ context: {
+ app: {
+ build: '1.0.0',
+ name: 'RudderLabs JavaScript SDK',
+ namespace: 'com.rudderlabs.javascript',
+ version: '1.0.0',
+ },
+ traits: {
+ email: 'test@rudderstack.com',
+ },
+ library: {
+ name: 'RudderLabs JavaScript SDK',
+ version: '1.0.0',
+ },
+ userAgent:
+ 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36',
+ locale: 'en-US',
+ os: {
+ name: '',
+ version: '',
+ },
+ screen: {
+ density: 2,
+ },
+ },
+ type: 'track',
+ messageId: 'ec5481b6-a926-4d2e-b293-0b3a77c4d3be',
+ originalTimestamp: '2019-10-14T11:15:18.300Z',
+ anonymousId: '00000000000000000000000000',
+ userId: '12345',
+ event: 'order starterefundedd',
+ properties: {
+ products: [
+ {
+ quantity: 1,
+ sku: 'p-298',
+ },
+ {
+ quantity: 1,
+ sku: 'p-299',
+ },
+ ],
+ testDimension: true,
+ testMetric: true,
+ },
+ integrations: {
+ All: true,
+ },
+ sentAt: '2019-10-14T11:15:53.296Z',
+ },
+ destination: {
+ Config: {
+ trackingID: 'UA-165994240-1',
+ doubleClick: true,
+ enhancedLinkAttribution: true,
+ classic: true,
+ ignoredReferrers: '',
+ serverClassic: false,
+ includeSearch: true,
+ trackCategorizedPages: true,
+ trackNamedPages: true,
+ sampleRate: '100',
+ siteSpeedSampleRate: '1',
+ setAllMappedProps: true,
+ enableServerSideIdentify: true,
+ serverSideIdentifyEventCategory: 'cat1',
+ serverSideIdentifyEventAction: 'action1',
+ domain: 'domain',
+ enhancedEcommerce: true,
+ nonInteraction: true,
+ optimize: 'abc123',
+ sendUserId: true,
+ useGoogleAmpClientId: true,
+ 'web-useNativeSDK': true,
+ dimensions: [
+ {
+ from: 'name',
+ to: 'dimension1',
+ },
+ {
+ from: 'custom2',
+ to: 'dimension2',
+ },
+ ],
+ metrics: [
+ {
+ from: 'email',
+ to: 'metric1',
+ },
+ {
+ from: 'trait2',
+ to: 'metric2',
+ },
+ ],
+ resetCustomDimensionsOnPage: [
+ {
+ resetCustomDimensionsOnPage: 'abc',
+ },
+ {
+ resetCustomDimensionsOnPage: 'xyz',
+ },
+ ],
+ contentGroupings: [
+ {
+ from: 'plan',
+ to: 'contentGroup1',
+ },
+ {
+ from: 'prop2',
+ to: 'contentGroup2',
+ },
+ ],
+ },
+ Enabled: true,
+ },
+ },
+ ],
+ },
+ },
+ output: {
+ response: {
+ status: 200,
+ body: [
+ {
+ output: {
+ version: '1',
+ type: 'REST',
+ method: 'POST',
+ endpoint: 'https://www.google-analytics.com/collect',
+ headers: {},
+ params: {
+ ul: 'en-US',
+ ec: 'All',
+ ni: 1,
+ v: '1',
+ t: 'event',
+ el: 'event',
+ tid: 'UA-165994240-1',
+ ds: 'web',
+ an: 'RudderLabs JavaScript SDK',
+ av: '1.0.0',
+ aiid: 'com.rudderlabs.javascript',
+ npa: 1,
+ cid: '00000000000000000000000000',
+ ea: 'order starterefundedd',
+ ua: 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36',
+ uid: '12345',
+ qt: 124893881700,
+ },
+ body: {
+ JSON: {},
+ XML: {},
+ JSON_ARRAY: {},
+ FORM: {},
+ },
+ files: {},
+ userId: '00000000000000000000000000',
+ },
+ statusCode: 200,
+ },
+ ],
},
- "output": {
- "response": {
- "status": 200,
- "body": [
- {
- "output": {
- "version": "1",
- "type": "REST",
- "method": "POST",
- "endpoint": "https://www.google-analytics.com/collect",
- "headers": {},
- "params": {
- "v": "1",
- "t": "pageview",
- "tid": "UA-165994240-1",
- "ds": "web",
- "an": "RudderLabs JavaScript SDK",
- "av": "1.0.0",
- "aiid": "com.rudderlabs.javascript",
- "npa": 1,
- "aip": 1,
- "cid": "00000000000000000000000000",
- "ua": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36",
- "uid": "12345",
- "uip": "0.0.0.0",
- "ul": "en-US",
- "dh": "www.example.com",
- "dl": "https://www.example.com/abc",
- "dp": "%2Fabc",
- "dr": "q",
- "dt": "a",
- "qt": 124893881701,
- },
- "body": {
- "JSON": {},
- "XML": {},
- "JSON_ARRAY": {},
- "FORM": {}
- },
- "files": {},
- "userId": "00000000000000000000000000"
- },
- "statusCode": 200
- }
- ]
- }
- }
+ },
},
{
- "name": "ga360",
- "description": "Test 2",
- "feature": "processor",
- "module": "destination",
- "version": "v0",
- "input": {
- "request": {
- "body": [
- {
- "message": {
- "channel": "web",
- "context": {
- "app": {
- "build": "1.0.0",
- "name": "RudderLabs JavaScript SDK",
- "namespace": "com.rudderlabs.javascript",
- "version": "1.0.0"
- },
- "traits": {
- "email": "test@rudderstack.com"
- },
- "library": {
- "name": "RudderLabs JavaScript SDK",
- "version": "1.0.0"
- },
- "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36",
- "locale": "en-US",
- "os": {
- "name": "",
- "version": ""
- },
- "screen": {
- "density": 2
- }
- },
- "type": "track",
- "messageId": "ec5481b6-a926-4d2e-b293-0b3a77c4d3be",
- "originalTimestamp": "2019-10-14T11:15:18.300Z",
- "anonymousId": "00000000000000000000000000",
- "userId": "12345",
- "event": "test track event GA3",
- "properties": {
- "category": "test-category",
- "user_actual_role": "system_admin, system_user",
- "user_actual_id": 12345
- },
- "integrations": {
- "All": true
- },
- "sentAt": "2019-10-14T11:15:53.296Z"
- },
- "destination": {
- "Config": {
- "trackingID": "UA-165994240-1",
- "doubleClick": true,
- "enhancedLinkAttribution": true,
- "classic": true,
- "ignoredReferrers": "",
- "serverClassic": false,
- "includeSearch": true,
- "trackCategorizedPages": true,
- "trackNamedPages": true,
- "sampleRate": "100",
- "siteSpeedSampleRate": "1",
- "setAllMappedProps": true,
- "enableServerSideIdentify": true,
- "serverSideIdentifyEventCategory": "cat1",
- "serverSideIdentifyEventAction": "action1",
- "anonymizeIp": true,
- "domain": "domain",
- "enhancedEcommerce": true,
- "nonInteraction": true,
- "optimize": "abc123",
- "sendUserId": true,
- "useGoogleAmpClientId": true,
- "web-useNativeSDK": true,
- "dimensions": [
- {
- "from": "name",
- "to": "dimension1"
- },
- {
- "from": "custom2",
- "to": "dimension2"
- }
- ],
- "metrics": [
- {
- "from": "email",
- "to": "metric1"
- },
- {
- "from": "trait2",
- "to": "metric2"
- }
- ],
- "resetCustomDimensionsOnPage": [
- {
- "resetCustomDimensionsOnPage": "abc"
- },
- {
- "resetCustomDimensionsOnPage": "xyz"
- }
- ],
- "contentGroupings": [
- {
- "from": "plan",
- "to": "contentGroup1"
- },
- {
- "from": "prop2",
- "to": "contentGroup2"
- }
- ]
- },
- "Enabled": true
- }
- }
- ]
- }
+ name: 'ga360',
+ description: 'Test 23',
+ feature: 'processor',
+ module: 'destination',
+ version: 'v0',
+ input: {
+ request: {
+ body: [
+ {
+ message: {
+ channel: 'web',
+ context: {
+ app: {
+ build: '1.0.0',
+ name: 'RudderLabs JavaScript SDK',
+ namespace: 'com.rudderlabs.javascript',
+ version: '1.0.0',
+ },
+ traits: {
+ email: 'test@rudderstack.com',
+ },
+ library: {
+ name: 'RudderLabs JavaScript SDK',
+ version: '1.0.0',
+ },
+ userAgent:
+ 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36',
+ locale: 'en-US',
+ os: {
+ name: '',
+ version: '',
+ },
+ screen: {
+ density: 2,
+ },
+ },
+ type: 'track',
+ messageId: 'ec5481b6-a926-4d2e-b293-0b3a77c4d3be',
+ originalTimestamp: '2019-10-14T11:15:18.300Z',
+ anonymousId: '00000000000000000000000000',
+ userId: '12345',
+ event: 'order starterefundedd',
+ properties: {
+ products: [
+ {
+ quantity: 1,
+ sku: 'p-298',
+ },
+ {
+ quantity: 1,
+ sku: 'p-299',
+ },
+ ],
+ testDimension: true,
+ testMetric: true,
+ },
+ integrations: {
+ All: true,
+ },
+ sentAt: '2019-10-14T11:15:53.296Z',
+ },
+ destination: {
+ Config: {
+ trackingID: 'UA-165994240-1',
+ doubleClick: true,
+ classic: true,
+ ignoredReferrers: '',
+ serverClassic: false,
+ includeSearch: true,
+ trackCategorizedPages: true,
+ trackNamedPages: true,
+ sampleRate: '100',
+ siteSpeedSampleRate: '1',
+ setAllMappedProps: true,
+ enableServerSideIdentify: true,
+ serverSideIdentifyEventCategory: 'cat1',
+ serverSideIdentifyEventAction: 'action1',
+ anonymizeIp: true,
+ domain: 'domain',
+ enhancedEcommerce: true,
+ nonInteraction: true,
+ optimize: 'abc123',
+ sendUserId: true,
+ useGoogleAmpClientId: true,
+ 'web-useNativeSDK': true,
+ dimensions: [
+ {
+ from: 'name',
+ to: 'dimension1',
+ },
+ {
+ from: 'custom2',
+ to: 'dimension2',
+ },
+ ],
+ metrics: [
+ {
+ from: 'email',
+ to: 'metric1',
+ },
+ {
+ from: 'trait2',
+ to: 'metric2',
+ },
+ ],
+ resetCustomDimensionsOnPage: [
+ {
+ resetCustomDimensionsOnPage: 'abc',
+ },
+ {
+ resetCustomDimensionsOnPage: 'xyz',
+ },
+ ],
+ contentGroupings: [
+ {
+ from: 'plan',
+ to: 'contentGroup1',
+ },
+ {
+ from: 'prop2',
+ to: 'contentGroup2',
+ },
+ ],
+ },
+ Enabled: true,
+ },
+ },
+ ],
+ },
+ },
+ output: {
+ response: {
+ status: 200,
+ body: [
+ {
+ output: {
+ version: '1',
+ type: 'REST',
+ method: 'POST',
+ endpoint: 'https://www.google-analytics.com/collect',
+ headers: {},
+ params: {
+ ul: 'en-US',
+ ec: 'All',
+ ni: 1,
+ v: '1',
+ t: 'event',
+ el: 'event',
+ tid: 'UA-165994240-1',
+ ds: 'web',
+ an: 'RudderLabs JavaScript SDK',
+ av: '1.0.0',
+ aiid: 'com.rudderlabs.javascript',
+ npa: 1,
+ aip: 1,
+ cid: '00000000000000000000000000',
+ ea: 'order starterefundedd',
+ ua: 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36',
+ uid: '12345',
+ qt: 124893881700,
+ },
+ body: {
+ JSON: {},
+ XML: {},
+ JSON_ARRAY: {},
+ FORM: {},
+ },
+ files: {},
+ userId: '00000000000000000000000000',
+ },
+ statusCode: 200,
+ },
+ ],
},
- "output": {
- "response": {
- "status": 200,
- "body": [
- {
- "output": {
- "version": "1",
- "type": "REST",
- "method": "POST",
- "endpoint": "https://www.google-analytics.com/collect",
- "headers": {},
- "params": {
- "ec": "test-category",
- "ni": 1,
- "v": "1",
- "el": "event",
- "t": "event",
- "tid": "UA-165994240-1",
- "ds": "web",
- "an": "RudderLabs JavaScript SDK",
- "av": "1.0.0",
- "aiid": "com.rudderlabs.javascript",
- "npa": 1,
- "aip": 1,
- "cid": "00000000000000000000000000",
- "ea": "test track event GA3",
- "ua": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36",
- "uid": "12345",
- "ul": "en-US",
- "qt": 124893881700,
- },
- "body": {
- "JSON": {},
- "XML": {},
- "JSON_ARRAY": {},
- "FORM": {}
- },
- "files": {},
- "userId": "00000000000000000000000000"
- },
- "statusCode": 200
- }
- ]
- }
- }
+ },
},
{
- "name": "ga360",
- "description": "Test 3",
- "feature": "processor",
- "module": "destination",
- "version": "v0",
- "input": {
- "request": {
- "body": [
- {
- "message": {
- "channel": "web",
- "context": {
- "app": {
- "build": "1.0.0",
- "name": "RudderLabs JavaScript SDK",
- "namespace": "com.rudderlabs.javascript",
- "version": "1.0.0"
- },
- "traits": {
- "email": "test@rudderstack.com"
- },
- "library": {
- "name": "RudderLabs JavaScript SDK",
- "version": "1.0.0"
- },
- "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36",
- "locale": "en-US",
- "os": {
- "name": "",
- "version": ""
- },
- "screen": {
- "density": 2
- }
- },
- "type": "track",
- "messageId": "ec5481b6-a926-4d2e-b293-0b3a77c4d3be",
- "originalTimestamp": "2019-10-14T11:15:18.300Z",
- "anonymousId": "00000000000000000000000000",
- "userId": "12345",
- "event": "order completed",
- "properties": {
- "order_id": "rudderstackorder1",
- "total": 99.99,
- "shipping": 13.99,
- "tax": 20.99,
- "currency": "INR",
- "products": [
- {
- "quantity": 1,
- "price": 24.75,
- "name": "my product",
- "sku": "p-298"
- },
- {
- "quantity": 3,
- "price": 24.75,
- "name": "other product",
- "sku": "p-299"
- }
- ]
- },
- "integrations": {
- "All": true
- },
- "sentAt": "2019-10-14T11:15:53.296Z"
- },
- "destination": {
- "Config": {
- "trackingID": "UA-165994240-1",
- "doubleClick": true,
- "enhancedLinkAttribution": true,
- "classic": true,
- "ignoredReferrers": "",
- "serverClassic": false,
- "includeSearch": true,
- "trackCategorizedPages": true,
- "trackNamedPages": true,
- "sampleRate": "100",
- "siteSpeedSampleRate": "1",
- "setAllMappedProps": true,
- "enableServerSideIdentify": true,
- "serverSideIdentifyEventCategory": "cat1",
- "serverSideIdentifyEventAction": "action1",
- "anonymizeIp": true,
- "domain": "domain",
- "enhancedEcommerce": true,
- "nonInteraction": true,
- "optimize": "abc123",
- "sendUserId": true,
- "useGoogleAmpClientId": true,
- "web-useNativeSDK": true,
- "dimensions": [
- {
- "from": "name",
- "to": "dimension1"
- },
- {
- "from": "custom2",
- "to": "dimension2"
- }
- ],
- "metrics": [
- {
- "from": "email",
- "to": "metric1"
- },
- {
- "from": "trait2",
- "to": "metric2"
- }
- ],
- "resetCustomDimensionsOnPage": [
- {
- "resetCustomDimensionsOnPage": "abc"
- },
- {
- "resetCustomDimensionsOnPage": "xyz"
- }
- ],
- "contentGroupings": [
- {
- "from": "plan",
- "to": "contentGroup1"
- },
- {
- "from": "prop2",
- "to": "contentGroup2"
- }
- ]
- },
- "Enabled": true
- }
- }
- ]
- }
+ name: 'ga360',
+ description: 'Test 24',
+ feature: 'processor',
+ module: 'destination',
+ version: 'v0',
+ input: {
+ request: {
+ body: [
+ {
+ message: {
+ channel: 'web',
+ context: {
+ app: {
+ build: '1.0.0',
+ name: 'RudderLabs JavaScript SDK',
+ namespace: 'com.rudderlabs.javascript',
+ version: '1.0.0',
+ },
+ traits: {
+ email: 'test@rudderstack.com',
+ },
+ library: {
+ name: 'RudderLabs JavaScript SDK',
+ version: '1.0.0',
+ },
+ userAgent:
+ 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36',
+ locale: 'en-US',
+ os: {
+ name: '',
+ version: '',
+ },
+ screen: {
+ density: 2,
+ },
+ },
+ type: 'track',
+ messageId: 'ec5481b6-a926-4d2e-b293-0b3a77c4d3be',
+ originalTimestamp: '2019-10-14T11:15:18.300Z',
+ anonymousId: '00000000000000000000000000',
+ userId: '12345',
+ event: 'linkid test',
+ properties: {
+ linkid: 'abc123',
+ testDimension: true,
+ testMetric: true,
+ },
+ integrations: {
+ All: true,
+ },
+ sentAt: '2019-10-14T11:15:53.296Z',
+ },
+ destination: {
+ Config: {
+ trackingID: 'UA-165994240-1',
+ doubleClick: true,
+ enhancedLinkAttribution: true,
+ classic: true,
+ ignoredReferrers: '',
+ serverClassic: false,
+ includeSearch: true,
+ trackCategorizedPages: true,
+ trackNamedPages: true,
+ sampleRate: '100',
+ siteSpeedSampleRate: '1',
+ setAllMappedProps: true,
+ enableServerSideIdentify: true,
+ serverSideIdentifyEventCategory: 'cat1',
+ serverSideIdentifyEventAction: 'action1',
+ domain: 'domain',
+ enhancedEcommerce: true,
+ nonInteraction: true,
+ optimize: 'abc123',
+ sendUserId: true,
+ useGoogleAmpClientId: true,
+ 'web-useNativeSDK': true,
+ dimensions: [
+ {
+ from: 'name',
+ to: 'dimension1',
+ },
+ {
+ from: 'custom2',
+ to: 'dimension2',
+ },
+ ],
+ metrics: [
+ {
+ from: 'email',
+ to: 'metric1',
+ },
+ {
+ from: 'trait2',
+ to: 'metric2',
+ },
+ ],
+ resetCustomDimensionsOnPage: [
+ {
+ resetCustomDimensionsOnPage: 'abc',
+ },
+ {
+ resetCustomDimensionsOnPage: 'xyz',
+ },
+ ],
+ contentGroupings: [
+ {
+ from: 'plan',
+ to: 'contentGroup1',
+ },
+ {
+ from: 'prop2',
+ to: 'contentGroup2',
+ },
+ ],
+ },
+ Enabled: true,
+ },
+ },
+ ],
+ },
+ },
+ output: {
+ response: {
+ status: 200,
+ body: [
+ {
+ output: {
+ version: '1',
+ type: 'REST',
+ method: 'POST',
+ endpoint: 'https://www.google-analytics.com/collect',
+ headers: {},
+ params: {
+ ul: 'en-US',
+ ec: 'All',
+ ni: 1,
+ v: '1',
+ t: 'event',
+ el: 'event',
+ tid: 'UA-165994240-1',
+ ds: 'web',
+ an: 'RudderLabs JavaScript SDK',
+ av: '1.0.0',
+ aiid: 'com.rudderlabs.javascript',
+ npa: 1,
+ linkid: 'abc123',
+ cid: '00000000000000000000000000',
+ ea: 'linkid test',
+ ua: 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36',
+ uid: '12345',
+ qt: 124893881700,
+ },
+ body: {
+ JSON: {},
+ XML: {},
+ JSON_ARRAY: {},
+ FORM: {},
+ },
+ files: {},
+ userId: '00000000000000000000000000',
+ },
+ statusCode: 200,
+ },
+ ],
},
- "output": {
- "response": {
- "status": 200,
- "body": [
- {
- "output": {
- "version": "1",
- "type": "REST",
- "method": "POST",
- "endpoint": "https://www.google-analytics.com/collect",
- "headers": {},
- "params": {
- "pa": "purchase",
- "tr": 99.99,
- "ev": 100,
- "pr1id": "p-298",
- "pr1cd1": "my product",
- "pr1nm": "my product",
- "pr1pr": 24.75,
- "pr2id": "p-299",
- "pr2cd1": "other product",
- "pr2nm": "other product",
- "pr2pr": 24.75,
- "ea": "order completed",
- "ec": "EnhancedEcommerce",
- "v": "1",
- "t": "event",
- "el": "event",
- "tid": "UA-165994240-1",
- "ds": "web",
- "an": "RudderLabs JavaScript SDK",
- "av": "1.0.0",
- "aiid": "com.rudderlabs.javascript",
- "npa": 1,
- "aip": 1,
- "cid": "00000000000000000000000000",
- "ti": "rudderstackorder1",
- "ts": 13.99,
- "tt": 20.99,
- "cu": "INR",
- "ua": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36",
- "uid": "12345",
- "ni": 1,
- "pr1qt": 1,
- "pr2qt": 3,
- "ul": "en-US",
- "qt": 124893881700,
- },
- "body": {
- "JSON": {},
- "XML": {},
- "JSON_ARRAY": {},
- "FORM": {}
- },
- "files": {},
- "userId": "00000000000000000000000000"
- },
- "statusCode": 200
- }
- ]
- }
- }
+ },
},
{
- "name": "ga360",
- "description": "Test 4",
- "feature": "processor",
- "module": "destination",
- "version": "v0",
- "input": {
- "request": {
- "body": [
- {
- "message": {
- "channel": "web",
- "context": {
- "app": {
- "build": "1.0.0",
- "name": "RudderLabs JavaScript SDK",
- "namespace": "com.rudderlabs.javascript",
- "version": "1.0.0"
- },
- "traits": {
- "email": "test@rudderstack.com"
- },
- "library": {
- "name": "RudderLabs JavaScript SDK",
- "version": "1.0.0"
- },
- "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36",
- "locale": "en-US",
- "os": {
- "name": "",
- "version": ""
- },
- "screen": {
- "density": 2
- }
- },
- "type": "track",
- "messageId": "ec5481b6-a926-4d2e-b293-0b3a77c4d3be",
- "originalTimestamp": "2019-10-14T11:15:18.300Z",
- "anonymousId": "00000000000000000000000000",
- "userId": "12345",
- "event": "product added",
- "properties": {
- "currency": "CAD",
- "quantity": 1,
- "price": 24.75,
- "name": "my product 1",
- "category": "cat 1",
- "sku": "p-298",
- "testDimension": true,
- "testMetric": true,
- "position": 4.5
- },
- "integrations": {
- "All": true
- },
- "sentAt": "2019-10-14T11:15:53.296Z"
- },
- "destination": {
- "Config": {
- "trackingID": "UA-165994240-1",
- "doubleClick": true,
- "enhancedLinkAttribution": true,
- "classic": true,
- "ignoredReferrers": "",
- "serverClassic": false,
- "includeSearch": true,
- "trackCategorizedPages": true,
- "trackNamedPages": true,
- "sampleRate": "100",
- "siteSpeedSampleRate": "1",
- "setAllMappedProps": true,
- "enableServerSideIdentify": true,
- "serverSideIdentifyEventCategory": "cat1",
- "serverSideIdentifyEventAction": "action1",
- "anonymizeIp": true,
- "domain": "domain",
- "enhancedEcommerce": true,
- "nonInteraction": true,
- "optimize": "abc123",
- "sendUserId": true,
- "useGoogleAmpClientId": true,
- "web-useNativeSDK": true,
- "dimensions": [
- {
- "from": "name",
- "to": "dimension1"
- },
- {
- "from": "custom2",
- "to": "dimension2"
- }
- ],
- "metrics": [
- {
- "from": "email",
- "to": "metric1"
- },
- {
- "from": "trait2",
- "to": "metric2"
- }
- ],
- "resetCustomDimensionsOnPage": [
- {
- "resetCustomDimensionsOnPage": "abc"
- },
- {
- "resetCustomDimensionsOnPage": "xyz"
- }
- ],
- "contentGroupings": [
- {
- "from": "plan",
- "to": "contentGroup1"
- },
- {
- "from": "prop2",
- "to": "contentGroup2"
- }
- ]
- },
- "Enabled": true
- }
- }
- ]
- }
+ name: 'ga360',
+ description: 'Test 25',
+ feature: 'processor',
+ module: 'destination',
+ version: 'v0',
+ input: {
+ request: {
+ body: [
+ {
+ message: {
+ channel: 'web',
+ context: {
+ app: {
+ build: '1.0.0',
+ name: 'RudderLabs JavaScript SDK',
+ namespace: 'com.rudderlabs.javascript',
+ version: '1.0.0',
+ },
+ traits: {
+ email: 'test@rudderstack.com',
+ },
+ library: {
+ name: 'RudderLabs JavaScript SDK',
+ version: '1.0.0',
+ },
+ userAgent:
+ 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36',
+ locale: 'en-US',
+ os: {
+ name: '',
+ version: '',
+ },
+ screen: {
+ density: 2,
+ },
+ campaign: {
+ name: 'sampleName',
+ source: 'sampleSource',
+ medium: 'sampleMedium',
+ content: 'sampleContent',
+ term: 'sampleTerm',
+ },
+ },
+ type: 'track',
+ messageId: 'ec5481b6-a926-4d2e-b293-0b3a77c4d3be',
+ originalTimestamp: '2019-10-14T11:15:18.300Z',
+ anonymousId: '00000000000000000000000000',
+ userId: '12345',
+ event: 'campaign test',
+ properties: {
+ testDimension: true,
+ testMetric: true,
+ },
+ integrations: {
+ All: true,
+ },
+ sentAt: '2019-10-14T11:15:53.296Z',
+ },
+ destination: {
+ Config: {
+ trackingID: 'UA-165994240-1',
+ doubleClick: true,
+ enhancedLinkAttribution: true,
+ classic: true,
+ ignoredReferrers: '',
+ serverClassic: false,
+ includeSearch: true,
+ trackCategorizedPages: true,
+ trackNamedPages: true,
+ sampleRate: '100',
+ siteSpeedSampleRate: '1',
+ setAllMappedProps: true,
+ enableServerSideIdentify: true,
+ serverSideIdentifyEventCategory: 'cat1',
+ serverSideIdentifyEventAction: 'action1',
+ domain: 'domain',
+ enhancedEcommerce: true,
+ nonInteraction: true,
+ optimize: 'abc123',
+ sendUserId: true,
+ useGoogleAmpClientId: true,
+ 'web-useNativeSDK': true,
+ dimensions: [
+ {
+ from: 'name',
+ to: 'dimension1',
+ },
+ {
+ from: 'custom2',
+ to: 'dimension2',
+ },
+ ],
+ metrics: [
+ {
+ from: 'email',
+ to: 'metric1',
+ },
+ {
+ from: 'trait2',
+ to: 'metric2',
+ },
+ ],
+ resetCustomDimensionsOnPage: [
+ {
+ resetCustomDimensionsOnPage: 'abc',
+ },
+ {
+ resetCustomDimensionsOnPage: 'xyz',
+ },
+ ],
+ contentGroupings: [
+ {
+ from: 'plan',
+ to: 'contentGroup1',
+ },
+ {
+ from: 'prop2',
+ to: 'contentGroup2',
+ },
+ ],
+ },
+ Enabled: true,
+ },
+ },
+ ],
+ },
+ },
+ output: {
+ response: {
+ status: 200,
+ body: [
+ {
+ output: {
+ version: '1',
+ type: 'REST',
+ method: 'POST',
+ endpoint: 'https://www.google-analytics.com/collect',
+ headers: {},
+ params: {
+ ul: 'en-US',
+ ec: 'All',
+ ni: 1,
+ v: '1',
+ t: 'event',
+ el: 'event',
+ tid: 'UA-165994240-1',
+ ds: 'web',
+ an: 'RudderLabs JavaScript SDK',
+ av: '1.0.0',
+ aiid: 'com.rudderlabs.javascript',
+ npa: 1,
+ cn: 'sampleName',
+ cs: 'sampleSource',
+ cm: 'sampleMedium',
+ cc: 'sampleContent',
+ ck: 'sampleTerm',
+ cid: '00000000000000000000000000',
+ ea: 'campaign test',
+ ua: 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36',
+ uid: '12345',
+ qt: 124893881700,
+ },
+ body: {
+ JSON: {},
+ XML: {},
+ JSON_ARRAY: {},
+ FORM: {},
+ },
+ files: {},
+ userId: '00000000000000000000000000',
+ },
+ statusCode: 200,
+ },
+ ],
+ },
+ },
+ },
+ {
+ name: 'ga360',
+ description: 'Test 26',
+ feature: 'processor',
+ module: 'destination',
+ version: 'v0',
+ input: {
+ request: {
+ body: [
+ {
+ message: {
+ channel: 'web',
+ context: {
+ app: {
+ build: '1.0.0',
+ name: 'RudderLabs JavaScript SDK',
+ namespace: 'com.rudderlabs.javascript',
+ version: '1.0.0',
+ },
+ traits: {
+ email: 'test@rudderstack.com',
+ },
+ library: {
+ name: 'RudderLabs JavaScript SDK',
+ version: '1.0.0',
+ },
+ userAgent:
+ 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36',
+ locale: 'en-US',
+ os: {
+ name: '',
+ version: '',
+ },
+ screen: {
+ density: 2,
+ },
+ campaign: {
+ name: 'sampleName',
+ source: 'sampleSource',
+ medium: 'sampleMedium',
+ content: 'sampleContent',
+ term: 'sampleTerm',
+ },
+ },
+ type: 'track',
+ messageId: 'ec5481b6-a926-4d2e-b293-0b3a77c4d3be',
+ originalTimestamp: '2019-10-14T11:15:18.300Z',
+ anonymousId: '00000000000000000000000000',
+ event: 'campaign test',
+ properties: {
+ testDimension: true,
+ testMetric: true,
+ },
+ integrations: {
+ All: true,
+ },
+ sentAt: '2019-10-14T11:15:53.296Z',
+ },
+ destination: {
+ Config: {
+ trackingID: 'UA-165994240-1',
+ doubleClick: true,
+ enhancedLinkAttribution: true,
+ classic: true,
+ ignoredReferrers: '',
+ serverClassic: false,
+ includeSearch: true,
+ trackCategorizedPages: true,
+ trackNamedPages: true,
+ sampleRate: '100',
+ siteSpeedSampleRate: '1',
+ setAllMappedProps: true,
+ enableServerSideIdentify: true,
+ serverSideIdentifyEventCategory: 'cat1',
+ serverSideIdentifyEventAction: 'action1',
+ domain: 'domain',
+ enhancedEcommerce: true,
+ nonInteraction: true,
+ optimize: 'abc123',
+ sendUserId: true,
+ useGoogleAmpClientId: true,
+ 'web-useNativeSDK': true,
+ dimensions: [
+ {
+ from: 'name',
+ to: 'dimension1',
+ },
+ {
+ from: 'custom2',
+ to: 'dimension2',
+ },
+ ],
+ metrics: [
+ {
+ from: 'email',
+ to: 'metric1',
+ },
+ {
+ from: 'trait2',
+ to: 'metric2',
+ },
+ ],
+ resetCustomDimensionsOnPage: [
+ {
+ resetCustomDimensionsOnPage: 'abc',
+ },
+ {
+ resetCustomDimensionsOnPage: 'xyz',
+ },
+ ],
+ contentGroupings: [
+ {
+ from: 'plan',
+ to: 'contentGroup1',
+ },
+ {
+ from: 'prop2',
+ to: 'contentGroup2',
+ },
+ ],
+ },
+ Enabled: true,
+ },
+ },
+ ],
+ },
+ },
+ output: {
+ response: {
+ status: 200,
+ body: [
+ {
+ output: {
+ version: '1',
+ type: 'REST',
+ method: 'POST',
+ endpoint: 'https://www.google-analytics.com/collect',
+ headers: {},
+ params: {
+ ul: 'en-US',
+ ec: 'All',
+ ni: 1,
+ v: '1',
+ t: 'event',
+ el: 'event',
+ tid: 'UA-165994240-1',
+ ds: 'web',
+ an: 'RudderLabs JavaScript SDK',
+ av: '1.0.0',
+ aiid: 'com.rudderlabs.javascript',
+ npa: 1,
+ cn: 'sampleName',
+ cs: 'sampleSource',
+ cm: 'sampleMedium',
+ cc: 'sampleContent',
+ ck: 'sampleTerm',
+ cid: '00000000000000000000000000',
+ ea: 'campaign test',
+ ua: 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36',
+ qt: 124893881700,
+ },
+ body: {
+ JSON: {},
+ XML: {},
+ JSON_ARRAY: {},
+ FORM: {},
+ },
+ files: {},
+ userId: '00000000000000000000000000',
+ },
+ statusCode: 200,
+ },
+ ],
+ },
+ },
+ },
+ {
+ name: 'ga360',
+ description: 'Test 27',
+ feature: 'processor',
+ module: 'destination',
+ version: 'v0',
+ input: {
+ request: {
+ body: [
+ {
+ message: {
+ channel: 'web',
+ context: {
+ app: {
+ build: '1.0.0',
+ name: 'RudderLabs JavaScript SDK',
+ namespace: 'com.rudderlabs.javascript',
+ version: '1.0.0',
+ },
+ traits: {
+ email: 'test@rudderstack.com',
+ },
+ library: {
+ name: 'RudderLabs JavaScript SDK',
+ version: '1.0.0',
+ },
+ userAgent:
+ 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36',
+ locale: 'en-US',
+ os: {
+ name: '',
+ version: '',
+ },
+ screen: {
+ density: 2,
+ },
+ campaign: {
+ name: 'sampleName',
+ source: 'sampleSource',
+ medium: 'sampleMedium',
+ content: 'sampleContent',
+ term: 'sampleTerm',
+ },
+ },
+ type: 'track',
+ messageId: 'ec5481b6-a926-4d2e-b293-0b3a77c4d3be',
+ originalTimestamp: '2019-10-14T11:15:18.300Z',
+ anonymousId: '00000000000000000000000000',
+ event: 'campaign test',
+ properties: {
+ testDimension: true,
+ testMetric: true,
+ },
+ integrations: {
+ All: true,
+ },
+ sentAt: '2019-10-14T11:15:53.296Z',
+ },
+ destination: {
+ Config: {
+ trackingID: 'UA-165994240-1',
+ doubleClick: true,
+ enhancedLinkAttribution: true,
+ classic: true,
+ ignoredReferrers: '',
+ serverClassic: false,
+ includeSearch: true,
+ trackCategorizedPages: true,
+ trackNamedPages: true,
+ sampleRate: '100',
+ siteSpeedSampleRate: '1',
+ setAllMappedProps: true,
+ enableServerSideIdentify: true,
+ serverSideIdentifyEventCategory: 'cat1',
+ domain: 'domain',
+ enhancedEcommerce: true,
+ nonInteraction: true,
+ optimize: 'abc123',
+ sendUserId: true,
+ useGoogleAmpClientId: true,
+ 'web-useNativeSDK': true,
+ dimensions: [
+ {
+ from: 'name',
+ to: 'dimension1',
+ },
+ {
+ from: 'custom2',
+ to: 'dimension2',
+ },
+ ],
+ metrics: [
+ {
+ from: 'email',
+ to: 'metric1',
+ },
+ {
+ from: 'trait2',
+ to: 'metric2',
+ },
+ ],
+ resetCustomDimensionsOnPage: [
+ {
+ resetCustomDimensionsOnPage: 'abc',
+ },
+ {
+ resetCustomDimensionsOnPage: 'xyz',
+ },
+ ],
+ contentGroupings: [
+ {
+ from: 'plan',
+ to: 'contentGroup1',
+ },
+ {
+ from: 'prop2',
+ to: 'contentGroup2',
+ },
+ ],
+ },
+ Enabled: true,
+ },
+ },
+ ],
+ },
+ },
+ output: {
+ response: {
+ status: 200,
+ body: [
+ {
+ output: {
+ version: '1',
+ type: 'REST',
+ method: 'POST',
+ endpoint: 'https://www.google-analytics.com/collect',
+ headers: {},
+ params: {
+ ul: 'en-US',
+ ec: 'All',
+ ni: 1,
+ v: '1',
+ t: 'event',
+ el: 'event',
+ tid: 'UA-165994240-1',
+ ds: 'web',
+ an: 'RudderLabs JavaScript SDK',
+ av: '1.0.0',
+ aiid: 'com.rudderlabs.javascript',
+ npa: 1,
+ cn: 'sampleName',
+ cs: 'sampleSource',
+ cm: 'sampleMedium',
+ cc: 'sampleContent',
+ ck: 'sampleTerm',
+ cid: '00000000000000000000000000',
+ ea: 'campaign test',
+ ua: 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36',
+ qt: 124893881700,
+ },
+ body: {
+ JSON: {},
+ XML: {},
+ JSON_ARRAY: {},
+ FORM: {},
+ },
+ files: {},
+ userId: '00000000000000000000000000',
+ },
+ statusCode: 200,
+ },
+ ],
+ },
+ },
+ },
+ {
+ name: 'ga360',
+ description: 'Test 28',
+ feature: 'processor',
+ module: 'destination',
+ version: 'v0',
+ input: {
+ request: {
+ body: [
+ {
+ message: {
+ channel: 'web',
+ context: {
+ app: {
+ build: '1.0.0',
+ name: 'RudderLabs JavaScript SDK',
+ namespace: 'com.rudderlabs.javascript',
+ version: '1.1.2',
+ },
+ traits: {
+ abc: '1234',
+ },
+ library: {
+ name: 'RudderLabs JavaScript SDK',
+ version: '1.1.2',
+ },
+ userAgent:
+ 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/83.0.4103.97 Safari/537.36',
+ locale: 'en-GB',
+ os: {
+ name: '',
+ version: '',
+ },
+ screen: {
+ density: 2,
+ },
+ page: {
+ path: '/tests/html/ecomm_test.html',
+ referrer: 'http://0.0.0.0:1112/tests/html/',
+ search: '',
+ title: 'GA Ecommerce Test',
+ url: 'http://0.0.0.0:1112/tests/html/ecomm_test.html',
+ },
+ },
+ type: 'identify',
+ messageId: 'bc8a6af8-37fd-46a9-9592-ea29a256435f',
+ originalTimestamp: '2020-06-22T11:30:32.493Z',
+ anonymousId: '38e169a1-3234-46f7-9ceb-c1a6a69005fe',
+ userId: '123',
+ integrations: {
+ All: true,
+ },
+ sentAt: '2020-06-22T11:30:32.494Z',
+ },
+ destination: {
+ Config: {
+ trackingID: 'UA-165994240-1',
+ doubleClick: true,
+ enhancedLinkAttribution: true,
+ classic: true,
+ ignoredReferrers: '',
+ serverClassic: false,
+ includeSearch: true,
+ trackCategorizedPages: true,
+ trackNamedPages: true,
+ sampleRate: '100',
+ siteSpeedSampleRate: '1',
+ setAllMappedProps: true,
+ enableServerSideIdentify: true,
+ serverSideIdentifyEventCategory: 'cat1',
+ domain: 'domain',
+ enhancedEcommerce: true,
+ nonInteraction: true,
+ optimize: 'abc123',
+ sendUserId: true,
+ useGoogleAmpClientId: true,
+ 'web-useNativeSDK': true,
+ dimensions: [
+ {
+ from: 'name',
+ to: 'dimension1',
+ },
+ {
+ from: 'custom2',
+ to: 'dimension2',
+ },
+ ],
+ metrics: [
+ {
+ from: 'email',
+ to: 'metric1',
+ },
+ {
+ from: 'trait2',
+ to: 'metric2',
+ },
+ ],
+ resetCustomDimensionsOnPage: [
+ {
+ resetCustomDimensionsOnPage: 'abc',
+ },
+ {
+ resetCustomDimensionsOnPage: 'xyz',
+ },
+ ],
+ contentGroupings: [
+ {
+ from: 'plan',
+ to: 'contentGroup1',
+ },
+ {
+ from: 'prop2',
+ to: 'contentGroup2',
+ },
+ ],
+ },
+ Enabled: true,
+ },
+ },
+ ],
+ },
+ },
+ output: {
+ response: {
+ status: 200,
+ body: [
+ {
+ output: {
+ version: '1',
+ type: 'REST',
+ method: 'POST',
+ endpoint: 'https://www.google-analytics.com/collect',
+ headers: {},
+ params: {
+ ea: 'User Enriched',
+ dt: 'GA Ecommerce Test',
+ ec: 'All',
+ v: '1',
+ t: 'event',
+ tid: 'UA-165994240-1',
+ ds: 'web',
+ an: 'RudderLabs JavaScript SDK',
+ av: '1.1.2',
+ aiid: 'com.rudderlabs.javascript',
+ npa: 1,
+ uid: '123',
+ cid: '38e169a1-3234-46f7-9ceb-c1a6a69005fe',
+ ni: 1,
+ ua: 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/83.0.4103.97 Safari/537.36',
+ ul: 'en-GB',
+ qt: 103120167507,
+ },
+ body: {
+ JSON: {},
+ XML: {},
+ JSON_ARRAY: {},
+ FORM: {},
+ },
+ files: {},
+ userId: '38e169a1-3234-46f7-9ceb-c1a6a69005fe',
+ },
+ statusCode: 200,
+ },
+ ],
+ },
+ },
+ },
+ {
+ name: 'ga360',
+ description: 'Test 29',
+ feature: 'processor',
+ module: 'destination',
+ version: 'v0',
+ input: {
+ request: {
+ body: [
+ {
+ message: {
+ channel: 'web',
+ context: {
+ app: {
+ build: '1.0.0',
+ name: 'RudderLabs JavaScript SDK',
+ namespace: 'com.rudderlabs.javascript',
+ version: '1.0.0',
+ },
+ traits: {
+ email: 'test@rudderstack.com',
+ },
+ library: {
+ name: 'RudderLabs JavaScript SDK',
+ version: '1.0.0',
+ },
+ userAgent:
+ 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36',
+ locale: 'en-US',
+ ip: '0.0.0.0',
+ os: {
+ name: '',
+ version: '',
+ },
+ screen: {
+ density: 2,
+ },
+ },
+ type: 'page',
+ messageId: '5e10d13a-bf9a-44bf-b884-43a9e591ea71',
+ originalTimestamp: '2019-10-14T11:15:18.299Z',
+ anonymousId: '00000000000000000000000000',
+ userId: '12345',
+ integrations: {
+ All: true,
+ },
+ name: 'ApplicationLoaded',
+ sentAt: '2019-10-14T11:15:53.296Z',
+ },
+ destination: {
+ Config: {
+ trackingID: 'UA-165994240-1',
+ doubleClick: true,
+ enhancedLinkAttribution: true,
+ classic: true,
+ ignoredReferrers: '',
+ serverClassic: false,
+ includeSearch: true,
+ trackCategorizedPages: true,
+ trackNamedPages: true,
+ sampleRate: '100',
+ siteSpeedSampleRate: '1',
+ setAllMappedProps: true,
+ enableServerSideIdentify: true,
+ serverSideIdentifyEventCategory: 'cat1',
+ serverSideIdentifyEventAction: 'action1',
+ anonymizeIp: true,
+ domain: 'domain',
+ enhancedEcommerce: true,
+ nonInteraction: true,
+ optimize: 'abc123',
+ sendUserId: true,
+ useGoogleAmpClientId: true,
+ 'web-useNativeSDK': true,
+ dimensions: [
+ {
+ from: 'name',
+ to: 'dimension1',
+ },
+ {
+ from: 'custom2',
+ to: 'dimension2',
+ },
+ ],
+ metrics: [
+ {
+ from: 'email',
+ to: 'metric1',
+ },
+ {
+ from: 'trait2',
+ to: 'metric2',
+ },
+ ],
+ resetCustomDimensionsOnPage: [
+ {
+ resetCustomDimensionsOnPage: 'abc',
+ },
+ {
+ resetCustomDimensionsOnPage: 'xyz',
+ },
+ ],
+ contentGroupings: [
+ {
+ from: 'plan',
+ to: 'contentGroup1',
+ },
+ {
+ from: 'prop2',
+ to: 'contentGroup2',
+ },
+ ],
+ },
+ Enabled: true,
+ },
+ },
+ ],
},
- "output": {
- "response": {
- "status": 200,
- "body": [
- {
- "output": {
- "version": "1",
- "type": "REST",
- "method": "POST",
- "endpoint": "https://www.google-analytics.com/collect",
- "headers": {},
- "params": {
- "ea": "product added",
- "ec": "cat 1",
- "pa": "add",
- "pr1cd1": "my product 1",
- "pr1id": "p-298",
- "cd1": "my product 1",
- "v": "1",
- "t": "event",
- "el": "event",
- "tid": "UA-165994240-1",
- "ds": "web",
- "an": "RudderLabs JavaScript SDK",
- "av": "1.0.0",
- "aiid": "com.rudderlabs.javascript",
- "npa": 1,
- "aip": 1,
- "cid": "00000000000000000000000000",
- "pr1nm": "my product 1",
- "pr1ca": "cat 1",
- "cu": "CAD",
- "pr1ps": 4.5,
- "pr1pr": 24.75,
- "pr1qt": 1,
- "ua": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36",
- "uid": "12345",
- "ni": 1,
- "ul": "en-US",
- "qt": 124893881700,
- },
- "body": {
- "JSON": {},
- "XML": {},
- "JSON_ARRAY": {},
- "FORM": {}
- },
- "files": {},
- "userId": "00000000000000000000000000"
- },
- "statusCode": 200
- }
- ]
- }
- }
- },
- {
- "name": "ga360",
- "description": "Test 5",
- "feature": "processor",
- "module": "destination",
- "version": "v0",
- "input": {
- "request": {
- "body": [
- {
- "message": {
- "channel": "web",
- "context": {
- "app": {
- "build": "1.0.0",
- "name": "RudderLabs JavaScript SDK",
- "namespace": "com.rudderlabs.javascript",
- "version": "1.0.0"
- },
- "traits": {
- "email": "test@rudderstack.com"
- },
- "library": {
- "name": "RudderLabs JavaScript SDK",
- "version": "1.0.0"
- },
- "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36",
- "locale": "en-US",
- "os": {
- "name": "",
- "version": ""
- },
- "screen": {
- "density": 2
- }
- },
- "type": "track",
- "messageId": "ec5481b6-a926-4d2e-b293-0b3a77c4d3be",
- "originalTimestamp": "2019-10-14T11:15:18.300Z",
- "anonymousId": "00000000000000000000000000",
- "userId": "12345",
- "event": "product removed",
- "properties": {
- "currency": "CAD",
- "quantity": 1,
- "price": 24.75,
- "name": "my product 1",
- "category": "cat 1",
- "sku": "p-298",
- "testDimension": true,
- "testMetric": true,
- "position": 4.5
- },
- "integrations": {
- "All": true
- },
- "sentAt": "2019-10-14T11:15:53.296Z"
- },
- "destination": {
- "Config": {
- "trackingID": "UA-165994240-1",
- "doubleClick": true,
- "enhancedLinkAttribution": true,
- "classic": true,
- "ignoredReferrers": "",
- "serverClassic": false,
- "includeSearch": true,
- "trackCategorizedPages": true,
- "trackNamedPages": true,
- "sampleRate": "100",
- "siteSpeedSampleRate": "1",
- "setAllMappedProps": true,
- "enableServerSideIdentify": true,
- "serverSideIdentifyEventCategory": "cat1",
- "serverSideIdentifyEventAction": "action1",
- "anonymizeIp": true,
- "domain": "domain",
- "enhancedEcommerce": true,
- "nonInteraction": true,
- "optimize": "abc123",
- "sendUserId": true,
- "useGoogleAmpClientId": true,
- "web-useNativeSDK": true,
- "dimensions": [
- {
- "from": "name",
- "to": "dimension1"
- },
- {
- "from": "custom2",
- "to": "dimension2"
- }
- ],
- "metrics": [
- {
- "from": "email",
- "to": "metric1"
- },
- {
- "from": "trait2",
- "to": "metric2"
- }
- ],
- "resetCustomDimensionsOnPage": [
- {
- "resetCustomDimensionsOnPage": "abc"
- },
- {
- "resetCustomDimensionsOnPage": "xyz"
- }
- ],
- "contentGroupings": [
- {
- "from": "plan",
- "to": "contentGroup1"
- },
- {
- "from": "prop2",
- "to": "contentGroup2"
- }
- ]
- },
- "Enabled": true
- }
- }
- ]
- }
+ },
+ output: {
+ response: {
+ status: 200,
+ body: [
+ {
+ output: {
+ version: '1',
+ type: 'REST',
+ method: 'POST',
+ endpoint: 'https://www.google-analytics.com/collect',
+ headers: {},
+ params: {
+ v: '1',
+ t: 'pageview',
+ tid: 'UA-165994240-1',
+ ds: 'web',
+ an: 'RudderLabs JavaScript SDK',
+ av: '1.0.0',
+ aiid: 'com.rudderlabs.javascript',
+ npa: 1,
+ aip: 1,
+ cid: '00000000000000000000000000',
+ ua: 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36',
+ uid: '12345',
+ ul: 'en-US',
+ uip: '0.0.0.0',
+ qt: 124893881701,
+ },
+ body: {
+ JSON: {},
+ XML: {},
+ JSON_ARRAY: {},
+ FORM: {},
+ },
+ files: {},
+ userId: '00000000000000000000000000',
+ },
+ statusCode: 200,
+ },
+ ],
},
- "output": {
- "response": {
- "status": 200,
- "body": [
- {
- "output": {
- "version": "1",
- "type": "REST",
- "method": "POST",
- "endpoint": "https://www.google-analytics.com/collect",
- "headers": {},
- "params": {
- "ea": "product removed",
- "ec": "cat 1",
- "pa": "remove",
- "pr1cd1": "my product 1",
- "pr1id": "p-298",
- "cd1": "my product 1",
- "v": "1",
- "t": "event",
- "el": "event",
- "tid": "UA-165994240-1",
- "ds": "web",
- "an": "RudderLabs JavaScript SDK",
- "av": "1.0.0",
- "aiid": "com.rudderlabs.javascript",
- "npa": 1,
- "aip": 1,
- "cid": "00000000000000000000000000",
- "pr1nm": "my product 1",
- "pr1ca": "cat 1",
- "cu": "CAD",
- "pr1ps": 4.5,
- "pr1pr": 24.75,
- "pr1qt": 1,
- "ua": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36",
- "uid": "12345",
- "ul": "en-US",
- "ni": 1,
- "qt": 124893881700,
- },
- "body": {
- "JSON": {},
- "XML": {},
- "JSON_ARRAY": {},
- "FORM": {}
- },
- "files": {},
- "userId": "00000000000000000000000000"
- },
- "statusCode": 200
- }
- ]
- }
- }
+ },
},
{
- "name": "ga360",
- "description": "Test 6",
- "feature": "processor",
- "module": "destination",
- "version": "v0",
- "input": {
- "request": {
- "body": [
- {
- "message": {
- "channel": "web",
- "context": {
- "app": {
- "build": "1.0.0",
- "name": "RudderLabs JavaScript SDK",
- "namespace": "com.rudderlabs.javascript",
- "version": "1.0.0"
- },
- "traits": {
- "email": "test@rudderstack.com"
- },
- "library": {
- "name": "RudderLabs JavaScript SDK",
- "version": "1.0.0"
- },
- "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36",
- "locale": "en-US",
- "os": {
- "name": "",
- "version": ""
- },
- "screen": {
- "density": 2
- }
- },
- "type": "track",
- "messageId": "ec5481b6-a926-4d2e-b293-0b3a77c4d3be",
- "originalTimestamp": "2019-10-14T11:15:18.300Z",
- "anonymousId": "00000000000000000000000000",
- "userId": "12345",
- "event": "product viewed",
- "properties": {
- "currency": "CAD",
- "quantity": 1,
- "price": 24.75,
- "name": "my product 1",
- "category": "cat 1",
- "sku": "p-298",
- "testDimension": true,
- "testMetric": true,
- "position": 4.5
- },
- "integrations": {
- "All": true
- },
- "sentAt": "2019-10-14T11:15:53.296Z"
- },
- "destination": {
- "Config": {
- "trackingID": "UA-165994240-1",
- "doubleClick": true,
- "enhancedLinkAttribution": true,
- "classic": true,
- "ignoredReferrers": "",
- "serverClassic": false,
- "includeSearch": true,
- "trackCategorizedPages": true,
- "trackNamedPages": true,
- "sampleRate": "100",
- "siteSpeedSampleRate": "1",
- "setAllMappedProps": true,
- "enableServerSideIdentify": true,
- "serverSideIdentifyEventCategory": "cat1",
- "serverSideIdentifyEventAction": "action1",
- "anonymizeIp": true,
- "domain": "domain",
- "enhancedEcommerce": true,
- "nonInteraction": true,
- "optimize": "abc123",
- "sendUserId": true,
- "useGoogleAmpClientId": true,
- "web-useNativeSDK": true,
- "dimensions": [
- {
- "from": "name",
- "to": "dimension1"
- },
- {
- "from": "custom2",
- "to": "dimension2"
- }
- ],
- "metrics": [
- {
- "from": "email",
- "to": "metric1"
- },
- {
- "from": "trait2",
- "to": "metric2"
- }
- ],
- "resetCustomDimensionsOnPage": [
- {
- "resetCustomDimensionsOnPage": "abc"
- },
- {
- "resetCustomDimensionsOnPage": "xyz"
- }
- ],
- "contentGroupings": [
- {
- "from": "plan",
- "to": "contentGroup1"
- },
- {
- "from": "prop2",
- "to": "contentGroup2"
- }
- ]
- },
- "Enabled": true
- }
- }
- ]
- }
+ name: 'ga360',
+ description: 'Test 30',
+ feature: 'processor',
+ module: 'destination',
+ version: 'v0',
+ input: {
+ request: {
+ body: [
+ {
+ message: {
+ channel: 'web',
+ context: {
+ app: {
+ build: '1.0.0',
+ name: 'RudderLabs JavaScript SDK',
+ namespace: 'com.rudderlabs.javascript',
+ version: '1.0.0',
+ },
+ traits: {
+ email: 'test@rudderstack.com',
+ },
+ library: {
+ name: 'RudderLabs JavaScript SDK',
+ version: '1.0.0',
+ },
+ userAgent:
+ 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36',
+ locale: 'en-US',
+ ip: '0.0.0.0',
+ os: {
+ name: '',
+ version: '',
+ },
+ screen: {
+ density: 2,
+ },
+ },
+ type: 'page',
+ messageId: '5e10d13a-bf9a-44bf-b884-43a9e591ea71',
+ originalTimestamp: '2019-10-14T11:15:18.299Z',
+ anonymousId: '00000000000000000000000000',
+ userId: '12345',
+ properties: {
+ path: '/abc',
+ referrer: '',
+ search: '?xyz=1',
+ title: '',
+ url: 'https://www.example.com/abc',
+ },
+ integrations: {
+ All: true,
+ },
+ name: 'ApplicationLoaded',
+ sentAt: '2019-10-14T11:15:53.296Z',
+ },
+ destination: {
+ Config: {
+ trackingID: 'UA-165994240-1',
+ doubleClick: true,
+ enhancedLinkAttribution: true,
+ classic: true,
+ ignoredReferrers: '',
+ serverClassic: false,
+ includeSearch: true,
+ trackCategorizedPages: true,
+ trackNamedPages: true,
+ sampleRate: '100',
+ siteSpeedSampleRate: '1',
+ setAllMappedProps: true,
+ enableServerSideIdentify: true,
+ serverSideIdentifyEventCategory: 'cat1',
+ serverSideIdentifyEventAction: 'action1',
+ anonymizeIp: true,
+ domain: 'domain',
+ enhancedEcommerce: true,
+ nonInteraction: true,
+ optimize: 'abc123',
+ sendUserId: true,
+ useGoogleAmpClientId: true,
+ 'web-useNativeSDK': true,
+ dimensions: [
+ {
+ from: 'name',
+ to: 'dimension1',
+ },
+ {
+ from: 'custom2',
+ to: 'dimension2',
+ },
+ ],
+ metrics: [
+ {
+ from: 'email',
+ to: 'metric1',
+ },
+ {
+ from: 'trait2',
+ to: 'metric2',
+ },
+ ],
+ resetCustomDimensionsOnPage: [
+ {
+ resetCustomDimensionsOnPage: 'abc',
+ },
+ {
+ resetCustomDimensionsOnPage: 'xyz',
+ },
+ ],
+ contentGroupings: [
+ {
+ from: 'plan',
+ to: 'contentGroup1',
+ },
+ {
+ from: 'prop2',
+ to: 'contentGroup2',
+ },
+ ],
+ },
+ Enabled: true,
+ },
+ },
+ ],
},
- "output": {
- "response": {
- "status": 200,
- "body": [
- {
- "output": {
- "version": "1",
- "type": "REST",
- "method": "POST",
- "endpoint": "https://www.google-analytics.com/collect",
- "headers": {},
- "params": {
- "ea": "product viewed",
- "ec": "cat 1",
- "pa": "detail",
- "pr1cd1": "my product 1",
- "pr1id": "p-298",
- "cd1": "my product 1",
- "v": "1",
- "t": "event",
- "el": "event",
- "tid": "UA-165994240-1",
- "ds": "web",
- "an": "RudderLabs JavaScript SDK",
- "av": "1.0.0",
- "aiid": "com.rudderlabs.javascript",
- "npa": 1,
- "aip": 1,
- "cid": "00000000000000000000000000",
- "pr1nm": "my product 1",
- "pr1ca": "cat 1",
- "cu": "CAD",
- "pr1ps": 4.5,
- "pr1pr": 24.75,
- "pr1qt": 1,
- "ua": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36",
- "uid": "12345",
- "ul": "en-US",
- "ni": 1,
- "qt": 124893881700,
- },
- "body": {
- "JSON": {},
- "XML": {},
- "JSON_ARRAY": {},
- "FORM": {}
- },
- "files": {},
- "userId": "00000000000000000000000000"
- },
- "statusCode": 200
- }
- ]
- }
- }
- },
- {
- "name": "ga360",
- "description": "Test 7",
- "feature": "processor",
- "module": "destination",
- "version": "v0",
- "input": {
- "request": {
- "body": [
- {
- "message": {
- "channel": "web",
- "context": {
- "app": {
- "build": "1.0.0",
- "name": "RudderLabs JavaScript SDK",
- "namespace": "com.rudderlabs.javascript",
- "version": "1.0.0"
- },
- "traits": {
- "email": "test@rudderstack.com"
- },
- "library": {
- "name": "RudderLabs JavaScript SDK",
- "version": "1.0.0"
- },
- "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36",
- "locale": "en-US",
- "os": {
- "name": "",
- "version": ""
- },
- "screen": {
- "density": 2
- }
- },
- "type": "track",
- "messageId": "ec5481b6-a926-4d2e-b293-0b3a77c4d3be",
- "originalTimestamp": "2019-10-14T11:15:18.300Z",
- "anonymousId": "00000000000000000000000000",
- "userId": "12345",
- "event": "product removed",
- "properties": {
- "currency": "CAD",
- "quantity": 1,
- "price": 24.75,
- "name": "my product 1",
- "category": "cat 1",
- "sku": "p-298",
- "testDimension": true,
- "testMetric": true,
- "position": 4.5
- },
- "integrations": {
- "All": true
- },
- "sentAt": "2019-10-14T11:15:53.296Z"
- },
- "destination": {
- "Config": {
- "trackingID": "UA-165994240-1",
- "doubleClick": true,
- "enhancedLinkAttribution": true,
- "classic": true,
- "ignoredReferrers": "",
- "serverClassic": false,
- "includeSearch": true,
- "trackCategorizedPages": true,
- "trackNamedPages": true,
- "sampleRate": "100",
- "siteSpeedSampleRate": "1",
- "setAllMappedProps": true,
- "enableServerSideIdentify": true,
- "serverSideIdentifyEventCategory": "cat1",
- "serverSideIdentifyEventAction": "action1",
- "anonymizeIp": true,
- "domain": "domain",
- "enhancedEcommerce": true,
- "nonInteraction": true,
- "optimize": "abc123",
- "sendUserId": true,
- "useGoogleAmpClientId": true,
- "web-useNativeSDK": true,
- "dimensions": [
- {
- "from": "name",
- "to": "dimension1"
- },
- {
- "from": "custom2",
- "to": "dimension2"
- }
- ],
- "metrics": [
- {
- "from": "email",
- "to": "metric1"
- },
- {
- "from": "trait2",
- "to": "metric2"
- }
- ],
- "resetCustomDimensionsOnPage": [
- {
- "resetCustomDimensionsOnPage": "abc"
- },
- {
- "resetCustomDimensionsOnPage": "xyz"
- }
- ],
- "contentGroupings": [
- {
- "from": "plan",
- "to": "contentGroup1"
- },
- {
- "from": "prop2",
- "to": "contentGroup2"
- }
- ]
- },
- "Enabled": true
- }
- }
- ]
- }
+ },
+ output: {
+ response: {
+ status: 200,
+ body: [
+ {
+ output: {
+ version: '1',
+ type: 'REST',
+ method: 'POST',
+ endpoint: 'https://www.google-analytics.com/collect',
+ headers: {},
+ params: {
+ v: '1',
+ t: 'pageview',
+ tid: 'UA-165994240-1',
+ ds: 'web',
+ an: 'RudderLabs JavaScript SDK',
+ av: '1.0.0',
+ aiid: 'com.rudderlabs.javascript',
+ npa: 1,
+ aip: 1,
+ cid: '00000000000000000000000000',
+ ua: 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36',
+ uid: '12345',
+ ul: 'en-US',
+ uip: '0.0.0.0',
+ dh: 'www.example.com',
+ dl: 'https://www.example.com/abc',
+ dp: '%2Fabc%3Fxyz%3D1',
+ qt: 124893881701,
+ },
+ body: {
+ JSON: {},
+ XML: {},
+ JSON_ARRAY: {},
+ FORM: {},
+ },
+ files: {},
+ userId: '00000000000000000000000000',
+ },
+ statusCode: 200,
+ },
+ ],
},
- "output": {
- "response": {
- "status": 200,
- "body": [
- {
- "output": {
- "version": "1",
- "type": "REST",
- "method": "POST",
- "endpoint": "https://www.google-analytics.com/collect",
- "headers": {},
- "params": {
- "ea": "product removed",
- "ec": "cat 1",
- "pa": "remove",
- "pr1cd1": "my product 1",
- "pr1id": "p-298",
- "cd1": "my product 1",
- "v": "1",
- "t": "event",
- "el": "event",
- "tid": "UA-165994240-1",
- "ds": "web",
- "an": "RudderLabs JavaScript SDK",
- "av": "1.0.0",
- "aiid": "com.rudderlabs.javascript",
- "npa": 1,
- "aip": 1,
- "cid": "00000000000000000000000000",
- "pr1nm": "my product 1",
- "pr1ca": "cat 1",
- "cu": "CAD",
- "pr1ps": 4.5,
- "pr1pr": 24.75,
- "pr1qt": 1,
- "ua": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36",
- "uid": "12345",
- "ul": "en-US",
- "ni": 1,
- "qt": 124893881700,
- },
- "body": {
- "JSON": {},
- "XML": {},
- "JSON_ARRAY": {},
- "FORM": {}
- },
- "files": {},
- "userId": "00000000000000000000000000"
- },
- "statusCode": 200
- }
- ]
- }
- }
+ },
},
{
- "name": "ga360",
- "description": "Test 8",
- "feature": "processor",
- "module": "destination",
- "version": "v0",
- "input": {
- "request": {
- "body": [
- {
- "message": {
- "channel": "web",
- "context": {
- "app": {
- "build": "1.0.0",
- "name": "RudderLabs JavaScript SDK",
- "namespace": "com.rudderlabs.javascript",
- "version": "1.0.0"
- },
- "traits": {
- "email": "test@rudderstack.com"
- },
- "library": {
- "name": "RudderLabs JavaScript SDK",
- "version": "1.0.0"
- },
- "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36",
- "locale": "en-US",
- "os": {
- "name": "",
- "version": ""
- },
- "screen": {
- "density": 2
- }
- },
- "type": "track",
- "messageId": "ec5481b6-a926-4d2e-b293-0b3a77c4d3be",
- "originalTimestamp": "2019-10-14T11:15:18.300Z",
- "anonymousId": "00000000000000000000000000",
- "userId": "12345",
- "event": "product viewed",
- "properties": {
- "currency": "CAD",
- "quantity": 1,
- "price": 24.75,
- "name": "my product 1",
- "category": "cat 1",
- "sku": "p-298",
- "testDimension": true,
- "testMetric": true,
- "position": 4.5
- },
- "integrations": {
- "All": true
- },
- "sentAt": "2019-10-14T11:15:53.296Z"
- },
- "destination": {
- "Config": {
- "trackingID": "UA-165994240-1",
- "doubleClick": true,
- "enhancedLinkAttribution": true,
- "classic": true,
- "ignoredReferrers": "",
- "serverClassic": false,
- "includeSearch": true,
- "trackCategorizedPages": true,
- "trackNamedPages": true,
- "sampleRate": "100",
- "siteSpeedSampleRate": "1",
- "setAllMappedProps": true,
- "enableServerSideIdentify": true,
- "serverSideIdentifyEventCategory": "cat1",
- "serverSideIdentifyEventAction": "action1",
- "anonymizeIp": true,
- "domain": "domain",
- "enhancedEcommerce": true,
- "nonInteraction": true,
- "optimize": "abc123",
- "sendUserId": true,
- "useGoogleAmpClientId": true,
- "web-useNativeSDK": true,
- "dimensions": [
- {
- "from": "name",
- "to": "dimension1"
- },
- {
- "from": "custom2",
- "to": "dimension2"
- }
- ],
- "metrics": [
- {
- "from": "email",
- "to": "metric1"
- },
- {
- "from": "trait2",
- "to": "metric2"
- }
- ],
- "resetCustomDimensionsOnPage": [
- {
- "resetCustomDimensionsOnPage": "abc"
- },
- {
- "resetCustomDimensionsOnPage": "xyz"
- }
- ],
- "contentGroupings": [
- {
- "from": "plan",
- "to": "contentGroup1"
- },
- {
- "from": "prop2",
- "to": "contentGroup2"
- }
- ]
- },
- "Enabled": true
- }
- }
- ]
- }
+ name: 'ga360',
+ description: 'Test 31',
+ feature: 'processor',
+ module: 'destination',
+ version: 'v0',
+ input: {
+ request: {
+ body: [
+ {
+ message: {
+ channel: 'web',
+ context: {
+ app: {
+ build: '1.0.0',
+ name: 'RudderLabs JavaScript SDK',
+ namespace: 'com.rudderlabs.javascript',
+ version: '1.0.0',
+ },
+ traits: {
+ email: 'test@rudderstack.com',
+ },
+ library: {
+ name: 'RudderLabs JavaScript SDK',
+ version: '1.0.0',
+ },
+ userAgent:
+ 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36',
+ locale: 'en-US',
+ ip: '0.0.0.0',
+ os: {
+ name: '',
+ version: '',
+ },
+ screen: {
+ density: 2,
+ },
+ },
+ type: 'track',
+ messageId: '5e10d13a-bf9a-44bf-b884-43a9e591ea71',
+ originalTimestamp: '2019-10-14T11:15:18.299Z',
+ anonymousId: '00000000000000000000000000',
+ userId: '12345',
+ integrations: {
+ All: true,
+ },
+ event: 'sample event',
+ sentAt: '2019-10-14T11:15:53.296Z',
+ },
+ destination: {
+ Config: {
+ trackingID: 'UA-165994240-1',
+ doubleClick: true,
+ enhancedLinkAttribution: true,
+ classic: true,
+ ignoredReferrers: '',
+ serverClassic: false,
+ includeSearch: true,
+ trackCategorizedPages: true,
+ trackNamedPages: true,
+ sampleRate: '100',
+ siteSpeedSampleRate: '1',
+ setAllMappedProps: true,
+ enableServerSideIdentify: true,
+ serverSideIdentifyEventCategory: 'cat1',
+ serverSideIdentifyEventAction: 'action1',
+ anonymizeIp: true,
+ domain: 'domain',
+ nonInteraction: true,
+ optimize: 'abc123',
+ sendUserId: true,
+ useGoogleAmpClientId: true,
+ 'web-useNativeSDK': true,
+ dimensions: [
+ {
+ from: 'name',
+ to: 'dimension1',
+ },
+ {
+ from: 'custom2',
+ to: 'dimension2',
+ },
+ ],
+ metrics: [
+ {
+ from: 'email',
+ to: 'metric1',
+ },
+ {
+ from: 'trait2',
+ to: 'metric2',
+ },
+ ],
+ resetCustomDimensionsOnPage: [
+ {
+ resetCustomDimensionsOnPage: 'abc',
+ },
+ {
+ resetCustomDimensionsOnPage: 'xyz',
+ },
+ ],
+ contentGroupings: [
+ {
+ from: 'plan',
+ to: 'contentGroup1',
+ },
+ {
+ from: 'prop2',
+ to: 'contentGroup2',
+ },
+ ],
+ },
+ Enabled: true,
+ },
+ },
+ ],
},
- "output": {
- "response": {
- "status": 200,
- "body": [
- {
- "output": {
- "version": "1",
- "type": "REST",
- "method": "POST",
- "endpoint": "https://www.google-analytics.com/collect",
- "headers": {},
- "params": {
- "ea": "product viewed",
- "ec": "cat 1",
- "pa": "detail",
- "pr1cd1": "my product 1",
- "pr1id": "p-298",
- "cd1": "my product 1",
- "v": "1",
- "t": "event",
- "el": "event",
- "tid": "UA-165994240-1",
- "ds": "web",
- "an": "RudderLabs JavaScript SDK",
- "av": "1.0.0",
- "aiid": "com.rudderlabs.javascript",
- "npa": 1,
- "aip": 1,
- "cid": "00000000000000000000000000",
- "pr1nm": "my product 1",
- "pr1ca": "cat 1",
- "cu": "CAD",
- "pr1ps": 4.5,
- "pr1pr": 24.75,
- "pr1qt": 1,
- "ua": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36",
- "uid": "12345",
- "ul": "en-US",
- "ni": 1,
- "qt": 124893881700,
- },
- "body": {
- "JSON": {},
- "XML": {},
- "JSON_ARRAY": {},
- "FORM": {}
- },
- "files": {},
- "userId": "00000000000000000000000000"
- },
- "statusCode": 200
- }
- ]
- }
- }
- },
- {
- "name": "ga360",
- "description": "Test 9",
- "feature": "processor",
- "module": "destination",
- "version": "v0",
- "input": {
- "request": {
- "body": [
- {
- "message": {
- "channel": "web",
- "context": {
- "app": {
- "build": "1.0.0",
- "name": "RudderLabs JavaScript SDK",
- "namespace": "com.rudderlabs.javascript",
- "version": "1.0.0"
- },
- "traits": {
- "email": "test@rudderstack.com"
- },
- "library": {
- "name": "RudderLabs JavaScript SDK",
- "version": "1.0.0"
- },
- "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36",
- "locale": "en-US",
- "os": {
- "name": "",
- "version": ""
- },
- "screen": {
- "density": 2
- }
- },
- "type": "track",
- "messageId": "ec5481b6-a926-4d2e-b293-0b3a77c4d3be",
- "originalTimestamp": "2019-10-14T11:15:18.300Z",
- "anonymousId": "00000000000000000000000000",
- "userId": "12345",
- "event": "product list filtered",
- "properties": {
- "category": "cat 1",
- "list_id": "1234",
- "filters": [
- {
- "type": "department",
- "value": "beauty"
- },
- {
- "type": "price",
- "value": "under"
- }
- ],
- "sorts": [
- {
- "type": "price",
- "value": "desc"
- }
- ],
- "products": [
- {
- "product_id": "507f1f77bcf86cd799439011",
- "productDimension": "My Product Dimension",
- "productMetric": "My Product Metric"
- }
- ],
- "testDimension": true,
- "testMetric": true
- },
- "integrations": {
- "All": true
- },
- "sentAt": "2019-10-14T11:15:53.296Z"
- },
- "destination": {
- "Config": {
- "trackingID": "UA-165994240-1",
- "doubleClick": true,
- "enhancedLinkAttribution": true,
- "classic": true,
- "ignoredReferrers": "",
- "serverClassic": false,
- "includeSearch": true,
- "trackCategorizedPages": true,
- "trackNamedPages": true,
- "sampleRate": "100",
- "siteSpeedSampleRate": "1",
- "setAllMappedProps": true,
- "enableServerSideIdentify": true,
- "serverSideIdentifyEventCategory": "cat1",
- "serverSideIdentifyEventAction": "action1",
- "anonymizeIp": true,
- "domain": "domain",
- "enhancedEcommerce": true,
- "nonInteraction": true,
- "optimize": "abc123",
- "sendUserId": true,
- "useGoogleAmpClientId": true,
- "web-useNativeSDK": true,
- "dimensions": [
- {
- "from": "name",
- "to": "dimension1"
- },
- {
- "from": "custom2",
- "to": "dimension2"
- }
- ],
- "metrics": [
- {
- "from": "email",
- "to": "metric1"
- },
- {
- "from": "trait2",
- "to": "metric2"
- }
- ],
- "resetCustomDimensionsOnPage": [
- {
- "resetCustomDimensionsOnPage": "abc"
- },
- {
- "resetCustomDimensionsOnPage": "xyz"
- }
- ],
- "contentGroupings": [
- {
- "from": "plan",
- "to": "contentGroup1"
- },
- {
- "from": "prop2",
- "to": "contentGroup2"
- }
- ]
- },
- "Enabled": true
- }
- }
- ]
- }
+ },
+ output: {
+ response: {
+ status: 200,
+ body: [
+ {
+ output: {
+ version: '1',
+ type: 'REST',
+ method: 'POST',
+ endpoint: 'https://www.google-analytics.com/collect',
+ headers: {},
+ params: {
+ ec: 'All',
+ ni: 1,
+ v: '1',
+ t: 'event',
+ el: 'event',
+ tid: 'UA-165994240-1',
+ ds: 'web',
+ an: 'RudderLabs JavaScript SDK',
+ av: '1.0.0',
+ aiid: 'com.rudderlabs.javascript',
+ npa: 1,
+ aip: 1,
+ cid: '00000000000000000000000000',
+ ea: 'sample event',
+ ua: 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36',
+ uid: '12345',
+ ul: 'en-US',
+ uip: '0.0.0.0',
+ qt: 124893881701,
+ },
+ body: {
+ JSON: {},
+ XML: {},
+ JSON_ARRAY: {},
+ FORM: {},
+ },
+ files: {},
+ userId: '00000000000000000000000000',
+ },
+ statusCode: 200,
+ },
+ ],
},
- "output": {
- "response": {
- "status": 200,
- "body": [
- {
- "output": {
- "version": "1",
- "type": "REST",
- "method": "POST",
- "endpoint": "https://www.google-analytics.com/collect",
- "headers": {},
- "params": {
- "ea": "product list filtered",
- "ec": "cat 1",
- "pa": "detail",
- "il1pi1id": "507f1f77bcf86cd799439011",
- "v": "1",
- "t": "event",
- "el": "event",
- "tid": "UA-165994240-1",
- "ds": "web",
- "an": "RudderLabs JavaScript SDK",
- "av": "1.0.0",
- "aiid": "com.rudderlabs.javascript",
- "npa": 1,
- "aip": 1,
- "il1nm": "1234",
- "ua": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36",
- "cid": "00000000000000000000000000",
- "uid": "12345",
- "il1pi1qt": 1,
- "il1pi1va": "department:beauty,price:under::price:desc",
- "ul": "en-US",
- "ni": 1,
- "qt": 124893881700,
- },
- "body": {
- "JSON": {},
- "XML": {},
- "JSON_ARRAY": {},
- "FORM": {}
- },
- "files": {},
- "userId": "00000000000000000000000000"
- },
- "statusCode": 200
- }
- ]
- }
- }
+ },
},
{
- "name": "ga360",
- "description": "Test 10",
- "feature": "processor",
- "module": "destination",
- "version": "v0",
- "input": {
- "request": {
- "body": [
- {
- "message": {
- "channel": "web",
- "context": {
- "app": {
- "build": "1.0.0",
- "name": "RudderLabs JavaScript SDK",
- "namespace": "com.rudderlabs.javascript",
- "version": "1.0.0"
- },
- "traits": {
- "email": "test@rudderstack.com"
- },
- "library": {
- "name": "RudderLabs JavaScript SDK",
- "version": "1.0.0"
- },
- "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36",
- "locale": "en-US",
- "os": {
- "name": "",
- "version": ""
- },
- "screen": {
- "density": 2
- }
- },
- "type": "track",
- "messageId": "ec5481b6-a926-4d2e-b293-0b3a77c4d3be",
- "originalTimestamp": "2019-10-14T11:15:18.300Z",
- "anonymousId": "00000000000000000000000000",
- "userId": "12345",
- "event": "product list viewed",
- "properties": {
- "category": "cat 1",
- "list_id": "1234",
- "filters": [
- {
- "type": "department",
- "value": "beauty"
- },
- {
- "type": "price",
- "value": "under"
- }
- ],
- "sorts": [
- {
- "type": "price",
- "value": "desc"
- }
- ],
- "products": [
- {
- "product_id": "507f1f77bcf86cd799439011",
- "productDimension": "My Product Dimension",
- "productMetric": "My Product Metric",
- "position": 10
- },
- {
- "product_id": "507f1f77bcf86cdef799439011",
- "productDimension": "My Product Dimension1",
- "productMetric": "My Product Metric1",
- "position": -10
- }
- ],
- "testDimension": true,
- "testMetric": true
- },
- "integrations": {
- "All": true
- },
- "sentAt": "2019-10-14T11:15:53.296Z"
- },
- "destination": {
- "Config": {
- "trackingID": "UA-165994240-1",
- "doubleClick": true,
- "enhancedLinkAttribution": true,
- "classic": true,
- "ignoredReferrers": "",
- "serverClassic": false,
- "includeSearch": true,
- "trackCategorizedPages": true,
- "trackNamedPages": true,
- "sampleRate": "100",
- "siteSpeedSampleRate": "1",
- "setAllMappedProps": true,
- "enableServerSideIdentify": true,
- "serverSideIdentifyEventCategory": "cat1",
- "serverSideIdentifyEventAction": "action1",
- "anonymizeIp": true,
- "domain": "domain",
- "enhancedEcommerce": true,
- "nonInteraction": true,
- "optimize": "abc123",
- "sendUserId": true,
- "useGoogleAmpClientId": true,
- "web-useNativeSDK": true,
- "dimensions": [
- {
- "from": "name",
- "to": "dimension1"
- },
- {
- "from": "custom2",
- "to": "dimension2"
- }
- ],
- "metrics": [
- {
- "from": "email",
- "to": "metric1"
- },
- {
- "from": "trait2",
- "to": "metric2"
- }
- ],
- "resetCustomDimensionsOnPage": [
- {
- "resetCustomDimensionsOnPage": "abc"
- },
- {
- "resetCustomDimensionsOnPage": "xyz"
- }
- ],
- "contentGroupings": [
- {
- "from": "plan",
- "to": "contentGroup1"
- },
- {
- "from": "prop2",
- "to": "contentGroup2"
- }
- ]
- },
- "Enabled": true
- }
- }
- ]
- }
+ name: 'ga360',
+ description: 'Test 32',
+ feature: 'processor',
+ module: 'destination',
+ version: 'v0',
+ input: {
+ request: {
+ body: [
+ {
+ message: {
+ channel: 'web',
+ context: {
+ app: {
+ build: '1.0.0',
+ name: 'RudderLabs JavaScript SDK',
+ namespace: 'com.rudderlabs.javascript',
+ version: '1.0.0',
+ },
+ traits: {
+ email: 'test@rudderstack.com',
+ },
+ library: {
+ name: 'RudderLabs JavaScript SDK',
+ version: '1.0.0',
+ },
+ userAgent:
+ 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36',
+ locale: 'en-US',
+ os: {
+ name: '',
+ version: '',
+ },
+ screen: {
+ density: 2,
+ },
+ },
+ type: 'track',
+ messageId: 'ec5481b6-a926-4d2e-b293-0b3a77c4d3be',
+ originalTimestamp: '2019-10-14T11:15:18.300Z',
+ anonymousId: '00000000000000000000000000',
+ userId: '12345',
+ event: 'Order Refunded',
+ properties: {
+ order_id: 'rudderstackorder1',
+ total: 99.99,
+ shipping: 13.99,
+ tax: 20.99,
+ currency: 'INR',
+ products: [
+ {
+ quantity: 1,
+ price: 24.75,
+ name: 'my product',
+ sku: 'p-298',
+ },
+ {
+ quantity: 3,
+ price: 24.75,
+ name: 'other product',
+ sku: 'p-299',
+ },
+ ],
+ },
+ integrations: {
+ All: true,
+ },
+ sentAt: '2019-10-14T11:15:53.296Z',
+ },
+ destination: {
+ Config: {
+ trackingID: 'UA-165994240-1',
+ doubleClick: true,
+ enhancedLinkAttribution: true,
+ classic: true,
+ ignoredReferrers: '',
+ serverClassic: false,
+ includeSearch: true,
+ trackCategorizedPages: true,
+ trackNamedPages: true,
+ sampleRate: '100',
+ siteSpeedSampleRate: '1',
+ setAllMappedProps: true,
+ enableServerSideIdentify: true,
+ serverSideIdentifyEventCategory: 'cat1',
+ serverSideIdentifyEventAction: 'action1',
+ anonymizeIp: true,
+ domain: 'domain',
+ enhancedEcommerce: true,
+ nonInteraction: true,
+ optimize: 'abc123',
+ sendUserId: true,
+ useGoogleAmpClientId: true,
+ 'web-useNativeSDK': true,
+ dimensions: [
+ {
+ from: 'name',
+ to: 'dimension1',
+ },
+ {
+ from: 'custom2',
+ to: 'dimension2',
+ },
+ ],
+ metrics: [
+ {
+ from: 'email',
+ to: 'metric1',
+ },
+ {
+ from: 'trait2',
+ to: 'metric2',
+ },
+ ],
+ resetCustomDimensionsOnPage: [
+ {
+ resetCustomDimensionsOnPage: 'abc',
+ },
+ {
+ resetCustomDimensionsOnPage: 'xyz',
+ },
+ ],
+ contentGroupings: [
+ {
+ from: 'plan',
+ to: 'contentGroup1',
+ },
+ {
+ from: 'prop2',
+ to: 'contentGroup2',
+ },
+ ],
+ },
+ Enabled: true,
+ },
+ },
+ ],
},
- "output": {
- "response": {
- "status": 200,
- "body": [
- {
- "output": {
- "version": "1",
- "type": "REST",
- "method": "POST",
- "endpoint": "https://www.google-analytics.com/collect",
- "headers": {},
- "params": {
- "ea": "product list viewed",
- "ec": "cat 1",
- "pa": "detail",
- "il1pi1id": "507f1f77bcf86cd799439011",
- "il1pi1ps": 10,
- "il1pi2id": "507f1f77bcf86cdef799439011",
- "il1pi2ps": -10,
- "v": "1",
- "t": "event",
- "el": "event",
- "tid": "UA-165994240-1",
- "ds": "web",
- "an": "RudderLabs JavaScript SDK",
- "av": "1.0.0",
- "aiid": "com.rudderlabs.javascript",
- "npa": 1,
- "aip": 1,
- "il1nm": "1234",
- "ua": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36",
- "cid": "00000000000000000000000000",
- "uid": "12345",
- "il1pi1qt": 1,
- "il1pi1va": "department:beauty,price:under::price:desc",
- "il1pi2qt": 1,
- "il1pi2va": "department:beauty,price:under::price:desc",
- "ul": "en-US",
- "ni": 1,
- "qt": 124893881700,
- },
- "body": {
- "JSON": {},
- "XML": {},
- "JSON_ARRAY": {},
- "FORM": {}
- },
- "files": {},
- "userId": "00000000000000000000000000"
- },
- "statusCode": 200
- }
- ]
- }
- }
- },
- {
- "name": "ga360",
- "description": "Test 11",
- "feature": "processor",
- "module": "destination",
- "version": "v0",
- "input": {
- "request": {
- "body": [
- {
- "message": {
- "channel": "web",
- "context": {
- "app": {
- "build": "1.0.0",
- "name": "RudderLabs JavaScript SDK",
- "namespace": "com.rudderlabs.javascript",
- "version": "1.0.0"
- },
- "traits": {
- "email": "test@rudderstack.com"
- },
- "library": {
- "name": "RudderLabs JavaScript SDK",
- "version": "1.0.0"
- },
- "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36",
- "locale": "en-US",
- "os": {
- "name": "",
- "version": ""
- },
- "screen": {
- "density": 2
- }
- },
- "type": "track",
- "messageId": "ec5481b6-a926-4d2e-b293-0b3a77c4d3be",
- "originalTimestamp": "2019-10-14T11:15:18.300Z",
- "anonymousId": "00000000000000000000000000",
- "userId": "12345",
- "event": "product clicked",
- "properties": {
- "currency": "CAD",
- "quantity": 1,
- "price": 24.75,
- "name": "my product",
- "category": "cat 1",
- "sku": "p-298",
- "list": "search results",
- "testDimension": true,
- "testMetric": true
- },
- "integrations": {
- "All": true
- },
- "sentAt": "2019-10-14T11:15:53.296Z"
- },
- "destination": {
- "Config": {
- "trackingID": "UA-165994240-1",
- "doubleClick": true,
- "enhancedLinkAttribution": true,
- "classic": true,
- "ignoredReferrers": "",
- "serverClassic": false,
- "includeSearch": true,
- "trackCategorizedPages": true,
- "trackNamedPages": true,
- "sampleRate": "100",
- "siteSpeedSampleRate": "1",
- "setAllMappedProps": true,
- "enableServerSideIdentify": true,
- "serverSideIdentifyEventCategory": "cat1",
- "serverSideIdentifyEventAction": "action1",
- "anonymizeIp": true,
- "domain": "domain",
- "enhancedEcommerce": true,
- "nonInteraction": true,
- "optimize": "abc123",
- "sendUserId": true,
- "useGoogleAmpClientId": true,
- "web-useNativeSDK": true,
- "dimensions": [
- {
- "from": "name",
- "to": "dimension1"
- },
- {
- "from": "custom2",
- "to": "dimension2"
- }
- ],
- "metrics": [
- {
- "from": "email",
- "to": "metric1"
- },
- {
- "from": "trait2",
- "to": "metric2"
- }
- ],
- "resetCustomDimensionsOnPage": [
- {
- "resetCustomDimensionsOnPage": "abc"
- },
- {
- "resetCustomDimensionsOnPage": "xyz"
- }
- ],
- "contentGroupings": [
- {
- "from": "plan",
- "to": "contentGroup1"
- },
- {
- "from": "prop2",
- "to": "contentGroup2"
- }
- ]
- },
- "Enabled": true
- }
- }
- ]
- }
+ },
+ output: {
+ response: {
+ status: 200,
+ body: [
+ {
+ output: {
+ version: '1',
+ type: 'REST',
+ method: 'POST',
+ endpoint: 'https://www.google-analytics.com/collect',
+ headers: {},
+ params: {
+ pa: 'refund',
+ ev: 100,
+ pr1id: 'p-298',
+ pr1cd1: 'my product',
+ pr1nm: 'my product',
+ pr1pr: 24.75,
+ pr1qt: 1,
+ pr2id: 'p-299',
+ pr2cd1: 'other product',
+ pr2nm: 'other product',
+ pr2pr: 24.75,
+ pr2qt: 3,
+ ea: 'Order Refunded',
+ ec: 'EnhancedEcommerce',
+ v: '1',
+ t: 'event',
+ el: 'event',
+ tid: 'UA-165994240-1',
+ ds: 'web',
+ an: 'RudderLabs JavaScript SDK',
+ av: '1.0.0',
+ aiid: 'com.rudderlabs.javascript',
+ npa: 1,
+ aip: 1,
+ ua: 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36',
+ cid: '00000000000000000000000000',
+ ti: 'rudderstackorder1',
+ uid: '12345',
+ ul: 'en-US',
+ ni: 1,
+ qt: 124893881700,
+ },
+ body: {
+ JSON: {},
+ XML: {},
+ JSON_ARRAY: {},
+ FORM: {},
+ },
+ files: {},
+ userId: '00000000000000000000000000',
+ },
+ statusCode: 200,
+ },
+ ],
},
- "output": {
- "response": {
- "status": 200,
- "body": [
- {
- "output": {
- "version": "1",
- "type": "REST",
- "method": "POST",
- "endpoint": "https://www.google-analytics.com/collect",
- "headers": {},
- "params": {
- "ea": "product clicked",
- "ec": "cat 1",
- "pa": "click",
- "pr1cd1": "my product",
- "pr1id": "p-298",
- "cd1": "my product",
- "v": "1",
- "t": "event",
- "el": "event",
- "tid": "UA-165994240-1",
- "ds": "web",
- "an": "RudderLabs JavaScript SDK",
- "av": "1.0.0",
- "aiid": "com.rudderlabs.javascript",
- "npa": 1,
- "aip": 1,
- "cid": "00000000000000000000000000",
- "pr1nm": "my product",
- "pr1ca": "cat 1",
- "cu": "CAD",
- "pr1pr": 24.75,
- "pr1qt": 1,
- "ua": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36",
- "uid": "12345",
- "pal": "search results",
- "ul": "en-US",
- "ni": 1,
- "qt": 124893881700,
- },
- "body": {
- "JSON": {},
- "XML": {},
- "JSON_ARRAY": {},
- "FORM": {}
- },
- "files": {},
- "userId": "00000000000000000000000000"
- },
- "statusCode": 200
- }
- ]
- }
- }
+ },
},
{
- "name": "ga360",
- "description": "Test 12",
- "feature": "processor",
- "module": "destination",
- "version": "v0",
- "input": {
- "request": {
- "body": [
- {
- "message": {
- "channel": "web",
- "context": {
- "app": {
- "build": "1.0.0",
- "name": "RudderLabs JavaScript SDK",
- "namespace": "com.rudderlabs.javascript",
- "version": "1.0.0"
- },
- "traits": {
- "email": "test@rudderstack.com"
- },
- "library": {
- "name": "RudderLabs JavaScript SDK",
- "version": "1.0.0"
- },
- "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36",
- "locale": "en-US",
- "os": {
- "name": "",
- "version": ""
- },
- "screen": {
- "density": 2
- }
- },
- "type": "track",
- "messageId": "ec5481b6-a926-4d2e-b293-0b3a77c4d3be",
- "originalTimestamp": "2019-10-14T11:15:18.300Z",
- "anonymousId": "00000000000000000000000000",
- "userId": "12345",
- "event": "promotion viewed",
- "properties": {
- "currency": "CAD",
- "promotion_id": "PROMO_1234",
- "name": "my product",
- "creative": "summer_banner2",
- "position": "banner_slot1",
- "testDimension": true,
- "testMetric": true
- },
- "integrations": {
- "All": true
- },
- "sentAt": "2019-10-14T11:15:53.296Z"
- },
- "destination": {
- "Config": {
- "trackingID": "UA-165994240-1",
- "doubleClick": true,
- "enhancedLinkAttribution": true,
- "classic": true,
- "ignoredReferrers": "",
- "serverClassic": false,
- "includeSearch": true,
- "trackCategorizedPages": true,
- "trackNamedPages": true,
- "sampleRate": "100",
- "siteSpeedSampleRate": "1",
- "setAllMappedProps": true,
- "enableServerSideIdentify": true,
- "serverSideIdentifyEventCategory": "cat1",
- "serverSideIdentifyEventAction": "action1",
- "anonymizeIp": true,
- "domain": "domain",
- "enhancedEcommerce": true,
- "nonInteraction": true,
- "optimize": "abc123",
- "sendUserId": true,
- "useGoogleAmpClientId": true,
- "web-useNativeSDK": true,
- "dimensions": [
- {
- "from": "name",
- "to": "dimension1"
- },
- {
- "from": "custom2",
- "to": "dimension2"
- }
- ],
- "metrics": [
- {
- "from": "email",
- "to": "metric1"
- },
- {
- "from": "trait2",
- "to": "metric2"
- }
- ],
- "resetCustomDimensionsOnPage": [
- {
- "resetCustomDimensionsOnPage": "abc"
- },
- {
- "resetCustomDimensionsOnPage": "xyz"
- }
- ],
- "contentGroupings": [
- {
- "from": "plan",
- "to": "contentGroup1"
- },
- {
- "from": "prop2",
- "to": "contentGroup2"
- }
- ]
- },
- "Enabled": true
- }
- }
- ]
- }
+ name: 'ga360',
+ description: 'Test 33',
+ feature: 'processor',
+ module: 'destination',
+ version: 'v0',
+ input: {
+ request: {
+ body: [
+ {
+ message: {
+ channel: 'web',
+ context: {
+ app: {
+ build: '1.0.0',
+ name: 'RudderLabs JavaScript SDK',
+ namespace: 'com.rudderlabs.javascript',
+ version: '1.0.0',
+ },
+ traits: {
+ email: 'test@rudderstack.com',
+ },
+ library: {
+ name: 'RudderLabs JavaScript SDK',
+ version: '1.0.0',
+ },
+ userAgent:
+ 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36',
+ locale: 'en-US',
+ os: {
+ name: '',
+ version: '',
+ },
+ screen: {
+ density: 2,
+ },
+ },
+ type: 'track',
+ messageId: 'ec5481b6-a926-4d2e-b293-0b3a77c4d3be',
+ originalTimestamp: '2019-10-14T11:15:18.300Z',
+ anonymousId: '00000000000000000000000000',
+ userId: '12345',
+ event: 'Order Refunded',
+ properties: {
+ order_id: 'rudderstackorder1',
+ total: 99.99,
+ shipping: 13.99,
+ tax: 20.99,
+ currency: 'INR',
+ },
+ integrations: {
+ All: true,
+ },
+ sentAt: '2019-10-14T11:15:53.296Z',
+ },
+ destination: {
+ Config: {
+ trackingID: 'UA-165994240-1',
+ doubleClick: true,
+ enhancedLinkAttribution: true,
+ classic: true,
+ ignoredReferrers: '',
+ serverClassic: false,
+ includeSearch: true,
+ trackCategorizedPages: true,
+ trackNamedPages: true,
+ sampleRate: '100',
+ siteSpeedSampleRate: '1',
+ setAllMappedProps: true,
+ enableServerSideIdentify: true,
+ serverSideIdentifyEventCategory: 'cat1',
+ serverSideIdentifyEventAction: 'action1',
+ anonymizeIp: true,
+ domain: 'domain',
+ enhancedEcommerce: true,
+ nonInteraction: true,
+ optimize: 'abc123',
+ sendUserId: true,
+ useGoogleAmpClientId: true,
+ 'web-useNativeSDK': true,
+ dimensions: [
+ {
+ from: 'name',
+ to: 'dimension1',
+ },
+ {
+ from: 'custom2',
+ to: 'dimension2',
+ },
+ ],
+ metrics: [
+ {
+ from: 'email',
+ to: 'metric1',
+ },
+ {
+ from: 'trait2',
+ to: 'metric2',
+ },
+ ],
+ resetCustomDimensionsOnPage: [
+ {
+ resetCustomDimensionsOnPage: 'abc',
+ },
+ {
+ resetCustomDimensionsOnPage: 'xyz',
+ },
+ ],
+ contentGroupings: [
+ {
+ from: 'plan',
+ to: 'contentGroup1',
+ },
+ {
+ from: 'prop2',
+ to: 'contentGroup2',
+ },
+ ],
+ },
+ Enabled: true,
+ },
+ },
+ ],
},
- "output": {
- "response": {
- "status": 200,
- "body": [
- {
- "output": {
- "version": "1",
- "type": "REST",
- "method": "POST",
- "endpoint": "https://www.google-analytics.com/collect",
- "headers": {},
- "params": {
- "ea": "promotion viewed",
- "ec": "EnhancedEcommerce",
- "cu": "CAD",
- "promoa": "view",
- "pa": "view",
- "cd1": "my product",
- "v": "1",
- "t": "event",
- "el": "event",
- "tid": "UA-165994240-1",
- "ds": "web",
- "an": "RudderLabs JavaScript SDK",
- "av": "1.0.0",
- "aiid": "com.rudderlabs.javascript",
- "npa": 1,
- "aip": 1,
- "cid": "00000000000000000000000000",
- "promo1id": "PROMO_1234",
- "promo1cr": "summer_banner2",
- "promo1ps": "banner_slot1",
- "promo1nm": "my product",
- "ua": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36",
- "uid": "12345",
- "ul": "en-US",
- "ni": 1,
- "qt": 124893881700,
- },
- "body": {
- "JSON": {},
- "XML": {},
- "JSON_ARRAY": {},
- "FORM": {}
- },
- "files": {},
- "userId": "00000000000000000000000000"
- },
- "statusCode": 200
- }
- ]
- }
- }
- },
- {
- "name": "ga360",
- "description": "Test 13",
- "feature": "processor",
- "module": "destination",
- "version": "v0",
- "input": {
- "request": {
- "body": [
- {
- "message": {
- "channel": "web",
- "context": {
- "app": {
- "build": "1.0.0",
- "name": "RudderLabs JavaScript SDK",
- "namespace": "com.rudderlabs.javascript",
- "version": "1.0.0"
- },
- "traits": {
- "email": "test@rudderstack.com"
- },
- "library": {
- "name": "RudderLabs JavaScript SDK",
- "version": "1.0.0"
- },
- "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36",
- "locale": "en-US",
- "os": {
- "name": "",
- "version": ""
- },
- "screen": {
- "density": 2
- }
- },
- "type": "track",
- "messageId": "ec5481b6-a926-4d2e-b293-0b3a77c4d3be",
- "originalTimestamp": "2019-10-14T11:15:18.300Z",
- "anonymousId": "00000000000000000000000000",
- "userId": "12345",
- "event": "promotion clicked",
- "properties": {
- "currency": "CAD",
- "promotion_id": "PROMO_1234",
- "name": "my product",
- "creative": "summer_banner2",
- "position": "banner_slot1",
- "testDimension": true,
- "testMetric": true
- },
- "integrations": {
- "All": true
- },
- "sentAt": "2019-10-14T11:15:53.296Z"
- },
- "destination": {
- "Config": {
- "trackingID": "UA-165994240-1",
- "doubleClick": true,
- "enhancedLinkAttribution": true,
- "classic": true,
- "ignoredReferrers": "",
- "serverClassic": false,
- "includeSearch": true,
- "trackCategorizedPages": true,
- "trackNamedPages": true,
- "sampleRate": "100",
- "siteSpeedSampleRate": "1",
- "setAllMappedProps": true,
- "enableServerSideIdentify": true,
- "serverSideIdentifyEventCategory": "cat1",
- "serverSideIdentifyEventAction": "action1",
- "anonymizeIp": true,
- "domain": "domain",
- "enhancedEcommerce": true,
- "nonInteraction": true,
- "optimize": "abc123",
- "sendUserId": true,
- "useGoogleAmpClientId": true,
- "web-useNativeSDK": true,
- "dimensions": [
- {
- "from": "name",
- "to": "dimension1"
- },
- {
- "from": "custom2",
- "to": "dimension2"
- }
- ],
- "metrics": [
- {
- "from": "email",
- "to": "metric1"
- },
- {
- "from": "trait2",
- "to": "metric2"
- }
- ],
- "resetCustomDimensionsOnPage": [
- {
- "resetCustomDimensionsOnPage": "abc"
- },
- {
- "resetCustomDimensionsOnPage": "xyz"
- }
- ],
- "contentGroupings": [
- {
- "from": "plan",
- "to": "contentGroup1"
- },
- {
- "from": "prop2",
- "to": "contentGroup2"
- }
- ]
- },
- "Enabled": true
- }
- }
- ]
- }
+ },
+ output: {
+ response: {
+ status: 200,
+ body: [
+ {
+ output: {
+ version: '1',
+ type: 'REST',
+ method: 'POST',
+ endpoint: 'https://www.google-analytics.com/collect',
+ headers: {},
+ params: {
+ ev: 100,
+ pa: 'refund',
+ ti: 'rudderstackorder1',
+ ea: 'Order Refunded',
+ ec: 'EnhancedEcommerce',
+ v: '1',
+ t: 'event',
+ el: 'event',
+ tid: 'UA-165994240-1',
+ ds: 'web',
+ an: 'RudderLabs JavaScript SDK',
+ av: '1.0.0',
+ aiid: 'com.rudderlabs.javascript',
+ npa: 1,
+ aip: 1,
+ ua: 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36',
+ cid: '00000000000000000000000000',
+ uid: '12345',
+ ul: 'en-US',
+ ni: 1,
+ qt: 124893881700,
+ },
+ body: {
+ JSON: {},
+ XML: {},
+ JSON_ARRAY: {},
+ FORM: {},
+ },
+ files: {},
+ userId: '00000000000000000000000000',
+ },
+ statusCode: 200,
+ },
+ ],
},
- "output": {
- "response": {
- "status": 200,
- "body": [
- {
- "output": {
- "version": "1",
- "type": "REST",
- "method": "POST",
- "endpoint": "https://www.google-analytics.com/collect",
- "headers": {},
- "params": {
- "ea": "promotion clicked",
- "ec": "EnhancedEcommerce",
- "cu": "CAD",
- "promoa": "promo_click",
- "pa": "promo_click",
- "cd1": "my product",
- "v": "1",
- "t": "event",
- "el": "event",
- "tid": "UA-165994240-1",
- "ds": "web",
- "an": "RudderLabs JavaScript SDK",
- "av": "1.0.0",
- "aiid": "com.rudderlabs.javascript",
- "npa": 1,
- "aip": 1,
- "cid": "00000000000000000000000000",
- "promo1id": "PROMO_1234",
- "promo1cr": "summer_banner2",
- "promo1ps": "banner_slot1",
- "promo1nm": "my product",
- "ua": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36",
- "uid": "12345",
- "ul": "en-US",
- "ni": 1,
- "qt": 124893881700,
- },
- "body": {
- "JSON": {},
- "XML": {},
- "JSON_ARRAY": {},
- "FORM": {}
- },
- "files": {},
- "userId": "00000000000000000000000000"
- },
- "statusCode": 200
- }
- ]
- }
- }
+ },
},
{
- "name": "ga360",
- "description": "Test 14",
- "feature": "processor",
- "module": "destination",
- "version": "v0",
- "input": {
- "request": {
- "body": [
- {
- "message": {
- "channel": "web",
- "context": {
- "app": {
- "build": "1.0.0",
- "name": "RudderLabs JavaScript SDK",
- "namespace": "com.rudderlabs.javascript",
- "version": "1.0.0"
- },
- "traits": {
- "email": "test@rudderstack.com"
- },
- "library": {
- "name": "RudderLabs JavaScript SDK",
- "version": "1.0.0"
- },
- "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36",
- "locale": "en-US",
- "os": {
- "name": "",
- "version": ""
- },
- "screen": {
- "density": 2
- }
- },
- "type": "track",
- "messageId": "ec5481b6-a926-4d2e-b293-0b3a77c4d3be",
- "originalTimestamp": "2019-10-14T11:15:18.300Z",
- "anonymousId": "00000000000000000000000000",
- "userId": "12345",
- "event": "checkout started",
- "properties": {
- "currency": "CAD",
- "products": [
- {
- "quantity": 1,
- "price": 24.75,
- "name": "my product",
- "sku": "p-298"
- },
- {
- "quantity": 1,
- "price": 24.75,
- "name": "my product 2",
- "sku": "p-299"
- }
- ],
- "step": 1,
- "paymentMethod": "Visa",
- "testDimension": true,
- "testMetric": true
- },
- "integrations": {
- "All": true
- },
- "sentAt": "2019-10-14T11:15:53.296Z"
- },
- "destination": {
- "Config": {
- "trackingID": "UA-165994240-1",
- "doubleClick": true,
- "enhancedLinkAttribution": true,
- "classic": true,
- "ignoredReferrers": "",
- "serverClassic": false,
- "includeSearch": true,
- "trackCategorizedPages": true,
- "trackNamedPages": true,
- "sampleRate": "100",
- "siteSpeedSampleRate": "1",
- "setAllMappedProps": true,
- "enableServerSideIdentify": true,
- "serverSideIdentifyEventCategory": "cat1",
- "serverSideIdentifyEventAction": "action1",
- "anonymizeIp": true,
- "domain": "domain",
- "enhancedEcommerce": true,
- "nonInteraction": true,
- "optimize": "abc123",
- "sendUserId": true,
- "useGoogleAmpClientId": true,
- "web-useNativeSDK": true,
- "dimensions": [
- {
- "from": "name",
- "to": "dimension1"
- },
- {
- "from": "custom2",
- "to": "dimension2"
- }
- ],
- "metrics": [
- {
- "from": "email",
- "to": "metric1"
- },
- {
- "from": "trait2",
- "to": "metric2"
- }
- ],
- "resetCustomDimensionsOnPage": [
- {
- "resetCustomDimensionsOnPage": "abc"
- },
- {
- "resetCustomDimensionsOnPage": "xyz"
- }
- ],
- "contentGroupings": [
- {
- "from": "plan",
- "to": "contentGroup1"
- },
- {
- "from": "prop2",
- "to": "contentGroup2"
- }
- ]
- },
- "Enabled": true
- }
- }
- ]
- }
+ name: 'ga360',
+ description: 'Test 34',
+ feature: 'processor',
+ module: 'destination',
+ version: 'v0',
+ input: {
+ request: {
+ body: [
+ {
+ message: {
+ channel: 'web',
+ context: {
+ app: {
+ build: '1.0.0',
+ name: 'RudderLabs JavaScript SDK',
+ namespace: 'com.rudderlabs.javascript',
+ version: '1.0.0',
+ },
+ traits: {
+ email: 'test@rudderstack.com',
+ },
+ library: {
+ name: 'RudderLabs JavaScript SDK',
+ version: '1.0.0',
+ },
+ userAgent:
+ 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36',
+ locale: 'en-US',
+ os: {
+ name: '',
+ version: '',
+ },
+ screen: {
+ density: 2,
+ },
+ },
+ type: 'track',
+ messageId: 'ec5481b6-a926-4d2e-b293-0b3a77c4d3be',
+ originalTimestamp: '2019-10-14T11:15:18.300Z',
+ anonymousId: '00000000000000000000000000',
+ userId: '12345',
+ event: 'Order Refunded',
+ properties: {
+ order_id: 'rudderstackorder1',
+ total: 99.99,
+ shipping: 13.99,
+ tax: 20.99,
+ currency: 'INR',
+ products: [],
+ },
+ integrations: {
+ All: true,
+ },
+ sentAt: '2019-10-14T11:15:53.296Z',
+ },
+ destination: {
+ Config: {
+ trackingID: 'UA-165994240-1',
+ doubleClick: true,
+ enhancedLinkAttribution: true,
+ classic: true,
+ ignoredReferrers: '',
+ serverClassic: false,
+ includeSearch: true,
+ trackCategorizedPages: true,
+ trackNamedPages: true,
+ sampleRate: '100',
+ siteSpeedSampleRate: '1',
+ setAllMappedProps: true,
+ enableServerSideIdentify: true,
+ serverSideIdentifyEventCategory: 'cat1',
+ serverSideIdentifyEventAction: 'action1',
+ anonymizeIp: true,
+ domain: 'domain',
+ enhancedEcommerce: true,
+ nonInteraction: true,
+ optimize: 'abc123',
+ sendUserId: true,
+ useGoogleAmpClientId: true,
+ 'web-useNativeSDK': true,
+ dimensions: [
+ {
+ from: 'name',
+ to: 'dimension1',
+ },
+ {
+ from: 'custom2',
+ to: 'dimension2',
+ },
+ ],
+ metrics: [
+ {
+ from: 'email',
+ to: 'metric1',
+ },
+ {
+ from: 'trait2',
+ to: 'metric2',
+ },
+ ],
+ resetCustomDimensionsOnPage: [
+ {
+ resetCustomDimensionsOnPage: 'abc',
+ },
+ {
+ resetCustomDimensionsOnPage: 'xyz',
+ },
+ ],
+ contentGroupings: [
+ {
+ from: 'plan',
+ to: 'contentGroup1',
+ },
+ {
+ from: 'prop2',
+ to: 'contentGroup2',
+ },
+ ],
+ },
+ Enabled: true,
+ },
+ },
+ ],
},
- "output": {
- "response": {
- "status": 200,
- "body": [
- {
- "output": {
- "version": "1",
- "type": "REST",
- "method": "POST",
- "endpoint": "https://www.google-analytics.com/collect",
- "headers": {},
- "params": {
- "pa": "checkout",
- "pr1id": "p-298",
- "pr1cd1": "my product",
- "pr1nm": "my product",
- "pr1pr": 24.75,
- "pr2id": "p-299",
- "pr2cd1": "my product 2",
- "pr2nm": "my product 2",
- "pr2pr": 24.75,
- "ea": "checkout started",
- "ec": "EnhancedEcommerce",
- "v": "1",
- "t": "event",
- "el": "event",
- "tid": "UA-165994240-1",
- "ds": "web",
- "an": "RudderLabs JavaScript SDK",
- "av": "1.0.0",
- "aiid": "com.rudderlabs.javascript",
- "npa": 1,
- "aip": 1,
- "cid": "00000000000000000000000000",
- "cu": "CAD",
- "ua": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36",
- "uid": "12345",
- "cos": 1,
- "pr1qt": 1,
- "pr2qt": 1,
- "ul": "en-US",
- "ni": 1,
- "qt": 124893881700,
- },
- "body": {
- "JSON": {},
- "XML": {},
- "JSON_ARRAY": {},
- "FORM": {}
- },
- "files": {},
- "userId": "00000000000000000000000000"
- },
- "statusCode": 200
- }
- ]
- }
- }
- },
- {
- "name": "ga360",
- "description": "Test 15",
- "feature": "processor",
- "module": "destination",
- "version": "v0",
- "input": {
- "request": {
- "body": [
- {
- "message": {
- "channel": "web",
- "context": {
- "app": {
- "build": "1.0.0",
- "name": "RudderLabs JavaScript SDK",
- "namespace": "com.rudderlabs.javascript",
- "version": "1.0.0"
- },
- "traits": {
- "email": "test@rudderstack.com"
- },
- "library": {
- "name": "RudderLabs JavaScript SDK",
- "version": "1.0.0"
- },
- "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36",
- "locale": "en-US",
- "os": {
- "name": "",
- "version": ""
- },
- "screen": {
- "density": 2
- }
- },
- "type": "track",
- "messageId": "ec5481b6-a926-4d2e-b293-0b3a77c4d3be",
- "originalTimestamp": "2019-10-14T11:15:18.300Z",
- "anonymousId": "00000000000000000000000000",
- "userId": "12345",
- "event": "order updated",
- "properties": {
- "currency": "CAD",
- "products": [
- {
- "quantity": 1,
- "price": 24.75,
- "name": "my product",
- "sku": "p-298"
- },
- {
- "quantity": 1,
- "price": 24.75,
- "name": "my product 2",
- "sku": "p-299"
- }
- ],
- "step": 1,
- "paymentMethod": "Visa",
- "testDimension": true,
- "testMetric": true
- },
- "integrations": {
- "All": true
- },
- "sentAt": "2019-10-14T11:15:53.296Z"
- },
- "destination": {
- "Config": {
- "trackingID": "UA-165994240-1",
- "doubleClick": true,
- "enhancedLinkAttribution": true,
- "classic": true,
- "ignoredReferrers": "",
- "serverClassic": false,
- "includeSearch": true,
- "trackCategorizedPages": true,
- "trackNamedPages": true,
- "sampleRate": "100",
- "siteSpeedSampleRate": "1",
- "setAllMappedProps": true,
- "enableServerSideIdentify": true,
- "serverSideIdentifyEventCategory": "cat1",
- "serverSideIdentifyEventAction": "action1",
- "anonymizeIp": true,
- "domain": "domain",
- "enhancedEcommerce": true,
- "nonInteraction": true,
- "optimize": "abc123",
- "sendUserId": true,
- "useGoogleAmpClientId": true,
- "web-useNativeSDK": true,
- "dimensions": [
- {
- "from": "name",
- "to": "dimension1"
- },
- {
- "from": "custom2",
- "to": "dimension2"
- }
- ],
- "metrics": [
- {
- "from": "email",
- "to": "metric1"
- },
- {
- "from": "trait2",
- "to": "metric2"
- }
- ],
- "resetCustomDimensionsOnPage": [
- {
- "resetCustomDimensionsOnPage": "abc"
- },
- {
- "resetCustomDimensionsOnPage": "xyz"
- }
- ],
- "contentGroupings": [
- {
- "from": "plan",
- "to": "contentGroup1"
- },
- {
- "from": "prop2",
- "to": "contentGroup2"
- }
- ]
- },
- "Enabled": true
- }
- }
- ]
- }
+ },
+ output: {
+ response: {
+ status: 200,
+ body: [
+ {
+ output: {
+ version: '1',
+ type: 'REST',
+ method: 'POST',
+ endpoint: 'https://www.google-analytics.com/collect',
+ headers: {},
+ params: {
+ ev: 100,
+ pa: 'refund',
+ ti: 'rudderstackorder1',
+ ea: 'Order Refunded',
+ ec: 'EnhancedEcommerce',
+ v: '1',
+ t: 'event',
+ el: 'event',
+ tid: 'UA-165994240-1',
+ ds: 'web',
+ an: 'RudderLabs JavaScript SDK',
+ av: '1.0.0',
+ aiid: 'com.rudderlabs.javascript',
+ npa: 1,
+ aip: 1,
+ ua: 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36',
+ cid: '00000000000000000000000000',
+ uid: '12345',
+ ul: 'en-US',
+ ni: 1,
+ qt: 124893881700,
+ },
+ body: {
+ JSON: {},
+ XML: {},
+ JSON_ARRAY: {},
+ FORM: {},
+ },
+ files: {},
+ userId: '00000000000000000000000000',
+ },
+ statusCode: 200,
+ },
+ ],
},
- "output": {
- "response": {
- "status": 200,
- "body": [
- {
- "output": {
- "version": "1",
- "type": "REST",
- "method": "POST",
- "endpoint": "https://www.google-analytics.com/collect",
- "headers": {},
- "params": {
- "pa": "checkout",
- "pr1id": "p-298",
- "pr1cd1": "my product",
- "pr1nm": "my product",
- "pr1pr": 24.75,
- "pr2id": "p-299",
- "pr2cd1": "my product 2",
- "pr2nm": "my product 2",
- "pr2pr": 24.75,
- "ea": "order updated",
- "ec": "EnhancedEcommerce",
- "v": "1",
- "t": "event",
- "el": "event",
- "tid": "UA-165994240-1",
- "ds": "web",
- "an": "RudderLabs JavaScript SDK",
- "av": "1.0.0",
- "aiid": "com.rudderlabs.javascript",
- "npa": 1,
- "aip": 1,
- "cid": "00000000000000000000000000",
- "cu": "CAD",
- "ua": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36",
- "uid": "12345",
- "cos": 1,
- "pr1qt": 1,
- "pr2qt": 1,
- "ul": "en-US",
- "ni": 1,
- "qt": 124893881700,
- },
- "body": {
- "JSON": {},
- "XML": {},
- "JSON_ARRAY": {},
- "FORM": {}
- },
- "files": {},
- "userId": "00000000000000000000000000"
- },
- "statusCode": 200
- }
- ]
- }
- }
+ },
},
{
- "name": "ga360",
- "description": "Test 16",
- "feature": "processor",
- "module": "destination",
- "version": "v0",
- "input": {
- "request": {
- "body": [
- {
- "message": {
- "channel": "web",
- "context": {
- "app": {
- "build": "1.0.0",
- "name": "RudderLabs JavaScript SDK",
- "namespace": "com.rudderlabs.javascript",
- "version": "1.0.0"
- },
- "traits": {
- "email": "test@rudderstack.com"
- },
- "library": {
- "name": "RudderLabs JavaScript SDK",
- "version": "1.0.0"
- },
- "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36",
- "locale": "en-US",
- "os": {
- "name": "",
- "version": ""
- },
- "screen": {
- "density": 2
- }
- },
- "type": "track",
- "messageId": "ec5481b6-a926-4d2e-b293-0b3a77c4d3be",
- "originalTimestamp": "2019-10-14T11:15:18.300Z",
- "anonymousId": "00000000000000000000000000",
- "userId": "12345",
- "event": "checkout step viewed",
- "properties": {
- "currency": "CAD",
- "step": 1
- },
- "integrations": {
- "All": true
- },
- "sentAt": "2019-10-14T11:15:53.296Z"
- },
- "destination": {
- "Config": {
- "trackingID": "UA-165994240-1",
- "doubleClick": true,
- "enhancedLinkAttribution": true,
- "classic": true,
- "ignoredReferrers": "",
- "serverClassic": false,
- "includeSearch": true,
- "trackCategorizedPages": true,
- "trackNamedPages": true,
- "sampleRate": "100",
- "siteSpeedSampleRate": "1",
- "setAllMappedProps": true,
- "enableServerSideIdentify": true,
- "serverSideIdentifyEventCategory": "cat1",
- "serverSideIdentifyEventAction": "action1",
- "anonymizeIp": true,
- "domain": "domain",
- "enhancedEcommerce": true,
- "nonInteraction": true,
- "optimize": "abc123",
- "sendUserId": true,
- "useGoogleAmpClientId": true,
- "web-useNativeSDK": true,
- "dimensions": [
- {
- "from": "name",
- "to": "dimension1"
- },
- {
- "from": "custom2",
- "to": "dimension2"
- }
- ],
- "metrics": [
- {
- "from": "email",
- "to": "metric1"
- },
- {
- "from": "trait2",
- "to": "metric2"
- }
- ],
- "resetCustomDimensionsOnPage": [
- {
- "resetCustomDimensionsOnPage": "abc"
- },
- {
- "resetCustomDimensionsOnPage": "xyz"
- }
- ],
- "contentGroupings": [
- {
- "from": "plan",
- "to": "contentGroup1"
- },
- {
- "from": "prop2",
- "to": "contentGroup2"
- }
- ]
- },
- "Enabled": true
- }
- }
- ]
- }
+ name: 'ga360',
+ description: 'Test 35',
+ feature: 'processor',
+ module: 'destination',
+ version: 'v0',
+ input: {
+ request: {
+ body: [
+ {
+ message: {
+ channel: 'web',
+ context: {
+ app: {
+ build: '1.0.0',
+ name: 'RudderLabs JavaScript SDK',
+ namespace: 'com.rudderlabs.javascript',
+ version: '1.0.0',
+ },
+ traits: {
+ email: 'test@rudderstack.com',
+ },
+ library: {
+ name: 'RudderLabs JavaScript SDK',
+ version: '1.0.0',
+ },
+ userAgent:
+ 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36',
+ locale: 'en-US',
+ os: {
+ name: '',
+ version: '',
+ },
+ screen: {
+ density: 2,
+ },
+ },
+ type: 'track',
+ messageId: 'ec5481b6-a926-4d2e-b293-0b3a77c4d3be',
+ originalTimestamp: '2019-10-14T11:15:18.300Z',
+ anonymousId: '00000000000000000000000000',
+ userId: '12345',
+ event: 'Order Refunded',
+ properties: {
+ order_id: 'rudderstackorder1',
+ total: 99.99,
+ shipping: 13.99,
+ tax: 20.99,
+ currency: 'INR',
+ products: [
+ {
+ quantity: 1,
+ price: 24.75,
+ name: 'my product',
+ sku: 'p-298',
+ product_id: '1',
+ },
+ {
+ quantity: 3,
+ price: 24.75,
+ name: 'other product',
+ sku: 'p-299',
+ product_id: '2',
+ },
+ ],
+ },
+ integrations: {
+ All: true,
+ },
+ sentAt: '2019-10-14T11:15:53.296Z',
+ },
+ destination: {
+ Config: {
+ trackingID: 'UA-165994240-1',
+ doubleClick: true,
+ enhancedLinkAttribution: true,
+ classic: true,
+ ignoredReferrers: '',
+ serverClassic: false,
+ includeSearch: true,
+ trackCategorizedPages: true,
+ trackNamedPages: true,
+ sampleRate: '100',
+ siteSpeedSampleRate: '1',
+ setAllMappedProps: true,
+ enableServerSideIdentify: true,
+ serverSideIdentifyEventCategory: 'cat1',
+ serverSideIdentifyEventAction: 'action1',
+ anonymizeIp: true,
+ domain: 'domain',
+ enhancedEcommerce: true,
+ nonInteraction: true,
+ optimize: 'abc123',
+ sendUserId: true,
+ useGoogleAmpClientId: true,
+ 'web-useNativeSDK': true,
+ dimensions: [
+ {
+ from: 'name',
+ to: 'dimension1',
+ },
+ {
+ from: 'custom2',
+ to: 'dimension2',
+ },
+ ],
+ metrics: [
+ {
+ from: 'email',
+ to: 'metric1',
+ },
+ {
+ from: 'trait2',
+ to: 'metric2',
+ },
+ ],
+ resetCustomDimensionsOnPage: [
+ {
+ resetCustomDimensionsOnPage: 'abc',
+ },
+ {
+ resetCustomDimensionsOnPage: 'xyz',
+ },
+ ],
+ contentGroupings: [
+ {
+ from: 'plan',
+ to: 'contentGroup1',
+ },
+ {
+ from: 'prop2',
+ to: 'contentGroup2',
+ },
+ ],
+ },
+ Enabled: true,
+ },
+ },
+ ],
},
- "output": {
- "response": {
- "status": 200,
- "body": [
- {
- "output": {
- "version": "1",
- "type": "REST",
- "method": "POST",
- "endpoint": "https://www.google-analytics.com/collect",
- "headers": {},
- "params": {
- "pa": "checkout",
- "ea": "checkout step viewed",
- "ec": "EnhancedEcommerce",
- "v": "1",
- "t": "event",
- "el": "event",
- "tid": "UA-165994240-1",
- "ds": "web",
- "an": "RudderLabs JavaScript SDK",
- "av": "1.0.0",
- "aiid": "com.rudderlabs.javascript",
- "npa": 1,
- "aip": 1,
- "cid": "00000000000000000000000000",
- "cos": 1,
- "ua": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36",
- "uid": "12345",
- "ul": "en-US",
- "ni": 1,
- "qt": 124893881700,
- },
- "body": {
- "JSON": {},
- "XML": {},
- "JSON_ARRAY": {},
- "FORM": {}
- },
- "files": {},
- "userId": "00000000000000000000000000"
- },
- "statusCode": 200
- }
- ]
- }
- }
- },
- {
- "name": "ga360",
- "description": "Test 17",
- "feature": "processor",
- "module": "destination",
- "version": "v0",
- "input": {
- "request": {
- "body": [
- {
- "message": {
- "channel": "web",
- "context": {
- "app": {
- "build": "1.0.0",
- "name": "RudderLabs JavaScript SDK",
- "namespace": "com.rudderlabs.javascript",
- "version": "1.0.0"
- },
- "traits": {
- "email": "test@rudderstack.com"
- },
- "library": {
- "name": "RudderLabs JavaScript SDK",
- "version": "1.0.0"
- },
- "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36",
- "locale": "en-US",
- "os": {
- "name": "",
- "version": ""
- },
- "screen": {
- "density": 2
- }
- },
- "type": "track",
- "messageId": "ec5481b6-a926-4d2e-b293-0b3a77c4d3be",
- "originalTimestamp": "2019-10-14T11:15:18.300Z",
- "anonymousId": "00000000000000000000000000",
- "userId": "12345",
- "event": "checkout step completed",
- "properties": {
- "currency": "CAD",
- "step": 1,
- "paymentMethod": "Visa"
- },
- "integrations": {
- "All": true
- },
- "sentAt": "2019-10-14T11:15:53.296Z"
- },
- "destination": {
- "Config": {
- "trackingID": "UA-165994240-1",
- "doubleClick": true,
- "enhancedLinkAttribution": true,
- "classic": true,
- "ignoredReferrers": "",
- "serverClassic": false,
- "includeSearch": true,
- "trackCategorizedPages": true,
- "trackNamedPages": true,
- "sampleRate": "100",
- "siteSpeedSampleRate": "1",
- "setAllMappedProps": true,
- "enableServerSideIdentify": true,
- "serverSideIdentifyEventCategory": "cat1",
- "serverSideIdentifyEventAction": "action1",
- "anonymizeIp": true,
- "domain": "domain",
- "enhancedEcommerce": true,
- "nonInteraction": true,
- "optimize": "abc123",
- "sendUserId": true,
- "useGoogleAmpClientId": true,
- "web-useNativeSDK": true,
- "dimensions": [
- {
- "from": "name",
- "to": "dimension1"
- },
- {
- "from": "custom2",
- "to": "dimension2"
- }
- ],
- "metrics": [
- {
- "from": "email",
- "to": "metric1"
- },
- {
- "from": "trait2",
- "to": "metric2"
- }
- ],
- "resetCustomDimensionsOnPage": [
- {
- "resetCustomDimensionsOnPage": "abc"
- },
- {
- "resetCustomDimensionsOnPage": "xyz"
- }
- ],
- "contentGroupings": [
- {
- "from": "plan",
- "to": "contentGroup1"
- },
- {
- "from": "prop2",
- "to": "contentGroup2"
- }
- ]
- },
- "Enabled": true
- }
- }
- ]
- }
+ },
+ output: {
+ response: {
+ status: 200,
+ body: [
+ {
+ output: {
+ version: '1',
+ type: 'REST',
+ method: 'POST',
+ endpoint: 'https://www.google-analytics.com/collect',
+ headers: {},
+ params: {
+ ev: 100,
+ pa: 'refund',
+ pr1id: '1',
+ pr1cd1: 'my product',
+ pr1nm: 'my product',
+ pr1pr: 24.75,
+ pr1qt: 1,
+ pr2id: '2',
+ pr2cd1: 'other product',
+ pr2nm: 'other product',
+ pr2pr: 24.75,
+ pr2qt: 3,
+ ea: 'Order Refunded',
+ ec: 'EnhancedEcommerce',
+ v: '1',
+ t: 'event',
+ el: 'event',
+ tid: 'UA-165994240-1',
+ ds: 'web',
+ an: 'RudderLabs JavaScript SDK',
+ av: '1.0.0',
+ aiid: 'com.rudderlabs.javascript',
+ npa: 1,
+ aip: 1,
+ ua: 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36',
+ cid: '00000000000000000000000000',
+ ti: 'rudderstackorder1',
+ uid: '12345',
+ ul: 'en-US',
+ ni: 1,
+ qt: 124893881700,
+ },
+ body: {
+ JSON: {},
+ XML: {},
+ JSON_ARRAY: {},
+ FORM: {},
+ },
+ files: {},
+ userId: '00000000000000000000000000',
+ },
+ statusCode: 200,
+ },
+ ],
},
- "output": {
- "response": {
- "status": 200,
- "body": [
- {
- "output": {
- "version": "1",
- "type": "REST",
- "method": "POST",
- "endpoint": "https://www.google-analytics.com/collect",
- "headers": {},
- "params": {
- "pa": "checkout_option",
- "ea": "checkout step completed",
- "ec": "EnhancedEcommerce",
- "v": "1",
- "t": "event",
- "el": "event",
- "tid": "UA-165994240-1",
- "ds": "web",
- "an": "RudderLabs JavaScript SDK",
- "av": "1.0.0",
- "aiid": "com.rudderlabs.javascript",
- "npa": 1,
- "aip": 1,
- "cid": "00000000000000000000000000",
- "cos": 1,
- "ua": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36",
- "uid": "12345",
- "ul": "en-US",
- "ni": 1,
- "qt": 124893881700,
- },
- "body": {
- "JSON": {},
- "XML": {},
- "JSON_ARRAY": {},
- "FORM": {}
- },
- "files": {},
- "userId": "00000000000000000000000000"
- },
- "statusCode": 200
- }
- ]
- }
- }
+ },
},
{
- "name": "ga360",
- "description": "Test 18",
- "feature": "processor",
- "module": "destination",
- "version": "v0",
- "input": {
- "request": {
- "body": [
- {
- "message": {
- "channel": "web",
- "context": {
- "app": {
- "build": "1.0.0",
- "name": "RudderLabs JavaScript SDK",
- "namespace": "com.rudderlabs.javascript",
- "version": "1.0.0"
- },
- "traits": {
- "email": "test@rudderstack.com"
- },
- "library": {
- "name": "RudderLabs JavaScript SDK",
- "version": "1.0.0"
- },
- "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36",
- "locale": "en-US",
- "os": {
- "name": "",
- "version": ""
- },
- "screen": {
- "density": 2
- }
- },
- "type": "track",
- "messageId": "ec5481b6-a926-4d2e-b293-0b3a77c4d3be",
- "originalTimestamp": "2019-10-14T11:15:18.300Z",
- "anonymousId": "00000000000000000000000000",
- "userId": "12345",
- "event": "order refunded",
- "properties": {
- "products": [
- {
- "quantity": 1,
- "sku": "p-298"
- },
- {
- "quantity": 1,
- "sku": "p-299"
- }
- ],
- "testDimension": true,
- "testMetric": true
- },
- "integrations": {
- "All": true
- },
- "sentAt": "2019-10-14T11:15:53.296Z"
- },
- "destination": {
- "Config": {
- "trackingID": "UA-165994240-1",
- "doubleClick": true,
- "enhancedLinkAttribution": true,
- "classic": true,
- "ignoredReferrers": "",
- "serverClassic": false,
- "includeSearch": true,
- "trackCategorizedPages": true,
- "trackNamedPages": true,
- "sampleRate": "100",
- "siteSpeedSampleRate": "1",
- "setAllMappedProps": true,
- "enableServerSideIdentify": true,
- "serverSideIdentifyEventCategory": "cat1",
- "serverSideIdentifyEventAction": "action1",
- "anonymizeIp": true,
- "domain": "domain",
- "enhancedEcommerce": true,
- "nonInteraction": true,
- "optimize": "abc123",
- "sendUserId": true,
- "useGoogleAmpClientId": true,
- "web-useNativeSDK": true,
- "dimensions": [
- {
- "from": "name",
- "to": "dimension1"
- },
- {
- "from": "custom2",
- "to": "dimension2"
- }
- ],
- "metrics": [
- {
- "from": "email",
- "to": "metric1"
- },
- {
- "from": "trait2",
- "to": "metric2"
- }
- ],
- "resetCustomDimensionsOnPage": [
- {
- "resetCustomDimensionsOnPage": "abc"
- },
- {
- "resetCustomDimensionsOnPage": "xyz"
- }
- ],
- "contentGroupings": [
- {
- "from": "plan",
- "to": "contentGroup1"
- },
- {
- "from": "prop2",
- "to": "contentGroup2"
- }
- ]
- },
- "Enabled": true
- }
- }
- ]
- }
+ name: 'ga360',
+ description: 'Test 36',
+ feature: 'processor',
+ module: 'destination',
+ version: 'v0',
+ input: {
+ request: {
+ body: [
+ {
+ message: {
+ channel: 'web',
+ context: {
+ app: {
+ build: '1.0.0',
+ name: 'RudderLabs JavaScript SDK',
+ namespace: 'com.rudderlabs.javascript',
+ version: '1.0.0',
+ },
+ traits: {
+ email: 'test@rudderstack.com',
+ },
+ library: {
+ name: 'RudderLabs JavaScript SDK',
+ version: '1.0.0',
+ },
+ userAgent:
+ 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36',
+ locale: 'en-US',
+ os: {
+ name: '',
+ version: '',
+ },
+ screen: {
+ density: 2,
+ },
+ },
+ type: 'track',
+ messageId: 'ec5481b6-a926-4d2e-b293-0b3a77c4d3be',
+ originalTimestamp: '2019-10-14T11:15:18.300Z',
+ anonymousId: '00000000000000000000000000',
+ userId: '12345',
+ event: 'Cart Shared',
+ properties: {
+ order_id: 'rudderstackorder1',
+ total: 99.99,
+ shipping: 13.99,
+ tax: 20.99,
+ currency: 'INR',
+ products: [
+ {
+ quantity: 1,
+ price: 24.75,
+ name: 'my product',
+ sku: 'p-298',
+ product_id: '1',
+ },
+ {
+ quantity: 3,
+ price: 24.75,
+ name: 'other product',
+ sku: 'p-299',
+ product_id: '2',
+ },
+ ],
+ },
+ integrations: {
+ All: true,
+ },
+ sentAt: '2019-10-14T11:15:53.296Z',
+ },
+ destination: {
+ Config: {
+ trackingID: 'UA-165994240-1',
+ doubleClick: true,
+ enhancedLinkAttribution: true,
+ classic: true,
+ ignoredReferrers: '',
+ serverClassic: false,
+ includeSearch: true,
+ trackCategorizedPages: true,
+ trackNamedPages: true,
+ sampleRate: '100',
+ siteSpeedSampleRate: '1',
+ setAllMappedProps: true,
+ enableServerSideIdentify: true,
+ serverSideIdentifyEventCategory: 'cat1',
+ serverSideIdentifyEventAction: 'action1',
+ anonymizeIp: true,
+ domain: 'domain',
+ enhancedEcommerce: true,
+ nonInteraction: true,
+ optimize: 'abc123',
+ sendUserId: true,
+ useGoogleAmpClientId: true,
+ 'web-useNativeSDK': true,
+ dimensions: [
+ {
+ from: 'name',
+ to: 'dimension1',
+ },
+ {
+ from: 'custom2',
+ to: 'dimension2',
+ },
+ ],
+ metrics: [
+ {
+ from: 'email',
+ to: 'metric1',
+ },
+ {
+ from: 'trait2',
+ to: 'metric2',
+ },
+ ],
+ resetCustomDimensionsOnPage: [
+ {
+ resetCustomDimensionsOnPage: 'abc',
+ },
+ {
+ resetCustomDimensionsOnPage: 'xyz',
+ },
+ ],
+ contentGroupings: [
+ {
+ from: 'plan',
+ to: 'contentGroup1',
+ },
+ {
+ from: 'prop2',
+ to: 'contentGroup2',
+ },
+ ],
+ },
+ Enabled: true,
+ },
+ },
+ ],
},
- "output": {
- "response": {
- "status": 200,
- "body": [
- {
- "output": {
- "version": "1",
- "type": "REST",
- "method": "POST",
- "endpoint": "https://www.google-analytics.com/collect",
- "headers": {},
- "params": {
- "ni": 1,
- "v": "1",
- "t": "event",
- "el": "event",
- "tid": "UA-165994240-1",
- "ds": "web",
- "an": "RudderLabs JavaScript SDK",
- "av": "1.0.0",
- "aiid": "com.rudderlabs.javascript",
- "npa": 1,
- "aip": 1,
- "cid": "00000000000000000000000000",
- "ea": "order refunded",
- "ec": "EnhancedEcommerce",
- "ua": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36",
- "uid": "12345",
- "pa": "refund",
- "pr1id": "p-298",
- "pr1qt": 1,
- "pr2id": "p-299",
- "ul": "en-US",
- "pr2qt": 1,
- "qt": 124893881700,
- },
- "body": {
- "JSON": {},
- "XML": {},
- "JSON_ARRAY": {},
- "FORM": {}
- },
- "files": {},
- "userId": "00000000000000000000000000"
- },
- "statusCode": 200
- }
- ]
- }
- }
- },
- {
- "name": "ga360",
- "description": "Test 19",
- "feature": "processor",
- "module": "destination",
- "version": "v0",
- "input": {
- "request": {
- "body": [
- {
- "message": {
- "channel": "web",
- "context": {
- "app": {
- "build": "1.0.0",
- "name": "RudderLabs JavaScript SDK",
- "namespace": "com.rudderlabs.javascript",
- "version": "1.0.0"
- },
- "traits": {
- "email": "test@rudderstack.com"
- },
- "library": {
- "name": "RudderLabs JavaScript SDK",
- "version": "1.0.0"
- },
- "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36",
- "locale": "en-US",
- "os": {
- "name": "",
- "version": ""
- },
- "screen": {
- "density": 2
- }
- },
- "type": "track",
- "messageId": "ec5481b6-a926-4d2e-b293-0b3a77c4d3be",
- "originalTimestamp": "2019-10-14T11:15:18.300Z",
- "anonymousId": "00000000000000000000000000",
- "userId": "12345",
- "event": "order starterefundedd",
- "properties": {
- "products": [
- {
- "quantity": 1,
- "sku": "p-298"
- },
- {
- "quantity": 1,
- "sku": "p-299"
- }
- ],
- "testDimension": true,
- "testMetric": true
- },
- "integrations": {
- "All": true
- },
- "sentAt": "2019-10-14T11:15:53.296Z"
- },
- "destination": {
- "Config": {
- "trackingID": "UA-165994240-1",
- "doubleClick": true,
- "enhancedLinkAttribution": true,
- "classic": true,
- "ignoredReferrers": "",
- "serverClassic": false,
- "includeSearch": true,
- "trackCategorizedPages": true,
- "trackNamedPages": true,
- "sampleRate": "100",
- "siteSpeedSampleRate": "1",
- "setAllMappedProps": true,
- "enableServerSideIdentify": true,
- "serverSideIdentifyEventCategory": "cat1",
- "serverSideIdentifyEventAction": "action1",
- "anonymizeIp": true,
- "domain": "domain",
- "enhancedEcommerce": true,
- "nonInteraction": true,
- "optimize": "abc123",
- "sendUserId": true,
- "useGoogleAmpClientId": true,
- "web-useNativeSDK": true,
- "metrics": [
- {
- "from": "email",
- "to": "metric1"
- },
- {
- "from": "trait2",
- "to": "metric2"
- }
- ],
- "resetCustomDimensionsOnPage": [
- {
- "resetCustomDimensionsOnPage": "abc"
- },
- {
- "resetCustomDimensionsOnPage": "xyz"
- }
- ],
- "contentGroupings": [
- {
- "from": "plan",
- "to": "contentGroup1"
- },
- {
- "from": "prop2",
- "to": "contentGroup2"
- }
- ]
- },
- "Enabled": true
- }
- }
- ]
- }
+ },
+ output: {
+ response: {
+ status: 200,
+ body: [
+ {
+ output: {
+ version: '1',
+ type: 'REST',
+ method: 'POST',
+ endpoint: 'https://www.google-analytics.com/collect',
+ headers: {},
+ params: {
+ ev: 100,
+ ea: 'Cart Shared',
+ ec: 'All',
+ ni: 1,
+ v: '1',
+ t: 'event',
+ el: 'event',
+ tid: 'UA-165994240-1',
+ ds: 'web',
+ an: 'RudderLabs JavaScript SDK',
+ av: '1.0.0',
+ aiid: 'com.rudderlabs.javascript',
+ npa: 1,
+ aip: 1,
+ cid: '00000000000000000000000000',
+ ua: 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36',
+ uid: '12345',
+ st: ' 1 2',
+ ul: 'en-US',
+ qt: 124893881700,
+ },
+ body: {
+ JSON: {},
+ XML: {},
+ JSON_ARRAY: {},
+ FORM: {},
+ },
+ files: {},
+ userId: '00000000000000000000000000',
+ },
+ statusCode: 200,
+ },
+ ],
},
- "output": {
- "response": {
- "status": 200,
- "body": [
- {
- "output": {
- "version": "1",
- "type": "REST",
- "method": "POST",
- "endpoint": "https://www.google-analytics.com/collect",
- "headers": {},
- "params": {
- "ul": "en-US",
- "ec": "All",
- "ni": 1,
- "v": "1",
- "t": "event",
- "el": "event",
- "tid": "UA-165994240-1",
- "ds": "web",
- "an": "RudderLabs JavaScript SDK",
- "av": "1.0.0",
- "aiid": "com.rudderlabs.javascript",
- "npa": 1,
- "aip": 1,
- "cid": "00000000000000000000000000",
- "ea": "order starterefundedd",
- "ua": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36",
- "uid": "12345",
- "qt": 124893881700,
- },
- "body": {
- "JSON": {},
- "XML": {},
- "JSON_ARRAY": {},
- "FORM": {}
- },
- "files": {},
- "userId": "00000000000000000000000000"
- },
- "statusCode": 200
- }
- ]
- }
- }
+ },
},
{
- "name": "ga360",
- "description": "Test 20",
- "feature": "processor",
- "module": "destination",
- "version": "v0",
- "input": {
- "request": {
- "body": [
- {
- "message": {
- "channel": "web",
- "context": {
- "traits": {
- "email": "test@rudderstack.com"
- },
- "library": {
- "name": "RudderLabs JavaScript SDK",
- "version": "1.0.0"
- },
- "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36",
- "locale": "en-US",
- "os": {
- "name": "",
- "version": ""
- },
- "screen": {
- "density": 2
- }
- },
- "type": "track",
- "messageId": "ec5481b6-a926-4d2e-b293-0b3a77c4d3be",
- "originalTimestamp": "2019-10-14T11:15:18.300Z",
- "anonymousId": "00000000000000000000000000",
- "userId": "12345",
- "event": "order starterefundedd",
- "properties": {
- "products": [
- {
- "quantity": 1,
- "sku": "p-298"
- },
- {
- "quantity": 1,
- "sku": "p-299"
- }
- ],
- "testDimension": true,
- "testMetric": true
- },
- "integrations": {
- "All": true
- },
- "sentAt": "2019-10-14T11:15:53.296Z"
- },
- "destination": {
- "Config": {
- "trackingID": "UA-165994240-1",
- "doubleClick": true,
- "enhancedLinkAttribution": true,
- "classic": true,
- "ignoredReferrers": "",
- "serverClassic": false,
- "includeSearch": true,
- "trackCategorizedPages": true,
- "trackNamedPages": true,
- "sampleRate": "100",
- "siteSpeedSampleRate": "1",
- "setAllMappedProps": true,
- "enableServerSideIdentify": true,
- "serverSideIdentifyEventCategory": "cat1",
- "serverSideIdentifyEventAction": "action1",
- "anonymizeIp": true,
- "domain": "domain",
- "enhancedEcommerce": true,
- "nonInteraction": true,
- "optimize": "abc123",
- "sendUserId": true,
- "useGoogleAmpClientId": true,
- "web-useNativeSDK": true,
- "metrics": [
- {
- "from": "email",
- "to": "metric1"
- },
- {
- "from": "trait2",
- "to": "metric2"
- }
- ],
- "resetCustomDimensionsOnPage": [
- {
- "resetCustomDimensionsOnPage": "abc"
- },
- {
- "resetCustomDimensionsOnPage": "xyz"
- }
- ],
- "contentGroupings": [
- {
- "from": "plan",
- "to": "contentGroup1"
- },
- {
- "from": "prop2",
- "to": "contentGroup2"
- }
- ]
- },
- "Enabled": true
- }
- }
- ]
- }
+ name: 'ga360',
+ description: 'Test 37',
+ feature: 'processor',
+ module: 'destination',
+ version: 'v0',
+ input: {
+ request: {
+ body: [
+ {
+ message: {
+ channel: 'web',
+ context: {
+ app: {
+ build: '1.0.0',
+ name: 'RudderLabs JavaScript SDK',
+ namespace: 'com.rudderlabs.javascript',
+ version: '1.0.0',
+ },
+ traits: {
+ email: 'test@rudderstack.com',
+ },
+ library: {
+ name: 'RudderLabs JavaScript SDK',
+ version: '1.0.0',
+ },
+ userAgent:
+ 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36',
+ locale: 'en-US',
+ os: {
+ name: '',
+ version: '',
+ },
+ screen: {
+ density: 2,
+ },
+ },
+ type: 'track',
+ messageId: 'ec5481b6-a926-4d2e-b293-0b3a77c4d3be',
+ originalTimestamp: '2019-10-14T11:15:18.300Z',
+ anonymousId: '00000000000000000000000000',
+ userId: '12345',
+ event: 'Product Shared',
+ properties: {
+ product_id: 'rudderstackorder1',
+ total: 99.99,
+ shipping: 13.99,
+ tax: 20.99,
+ currency: 'INR',
+ url: 'https://www.example.com/abc',
+ },
+ integrations: {
+ All: true,
+ },
+ sentAt: '2019-10-14T11:15:53.296Z',
+ },
+ destination: {
+ Config: {
+ trackingID: 'UA-165994240-1',
+ doubleClick: true,
+ enhancedLinkAttribution: true,
+ classic: true,
+ ignoredReferrers: '',
+ serverClassic: false,
+ includeSearch: true,
+ trackCategorizedPages: true,
+ trackNamedPages: true,
+ sampleRate: '100',
+ siteSpeedSampleRate: '1',
+ setAllMappedProps: true,
+ enableServerSideIdentify: true,
+ serverSideIdentifyEventCategory: 'cat1',
+ serverSideIdentifyEventAction: 'action1',
+ anonymizeIp: true,
+ domain: 'domain',
+ enhancedEcommerce: true,
+ nonInteraction: true,
+ optimize: 'abc123',
+ sendUserId: true,
+ useGoogleAmpClientId: true,
+ 'web-useNativeSDK': true,
+ dimensions: [
+ {
+ from: 'name',
+ to: 'dimension1',
+ },
+ {
+ from: 'custom2',
+ to: 'dimension2',
+ },
+ ],
+ metrics: [
+ {
+ from: 'email',
+ to: 'metric1',
+ },
+ {
+ from: 'trait2',
+ to: 'metric2',
+ },
+ ],
+ resetCustomDimensionsOnPage: [
+ {
+ resetCustomDimensionsOnPage: 'abc',
+ },
+ {
+ resetCustomDimensionsOnPage: 'xyz',
+ },
+ ],
+ contentGroupings: [
+ {
+ from: 'plan',
+ to: 'contentGroup1',
+ },
+ {
+ from: 'prop2',
+ to: 'contentGroup2',
+ },
+ ],
+ },
+ Enabled: true,
+ },
+ },
+ ],
},
- "output": {
- "response": {
- "status": 200,
- "body": [
- {
- "output": {
- "version": "1",
- "type": "REST",
- "method": "POST",
- "endpoint": "https://www.google-analytics.com/collect",
- "headers": {},
- "params": {
- "ul": "en-US",
- "ec": "All",
- "ni": 1,
- "v": "1",
- "t": "event",
- "el": "event",
- "tid": "UA-165994240-1",
- "ds": "web",
- "npa": 1,
- "aip": 1,
- "cid": "00000000000000000000000000",
- "ea": "order starterefundedd",
- "ua": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36",
- "uid": "12345",
- "qt": 124893881700,
- },
- "body": {
- "JSON": {},
- "XML": {},
- "JSON_ARRAY": {},
- "FORM": {}
- },
- "files": {},
- "userId": "00000000000000000000000000"
- },
- "statusCode": 200
- }
- ]
- }
- }
- },
- {
- "name": "ga360",
- "description": "Test 21",
- "feature": "processor",
- "module": "destination",
- "version": "v0",
- "input": {
- "request": {
- "body": [
- {
- "message": {
- "channel": "web",
- "context": {
- "app": {
- "build": "1.0.0",
- "name": "RudderLabs JavaScript SDK",
- "namespace": "com.rudderlabs.javascript",
- "version": "1.0.0"
- },
- "traits": {
- "email": "test@rudderstack.com"
- },
- "library": {
- "name": "RudderLabs JavaScript SDK",
- "version": "1.0.0"
- },
- "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36",
- "locale": "en-US",
- "os": {
- "name": "",
- "version": ""
- },
- "screen": {
- "density": 2
- }
- },
- "type": "track",
- "messageId": "ec5481b6-a926-4d2e-b293-0b3a77c4d3be",
- "originalTimestamp": "2019-10-14T11:15:18.300Z",
- "anonymousId": "00000000000000000000000000",
- "userId": "12345",
- "event": "order starterefundedd",
- "properties": {
- "products": [
- {
- "quantity": 1,
- "sku": "p-298"
- },
- {
- "quantity": 1,
- "sku": "p-299"
- }
- ],
- "testDimension": true,
- "testMetric": true
- },
- "integrations": {
- "All": true
- },
- "sentAt": "2019-10-14T11:15:53.296Z"
- },
- "destination": {
- "Config": {
- "trackingID": "UA-165994240-1",
- "enhancedLinkAttribution": true,
- "classic": true,
- "ignoredReferrers": "",
- "serverClassic": false,
- "includeSearch": true,
- "trackCategorizedPages": true,
- "trackNamedPages": true,
- "sampleRate": "100",
- "siteSpeedSampleRate": "1",
- "setAllMappedProps": true,
- "enableServerSideIdentify": true,
- "serverSideIdentifyEventCategory": "cat1",
- "serverSideIdentifyEventAction": "action1",
- "anonymizeIp": true,
- "domain": "domain",
- "enhancedEcommerce": true,
- "nonInteraction": true,
- "optimize": "abc123",
- "sendUserId": true,
- "useGoogleAmpClientId": true,
- "web-useNativeSDK": true,
- "dimensions": [
- {
- "from": "name",
- "to": "dimension1"
- },
- {
- "from": "custom2",
- "to": "dimension2"
- }
- ],
- "metrics": [
- {
- "from": "email",
- "to": "metric1"
- },
- {
- "from": "trait2",
- "to": "metric2"
- }
- ],
- "resetCustomDimensionsOnPage": [
- {
- "resetCustomDimensionsOnPage": "abc"
- },
- {
- "resetCustomDimensionsOnPage": "xyz"
- }
- ],
- "contentGroupings": [
- {
- "from": "plan",
- "to": "contentGroup1"
- },
- {
- "from": "prop2",
- "to": "contentGroup2"
- }
- ]
- },
- "Enabled": true
- }
- }
- ]
- }
+ },
+ output: {
+ response: {
+ status: 200,
+ body: [
+ {
+ output: {
+ version: '1',
+ type: 'REST',
+ method: 'POST',
+ endpoint: 'https://www.google-analytics.com/collect',
+ headers: {},
+ params: {
+ ev: 100,
+ ea: 'Product Shared',
+ ec: 'All',
+ ni: 1,
+ v: '1',
+ t: 'event',
+ el: 'event',
+ tid: 'UA-165994240-1',
+ ds: 'web',
+ an: 'RudderLabs JavaScript SDK',
+ av: '1.0.0',
+ aiid: 'com.rudderlabs.javascript',
+ npa: 1,
+ aip: 1,
+ cid: '00000000000000000000000000',
+ ua: 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36',
+ uid: '12345',
+ st: 'https://www.example.com/abc',
+ dh: 'www.example.com',
+ dl: 'https://www.example.com/abc',
+ dp: '%2Fabc',
+ ul: 'en-US',
+ qt: 124893881700,
+ },
+ body: {
+ JSON: {},
+ XML: {},
+ JSON_ARRAY: {},
+ FORM: {},
+ },
+ files: {},
+ userId: '00000000000000000000000000',
+ },
+ statusCode: 200,
+ },
+ ],
},
- "output": {
- "response": {
- "status": 200,
- "body": [
- {
- "output": {
- "version": "1",
- "type": "REST",
- "method": "POST",
- "endpoint": "https://www.google-analytics.com/collect",
- "headers": {},
- "params": {
- "ul": "en-US",
- "ec": "All",
- "ni": 1,
- "v": "1",
- "t": "event",
- "el": "event",
- "tid": "UA-165994240-1",
- "ds": "web",
- "an": "RudderLabs JavaScript SDK",
- "av": "1.0.0",
- "aiid": "com.rudderlabs.javascript",
- "aip": 1,
- "cid": "00000000000000000000000000",
- "ea": "order starterefundedd",
- "ua": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36",
- "uid": "12345",
- "qt": 124893881700,
- },
- "body": {
- "JSON": {},
- "XML": {},
- "JSON_ARRAY": {},
- "FORM": {}
- },
- "files": {},
- "userId": "00000000000000000000000000"
- },
- "statusCode": 200
- }
- ]
- }
- }
+ },
},
{
- "name": "ga360",
- "description": "Test 22",
- "feature": "processor",
- "module": "destination",
- "version": "v0",
- "input": {
- "request": {
- "body": [
- {
- "message": {
- "channel": "web",
- "context": {
- "app": {
- "build": "1.0.0",
- "name": "RudderLabs JavaScript SDK",
- "namespace": "com.rudderlabs.javascript",
- "version": "1.0.0"
- },
- "traits": {
- "email": "test@rudderstack.com"
- },
- "library": {
- "name": "RudderLabs JavaScript SDK",
- "version": "1.0.0"
- },
- "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36",
- "locale": "en-US",
- "os": {
- "name": "",
- "version": ""
- },
- "screen": {
- "density": 2
- }
- },
- "type": "track",
- "messageId": "ec5481b6-a926-4d2e-b293-0b3a77c4d3be",
- "originalTimestamp": "2019-10-14T11:15:18.300Z",
- "anonymousId": "00000000000000000000000000",
- "userId": "12345",
- "event": "order starterefundedd",
- "properties": {
- "products": [
- {
- "quantity": 1,
- "sku": "p-298"
- },
- {
- "quantity": 1,
- "sku": "p-299"
- }
- ],
- "testDimension": true,
- "testMetric": true
- },
- "integrations": {
- "All": true
- },
- "sentAt": "2019-10-14T11:15:53.296Z"
- },
- "destination": {
- "Config": {
- "trackingID": "UA-165994240-1",
- "doubleClick": true,
- "enhancedLinkAttribution": true,
- "classic": true,
- "ignoredReferrers": "",
- "serverClassic": false,
- "includeSearch": true,
- "trackCategorizedPages": true,
- "trackNamedPages": true,
- "sampleRate": "100",
- "siteSpeedSampleRate": "1",
- "setAllMappedProps": true,
- "enableServerSideIdentify": true,
- "serverSideIdentifyEventCategory": "cat1",
- "serverSideIdentifyEventAction": "action1",
- "domain": "domain",
- "enhancedEcommerce": true,
- "nonInteraction": true,
- "optimize": "abc123",
- "sendUserId": true,
- "useGoogleAmpClientId": true,
- "web-useNativeSDK": true,
- "dimensions": [
- {
- "from": "name",
- "to": "dimension1"
- },
- {
- "from": "custom2",
- "to": "dimension2"
- }
- ],
- "metrics": [
- {
- "from": "email",
- "to": "metric1"
- },
- {
- "from": "trait2",
- "to": "metric2"
- }
- ],
- "resetCustomDimensionsOnPage": [
- {
- "resetCustomDimensionsOnPage": "abc"
- },
- {
- "resetCustomDimensionsOnPage": "xyz"
- }
- ],
- "contentGroupings": [
- {
- "from": "plan",
- "to": "contentGroup1"
- },
- {
- "from": "prop2",
- "to": "contentGroup2"
- }
- ]
- },
- "Enabled": true
- }
- }
- ]
- }
+ name: 'ga360',
+ description: 'Test 38',
+ feature: 'processor',
+ module: 'destination',
+ version: 'v0',
+ input: {
+ request: {
+ body: [
+ {
+ message: {
+ channel: 'web',
+ context: {
+ app: {
+ build: '1.0.0',
+ name: 'RudderLabs JavaScript SDK',
+ namespace: 'com.rudderlabs.javascript',
+ version: '1.0.0',
+ },
+ traits: {
+ email: 'test@rudderstack.com',
+ },
+ library: {
+ name: 'RudderLabs JavaScript SDK',
+ version: '1.0.0',
+ },
+ userAgent:
+ 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36',
+ locale: 'en-US',
+ os: {
+ name: '',
+ version: '',
+ },
+ screen: {
+ density: 2,
+ },
+ },
+ type: 'track',
+ messageId: 'ec5481b6-a926-4d2e-b293-0b3a77c4d3be',
+ originalTimestamp: '2019-10-14T11:15:18.300Z',
+ anonymousId: '00000000000000000000000000',
+ userId: '12345',
+ event: 'Product List Clicked',
+ properties: {
+ list_id: 'Sample Product List',
+ category: 'Sample Product List',
+ products: [
+ {
+ quantity: 1,
+ price: 24.75,
+ name: 'my product',
+ sku: 'p-298',
+ product_id: '1',
+ },
+ {
+ quantity: 3,
+ price: 24.75,
+ name: 'other product',
+ sku: 'p-299',
+ product_id: '2',
+ },
+ ],
+ },
+ integrations: {
+ All: true,
+ },
+ sentAt: '2019-10-14T11:15:53.296Z',
+ },
+ destination: {
+ Config: {
+ trackingID: 'UA-165994240-1',
+ doubleClick: true,
+ enhancedLinkAttribution: true,
+ classic: true,
+ ignoredReferrers: '',
+ serverClassic: false,
+ includeSearch: true,
+ trackCategorizedPages: true,
+ trackNamedPages: true,
+ sampleRate: '100',
+ siteSpeedSampleRate: '1',
+ setAllMappedProps: true,
+ enableServerSideIdentify: true,
+ serverSideIdentifyEventCategory: 'cat1',
+ serverSideIdentifyEventAction: 'action1',
+ anonymizeIp: true,
+ domain: 'domain',
+ enhancedEcommerce: true,
+ nonInteraction: true,
+ optimize: 'abc123',
+ sendUserId: true,
+ useGoogleAmpClientId: true,
+ 'web-useNativeSDK': true,
+ dimensions: [
+ {
+ from: 'name',
+ to: 'dimension1',
+ },
+ {
+ from: 'custom2',
+ to: 'dimension2',
+ },
+ ],
+ metrics: [
+ {
+ from: 'email',
+ to: 'metric1',
+ },
+ {
+ from: 'trait2',
+ to: 'metric2',
+ },
+ ],
+ resetCustomDimensionsOnPage: [
+ {
+ resetCustomDimensionsOnPage: 'abc',
+ },
+ {
+ resetCustomDimensionsOnPage: 'xyz',
+ },
+ ],
+ contentGroupings: [
+ {
+ from: 'plan',
+ to: 'contentGroup1',
+ },
+ {
+ from: 'prop2',
+ to: 'contentGroup2',
+ },
+ ],
+ },
+ Enabled: true,
+ },
+ },
+ ],
},
- "output": {
- "response": {
- "status": 200,
- "body": [
- {
- "output": {
- "version": "1",
- "type": "REST",
- "method": "POST",
- "endpoint": "https://www.google-analytics.com/collect",
- "headers": {},
- "params": {
- "ul": "en-US",
- "ec": "All",
- "ni": 1,
- "v": "1",
- "t": "event",
- "el": "event",
- "tid": "UA-165994240-1",
- "ds": "web",
- "an": "RudderLabs JavaScript SDK",
- "av": "1.0.0",
- "aiid": "com.rudderlabs.javascript",
- "npa": 1,
- "cid": "00000000000000000000000000",
- "ea": "order starterefundedd",
- "ua": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36",
- "uid": "12345",
- "qt": 124893881700,
- },
- "body": {
- "JSON": {},
- "XML": {},
- "JSON_ARRAY": {},
- "FORM": {}
- },
- "files": {},
- "userId": "00000000000000000000000000"
- },
- "statusCode": 200
- }
- ]
- }
- }
- },
- {
- "name": "ga360",
- "description": "Test 23",
- "feature": "processor",
- "module": "destination",
- "version": "v0",
- "input": {
- "request": {
- "body": [
- {
- "message": {
- "channel": "web",
- "context": {
- "app": {
- "build": "1.0.0",
- "name": "RudderLabs JavaScript SDK",
- "namespace": "com.rudderlabs.javascript",
- "version": "1.0.0"
- },
- "traits": {
- "email": "test@rudderstack.com"
- },
- "library": {
- "name": "RudderLabs JavaScript SDK",
- "version": "1.0.0"
- },
- "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36",
- "locale": "en-US",
- "os": {
- "name": "",
- "version": ""
- },
- "screen": {
- "density": 2
- }
- },
- "type": "track",
- "messageId": "ec5481b6-a926-4d2e-b293-0b3a77c4d3be",
- "originalTimestamp": "2019-10-14T11:15:18.300Z",
- "anonymousId": "00000000000000000000000000",
- "userId": "12345",
- "event": "order starterefundedd",
- "properties": {
- "products": [
- {
- "quantity": 1,
- "sku": "p-298"
- },
- {
- "quantity": 1,
- "sku": "p-299"
- }
- ],
- "testDimension": true,
- "testMetric": true
- },
- "integrations": {
- "All": true
- },
- "sentAt": "2019-10-14T11:15:53.296Z"
- },
- "destination": {
- "Config": {
- "trackingID": "UA-165994240-1",
- "doubleClick": true,
- "classic": true,
- "ignoredReferrers": "",
- "serverClassic": false,
- "includeSearch": true,
- "trackCategorizedPages": true,
- "trackNamedPages": true,
- "sampleRate": "100",
- "siteSpeedSampleRate": "1",
- "setAllMappedProps": true,
- "enableServerSideIdentify": true,
- "serverSideIdentifyEventCategory": "cat1",
- "serverSideIdentifyEventAction": "action1",
- "anonymizeIp": true,
- "domain": "domain",
- "enhancedEcommerce": true,
- "nonInteraction": true,
- "optimize": "abc123",
- "sendUserId": true,
- "useGoogleAmpClientId": true,
- "web-useNativeSDK": true,
- "dimensions": [
- {
- "from": "name",
- "to": "dimension1"
- },
- {
- "from": "custom2",
- "to": "dimension2"
- }
- ],
- "metrics": [
- {
- "from": "email",
- "to": "metric1"
- },
- {
- "from": "trait2",
- "to": "metric2"
- }
- ],
- "resetCustomDimensionsOnPage": [
- {
- "resetCustomDimensionsOnPage": "abc"
- },
- {
- "resetCustomDimensionsOnPage": "xyz"
- }
- ],
- "contentGroupings": [
- {
- "from": "plan",
- "to": "contentGroup1"
- },
- {
- "from": "prop2",
- "to": "contentGroup2"
- }
- ]
- },
- "Enabled": true
- }
- }
- ]
- }
+ },
+ output: {
+ response: {
+ status: 200,
+ body: [
+ {
+ output: {
+ version: '1',
+ type: 'REST',
+ method: 'POST',
+ endpoint: 'https://www.google-analytics.com/collect',
+ headers: {},
+ params: {
+ ea: 'Product List Clicked',
+ ec: 'Sample Product List',
+ pa: 'click',
+ il1pi1id: '1',
+ pr1cd1: 'my product',
+ il1pi1nm: 'my product',
+ il1pi1pr: 24.75,
+ il1pi2id: '2',
+ pr2cd1: 'other product',
+ il1pi2nm: 'other product',
+ il1pi2pr: 24.75,
+ v: '1',
+ t: 'event',
+ el: 'event',
+ tid: 'UA-165994240-1',
+ ds: 'web',
+ an: 'RudderLabs JavaScript SDK',
+ av: '1.0.0',
+ aiid: 'com.rudderlabs.javascript',
+ npa: 1,
+ aip: 1,
+ il1nm: 'Sample Product List',
+ ua: 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36',
+ cid: '00000000000000000000000000',
+ uid: '12345',
+ ni: 1,
+ il1pi2qt: 3,
+ il1pi1qt: 1,
+ ul: 'en-US',
+ qt: 124893881700,
+ },
+ body: {
+ JSON: {},
+ XML: {},
+ JSON_ARRAY: {},
+ FORM: {},
+ },
+ files: {},
+ userId: '00000000000000000000000000',
+ },
+ statusCode: 200,
+ },
+ ],
},
- "output": {
- "response": {
- "status": 200,
- "body": [
- {
- "output": {
- "version": "1",
- "type": "REST",
- "method": "POST",
- "endpoint": "https://www.google-analytics.com/collect",
- "headers": {},
- "params": {
- "ul": "en-US",
- "ec": "All",
- "ni": 1,
- "v": "1",
- "t": "event",
- "el": "event",
- "tid": "UA-165994240-1",
- "ds": "web",
- "an": "RudderLabs JavaScript SDK",
- "av": "1.0.0",
- "aiid": "com.rudderlabs.javascript",
- "npa": 1,
- "aip": 1,
- "cid": "00000000000000000000000000",
- "ea": "order starterefundedd",
- "ua": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36",
- "uid": "12345",
- "qt": 124893881700,
- },
- "body": {
- "JSON": {},
- "XML": {},
- "JSON_ARRAY": {},
- "FORM": {}
- },
- "files": {},
- "userId": "00000000000000000000000000"
- },
- "statusCode": 200
- }
- ]
- }
- }
+ },
},
{
- "name": "ga360",
- "description": "Test 24",
- "feature": "processor",
- "module": "destination",
- "version": "v0",
- "input": {
- "request": {
- "body": [
- {
- "message": {
- "channel": "web",
- "context": {
- "app": {
- "build": "1.0.0",
- "name": "RudderLabs JavaScript SDK",
- "namespace": "com.rudderlabs.javascript",
- "version": "1.0.0"
- },
- "traits": {
- "email": "test@rudderstack.com"
- },
- "library": {
- "name": "RudderLabs JavaScript SDK",
- "version": "1.0.0"
- },
- "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36",
- "locale": "en-US",
- "os": {
- "name": "",
- "version": ""
- },
- "screen": {
- "density": 2
- }
- },
- "type": "track",
- "messageId": "ec5481b6-a926-4d2e-b293-0b3a77c4d3be",
- "originalTimestamp": "2019-10-14T11:15:18.300Z",
- "anonymousId": "00000000000000000000000000",
- "userId": "12345",
- "event": "linkid test",
- "properties": {
- "linkid": "abc123",
- "testDimension": true,
- "testMetric": true
- },
- "integrations": {
- "All": true
- },
- "sentAt": "2019-10-14T11:15:53.296Z"
- },
- "destination": {
- "Config": {
- "trackingID": "UA-165994240-1",
- "doubleClick": true,
- "enhancedLinkAttribution": true,
- "classic": true,
- "ignoredReferrers": "",
- "serverClassic": false,
- "includeSearch": true,
- "trackCategorizedPages": true,
- "trackNamedPages": true,
- "sampleRate": "100",
- "siteSpeedSampleRate": "1",
- "setAllMappedProps": true,
- "enableServerSideIdentify": true,
- "serverSideIdentifyEventCategory": "cat1",
- "serverSideIdentifyEventAction": "action1",
- "domain": "domain",
- "enhancedEcommerce": true,
- "nonInteraction": true,
- "optimize": "abc123",
- "sendUserId": true,
- "useGoogleAmpClientId": true,
- "web-useNativeSDK": true,
- "dimensions": [
- {
- "from": "name",
- "to": "dimension1"
- },
- {
- "from": "custom2",
- "to": "dimension2"
- }
- ],
- "metrics": [
- {
- "from": "email",
- "to": "metric1"
- },
- {
- "from": "trait2",
- "to": "metric2"
- }
- ],
- "resetCustomDimensionsOnPage": [
- {
- "resetCustomDimensionsOnPage": "abc"
- },
- {
- "resetCustomDimensionsOnPage": "xyz"
- }
- ],
- "contentGroupings": [
- {
- "from": "plan",
- "to": "contentGroup1"
- },
- {
- "from": "prop2",
- "to": "contentGroup2"
- }
- ]
- },
- "Enabled": true
- }
- }
- ]
- }
+ name: 'ga360',
+ description: 'Test 39',
+ feature: 'processor',
+ module: 'destination',
+ version: 'v0',
+ input: {
+ request: {
+ body: [
+ {
+ message: {
+ channel: 'web',
+ context: {
+ app: {
+ build: '1.0.0',
+ name: 'RudderLabs JavaScript SDK',
+ namespace: 'com.rudderlabs.javascript',
+ version: '1.0.0',
+ },
+ traits: {
+ email: 'test@rudderstack.com',
+ },
+ library: {
+ name: 'RudderLabs JavaScript SDK',
+ version: '1.0.0',
+ },
+ userAgent:
+ 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36',
+ locale: 'en-US',
+ os: {
+ name: '',
+ version: '',
+ },
+ screen: {
+ density: 2,
+ },
+ },
+ type: 'track',
+ messageId: 'ec5481b6-a926-4d2e-b293-0b3a77c4d3be',
+ originalTimestamp: '2019-10-14T11:15:18.300Z',
+ anonymousId: '00000000000000000000000000',
+ userId: '12345',
+ event: 'Product List Clicked',
+ properties: {
+ list_id: 'Sample Product List',
+ category: 'Sample Product List',
+ products: [
+ {
+ quantity: 1,
+ price: 24.75,
+ name: 'my product',
+ sku: 'p-298',
+ },
+ {
+ quantity: 3,
+ price: 24.75,
+ name: 'other product',
+ sku: 'p-299',
+ },
+ ],
+ },
+ integrations: {
+ All: true,
+ },
+ sentAt: '2019-10-14T11:15:53.296Z',
+ },
+ destination: {
+ Config: {
+ trackingID: 'UA-165994240-1',
+ doubleClick: true,
+ enhancedLinkAttribution: true,
+ classic: true,
+ ignoredReferrers: '',
+ serverClassic: false,
+ includeSearch: true,
+ trackCategorizedPages: true,
+ trackNamedPages: true,
+ sampleRate: '100',
+ siteSpeedSampleRate: '1',
+ setAllMappedProps: true,
+ enableServerSideIdentify: true,
+ serverSideIdentifyEventCategory: 'cat1',
+ serverSideIdentifyEventAction: 'action1',
+ anonymizeIp: true,
+ domain: 'domain',
+ enhancedEcommerce: true,
+ nonInteraction: true,
+ optimize: 'abc123',
+ sendUserId: true,
+ useGoogleAmpClientId: true,
+ 'web-useNativeSDK': true,
+ dimensions: [
+ {
+ from: 'name',
+ to: 'dimension1',
+ },
+ {
+ from: 'custom2',
+ to: 'dimension2',
+ },
+ ],
+ metrics: [
+ {
+ from: 'email',
+ to: 'metric1',
+ },
+ {
+ from: 'trait2',
+ to: 'metric2',
+ },
+ ],
+ resetCustomDimensionsOnPage: [
+ {
+ resetCustomDimensionsOnPage: 'abc',
+ },
+ {
+ resetCustomDimensionsOnPage: 'xyz',
+ },
+ ],
+ contentGroupings: [
+ {
+ from: 'plan',
+ to: 'contentGroup1',
+ },
+ {
+ from: 'prop2',
+ to: 'contentGroup2',
+ },
+ ],
+ },
+ Enabled: true,
+ },
+ },
+ ],
},
- "output": {
- "response": {
- "status": 200,
- "body": [
- {
- "output": {
- "version": "1",
- "type": "REST",
- "method": "POST",
- "endpoint": "https://www.google-analytics.com/collect",
- "headers": {},
- "params": {
- "ul": "en-US",
- "ec": "All",
- "ni": 1,
- "v": "1",
- "t": "event",
- "el": "event",
- "tid": "UA-165994240-1",
- "ds": "web",
- "an": "RudderLabs JavaScript SDK",
- "av": "1.0.0",
- "aiid": "com.rudderlabs.javascript",
- "npa": 1,
- "linkid": "abc123",
- "cid": "00000000000000000000000000",
- "ea": "linkid test",
- "ua": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36",
- "uid": "12345",
- "qt": 124893881700,
- },
- "body": {
- "JSON": {},
- "XML": {},
- "JSON_ARRAY": {},
- "FORM": {}
- },
- "files": {},
- "userId": "00000000000000000000000000"
- },
- "statusCode": 200
- }
- ]
- }
- }
- },
- {
- "name": "ga360",
- "description": "Test 25",
- "feature": "processor",
- "module": "destination",
- "version": "v0",
- "input": {
- "request": {
- "body": [
- {
- "message": {
- "channel": "web",
- "context": {
- "app": {
- "build": "1.0.0",
- "name": "RudderLabs JavaScript SDK",
- "namespace": "com.rudderlabs.javascript",
- "version": "1.0.0"
- },
- "traits": {
- "email": "test@rudderstack.com"
- },
- "library": {
- "name": "RudderLabs JavaScript SDK",
- "version": "1.0.0"
- },
- "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36",
- "locale": "en-US",
- "os": {
- "name": "",
- "version": ""
- },
- "screen": {
- "density": 2
- },
- "campaign": {
- "name": "sampleName",
- "source": "sampleSource",
- "medium": "sampleMedium",
- "content": "sampleContent",
- "term": "sampleTerm"
- }
- },
- "type": "track",
- "messageId": "ec5481b6-a926-4d2e-b293-0b3a77c4d3be",
- "originalTimestamp": "2019-10-14T11:15:18.300Z",
- "anonymousId": "00000000000000000000000000",
- "userId": "12345",
- "event": "campaign test",
- "properties": {
- "testDimension": true,
- "testMetric": true
- },
- "integrations": {
- "All": true
- },
- "sentAt": "2019-10-14T11:15:53.296Z"
- },
- "destination": {
- "Config": {
- "trackingID": "UA-165994240-1",
- "doubleClick": true,
- "enhancedLinkAttribution": true,
- "classic": true,
- "ignoredReferrers": "",
- "serverClassic": false,
- "includeSearch": true,
- "trackCategorizedPages": true,
- "trackNamedPages": true,
- "sampleRate": "100",
- "siteSpeedSampleRate": "1",
- "setAllMappedProps": true,
- "enableServerSideIdentify": true,
- "serverSideIdentifyEventCategory": "cat1",
- "serverSideIdentifyEventAction": "action1",
- "domain": "domain",
- "enhancedEcommerce": true,
- "nonInteraction": true,
- "optimize": "abc123",
- "sendUserId": true,
- "useGoogleAmpClientId": true,
- "web-useNativeSDK": true,
- "dimensions": [
- {
- "from": "name",
- "to": "dimension1"
- },
- {
- "from": "custom2",
- "to": "dimension2"
- }
- ],
- "metrics": [
- {
- "from": "email",
- "to": "metric1"
- },
- {
- "from": "trait2",
- "to": "metric2"
- }
- ],
- "resetCustomDimensionsOnPage": [
- {
- "resetCustomDimensionsOnPage": "abc"
- },
- {
- "resetCustomDimensionsOnPage": "xyz"
- }
- ],
- "contentGroupings": [
- {
- "from": "plan",
- "to": "contentGroup1"
- },
- {
- "from": "prop2",
- "to": "contentGroup2"
- }
- ]
- },
- "Enabled": true
- }
- }
- ]
- }
+ },
+ output: {
+ response: {
+ status: 200,
+ body: [
+ {
+ output: {
+ version: '1',
+ type: 'REST',
+ method: 'POST',
+ endpoint: 'https://www.google-analytics.com/collect',
+ headers: {},
+ params: {
+ ea: 'Product List Clicked',
+ ec: 'Sample Product List',
+ pa: 'click',
+ il1pi1id: 'p-298',
+ pr1cd1: 'my product',
+ il1pi1nm: 'my product',
+ il1pi1pr: 24.75,
+ il1pi2id: 'p-299',
+ pr2cd1: 'other product',
+ il1pi2nm: 'other product',
+ il1pi2pr: 24.75,
+ v: '1',
+ t: 'event',
+ el: 'event',
+ tid: 'UA-165994240-1',
+ ds: 'web',
+ an: 'RudderLabs JavaScript SDK',
+ av: '1.0.0',
+ aiid: 'com.rudderlabs.javascript',
+ npa: 1,
+ aip: 1,
+ il1nm: 'Sample Product List',
+ ua: 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36',
+ cid: '00000000000000000000000000',
+ uid: '12345',
+ ul: 'en-US',
+ il1pi2qt: 3,
+ il1pi1qt: 1,
+ ni: 1,
+ qt: 124893881700,
+ },
+ body: {
+ JSON: {},
+ XML: {},
+ JSON_ARRAY: {},
+ FORM: {},
+ },
+ files: {},
+ userId: '00000000000000000000000000',
+ },
+ statusCode: 200,
+ },
+ ],
},
- "output": {
- "response": {
- "status": 200,
- "body": [
- {
- "output": {
- "version": "1",
- "type": "REST",
- "method": "POST",
- "endpoint": "https://www.google-analytics.com/collect",
- "headers": {},
- "params": {
- "ul": "en-US",
- "ec": "All",
- "ni": 1,
- "v": "1",
- "t": "event",
- "el": "event",
- "tid": "UA-165994240-1",
- "ds": "web",
- "an": "RudderLabs JavaScript SDK",
- "av": "1.0.0",
- "aiid": "com.rudderlabs.javascript",
- "npa": 1,
- "cn": "sampleName",
- "cs": "sampleSource",
- "cm": "sampleMedium",
- "cc": "sampleContent",
- "ck": "sampleTerm",
- "cid": "00000000000000000000000000",
- "ea": "campaign test",
- "ua": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36",
- "uid": "12345",
- "qt": 124893881700,
- },
- "body": {
- "JSON": {},
- "XML": {},
- "JSON_ARRAY": {},
- "FORM": {}
- },
- "files": {},
- "userId": "00000000000000000000000000"
- },
- "statusCode": 200
- }
- ]
- }
- }
+ },
},
{
- "name": "ga360",
- "description": "Test 26",
- "feature": "processor",
- "module": "destination",
- "version": "v0",
- "input": {
- "request": {
- "body": [
- {
- "message": {
- "channel": "web",
- "context": {
- "app": {
- "build": "1.0.0",
- "name": "RudderLabs JavaScript SDK",
- "namespace": "com.rudderlabs.javascript",
- "version": "1.0.0"
- },
- "traits": {
- "email": "test@rudderstack.com"
- },
- "library": {
- "name": "RudderLabs JavaScript SDK",
- "version": "1.0.0"
- },
- "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36",
- "locale": "en-US",
- "os": {
- "name": "",
- "version": ""
- },
- "screen": {
- "density": 2
- },
- "campaign": {
- "name": "sampleName",
- "source": "sampleSource",
- "medium": "sampleMedium",
- "content": "sampleContent",
- "term": "sampleTerm"
- }
- },
- "type": "track",
- "messageId": "ec5481b6-a926-4d2e-b293-0b3a77c4d3be",
- "originalTimestamp": "2019-10-14T11:15:18.300Z",
- "anonymousId": "00000000000000000000000000",
- "event": "campaign test",
- "properties": {
- "testDimension": true,
- "testMetric": true
- },
- "integrations": {
- "All": true
- },
- "sentAt": "2019-10-14T11:15:53.296Z"
- },
- "destination": {
- "Config": {
- "trackingID": "UA-165994240-1",
- "doubleClick": true,
- "enhancedLinkAttribution": true,
- "classic": true,
- "ignoredReferrers": "",
- "serverClassic": false,
- "includeSearch": true,
- "trackCategorizedPages": true,
- "trackNamedPages": true,
- "sampleRate": "100",
- "siteSpeedSampleRate": "1",
- "setAllMappedProps": true,
- "enableServerSideIdentify": true,
- "serverSideIdentifyEventCategory": "cat1",
- "serverSideIdentifyEventAction": "action1",
- "domain": "domain",
- "enhancedEcommerce": true,
- "nonInteraction": true,
- "optimize": "abc123",
- "sendUserId": true,
- "useGoogleAmpClientId": true,
- "web-useNativeSDK": true,
- "dimensions": [
- {
- "from": "name",
- "to": "dimension1"
- },
- {
- "from": "custom2",
- "to": "dimension2"
- }
- ],
- "metrics": [
- {
- "from": "email",
- "to": "metric1"
- },
- {
- "from": "trait2",
- "to": "metric2"
- }
- ],
- "resetCustomDimensionsOnPage": [
- {
- "resetCustomDimensionsOnPage": "abc"
- },
- {
- "resetCustomDimensionsOnPage": "xyz"
- }
- ],
- "contentGroupings": [
- {
- "from": "plan",
- "to": "contentGroup1"
- },
- {
- "from": "prop2",
- "to": "contentGroup2"
- }
- ]
- },
- "Enabled": true
- }
- }
- ]
- }
+ name: 'ga360',
+ description: 'Test 40',
+ feature: 'processor',
+ module: 'destination',
+ version: 'v0',
+ input: {
+ request: {
+ body: [
+ {
+ message: {
+ channel: 'web',
+ context: {
+ app: {
+ build: '1.0.0',
+ name: 'RudderLabs JavaScript SDK',
+ namespace: 'com.rudderlabs.javascript',
+ version: '1.0.0',
+ },
+ traits: {
+ email: 'test@rudderstack.com',
+ },
+ library: {
+ name: 'RudderLabs JavaScript SDK',
+ version: '1.0.0',
+ },
+ userAgent:
+ 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36',
+ locale: 'en-US',
+ os: {
+ name: '',
+ version: '',
+ },
+ screen: {
+ density: 2,
+ },
+ },
+ type: 'track',
+ messageId: 'ec5481b6-a926-4d2e-b293-0b3a77c4d3be',
+ originalTimestamp: '2019-10-14T11:15:18.300Z',
+ anonymousId: '00000000000000000000000000',
+ userId: '12345',
+ event: 'Product List Clicked',
+ properties: {
+ list_id: 'Sample Product List',
+ category: 'Sample Product List',
+ products: [],
+ },
+ integrations: {
+ All: true,
+ },
+ sentAt: '2019-10-14T11:15:53.296Z',
+ },
+ destination: {
+ Config: {
+ trackingID: 'UA-165994240-1',
+ doubleClick: true,
+ enhancedLinkAttribution: true,
+ classic: true,
+ ignoredReferrers: '',
+ serverClassic: false,
+ includeSearch: true,
+ trackCategorizedPages: true,
+ trackNamedPages: true,
+ sampleRate: '100',
+ siteSpeedSampleRate: '1',
+ setAllMappedProps: true,
+ enableServerSideIdentify: true,
+ serverSideIdentifyEventCategory: 'cat1',
+ serverSideIdentifyEventAction: 'action1',
+ anonymizeIp: true,
+ domain: 'domain',
+ enhancedEcommerce: true,
+ nonInteraction: true,
+ optimize: 'abc123',
+ sendUserId: true,
+ useGoogleAmpClientId: true,
+ 'web-useNativeSDK': true,
+ dimensions: [
+ {
+ from: 'name',
+ to: 'dimension1',
+ },
+ {
+ from: 'custom2',
+ to: 'dimension2',
+ },
+ ],
+ metrics: [
+ {
+ from: 'email',
+ to: 'metric1',
+ },
+ {
+ from: 'trait2',
+ to: 'metric2',
+ },
+ ],
+ resetCustomDimensionsOnPage: [
+ {
+ resetCustomDimensionsOnPage: 'abc',
+ },
+ {
+ resetCustomDimensionsOnPage: 'xyz',
+ },
+ ],
+ contentGroupings: [
+ {
+ from: 'plan',
+ to: 'contentGroup1',
+ },
+ {
+ from: 'prop2',
+ to: 'contentGroup2',
+ },
+ ],
+ },
+ Enabled: true,
+ },
+ },
+ ],
},
- "output": {
- "response": {
- "status": 200,
- "body": [
- {
- "output": {
- "version": "1",
- "type": "REST",
- "method": "POST",
- "endpoint": "https://www.google-analytics.com/collect",
- "headers": {},
- "params": {
- "ul": "en-US",
- "ec": "All",
- "ni": 1,
- "v": "1",
- "t": "event",
- "el": "event",
- "tid": "UA-165994240-1",
- "ds": "web",
- "an": "RudderLabs JavaScript SDK",
- "av": "1.0.0",
- "aiid": "com.rudderlabs.javascript",
- "npa": 1,
- "cn": "sampleName",
- "cs": "sampleSource",
- "cm": "sampleMedium",
- "cc": "sampleContent",
- "ck": "sampleTerm",
- "cid": "00000000000000000000000000",
- "ea": "campaign test",
- "ua": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36",
- "qt": 124893881700,
- },
- "body": {
- "JSON": {},
- "XML": {},
- "JSON_ARRAY": {},
- "FORM": {}
- },
- "files": {},
- "userId": "00000000000000000000000000"
- },
- "statusCode": 200
- }
- ]
- }
- }
- },
- {
- "name": "ga360",
- "description": "Test 27",
- "feature": "processor",
- "module": "destination",
- "version": "v0",
- "input": {
- "request": {
- "body": [
- {
- "message": {
- "channel": "web",
- "context": {
- "app": {
- "build": "1.0.0",
- "name": "RudderLabs JavaScript SDK",
- "namespace": "com.rudderlabs.javascript",
- "version": "1.0.0"
- },
- "traits": {
- "email": "test@rudderstack.com"
- },
- "library": {
- "name": "RudderLabs JavaScript SDK",
- "version": "1.0.0"
- },
- "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36",
- "locale": "en-US",
- "os": {
- "name": "",
- "version": ""
- },
- "screen": {
- "density": 2
- },
- "campaign": {
- "name": "sampleName",
- "source": "sampleSource",
- "medium": "sampleMedium",
- "content": "sampleContent",
- "term": "sampleTerm"
- }
- },
- "type": "track",
- "messageId": "ec5481b6-a926-4d2e-b293-0b3a77c4d3be",
- "originalTimestamp": "2019-10-14T11:15:18.300Z",
- "anonymousId": "00000000000000000000000000",
- "event": "campaign test",
- "properties": {
- "testDimension": true,
- "testMetric": true
- },
- "integrations": {
- "All": true
- },
- "sentAt": "2019-10-14T11:15:53.296Z"
- },
- "destination": {
- "Config": {
- "trackingID": "UA-165994240-1",
- "doubleClick": true,
- "enhancedLinkAttribution": true,
- "classic": true,
- "ignoredReferrers": "",
- "serverClassic": false,
- "includeSearch": true,
- "trackCategorizedPages": true,
- "trackNamedPages": true,
- "sampleRate": "100",
- "siteSpeedSampleRate": "1",
- "setAllMappedProps": true,
- "enableServerSideIdentify": true,
- "serverSideIdentifyEventCategory": "cat1",
- "domain": "domain",
- "enhancedEcommerce": true,
- "nonInteraction": true,
- "optimize": "abc123",
- "sendUserId": true,
- "useGoogleAmpClientId": true,
- "web-useNativeSDK": true,
- "dimensions": [
- {
- "from": "name",
- "to": "dimension1"
- },
- {
- "from": "custom2",
- "to": "dimension2"
- }
- ],
- "metrics": [
- {
- "from": "email",
- "to": "metric1"
- },
- {
- "from": "trait2",
- "to": "metric2"
- }
- ],
- "resetCustomDimensionsOnPage": [
- {
- "resetCustomDimensionsOnPage": "abc"
- },
- {
- "resetCustomDimensionsOnPage": "xyz"
- }
- ],
- "contentGroupings": [
- {
- "from": "plan",
- "to": "contentGroup1"
- },
- {
- "from": "prop2",
- "to": "contentGroup2"
- }
- ]
- },
- "Enabled": true
- }
- }
- ]
- }
+ },
+ output: {
+ response: {
+ status: 200,
+ body: [
+ {
+ output: {
+ version: '1',
+ type: 'REST',
+ method: 'POST',
+ endpoint: 'https://www.google-analytics.com/collect',
+ headers: {},
+ params: {
+ ni: 1,
+ ea: 'Product List Clicked',
+ ec: 'Sample Product List',
+ pa: 'click',
+ el: 'event',
+ v: '1',
+ t: 'event',
+ tid: 'UA-165994240-1',
+ ds: 'web',
+ npa: 1,
+ aip: 1,
+ ua: 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36',
+ ul: 'en-US',
+ an: 'RudderLabs JavaScript SDK',
+ av: '1.0.0',
+ aiid: 'com.rudderlabs.javascript',
+ il1nm: 'Sample Product List',
+ uid: '12345',
+ cid: '00000000000000000000000000',
+ qt: 124893881700,
+ },
+ body: {
+ JSON: {},
+ JSON_ARRAY: {},
+ XML: {},
+ FORM: {},
+ },
+ files: {},
+ userId: '00000000000000000000000000',
+ },
+ statusCode: 200,
+ },
+ ],
},
- "output": {
- "response": {
- "status": 200,
- "body": [
- {
- "output": {
- "version": "1",
- "type": "REST",
- "method": "POST",
- "endpoint": "https://www.google-analytics.com/collect",
- "headers": {},
- "params": {
- "ul": "en-US",
- "ec": "All",
- "ni": 1,
- "v": "1",
- "t": "event",
- "el": "event",
- "tid": "UA-165994240-1",
- "ds": "web",
- "an": "RudderLabs JavaScript SDK",
- "av": "1.0.0",
- "aiid": "com.rudderlabs.javascript",
- "npa": 1,
- "cn": "sampleName",
- "cs": "sampleSource",
- "cm": "sampleMedium",
- "cc": "sampleContent",
- "ck": "sampleTerm",
- "cid": "00000000000000000000000000",
- "ea": "campaign test",
- "ua": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36",
- "qt": 124893881700,
- },
- "body": {
- "JSON": {},
- "XML": {},
- "JSON_ARRAY": {},
- "FORM": {}
- },
- "files": {},
- "userId": "00000000000000000000000000"
- },
- "statusCode": 200
- }
- ]
- }
- }
+ },
},
{
- "name": "ga360",
- "description": "Test 28",
- "feature": "processor",
- "module": "destination",
- "version": "v0",
- "input": {
- "request": {
- "body": [
- {
- "message": {
- "channel": "web",
- "context": {
- "app": {
- "build": "1.0.0",
- "name": "RudderLabs JavaScript SDK",
- "namespace": "com.rudderlabs.javascript",
- "version": "1.1.2"
- },
- "traits": {
- "abc": "1234"
- },
- "library": {
- "name": "RudderLabs JavaScript SDK",
- "version": "1.1.2"
- },
- "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/83.0.4103.97 Safari/537.36",
- "locale": "en-GB",
- "os": {
- "name": "",
- "version": ""
- },
- "screen": {
- "density": 2
- },
- "page": {
- "path": "/tests/html/ecomm_test.html",
- "referrer": "http://0.0.0.0:1112/tests/html/",
- "search": "",
- "title": "GA Ecommerce Test",
- "url": "http://0.0.0.0:1112/tests/html/ecomm_test.html"
- }
- },
- "type": "identify",
- "messageId": "bc8a6af8-37fd-46a9-9592-ea29a256435f",
- "originalTimestamp": "2020-06-22T11:30:32.493Z",
- "anonymousId": "38e169a1-3234-46f7-9ceb-c1a6a69005fe",
- "userId": "123",
- "integrations": {
- "All": true
- },
- "sentAt": "2020-06-22T11:30:32.494Z"
- },
- "destination": {
- "Config": {
- "trackingID": "UA-165994240-1",
- "doubleClick": true,
- "enhancedLinkAttribution": true,
- "classic": true,
- "ignoredReferrers": "",
- "serverClassic": false,
- "includeSearch": true,
- "trackCategorizedPages": true,
- "trackNamedPages": true,
- "sampleRate": "100",
- "siteSpeedSampleRate": "1",
- "setAllMappedProps": true,
- "enableServerSideIdentify": true,
- "serverSideIdentifyEventCategory": "cat1",
- "domain": "domain",
- "enhancedEcommerce": true,
- "nonInteraction": true,
- "optimize": "abc123",
- "sendUserId": true,
- "useGoogleAmpClientId": true,
- "web-useNativeSDK": true,
- "dimensions": [
- {
- "from": "name",
- "to": "dimension1"
- },
- {
- "from": "custom2",
- "to": "dimension2"
- }
- ],
- "metrics": [
- {
- "from": "email",
- "to": "metric1"
- },
- {
- "from": "trait2",
- "to": "metric2"
- }
- ],
- "resetCustomDimensionsOnPage": [
- {
- "resetCustomDimensionsOnPage": "abc"
- },
- {
- "resetCustomDimensionsOnPage": "xyz"
- }
- ],
- "contentGroupings": [
- {
- "from": "plan",
- "to": "contentGroup1"
- },
- {
- "from": "prop2",
- "to": "contentGroup2"
- }
- ]
- },
- "Enabled": true
- }
- }
- ]
- }
+ name: 'ga360',
+ description: 'Test 41',
+ feature: 'processor',
+ module: 'destination',
+ version: 'v0',
+ input: {
+ request: {
+ body: [
+ {
+ message: {
+ channel: 'web',
+ context: {
+ app: {
+ build: '1.0.0',
+ name: 'RudderLabs JavaScript SDK',
+ namespace: 'com.rudderlabs.javascript',
+ version: '1.0.0',
+ },
+ traits: {
+ email: 'test@rudderstack.com',
+ },
+ library: {
+ name: 'RudderLabs JavaScript SDK',
+ version: '1.0.0',
+ },
+ userAgent:
+ 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36',
+ locale: 'en-US',
+ os: {
+ name: '',
+ version: '',
+ },
+ screen: {
+ density: 2,
+ },
+ },
+ type: 'track',
+ messageId: 'ec5481b6-a926-4d2e-b293-0b3a77c4d3be',
+ originalTimestamp: '2019-10-14T11:15:18.300Z',
+ anonymousId: '00000000000000000000000000',
+ userId: '12345',
+ event: 'Order Cancelled',
+ properties: {
+ order_id: 'rudderstackorder1',
+ total: 99.99,
+ shipping: 13.99,
+ tax: 20.99,
+ currency: 'INR',
+ products: [
+ {
+ quantity: 1,
+ price: 24.75,
+ name: 'my product',
+ sku: 'p-298',
+ product_id: '1',
+ },
+ {
+ quantity: 3,
+ price: 24.75,
+ name: 'other product',
+ sku: 'p-299',
+ product_id: '2',
+ },
+ ],
+ },
+ integrations: {
+ All: true,
+ },
+ sentAt: '2019-10-14T11:15:53.296Z',
+ },
+ destination: {
+ Config: {
+ trackingID: 'UA-165994240-1',
+ doubleClick: true,
+ enhancedLinkAttribution: true,
+ classic: true,
+ ignoredReferrers: '',
+ serverClassic: false,
+ includeSearch: true,
+ trackCategorizedPages: true,
+ trackNamedPages: true,
+ sampleRate: '100',
+ siteSpeedSampleRate: '1',
+ setAllMappedProps: true,
+ enableServerSideIdentify: true,
+ serverSideIdentifyEventCategory: 'cat1',
+ serverSideIdentifyEventAction: 'action1',
+ anonymizeIp: true,
+ domain: 'domain',
+ enhancedEcommerce: true,
+ nonInteraction: true,
+ optimize: 'abc123',
+ sendUserId: true,
+ useGoogleAmpClientId: true,
+ 'web-useNativeSDK': true,
+ dimensions: [
+ {
+ from: 'name',
+ to: 'dimension1',
+ },
+ {
+ from: 'custom2',
+ to: 'dimension2',
+ },
+ ],
+ metrics: [
+ {
+ from: 'email',
+ to: 'metric1',
+ },
+ {
+ from: 'trait2',
+ to: 'metric2',
+ },
+ ],
+ resetCustomDimensionsOnPage: [
+ {
+ resetCustomDimensionsOnPage: 'abc',
+ },
+ {
+ resetCustomDimensionsOnPage: 'xyz',
+ },
+ ],
+ contentGroupings: [
+ {
+ from: 'plan',
+ to: 'contentGroup1',
+ },
+ {
+ from: 'prop2',
+ to: 'contentGroup2',
+ },
+ ],
+ },
+ Enabled: true,
+ },
+ },
+ ],
},
- "output": {
- "response": {
- "status": 200,
- "body": [
- {
- "output": {
- "version": "1",
- "type": "REST",
- "method": "POST",
- "endpoint": "https://www.google-analytics.com/collect",
- "headers": {},
- "params": {
- "ea": "User Enriched",
- "dt": "GA Ecommerce Test",
- "ec": "All",
- "v": "1",
- "t": "event",
- "tid": "UA-165994240-1",
- "ds": "web",
- "an": "RudderLabs JavaScript SDK",
- "av": "1.1.2",
- "aiid": "com.rudderlabs.javascript",
- "npa": 1,
- "uid": "123",
- "cid": "38e169a1-3234-46f7-9ceb-c1a6a69005fe",
- "ni": 1,
- "ua": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/83.0.4103.97 Safari/537.36",
- "ul": "en-GB",
- "qt": 103120167507,
- },
- "body": {
- "JSON": {},
- "XML": {},
- "JSON_ARRAY": {},
- "FORM": {}
- },
- "files": {},
- "userId": "38e169a1-3234-46f7-9ceb-c1a6a69005fe"
- },
- "statusCode": 200
- }
- ]
- }
- }
- },
- {
- "name": "ga360",
- "description": "Test 29",
- "feature": "processor",
- "module": "destination",
- "version": "v0",
- "input": {
- "request": {
- "body": [
- {
- "message": {
- "channel": "web",
- "context": {
- "app": {
- "build": "1.0.0",
- "name": "RudderLabs JavaScript SDK",
- "namespace": "com.rudderlabs.javascript",
- "version": "1.0.0"
- },
- "traits": {
- "email": "test@rudderstack.com"
- },
- "library": {
- "name": "RudderLabs JavaScript SDK",
- "version": "1.0.0"
- },
- "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36",
- "locale": "en-US",
- "ip": "0.0.0.0",
- "os": {
- "name": "",
- "version": ""
- },
- "screen": {
- "density": 2
- }
- },
- "type": "page",
- "messageId": "5e10d13a-bf9a-44bf-b884-43a9e591ea71",
- "originalTimestamp": "2019-10-14T11:15:18.299Z",
- "anonymousId": "00000000000000000000000000",
- "userId": "12345",
- "integrations": {
- "All": true
- },
- "name": "ApplicationLoaded",
- "sentAt": "2019-10-14T11:15:53.296Z"
- },
- "destination": {
- "Config": {
- "trackingID": "UA-165994240-1",
- "doubleClick": true,
- "enhancedLinkAttribution": true,
- "classic": true,
- "ignoredReferrers": "",
- "serverClassic": false,
- "includeSearch": true,
- "trackCategorizedPages": true,
- "trackNamedPages": true,
- "sampleRate": "100",
- "siteSpeedSampleRate": "1",
- "setAllMappedProps": true,
- "enableServerSideIdentify": true,
- "serverSideIdentifyEventCategory": "cat1",
- "serverSideIdentifyEventAction": "action1",
- "anonymizeIp": true,
- "domain": "domain",
- "enhancedEcommerce": true,
- "nonInteraction": true,
- "optimize": "abc123",
- "sendUserId": true,
- "useGoogleAmpClientId": true,
- "web-useNativeSDK": true,
- "dimensions": [
- {
- "from": "name",
- "to": "dimension1"
- },
- {
- "from": "custom2",
- "to": "dimension2"
- }
- ],
- "metrics": [
- {
- "from": "email",
- "to": "metric1"
- },
- {
- "from": "trait2",
- "to": "metric2"
- }
- ],
- "resetCustomDimensionsOnPage": [
- {
- "resetCustomDimensionsOnPage": "abc"
- },
- {
- "resetCustomDimensionsOnPage": "xyz"
- }
- ],
- "contentGroupings": [
- {
- "from": "plan",
- "to": "contentGroup1"
- },
- {
- "from": "prop2",
- "to": "contentGroup2"
- }
- ]
- },
- "Enabled": true
- }
- }
- ]
- }
+ },
+ output: {
+ response: {
+ status: 200,
+ body: [
+ {
+ output: {
+ version: '1',
+ type: 'REST',
+ method: 'POST',
+ endpoint: 'https://www.google-analytics.com/collect',
+ headers: {},
+ params: {
+ pa: 'refund',
+ ev: 100,
+ tr: 99.99,
+ pr1id: '1',
+ pr1cd1: 'my product',
+ pr1nm: 'my product',
+ pr1pr: 24.75,
+ pr2id: '2',
+ pr2cd1: 'other product',
+ pr2nm: 'other product',
+ pr2pr: 24.75,
+ ea: 'Order Cancelled',
+ ec: 'EnhancedEcommerce',
+ v: '1',
+ t: 'event',
+ el: 'event',
+ tid: 'UA-165994240-1',
+ ds: 'web',
+ an: 'RudderLabs JavaScript SDK',
+ av: '1.0.0',
+ aiid: 'com.rudderlabs.javascript',
+ npa: 1,
+ aip: 1,
+ cid: '00000000000000000000000000',
+ ti: 'rudderstackorder1',
+ ts: 13.99,
+ tt: 20.99,
+ cu: 'INR',
+ ua: 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36',
+ uid: '12345',
+ ul: 'en-US',
+ pr1qt: 1,
+ pr2qt: 3,
+ ni: 1,
+ qt: 124893881700,
+ },
+ body: {
+ JSON: {},
+ XML: {},
+ JSON_ARRAY: {},
+ FORM: {},
+ },
+ files: {},
+ userId: '00000000000000000000000000',
+ },
+ statusCode: 200,
+ },
+ ],
},
- "output": {
- "response": {
- "status": 200,
- "body": [
- {
- "output": {
- "version": "1",
- "type": "REST",
- "method": "POST",
- "endpoint": "https://www.google-analytics.com/collect",
- "headers": {},
- "params": {
- "v": "1",
- "t": "pageview",
- "tid": "UA-165994240-1",
- "ds": "web",
- "an": "RudderLabs JavaScript SDK",
- "av": "1.0.0",
- "aiid": "com.rudderlabs.javascript",
- "npa": 1,
- "aip": 1,
- "cid": "00000000000000000000000000",
- "ua": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36",
- "uid": "12345",
- "ul": "en-US",
- "uip": "0.0.0.0",
- "qt": 124893881701,
- },
- "body": {
- "JSON": {},
- "XML": {},
- "JSON_ARRAY": {},
- "FORM": {}
- },
- "files": {},
- "userId": "00000000000000000000000000"
- },
- "statusCode": 200
- }
- ]
- }
- }
+ },
},
{
- "name": "ga360",
- "description": "Test 30",
- "feature": "processor",
- "module": "destination",
- "version": "v0",
- "input": {
- "request": {
- "body": [
- {
- "message": {
- "channel": "web",
- "context": {
- "app": {
- "build": "1.0.0",
- "name": "RudderLabs JavaScript SDK",
- "namespace": "com.rudderlabs.javascript",
- "version": "1.0.0"
- },
- "traits": {
- "email": "test@rudderstack.com"
- },
- "library": {
- "name": "RudderLabs JavaScript SDK",
- "version": "1.0.0"
- },
- "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36",
- "locale": "en-US",
- "ip": "0.0.0.0",
- "os": {
- "name": "",
- "version": ""
- },
- "screen": {
- "density": 2
- }
- },
- "type": "page",
- "messageId": "5e10d13a-bf9a-44bf-b884-43a9e591ea71",
- "originalTimestamp": "2019-10-14T11:15:18.299Z",
- "anonymousId": "00000000000000000000000000",
- "userId": "12345",
- "properties": {
- "path": "/abc",
- "referrer": "",
- "search": "?xyz=1",
- "title": "",
- "url": "https://www.example.com/abc"
- },
- "integrations": {
- "All": true
- },
- "name": "ApplicationLoaded",
- "sentAt": "2019-10-14T11:15:53.296Z"
- },
- "destination": {
- "Config": {
- "trackingID": "UA-165994240-1",
- "doubleClick": true,
- "enhancedLinkAttribution": true,
- "classic": true,
- "ignoredReferrers": "",
- "serverClassic": false,
- "includeSearch": true,
- "trackCategorizedPages": true,
- "trackNamedPages": true,
- "sampleRate": "100",
- "siteSpeedSampleRate": "1",
- "setAllMappedProps": true,
- "enableServerSideIdentify": true,
- "serverSideIdentifyEventCategory": "cat1",
- "serverSideIdentifyEventAction": "action1",
- "anonymizeIp": true,
- "domain": "domain",
- "enhancedEcommerce": true,
- "nonInteraction": true,
- "optimize": "abc123",
- "sendUserId": true,
- "useGoogleAmpClientId": true,
- "web-useNativeSDK": true,
- "dimensions": [
- {
- "from": "name",
- "to": "dimension1"
- },
- {
- "from": "custom2",
- "to": "dimension2"
- }
- ],
- "metrics": [
- {
- "from": "email",
- "to": "metric1"
- },
- {
- "from": "trait2",
- "to": "metric2"
- }
- ],
- "resetCustomDimensionsOnPage": [
- {
- "resetCustomDimensionsOnPage": "abc"
- },
- {
- "resetCustomDimensionsOnPage": "xyz"
- }
- ],
- "contentGroupings": [
- {
- "from": "plan",
- "to": "contentGroup1"
- },
- {
- "from": "prop2",
- "to": "contentGroup2"
- }
- ]
- },
- "Enabled": true
- }
- }
- ]
- }
+ name: 'ga360',
+ description: 'Test 42',
+ feature: 'processor',
+ module: 'destination',
+ version: 'v0',
+ input: {
+ request: {
+ body: [
+ {
+ message: {
+ channel: 'web',
+ context: {
+ app: {
+ build: '1.0.0',
+ name: 'RudderLabs JavaScript SDK',
+ namespace: 'com.rudderlabs.javascript',
+ version: '1.0.0',
+ },
+ traits: {
+ email: 'test@rudderstack.com',
+ },
+ library: {
+ name: 'RudderLabs JavaScript SDK',
+ version: '1.0.0',
+ },
+ userAgent:
+ 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36',
+ locale: 'en-US',
+ os: {
+ name: '',
+ version: '',
+ },
+ screen: {
+ density: 2,
+ },
+ },
+ type: 'track',
+ messageId: 'ec5481b6-a926-4d2e-b293-0b3a77c4d3be',
+ originalTimestamp: '2019-10-14T11:15:18.300Z',
+ anonymousId: '00000000000000000000000000',
+ userId: '12345',
+ event: 'Order Cancelled',
+ properties: {
+ order_id: 'rudderstackorder1',
+ value: 99.99,
+ shipping: 13.99,
+ tax: 20.99,
+ currency: 'INR',
+ products: [
+ {
+ quantity: 1,
+ price: 24.75,
+ name: 'my product',
+ sku: 'p-298',
+ product_id: '1',
+ },
+ {
+ quantity: 3,
+ price: 24.75,
+ name: 'other product',
+ sku: 'p-299',
+ product_id: '2',
+ },
+ ],
+ },
+ integrations: {
+ All: true,
+ },
+ sentAt: '2019-10-14T11:15:53.296Z',
+ },
+ destination: {
+ Config: {
+ trackingID: 'UA-165994240-1',
+ doubleClick: true,
+ enhancedLinkAttribution: true,
+ classic: true,
+ ignoredReferrers: '',
+ serverClassic: false,
+ includeSearch: true,
+ trackCategorizedPages: true,
+ trackNamedPages: true,
+ sampleRate: '100',
+ siteSpeedSampleRate: '1',
+ setAllMappedProps: true,
+ enableServerSideIdentify: true,
+ serverSideIdentifyEventCategory: 'cat1',
+ serverSideIdentifyEventAction: 'action1',
+ anonymizeIp: true,
+ domain: 'domain',
+ enhancedEcommerce: true,
+ nonInteraction: true,
+ optimize: 'abc123',
+ sendUserId: true,
+ useGoogleAmpClientId: true,
+ 'web-useNativeSDK': true,
+ dimensions: [
+ {
+ from: 'name',
+ to: 'dimension1',
+ },
+ {
+ from: 'custom2',
+ to: 'dimension2',
+ },
+ ],
+ metrics: [
+ {
+ from: 'email',
+ to: 'metric1',
+ },
+ {
+ from: 'trait2',
+ to: 'metric2',
+ },
+ ],
+ resetCustomDimensionsOnPage: [
+ {
+ resetCustomDimensionsOnPage: 'abc',
+ },
+ {
+ resetCustomDimensionsOnPage: 'xyz',
+ },
+ ],
+ contentGroupings: [
+ {
+ from: 'plan',
+ to: 'contentGroup1',
+ },
+ {
+ from: 'prop2',
+ to: 'contentGroup2',
+ },
+ ],
+ },
+ Enabled: true,
+ },
+ },
+ ],
},
- "output": {
- "response": {
- "status": 200,
- "body": [
- {
- "output": {
- "version": "1",
- "type": "REST",
- "method": "POST",
- "endpoint": "https://www.google-analytics.com/collect",
- "headers": {},
- "params": {
- "v": "1",
- "t": "pageview",
- "tid": "UA-165994240-1",
- "ds": "web",
- "an": "RudderLabs JavaScript SDK",
- "av": "1.0.0",
- "aiid": "com.rudderlabs.javascript",
- "npa": 1,
- "aip": 1,
- "cid": "00000000000000000000000000",
- "ua": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36",
- "uid": "12345",
- "ul": "en-US",
- "uip": "0.0.0.0",
- "dh": "www.example.com",
- "dl": "https://www.example.com/abc",
- "dp": "%2Fabc%3Fxyz%3D1",
- "qt": 124893881701,
- },
- "body": {
- "JSON": {},
- "XML": {},
- "JSON_ARRAY": {},
- "FORM": {}
- },
- "files": {},
- "userId": "00000000000000000000000000"
- },
- "statusCode": 200
- }
- ]
- }
- }
- },
- {
- "name": "ga360",
- "description": "Test 31",
- "feature": "processor",
- "module": "destination",
- "version": "v0",
- "input": {
- "request": {
- "body": [
- {
- "message": {
- "channel": "web",
- "context": {
- "app": {
- "build": "1.0.0",
- "name": "RudderLabs JavaScript SDK",
- "namespace": "com.rudderlabs.javascript",
- "version": "1.0.0"
- },
- "traits": {
- "email": "test@rudderstack.com"
- },
- "library": {
- "name": "RudderLabs JavaScript SDK",
- "version": "1.0.0"
- },
- "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36",
- "locale": "en-US",
- "ip": "0.0.0.0",
- "os": {
- "name": "",
- "version": ""
- },
- "screen": {
- "density": 2
- }
- },
- "type": "track",
- "messageId": "5e10d13a-bf9a-44bf-b884-43a9e591ea71",
- "originalTimestamp": "2019-10-14T11:15:18.299Z",
- "anonymousId": "00000000000000000000000000",
- "userId": "12345",
- "integrations": {
- "All": true
- },
- "event": "sample event",
- "sentAt": "2019-10-14T11:15:53.296Z"
- },
- "destination": {
- "Config": {
- "trackingID": "UA-165994240-1",
- "doubleClick": true,
- "enhancedLinkAttribution": true,
- "classic": true,
- "ignoredReferrers": "",
- "serverClassic": false,
- "includeSearch": true,
- "trackCategorizedPages": true,
- "trackNamedPages": true,
- "sampleRate": "100",
- "siteSpeedSampleRate": "1",
- "setAllMappedProps": true,
- "enableServerSideIdentify": true,
- "serverSideIdentifyEventCategory": "cat1",
- "serverSideIdentifyEventAction": "action1",
- "anonymizeIp": true,
- "domain": "domain",
- "nonInteraction": true,
- "optimize": "abc123",
- "sendUserId": true,
- "useGoogleAmpClientId": true,
- "web-useNativeSDK": true,
- "dimensions": [
- {
- "from": "name",
- "to": "dimension1"
- },
- {
- "from": "custom2",
- "to": "dimension2"
- }
- ],
- "metrics": [
- {
- "from": "email",
- "to": "metric1"
- },
- {
- "from": "trait2",
- "to": "metric2"
- }
- ],
- "resetCustomDimensionsOnPage": [
- {
- "resetCustomDimensionsOnPage": "abc"
- },
- {
- "resetCustomDimensionsOnPage": "xyz"
- }
- ],
- "contentGroupings": [
- {
- "from": "plan",
- "to": "contentGroup1"
- },
- {
- "from": "prop2",
- "to": "contentGroup2"
- }
- ]
- },
- "Enabled": true
- }
- }
- ]
- }
+ },
+ output: {
+ response: {
+ status: 200,
+ body: [
+ {
+ output: {
+ version: '1',
+ type: 'REST',
+ method: 'POST',
+ endpoint: 'https://www.google-analytics.com/collect',
+ headers: {},
+ params: {
+ pa: 'refund',
+ tr: 99.99,
+ pr1id: '1',
+ pr1cd1: 'my product',
+ pr1nm: 'my product',
+ pr1pr: 24.75,
+ pr2id: '2',
+ pr2cd1: 'other product',
+ pr2nm: 'other product',
+ pr2pr: 24.75,
+ ea: 'Order Cancelled',
+ ev: 100,
+ ec: 'EnhancedEcommerce',
+ v: '1',
+ t: 'event',
+ el: 'event',
+ tid: 'UA-165994240-1',
+ ds: 'web',
+ an: 'RudderLabs JavaScript SDK',
+ av: '1.0.0',
+ aiid: 'com.rudderlabs.javascript',
+ npa: 1,
+ aip: 1,
+ cid: '00000000000000000000000000',
+ ti: 'rudderstackorder1',
+ ts: 13.99,
+ tt: 20.99,
+ cu: 'INR',
+ ua: 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36',
+ uid: '12345',
+ ul: 'en-US',
+ pr1qt: 1,
+ pr2qt: 3,
+ ni: 1,
+ qt: 124893881700,
+ },
+ body: {
+ JSON: {},
+ XML: {},
+ JSON_ARRAY: {},
+ FORM: {},
+ },
+ files: {},
+ userId: '00000000000000000000000000',
+ },
+ statusCode: 200,
+ },
+ ],
},
- "output": {
- "response": {
- "status": 200,
- "body": [
- {
- "output": {
- "version": "1",
- "type": "REST",
- "method": "POST",
- "endpoint": "https://www.google-analytics.com/collect",
- "headers": {},
- "params": {
- "ec": "All",
- "ni": 1,
- "v": "1",
- "t": "event",
- "el": "event",
- "tid": "UA-165994240-1",
- "ds": "web",
- "an": "RudderLabs JavaScript SDK",
- "av": "1.0.0",
- "aiid": "com.rudderlabs.javascript",
- "npa": 1,
- "aip": 1,
- "cid": "00000000000000000000000000",
- "ea": "sample event",
- "ua": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36",
- "uid": "12345",
- "ul": "en-US",
- "uip": "0.0.0.0",
- "qt": 124893881701,
- },
- "body": {
- "JSON": {},
- "XML": {},
- "JSON_ARRAY": {},
- "FORM": {}
- },
- "files": {},
- "userId": "00000000000000000000000000"
- },
- "statusCode": 200
- }
- ]
- }
- }
+ },
},
{
- "name": "ga360",
- "description": "Test 32",
- "feature": "processor",
- "module": "destination",
- "version": "v0",
- "input": {
- "request": {
- "body": [
- {
- "message": {
- "channel": "web",
- "context": {
- "app": {
- "build": "1.0.0",
- "name": "RudderLabs JavaScript SDK",
- "namespace": "com.rudderlabs.javascript",
- "version": "1.0.0"
- },
- "traits": {
- "email": "test@rudderstack.com"
- },
- "library": {
- "name": "RudderLabs JavaScript SDK",
- "version": "1.0.0"
- },
- "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36",
- "locale": "en-US",
- "os": {
- "name": "",
- "version": ""
- },
- "screen": {
- "density": 2
- }
- },
- "type": "track",
- "messageId": "ec5481b6-a926-4d2e-b293-0b3a77c4d3be",
- "originalTimestamp": "2019-10-14T11:15:18.300Z",
- "anonymousId": "00000000000000000000000000",
- "userId": "12345",
- "event": "Order Refunded",
- "properties": {
- "order_id": "rudderstackorder1",
- "total": 99.99,
- "shipping": 13.99,
- "tax": 20.99,
- "currency": "INR",
- "products": [
- {
- "quantity": 1,
- "price": 24.75,
- "name": "my product",
- "sku": "p-298"
- },
- {
- "quantity": 3,
- "price": 24.75,
- "name": "other product",
- "sku": "p-299"
- }
- ]
- },
- "integrations": {
- "All": true
- },
- "sentAt": "2019-10-14T11:15:53.296Z"
- },
- "destination": {
- "Config": {
- "trackingID": "UA-165994240-1",
- "doubleClick": true,
- "enhancedLinkAttribution": true,
- "classic": true,
- "ignoredReferrers": "",
- "serverClassic": false,
- "includeSearch": true,
- "trackCategorizedPages": true,
- "trackNamedPages": true,
- "sampleRate": "100",
- "siteSpeedSampleRate": "1",
- "setAllMappedProps": true,
- "enableServerSideIdentify": true,
- "serverSideIdentifyEventCategory": "cat1",
- "serverSideIdentifyEventAction": "action1",
- "anonymizeIp": true,
- "domain": "domain",
- "enhancedEcommerce": true,
- "nonInteraction": true,
- "optimize": "abc123",
- "sendUserId": true,
- "useGoogleAmpClientId": true,
- "web-useNativeSDK": true,
- "dimensions": [
- {
- "from": "name",
- "to": "dimension1"
- },
- {
- "from": "custom2",
- "to": "dimension2"
- }
- ],
- "metrics": [
- {
- "from": "email",
- "to": "metric1"
- },
- {
- "from": "trait2",
- "to": "metric2"
- }
- ],
- "resetCustomDimensionsOnPage": [
- {
- "resetCustomDimensionsOnPage": "abc"
- },
- {
- "resetCustomDimensionsOnPage": "xyz"
- }
- ],
- "contentGroupings": [
- {
- "from": "plan",
- "to": "contentGroup1"
- },
- {
- "from": "prop2",
- "to": "contentGroup2"
- }
- ]
- },
- "Enabled": true
- }
- }
- ]
- }
+ name: 'ga360',
+ description: 'Test 43',
+ feature: 'processor',
+ module: 'destination',
+ version: 'v0',
+ input: {
+ request: {
+ body: [
+ {
+ message: {
+ channel: 'web',
+ context: {
+ app: {
+ build: '1.0.0',
+ name: 'RudderLabs JavaScript SDK',
+ namespace: 'com.rudderlabs.javascript',
+ version: '1.0.0',
+ },
+ traits: {
+ email: 'test@rudderstack.com',
+ },
+ library: {
+ name: 'RudderLabs JavaScript SDK',
+ version: '1.0.0',
+ },
+ userAgent:
+ 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36',
+ locale: 'en-US',
+ os: {
+ name: '',
+ version: '',
+ },
+ screen: {
+ density: 2,
+ },
+ },
+ type: 'track',
+ messageId: 'ec5481b6-a926-4d2e-b293-0b3a77c4d3be',
+ originalTimestamp: '2019-10-14T11:15:18.300Z',
+ anonymousId: '00000000000000000000000000',
+ userId: '12345',
+ event: 'Order Cancelled',
+ properties: {
+ order_id: 'rudderstackorder1',
+ revenue: 99.99,
+ shipping: 13.99,
+ tax: 20.99,
+ currency: 'INR',
+ products: [
+ {
+ quantity: 1,
+ price: 24.75,
+ name: 'my product',
+ sku: 'p-298',
+ product_id: '1',
+ },
+ {
+ quantity: 3,
+ price: 24.75,
+ name: 'other product',
+ sku: 'p-299',
+ product_id: '2',
+ },
+ ],
+ },
+ integrations: {
+ All: true,
+ },
+ sentAt: '2019-10-14T11:15:53.296Z',
+ },
+ destination: {
+ Config: {
+ trackingID: 'UA-165994240-1',
+ doubleClick: true,
+ enhancedLinkAttribution: true,
+ classic: true,
+ ignoredReferrers: '',
+ serverClassic: false,
+ includeSearch: true,
+ trackCategorizedPages: true,
+ trackNamedPages: true,
+ sampleRate: '100',
+ siteSpeedSampleRate: '1',
+ setAllMappedProps: true,
+ enableServerSideIdentify: true,
+ serverSideIdentifyEventCategory: 'cat1',
+ serverSideIdentifyEventAction: 'action1',
+ anonymizeIp: true,
+ domain: 'domain',
+ enhancedEcommerce: true,
+ nonInteraction: true,
+ optimize: 'abc123',
+ sendUserId: true,
+ useGoogleAmpClientId: true,
+ 'web-useNativeSDK': true,
+ dimensions: [
+ {
+ from: 'name',
+ to: 'dimension1',
+ },
+ {
+ from: 'custom2',
+ to: 'dimension2',
+ },
+ ],
+ metrics: [
+ {
+ from: 'email',
+ to: 'metric1',
+ },
+ {
+ from: 'trait2',
+ to: 'metric2',
+ },
+ ],
+ resetCustomDimensionsOnPage: [
+ {
+ resetCustomDimensionsOnPage: 'abc',
+ },
+ {
+ resetCustomDimensionsOnPage: 'xyz',
+ },
+ ],
+ contentGroupings: [
+ {
+ from: 'plan',
+ to: 'contentGroup1',
+ },
+ {
+ from: 'prop2',
+ to: 'contentGroup2',
+ },
+ ],
+ },
+ Enabled: true,
+ },
+ },
+ ],
},
- "output": {
- "response": {
- "status": 200,
- "body": [
- {
- "output": {
- "version": "1",
- "type": "REST",
- "method": "POST",
- "endpoint": "https://www.google-analytics.com/collect",
- "headers": {},
- "params": {
- "pa": "refund",
- "ev": 100,
- "pr1id": "p-298",
- "pr1cd1": "my product",
- "pr1nm": "my product",
- "pr1pr": 24.75,
- "pr1qt": 1,
- "pr2id": "p-299",
- "pr2cd1": "other product",
- "pr2nm": "other product",
- "pr2pr": 24.75,
- "pr2qt": 3,
- "ea": "Order Refunded",
- "ec": "EnhancedEcommerce",
- "v": "1",
- "t": "event",
- "el": "event",
- "tid": "UA-165994240-1",
- "ds": "web",
- "an": "RudderLabs JavaScript SDK",
- "av": "1.0.0",
- "aiid": "com.rudderlabs.javascript",
- "npa": 1,
- "aip": 1,
- "ua": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36",
- "cid": "00000000000000000000000000",
- "ti": "rudderstackorder1",
- "uid": "12345",
- "ul": "en-US",
- "ni": 1,
- "qt": 124893881700,
- },
- "body": {
- "JSON": {},
- "XML": {},
- "JSON_ARRAY": {},
- "FORM": {}
- },
- "files": {},
- "userId": "00000000000000000000000000"
- },
- "statusCode": 200
- }
- ]
- }
- }
- },
- {
- "name": "ga360",
- "description": "Test 33",
- "feature": "processor",
- "module": "destination",
- "version": "v0",
- "input": {
- "request": {
- "body": [
- {
- "message": {
- "channel": "web",
- "context": {
- "app": {
- "build": "1.0.0",
- "name": "RudderLabs JavaScript SDK",
- "namespace": "com.rudderlabs.javascript",
- "version": "1.0.0"
- },
- "traits": {
- "email": "test@rudderstack.com"
- },
- "library": {
- "name": "RudderLabs JavaScript SDK",
- "version": "1.0.0"
- },
- "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36",
- "locale": "en-US",
- "os": {
- "name": "",
- "version": ""
- },
- "screen": {
- "density": 2
- }
- },
- "type": "track",
- "messageId": "ec5481b6-a926-4d2e-b293-0b3a77c4d3be",
- "originalTimestamp": "2019-10-14T11:15:18.300Z",
- "anonymousId": "00000000000000000000000000",
- "userId": "12345",
- "event": "Order Refunded",
- "properties": {
- "order_id": "rudderstackorder1",
- "total": 99.99,
- "shipping": 13.99,
- "tax": 20.99,
- "currency": "INR"
- },
- "integrations": {
- "All": true
- },
- "sentAt": "2019-10-14T11:15:53.296Z"
- },
- "destination": {
- "Config": {
- "trackingID": "UA-165994240-1",
- "doubleClick": true,
- "enhancedLinkAttribution": true,
- "classic": true,
- "ignoredReferrers": "",
- "serverClassic": false,
- "includeSearch": true,
- "trackCategorizedPages": true,
- "trackNamedPages": true,
- "sampleRate": "100",
- "siteSpeedSampleRate": "1",
- "setAllMappedProps": true,
- "enableServerSideIdentify": true,
- "serverSideIdentifyEventCategory": "cat1",
- "serverSideIdentifyEventAction": "action1",
- "anonymizeIp": true,
- "domain": "domain",
- "enhancedEcommerce": true,
- "nonInteraction": true,
- "optimize": "abc123",
- "sendUserId": true,
- "useGoogleAmpClientId": true,
- "web-useNativeSDK": true,
- "dimensions": [
- {
- "from": "name",
- "to": "dimension1"
- },
- {
- "from": "custom2",
- "to": "dimension2"
- }
- ],
- "metrics": [
- {
- "from": "email",
- "to": "metric1"
- },
- {
- "from": "trait2",
- "to": "metric2"
- }
- ],
- "resetCustomDimensionsOnPage": [
- {
- "resetCustomDimensionsOnPage": "abc"
- },
- {
- "resetCustomDimensionsOnPage": "xyz"
- }
- ],
- "contentGroupings": [
- {
- "from": "plan",
- "to": "contentGroup1"
- },
- {
- "from": "prop2",
- "to": "contentGroup2"
- }
- ]
- },
- "Enabled": true
- }
- }
- ]
- }
+ },
+ output: {
+ response: {
+ status: 200,
+ body: [
+ {
+ output: {
+ version: '1',
+ type: 'REST',
+ method: 'POST',
+ endpoint: 'https://www.google-analytics.com/collect',
+ headers: {},
+ params: {
+ pa: 'refund',
+ tr: 99.99,
+ pr1id: '1',
+ pr1cd1: 'my product',
+ pr1nm: 'my product',
+ pr1pr: 24.75,
+ pr2id: '2',
+ pr2cd1: 'other product',
+ pr2nm: 'other product',
+ pr2pr: 24.75,
+ ea: 'Order Cancelled',
+ ev: 100,
+ ec: 'EnhancedEcommerce',
+ v: '1',
+ t: 'event',
+ el: 'event',
+ tid: 'UA-165994240-1',
+ ds: 'web',
+ an: 'RudderLabs JavaScript SDK',
+ av: '1.0.0',
+ aiid: 'com.rudderlabs.javascript',
+ npa: 1,
+ aip: 1,
+ cid: '00000000000000000000000000',
+ ti: 'rudderstackorder1',
+ ts: 13.99,
+ tt: 20.99,
+ cu: 'INR',
+ ua: 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36',
+ uid: '12345',
+ ul: 'en-US',
+ pr1qt: 1,
+ pr2qt: 3,
+ ni: 1,
+ qt: 124893881700,
+ },
+ body: {
+ JSON: {},
+ XML: {},
+ JSON_ARRAY: {},
+ FORM: {},
+ },
+ files: {},
+ userId: '00000000000000000000000000',
+ },
+ statusCode: 200,
+ },
+ ],
},
- "output": {
- "response": {
- "status": 200,
- "body": [
- {
- "output": {
- "version": "1",
- "type": "REST",
- "method": "POST",
- "endpoint": "https://www.google-analytics.com/collect",
- "headers": {},
- "params": {
- "ev": 100,
- "pa": "refund",
- "ti": "rudderstackorder1",
- "ea": "Order Refunded",
- "ec": "EnhancedEcommerce",
- "v": "1",
- "t": "event",
- "el": "event",
- "tid": "UA-165994240-1",
- "ds": "web",
- "an": "RudderLabs JavaScript SDK",
- "av": "1.0.0",
- "aiid": "com.rudderlabs.javascript",
- "npa": 1,
- "aip": 1,
- "ua": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36",
- "cid": "00000000000000000000000000",
- "uid": "12345",
- "ul": "en-US",
- "ni": 1,
- "qt": 124893881700,
- },
- "body": {
- "JSON": {},
- "XML": {},
- "JSON_ARRAY": {},
- "FORM": {}
- },
- "files": {},
- "userId": "00000000000000000000000000"
- },
- "statusCode": 200
- }
- ]
- }
- }
+ },
},
{
- "name": "ga360",
- "description": "Test 34",
- "feature": "processor",
- "module": "destination",
- "version": "v0",
- "input": {
- "request": {
- "body": [
- {
- "message": {
- "channel": "web",
- "context": {
- "app": {
- "build": "1.0.0",
- "name": "RudderLabs JavaScript SDK",
- "namespace": "com.rudderlabs.javascript",
- "version": "1.0.0"
- },
- "traits": {
- "email": "test@rudderstack.com"
- },
- "library": {
- "name": "RudderLabs JavaScript SDK",
- "version": "1.0.0"
- },
- "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36",
- "locale": "en-US",
- "os": {
- "name": "",
- "version": ""
- },
- "screen": {
- "density": 2
- }
- },
- "type": "track",
- "messageId": "ec5481b6-a926-4d2e-b293-0b3a77c4d3be",
- "originalTimestamp": "2019-10-14T11:15:18.300Z",
- "anonymousId": "00000000000000000000000000",
- "userId": "12345",
- "event": "Order Refunded",
- "properties": {
- "order_id": "rudderstackorder1",
- "total": 99.99,
- "shipping": 13.99,
- "tax": 20.99,
- "currency": "INR",
- "products": []
- },
- "integrations": {
- "All": true
- },
- "sentAt": "2019-10-14T11:15:53.296Z"
- },
- "destination": {
- "Config": {
- "trackingID": "UA-165994240-1",
- "doubleClick": true,
- "enhancedLinkAttribution": true,
- "classic": true,
- "ignoredReferrers": "",
- "serverClassic": false,
- "includeSearch": true,
- "trackCategorizedPages": true,
- "trackNamedPages": true,
- "sampleRate": "100",
- "siteSpeedSampleRate": "1",
- "setAllMappedProps": true,
- "enableServerSideIdentify": true,
- "serverSideIdentifyEventCategory": "cat1",
- "serverSideIdentifyEventAction": "action1",
- "anonymizeIp": true,
- "domain": "domain",
- "enhancedEcommerce": true,
- "nonInteraction": true,
- "optimize": "abc123",
- "sendUserId": true,
- "useGoogleAmpClientId": true,
- "web-useNativeSDK": true,
- "dimensions": [
- {
- "from": "name",
- "to": "dimension1"
- },
- {
- "from": "custom2",
- "to": "dimension2"
- }
- ],
- "metrics": [
- {
- "from": "email",
- "to": "metric1"
- },
- {
- "from": "trait2",
- "to": "metric2"
- }
- ],
- "resetCustomDimensionsOnPage": [
- {
- "resetCustomDimensionsOnPage": "abc"
- },
- {
- "resetCustomDimensionsOnPage": "xyz"
- }
- ],
- "contentGroupings": [
- {
- "from": "plan",
- "to": "contentGroup1"
- },
- {
- "from": "prop2",
- "to": "contentGroup2"
- }
- ]
- },
- "Enabled": true
- }
- }
- ]
- }
+ name: 'ga360',
+ description: 'Test 44',
+ feature: 'processor',
+ module: 'destination',
+ version: 'v0',
+ input: {
+ request: {
+ body: [
+ {
+ message: {
+ channel: 'web',
+ context: {
+ app: {
+ build: '1.0.0',
+ name: 'RudderLabs JavaScript SDK',
+ namespace: 'com.rudderlabs.javascript',
+ version: '1.0.0',
+ },
+ traits: {
+ email: 'test@rudderstack.com',
+ },
+ library: {
+ name: 'RudderLabs JavaScript SDK',
+ version: '1.0.0',
+ },
+ userAgent:
+ 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36',
+ locale: 'en-US',
+ os: {
+ name: '',
+ version: '',
+ },
+ screen: {
+ density: 2,
+ },
+ },
+ type: 'track',
+ messageId: 'ec5481b6-a926-4d2e-b293-0b3a77c4d3be',
+ originalTimestamp: '2019-10-14T11:15:18.300Z',
+ anonymousId: '00000000000000000000000000',
+ userId: '12345',
+ event: 'Order Cancelled',
+ properties: {
+ order_id: 'rudderstackorder1',
+ revenue: 99.99,
+ shipping: 13.99,
+ tax: 20.99,
+ currency: 'INR',
+ products: [],
+ },
+ integrations: {
+ All: true,
+ },
+ sentAt: '2019-10-14T11:15:53.296Z',
+ },
+ destination: {
+ Config: {
+ trackingID: 'UA-165994240-1',
+ doubleClick: true,
+ enhancedLinkAttribution: true,
+ classic: true,
+ ignoredReferrers: '',
+ serverClassic: false,
+ includeSearch: true,
+ trackCategorizedPages: true,
+ trackNamedPages: true,
+ sampleRate: '100',
+ siteSpeedSampleRate: '1',
+ setAllMappedProps: true,
+ enableServerSideIdentify: true,
+ serverSideIdentifyEventCategory: 'cat1',
+ serverSideIdentifyEventAction: 'action1',
+ anonymizeIp: true,
+ domain: 'domain',
+ enhancedEcommerce: true,
+ nonInteraction: true,
+ optimize: 'abc123',
+ sendUserId: true,
+ useGoogleAmpClientId: true,
+ 'web-useNativeSDK': true,
+ dimensions: [
+ {
+ from: 'name',
+ to: 'dimension1',
+ },
+ {
+ from: 'custom2',
+ to: 'dimension2',
+ },
+ ],
+ metrics: [
+ {
+ from: 'email',
+ to: 'metric1',
+ },
+ {
+ from: 'trait2',
+ to: 'metric2',
+ },
+ ],
+ resetCustomDimensionsOnPage: [
+ {
+ resetCustomDimensionsOnPage: 'abc',
+ },
+ {
+ resetCustomDimensionsOnPage: 'xyz',
+ },
+ ],
+ contentGroupings: [
+ {
+ from: 'plan',
+ to: 'contentGroup1',
+ },
+ {
+ from: 'prop2',
+ to: 'contentGroup2',
+ },
+ ],
+ },
+ Enabled: true,
+ },
+ },
+ ],
},
- "output": {
- "response": {
- "status": 200,
- "body": [
- {
- "output": {
- "version": "1",
- "type": "REST",
- "method": "POST",
- "endpoint": "https://www.google-analytics.com/collect",
- "headers": {},
- "params": {
- "ev": 100,
- "pa": "refund",
- "ti": "rudderstackorder1",
- "ea": "Order Refunded",
- "ec": "EnhancedEcommerce",
- "v": "1",
- "t": "event",
- "el": "event",
- "tid": "UA-165994240-1",
- "ds": "web",
- "an": "RudderLabs JavaScript SDK",
- "av": "1.0.0",
- "aiid": "com.rudderlabs.javascript",
- "npa": 1,
- "aip": 1,
- "ua": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36",
- "cid": "00000000000000000000000000",
- "uid": "12345",
- "ul": "en-US",
- "ni": 1,
- "qt": 124893881700,
- },
- "body": {
- "JSON": {},
- "XML": {},
- "JSON_ARRAY": {},
- "FORM": {}
- },
- "files": {},
- "userId": "00000000000000000000000000"
- },
- "statusCode": 200
- }
- ]
- }
- }
- },
- {
- "name": "ga360",
- "description": "Test 35",
- "feature": "processor",
- "module": "destination",
- "version": "v0",
- "input": {
- "request": {
- "body": [
- {
- "message": {
- "channel": "web",
- "context": {
- "app": {
- "build": "1.0.0",
- "name": "RudderLabs JavaScript SDK",
- "namespace": "com.rudderlabs.javascript",
- "version": "1.0.0"
- },
- "traits": {
- "email": "test@rudderstack.com"
- },
- "library": {
- "name": "RudderLabs JavaScript SDK",
- "version": "1.0.0"
- },
- "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36",
- "locale": "en-US",
- "os": {
- "name": "",
- "version": ""
- },
- "screen": {
- "density": 2
- }
- },
- "type": "track",
- "messageId": "ec5481b6-a926-4d2e-b293-0b3a77c4d3be",
- "originalTimestamp": "2019-10-14T11:15:18.300Z",
- "anonymousId": "00000000000000000000000000",
- "userId": "12345",
- "event": "Order Refunded",
- "properties": {
- "order_id": "rudderstackorder1",
- "total": 99.99,
- "shipping": 13.99,
- "tax": 20.99,
- "currency": "INR",
- "products": [
- {
- "quantity": 1,
- "price": 24.75,
- "name": "my product",
- "sku": "p-298",
- "product_id": "1"
- },
- {
- "quantity": 3,
- "price": 24.75,
- "name": "other product",
- "sku": "p-299",
- "product_id": "2"
- }
- ]
- },
- "integrations": {
- "All": true
- },
- "sentAt": "2019-10-14T11:15:53.296Z"
- },
- "destination": {
- "Config": {
- "trackingID": "UA-165994240-1",
- "doubleClick": true,
- "enhancedLinkAttribution": true,
- "classic": true,
- "ignoredReferrers": "",
- "serverClassic": false,
- "includeSearch": true,
- "trackCategorizedPages": true,
- "trackNamedPages": true,
- "sampleRate": "100",
- "siteSpeedSampleRate": "1",
- "setAllMappedProps": true,
- "enableServerSideIdentify": true,
- "serverSideIdentifyEventCategory": "cat1",
- "serverSideIdentifyEventAction": "action1",
- "anonymizeIp": true,
- "domain": "domain",
- "enhancedEcommerce": true,
- "nonInteraction": true,
- "optimize": "abc123",
- "sendUserId": true,
- "useGoogleAmpClientId": true,
- "web-useNativeSDK": true,
- "dimensions": [
- {
- "from": "name",
- "to": "dimension1"
- },
- {
- "from": "custom2",
- "to": "dimension2"
- }
- ],
- "metrics": [
- {
- "from": "email",
- "to": "metric1"
- },
- {
- "from": "trait2",
- "to": "metric2"
- }
- ],
- "resetCustomDimensionsOnPage": [
- {
- "resetCustomDimensionsOnPage": "abc"
- },
- {
- "resetCustomDimensionsOnPage": "xyz"
- }
- ],
- "contentGroupings": [
- {
- "from": "plan",
- "to": "contentGroup1"
- },
- {
- "from": "prop2",
- "to": "contentGroup2"
- }
- ]
- },
- "Enabled": true
- }
- }
- ]
- }
+ },
+ output: {
+ response: {
+ status: 200,
+ body: [
+ {
+ error: 'No product information supplied for transaction event',
+ statTags: {
+ destType: 'GA360',
+ errorCategory: 'dataValidation',
+ errorType: 'instrumentation',
+ feature: 'processor',
+ implementation: 'native',
+ module: 'destination',
+ },
+ statusCode: 400,
+ },
+ ],
},
- "output": {
- "response": {
- "status": 200,
- "body": [
- {
- "output": {
- "version": "1",
- "type": "REST",
- "method": "POST",
- "endpoint": "https://www.google-analytics.com/collect",
- "headers": {},
- "params": {
- "ev": 100,
- "pa": "refund",
- "pr1id": "1",
- "pr1cd1": "my product",
- "pr1nm": "my product",
- "pr1pr": 24.75,
- "pr1qt": 1,
- "pr2id": "2",
- "pr2cd1": "other product",
- "pr2nm": "other product",
- "pr2pr": 24.75,
- "pr2qt": 3,
- "ea": "Order Refunded",
- "ec": "EnhancedEcommerce",
- "v": "1",
- "t": "event",
- "el": "event",
- "tid": "UA-165994240-1",
- "ds": "web",
- "an": "RudderLabs JavaScript SDK",
- "av": "1.0.0",
- "aiid": "com.rudderlabs.javascript",
- "npa": 1,
- "aip": 1,
- "ua": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36",
- "cid": "00000000000000000000000000",
- "ti": "rudderstackorder1",
- "uid": "12345",
- "ul": "en-US",
- "ni": 1,
- "qt": 124893881700,
- },
- "body": {
- "JSON": {},
- "XML": {},
- "JSON_ARRAY": {},
- "FORM": {}
- },
- "files": {},
- "userId": "00000000000000000000000000"
- },
- "statusCode": 200
- }
- ]
- }
- }
+ },
},
{
- "name": "ga360",
- "description": "Test 36",
- "feature": "processor",
- "module": "destination",
- "version": "v0",
- "input": {
- "request": {
- "body": [
- {
- "message": {
- "channel": "web",
- "context": {
- "app": {
- "build": "1.0.0",
- "name": "RudderLabs JavaScript SDK",
- "namespace": "com.rudderlabs.javascript",
- "version": "1.0.0"
- },
- "traits": {
- "email": "test@rudderstack.com"
- },
- "library": {
- "name": "RudderLabs JavaScript SDK",
- "version": "1.0.0"
- },
- "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36",
- "locale": "en-US",
- "os": {
- "name": "",
- "version": ""
- },
- "screen": {
- "density": 2
- }
- },
- "type": "track",
- "messageId": "ec5481b6-a926-4d2e-b293-0b3a77c4d3be",
- "originalTimestamp": "2019-10-14T11:15:18.300Z",
- "anonymousId": "00000000000000000000000000",
- "userId": "12345",
- "event": "Cart Shared",
- "properties": {
- "order_id": "rudderstackorder1",
- "total": 99.99,
- "shipping": 13.99,
- "tax": 20.99,
- "currency": "INR",
- "products": [
- {
- "quantity": 1,
- "price": 24.75,
- "name": "my product",
- "sku": "p-298",
- "product_id": "1"
- },
- {
- "quantity": 3,
- "price": 24.75,
- "name": "other product",
- "sku": "p-299",
- "product_id": "2"
- }
- ]
- },
- "integrations": {
- "All": true
- },
- "sentAt": "2019-10-14T11:15:53.296Z"
- },
- "destination": {
- "Config": {
- "trackingID": "UA-165994240-1",
- "doubleClick": true,
- "enhancedLinkAttribution": true,
- "classic": true,
- "ignoredReferrers": "",
- "serverClassic": false,
- "includeSearch": true,
- "trackCategorizedPages": true,
- "trackNamedPages": true,
- "sampleRate": "100",
- "siteSpeedSampleRate": "1",
- "setAllMappedProps": true,
- "enableServerSideIdentify": true,
- "serverSideIdentifyEventCategory": "cat1",
- "serverSideIdentifyEventAction": "action1",
- "anonymizeIp": true,
- "domain": "domain",
- "enhancedEcommerce": true,
- "nonInteraction": true,
- "optimize": "abc123",
- "sendUserId": true,
- "useGoogleAmpClientId": true,
- "web-useNativeSDK": true,
- "dimensions": [
- {
- "from": "name",
- "to": "dimension1"
- },
- {
- "from": "custom2",
- "to": "dimension2"
- }
- ],
- "metrics": [
- {
- "from": "email",
- "to": "metric1"
- },
- {
- "from": "trait2",
- "to": "metric2"
- }
- ],
- "resetCustomDimensionsOnPage": [
- {
- "resetCustomDimensionsOnPage": "abc"
- },
- {
- "resetCustomDimensionsOnPage": "xyz"
- }
- ],
- "contentGroupings": [
- {
- "from": "plan",
- "to": "contentGroup1"
- },
- {
- "from": "prop2",
- "to": "contentGroup2"
- }
- ]
- },
- "Enabled": true
- }
- }
- ]
- }
+ name: 'ga360',
+ description: 'Test 45',
+ feature: 'processor',
+ module: 'destination',
+ version: 'v0',
+ input: {
+ request: {
+ body: [
+ {
+ message: {
+ channel: 'web',
+ context: {
+ app: {
+ build: '1.0.0',
+ name: 'RudderLabs JavaScript SDK',
+ namespace: 'com.rudderlabs.javascript',
+ version: '1.0.0',
+ },
+ traits: {
+ email: 'test@rudderstack.com',
+ },
+ library: {
+ name: 'RudderLabs JavaScript SDK',
+ version: '1.0.0',
+ },
+ userAgent:
+ 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36',
+ locale: 'en-US',
+ os: {
+ name: '',
+ version: '',
+ },
+ screen: {
+ density: 2,
+ },
+ },
+ type: 'track',
+ messageId: 'ec5481b6-a926-4d2e-b293-0b3a77c4d3be',
+ originalTimestamp: '2019-10-14T11:15:18.300Z',
+ anonymousId: '00000000000000000000000000',
+ userId: '12345',
+ event: 'Cart Viewed',
+ properties: {
+ order_id: 'rudderstackorder1',
+ revenue: 99.99,
+ shipping: 13.99,
+ tax: 20.99,
+ currency: 'INR',
+ products: [
+ {
+ quantity: 1,
+ price: 24.75,
+ name: 'my product',
+ sku: 'p-298',
+ product_id: '1',
+ },
+ {
+ quantity: 3,
+ price: 24.75,
+ name: 'other product',
+ sku: 'p-299',
+ product_id: '2',
+ },
+ ],
+ },
+ integrations: {
+ All: true,
+ },
+ sentAt: '2019-10-14T11:15:53.296Z',
+ },
+ destination: {
+ Config: {
+ trackingID: 'UA-165994240-1',
+ doubleClick: true,
+ enhancedLinkAttribution: true,
+ classic: true,
+ ignoredReferrers: '',
+ serverClassic: false,
+ includeSearch: true,
+ trackCategorizedPages: true,
+ trackNamedPages: true,
+ sampleRate: '100',
+ siteSpeedSampleRate: '1',
+ setAllMappedProps: true,
+ enableServerSideIdentify: true,
+ serverSideIdentifyEventCategory: 'cat1',
+ serverSideIdentifyEventAction: 'action1',
+ anonymizeIp: true,
+ domain: 'domain',
+ enhancedEcommerce: true,
+ nonInteraction: true,
+ optimize: 'abc123',
+ sendUserId: true,
+ useGoogleAmpClientId: true,
+ 'web-useNativeSDK': true,
+ dimensions: [
+ {
+ from: 'name',
+ to: 'dimension1',
+ },
+ {
+ from: 'custom2',
+ to: 'dimension2',
+ },
+ ],
+ metrics: [
+ {
+ from: 'email',
+ to: 'metric1',
+ },
+ {
+ from: 'trait2',
+ to: 'metric2',
+ },
+ ],
+ resetCustomDimensionsOnPage: [
+ {
+ resetCustomDimensionsOnPage: 'abc',
+ },
+ {
+ resetCustomDimensionsOnPage: 'xyz',
+ },
+ ],
+ contentGroupings: [
+ {
+ from: 'plan',
+ to: 'contentGroup1',
+ },
+ {
+ from: 'prop2',
+ to: 'contentGroup2',
+ },
+ ],
+ },
+ Enabled: true,
+ },
+ },
+ ],
},
- "output": {
- "response": {
- "status": 200,
- "body": [
- {
- "output": {
- "version": "1",
- "type": "REST",
- "method": "POST",
- "endpoint": "https://www.google-analytics.com/collect",
- "headers": {},
- "params": {
- "ev": 100,
- "ea": "Cart Shared",
- "ec": "All",
- "ni": 1,
- "v": "1",
- "t": "event",
- "el": "event",
- "tid": "UA-165994240-1",
- "ds": "web",
- "an": "RudderLabs JavaScript SDK",
- "av": "1.0.0",
- "aiid": "com.rudderlabs.javascript",
- "npa": 1,
- "aip": 1,
- "cid": "00000000000000000000000000",
- "ua": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36",
- "uid": "12345",
- "st": " 1 2",
- "ul": "en-US",
- "qt": 124893881700,
- },
- "body": {
- "JSON": {},
- "XML": {},
- "JSON_ARRAY": {},
- "FORM": {}
- },
- "files": {},
- "userId": "00000000000000000000000000"
- },
- "statusCode": 200
- }
- ]
- }
- }
- },
- {
- "name": "ga360",
- "description": "Test 37",
- "feature": "processor",
- "module": "destination",
- "version": "v0",
- "input": {
- "request": {
- "body": [
- {
- "message": {
- "channel": "web",
- "context": {
- "app": {
- "build": "1.0.0",
- "name": "RudderLabs JavaScript SDK",
- "namespace": "com.rudderlabs.javascript",
- "version": "1.0.0"
- },
- "traits": {
- "email": "test@rudderstack.com"
- },
- "library": {
- "name": "RudderLabs JavaScript SDK",
- "version": "1.0.0"
- },
- "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36",
- "locale": "en-US",
- "os": {
- "name": "",
- "version": ""
- },
- "screen": {
- "density": 2
- }
- },
- "type": "track",
- "messageId": "ec5481b6-a926-4d2e-b293-0b3a77c4d3be",
- "originalTimestamp": "2019-10-14T11:15:18.300Z",
- "anonymousId": "00000000000000000000000000",
- "userId": "12345",
- "event": "Product Shared",
- "properties": {
- "product_id": "rudderstackorder1",
- "total": 99.99,
- "shipping": 13.99,
- "tax": 20.99,
- "currency": "INR",
- "url": "https://www.example.com/abc"
- },
- "integrations": {
- "All": true
- },
- "sentAt": "2019-10-14T11:15:53.296Z"
- },
- "destination": {
- "Config": {
- "trackingID": "UA-165994240-1",
- "doubleClick": true,
- "enhancedLinkAttribution": true,
- "classic": true,
- "ignoredReferrers": "",
- "serverClassic": false,
- "includeSearch": true,
- "trackCategorizedPages": true,
- "trackNamedPages": true,
- "sampleRate": "100",
- "siteSpeedSampleRate": "1",
- "setAllMappedProps": true,
- "enableServerSideIdentify": true,
- "serverSideIdentifyEventCategory": "cat1",
- "serverSideIdentifyEventAction": "action1",
- "anonymizeIp": true,
- "domain": "domain",
- "enhancedEcommerce": true,
- "nonInteraction": true,
- "optimize": "abc123",
- "sendUserId": true,
- "useGoogleAmpClientId": true,
- "web-useNativeSDK": true,
- "dimensions": [
- {
- "from": "name",
- "to": "dimension1"
- },
- {
- "from": "custom2",
- "to": "dimension2"
- }
- ],
- "metrics": [
- {
- "from": "email",
- "to": "metric1"
- },
- {
- "from": "trait2",
- "to": "metric2"
- }
- ],
- "resetCustomDimensionsOnPage": [
- {
- "resetCustomDimensionsOnPage": "abc"
- },
- {
- "resetCustomDimensionsOnPage": "xyz"
- }
- ],
- "contentGroupings": [
- {
- "from": "plan",
- "to": "contentGroup1"
- },
- {
- "from": "prop2",
- "to": "contentGroup2"
- }
- ]
- },
- "Enabled": true
- }
- }
- ]
- }
+ },
+ output: {
+ response: {
+ status: 200,
+ body: [
+ {
+ output: {
+ version: '1',
+ type: 'REST',
+ method: 'POST',
+ endpoint: 'https://www.google-analytics.com/collect',
+ headers: {},
+ params: {
+ ea: 'Cart Viewed',
+ ev: 100,
+ ec: 'EnhancedEcommerce',
+ pa: 'detail',
+ v: '1',
+ t: 'event',
+ el: 'event',
+ tid: 'UA-165994240-1',
+ ds: 'web',
+ an: 'RudderLabs JavaScript SDK',
+ av: '1.0.0',
+ aiid: 'com.rudderlabs.javascript',
+ npa: 1,
+ aip: 1,
+ ua: 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36',
+ cid: '00000000000000000000000000',
+ uid: '12345',
+ ul: 'en-US',
+ ni: 1,
+ pr1cd1: 'my product',
+ pr1id: '1',
+ pr1nm: 'my product',
+ pr1pr: 24.75,
+ pr1qt: 1,
+ pr2cd1: 'other product',
+ pr2id: '2',
+ pr2nm: 'other product',
+ pr2pr: 24.75,
+ pr2qt: 3,
+ qt: 124893881700,
+ },
+ body: {
+ JSON: {},
+ XML: {},
+ JSON_ARRAY: {},
+ FORM: {},
+ },
+ files: {},
+ userId: '00000000000000000000000000',
+ },
+ statusCode: 200,
+ },
+ ],
},
- "output": {
- "response": {
- "status": 200,
- "body": [
- {
- "output": {
- "version": "1",
- "type": "REST",
- "method": "POST",
- "endpoint": "https://www.google-analytics.com/collect",
- "headers": {},
- "params": {
- "ev": 100,
- "ea": "Product Shared",
- "ec": "All",
- "ni": 1,
- "v": "1",
- "t": "event",
- "el": "event",
- "tid": "UA-165994240-1",
- "ds": "web",
- "an": "RudderLabs JavaScript SDK",
- "av": "1.0.0",
- "aiid": "com.rudderlabs.javascript",
- "npa": 1,
- "aip": 1,
- "cid": "00000000000000000000000000",
- "ua": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36",
- "uid": "12345",
- "st": "https://www.example.com/abc",
- "dh": "www.example.com",
- "dl": "https://www.example.com/abc",
- "dp": "%2Fabc",
- "ul": "en-US",
- "qt": 124893881700,
- },
- "body": {
- "JSON": {},
- "XML": {},
- "JSON_ARRAY": {},
- "FORM": {}
- },
- "files": {},
- "userId": "00000000000000000000000000"
- },
- "statusCode": 200
- }
- ]
- }
- }
+ },
},
{
- "name": "ga360",
- "description": "Test 38",
- "feature": "processor",
- "module": "destination",
- "version": "v0",
- "input": {
- "request": {
- "body": [
- {
- "message": {
- "channel": "web",
- "context": {
- "app": {
- "build": "1.0.0",
- "name": "RudderLabs JavaScript SDK",
- "namespace": "com.rudderlabs.javascript",
- "version": "1.0.0"
- },
- "traits": {
- "email": "test@rudderstack.com"
- },
- "library": {
- "name": "RudderLabs JavaScript SDK",
- "version": "1.0.0"
- },
- "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36",
- "locale": "en-US",
- "os": {
- "name": "",
- "version": ""
- },
- "screen": {
- "density": 2
- }
- },
- "type": "track",
- "messageId": "ec5481b6-a926-4d2e-b293-0b3a77c4d3be",
- "originalTimestamp": "2019-10-14T11:15:18.300Z",
- "anonymousId": "00000000000000000000000000",
- "userId": "12345",
- "event": "Product List Clicked",
- "properties": {
- "list_id": "Sample Product List",
- "category": "Sample Product List",
- "products": [
- {
- "quantity": 1,
- "price": 24.75,
- "name": "my product",
- "sku": "p-298",
- "product_id": "1"
- },
- {
- "quantity": 3,
- "price": 24.75,
- "name": "other product",
- "sku": "p-299",
- "product_id": "2"
- }
- ]
- },
- "integrations": {
- "All": true
- },
- "sentAt": "2019-10-14T11:15:53.296Z"
- },
- "destination": {
- "Config": {
- "trackingID": "UA-165994240-1",
- "doubleClick": true,
- "enhancedLinkAttribution": true,
- "classic": true,
- "ignoredReferrers": "",
- "serverClassic": false,
- "includeSearch": true,
- "trackCategorizedPages": true,
- "trackNamedPages": true,
- "sampleRate": "100",
- "siteSpeedSampleRate": "1",
- "setAllMappedProps": true,
- "enableServerSideIdentify": true,
- "serverSideIdentifyEventCategory": "cat1",
- "serverSideIdentifyEventAction": "action1",
- "anonymizeIp": true,
- "domain": "domain",
- "enhancedEcommerce": true,
- "nonInteraction": true,
- "optimize": "abc123",
- "sendUserId": true,
- "useGoogleAmpClientId": true,
- "web-useNativeSDK": true,
- "dimensions": [
- {
- "from": "name",
- "to": "dimension1"
- },
- {
- "from": "custom2",
- "to": "dimension2"
- }
- ],
- "metrics": [
- {
- "from": "email",
- "to": "metric1"
- },
- {
- "from": "trait2",
- "to": "metric2"
- }
- ],
- "resetCustomDimensionsOnPage": [
- {
- "resetCustomDimensionsOnPage": "abc"
- },
- {
- "resetCustomDimensionsOnPage": "xyz"
- }
- ],
- "contentGroupings": [
- {
- "from": "plan",
- "to": "contentGroup1"
- },
- {
- "from": "prop2",
- "to": "contentGroup2"
- }
- ]
- },
- "Enabled": true
- }
- }
- ]
- }
+ name: 'ga360',
+ description: 'Test 46',
+ feature: 'processor',
+ module: 'destination',
+ version: 'v0',
+ input: {
+ request: {
+ body: [
+ {
+ message: {
+ channel: 'web',
+ context: {
+ traits: {
+ name1: 'Test',
+ },
+ app: {
+ build: '1.0.0',
+ name: 'RudderLabs JavaScript SDK',
+ namespace: 'com.rudderlabs.javascript',
+ version: '1.0.0',
+ },
+ library: {
+ name: 'RudderLabs JavaScript SDK',
+ version: '1.0.0',
+ },
+ userAgent:
+ 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36',
+ locale: 'en-US',
+ ip: '0.0.0.0',
+ os: {
+ name: '',
+ version: '',
+ },
+ screen: {
+ density: 2,
+ },
+ },
+ properties: {
+ plan: 'standard plan',
+ name: 'rudder test',
+ },
+ type: 'identify',
+ messageId: '84e26acc-56a5-4835-8233-591137fca468',
+ originalTimestamp: '2019-10-14T09:03:17.562Z',
+ anonymousId: '00000000000000000000000000',
+ userId: '123456',
+ integrations: {
+ All: true,
+ },
+ traits: {
+ name1: 'Test',
+ },
+ sentAt: '2019-10-14T09:03:22.563Z',
+ },
+ destination: {
+ Config: {
+ trackingID: 'UA-165994240-1',
+ doubleClick: true,
+ enhancedLinkAttribution: true,
+ classic: true,
+ ignoredReferrers: '',
+ serverClassic: false,
+ includeSearch: true,
+ trackCategorizedPages: true,
+ trackNamedPages: true,
+ sampleRate: '100',
+ siteSpeedSampleRate: '1',
+ setAllMappedProps: true,
+ serverSideIdentifyEventCategory: 'name',
+ serverSideIdentifyEventAction: 'action1',
+ anonymizeIp: true,
+ domain: 'domain',
+ enhancedEcommerce: true,
+ nonInteraction: true,
+ optimize: 'abc123',
+ sendUserId: true,
+ useGoogleAmpClientId: true,
+ 'web-useNativeSDK': true,
+ dimensions: [
+ {
+ from: 'name',
+ to: 'dimension1',
+ },
+ {
+ from: 'custom2',
+ to: 'dimension2',
+ },
+ ],
+ metrics: [
+ {
+ from: 'email',
+ to: 'metric1',
+ },
+ {
+ from: 'trait2',
+ to: 'metric2',
+ },
+ ],
+ resetCustomDimensionsOnPage: [
+ {
+ resetCustomDimensionsOnPage: 'abc',
+ },
+ {
+ resetCustomDimensionsOnPage: 'xyz',
+ },
+ ],
+ contentGroupings: [
+ {
+ from: 'plan',
+ to: 'contentGroup1',
+ },
+ {
+ from: 'prop2',
+ to: 'contentGroup2',
+ },
+ ],
+ },
+ Enabled: true,
+ },
+ },
+ ],
},
- "output": {
- "response": {
- "status": 200,
- "body": [
- {
- "output": {
- "version": "1",
- "type": "REST",
- "method": "POST",
- "endpoint": "https://www.google-analytics.com/collect",
- "headers": {},
- "params": {
- "ea": "Product List Clicked",
- "ec": "Sample Product List",
- "pa": "click",
- "il1pi1id": "1",
- "pr1cd1": "my product",
- "il1pi1nm": "my product",
- "il1pi1pr": 24.75,
- "il1pi2id": "2",
- "pr2cd1": "other product",
- "il1pi2nm": "other product",
- "il1pi2pr": 24.75,
- "v": "1",
- "t": "event",
- "el": "event",
- "tid": "UA-165994240-1",
- "ds": "web",
- "an": "RudderLabs JavaScript SDK",
- "av": "1.0.0",
- "aiid": "com.rudderlabs.javascript",
- "npa": 1,
- "aip": 1,
- "il1nm": "Sample Product List",
- "ua": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36",
- "cid": "00000000000000000000000000",
- "uid": "12345",
- "ni": 1,
- "il1pi2qt": 3,
- "il1pi1qt": 1,
- "ul": "en-US",
- "qt": 124893881700,
- },
- "body": {
- "JSON": {},
- "XML": {},
- "JSON_ARRAY": {},
- "FORM": {}
- },
- "files": {},
- "userId": "00000000000000000000000000"
- },
- "statusCode": 200
- }
- ]
- }
- }
- },
- {
- "name": "ga360",
- "description": "Test 39",
- "feature": "processor",
- "module": "destination",
- "version": "v0",
- "input": {
- "request": {
- "body": [
- {
- "message": {
- "channel": "web",
- "context": {
- "app": {
- "build": "1.0.0",
- "name": "RudderLabs JavaScript SDK",
- "namespace": "com.rudderlabs.javascript",
- "version": "1.0.0"
- },
- "traits": {
- "email": "test@rudderstack.com"
- },
- "library": {
- "name": "RudderLabs JavaScript SDK",
- "version": "1.0.0"
- },
- "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36",
- "locale": "en-US",
- "os": {
- "name": "",
- "version": ""
- },
- "screen": {
- "density": 2
- }
- },
- "type": "track",
- "messageId": "ec5481b6-a926-4d2e-b293-0b3a77c4d3be",
- "originalTimestamp": "2019-10-14T11:15:18.300Z",
- "anonymousId": "00000000000000000000000000",
- "userId": "12345",
- "event": "Product List Clicked",
- "properties": {
- "list_id": "Sample Product List",
- "category": "Sample Product List",
- "products": [
- {
- "quantity": 1,
- "price": 24.75,
- "name": "my product",
- "sku": "p-298"
- },
- {
- "quantity": 3,
- "price": 24.75,
- "name": "other product",
- "sku": "p-299"
- }
- ]
- },
- "integrations": {
- "All": true
- },
- "sentAt": "2019-10-14T11:15:53.296Z"
- },
- "destination": {
- "Config": {
- "trackingID": "UA-165994240-1",
- "doubleClick": true,
- "enhancedLinkAttribution": true,
- "classic": true,
- "ignoredReferrers": "",
- "serverClassic": false,
- "includeSearch": true,
- "trackCategorizedPages": true,
- "trackNamedPages": true,
- "sampleRate": "100",
- "siteSpeedSampleRate": "1",
- "setAllMappedProps": true,
- "enableServerSideIdentify": true,
- "serverSideIdentifyEventCategory": "cat1",
- "serverSideIdentifyEventAction": "action1",
- "anonymizeIp": true,
- "domain": "domain",
- "enhancedEcommerce": true,
- "nonInteraction": true,
- "optimize": "abc123",
- "sendUserId": true,
- "useGoogleAmpClientId": true,
- "web-useNativeSDK": true,
- "dimensions": [
- {
- "from": "name",
- "to": "dimension1"
- },
- {
- "from": "custom2",
- "to": "dimension2"
- }
- ],
- "metrics": [
- {
- "from": "email",
- "to": "metric1"
- },
- {
- "from": "trait2",
- "to": "metric2"
- }
- ],
- "resetCustomDimensionsOnPage": [
- {
- "resetCustomDimensionsOnPage": "abc"
- },
- {
- "resetCustomDimensionsOnPage": "xyz"
- }
- ],
- "contentGroupings": [
- {
- "from": "plan",
- "to": "contentGroup1"
- },
- {
- "from": "prop2",
- "to": "contentGroup2"
- }
- ]
- },
- "Enabled": true
- }
- }
- ]
- }
+ },
+ output: {
+ response: {
+ status: 200,
+ body: [
+ {
+ error: 'server side identify is not on',
+ statTags: {
+ destType: 'GA360',
+ errorCategory: 'dataValidation',
+ errorType: 'configuration',
+ feature: 'processor',
+ implementation: 'native',
+ module: 'destination',
+ },
+ statusCode: 400,
+ },
+ ],
},
- "output": {
- "response": {
- "status": 200,
- "body": [
- {
- "output": {
- "version": "1",
- "type": "REST",
- "method": "POST",
- "endpoint": "https://www.google-analytics.com/collect",
- "headers": {},
- "params": {
- "ea": "Product List Clicked",
- "ec": "Sample Product List",
- "pa": "click",
- "il1pi1id": "p-298",
- "pr1cd1": "my product",
- "il1pi1nm": "my product",
- "il1pi1pr": 24.75,
- "il1pi2id": "p-299",
- "pr2cd1": "other product",
- "il1pi2nm": "other product",
- "il1pi2pr": 24.75,
- "v": "1",
- "t": "event",
- "el": "event",
- "tid": "UA-165994240-1",
- "ds": "web",
- "an": "RudderLabs JavaScript SDK",
- "av": "1.0.0",
- "aiid": "com.rudderlabs.javascript",
- "npa": 1,
- "aip": 1,
- "il1nm": "Sample Product List",
- "ua": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36",
- "cid": "00000000000000000000000000",
- "uid": "12345",
- "ul": "en-US",
- "il1pi2qt": 3,
- "il1pi1qt": 1,
- "ni": 1,
- "qt": 124893881700,
- },
- "body": {
- "JSON": {},
- "XML": {},
- "JSON_ARRAY": {},
- "FORM": {}
- },
- "files": {},
- "userId": "00000000000000000000000000"
- },
- "statusCode": 200
- }
- ]
- }
- }
+ },
},
{
- "name": "ga360",
- "description": "Test 40",
- "feature": "processor",
- "module": "destination",
- "version": "v0",
- "input": {
- "request": {
- "body": [
- {
- "message": {
- "channel": "web",
- "context": {
- "app": {
- "build": "1.0.0",
- "name": "RudderLabs JavaScript SDK",
- "namespace": "com.rudderlabs.javascript",
- "version": "1.0.0"
- },
- "traits": {
- "email": "test@rudderstack.com"
- },
- "library": {
- "name": "RudderLabs JavaScript SDK",
- "version": "1.0.0"
- },
- "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36",
- "locale": "en-US",
- "os": {
- "name": "",
- "version": ""
- },
- "screen": {
- "density": 2
- }
- },
- "type": "track",
- "messageId": "ec5481b6-a926-4d2e-b293-0b3a77c4d3be",
- "originalTimestamp": "2019-10-14T11:15:18.300Z",
- "anonymousId": "00000000000000000000000000",
- "userId": "12345",
- "event": "Product List Clicked",
- "properties": {
- "list_id": "Sample Product List",
- "category": "Sample Product List",
- "products": []
- },
- "integrations": {
- "All": true
- },
- "sentAt": "2019-10-14T11:15:53.296Z"
- },
- "destination": {
- "Config": {
- "trackingID": "UA-165994240-1",
- "doubleClick": true,
- "enhancedLinkAttribution": true,
- "classic": true,
- "ignoredReferrers": "",
- "serverClassic": false,
- "includeSearch": true,
- "trackCategorizedPages": true,
- "trackNamedPages": true,
- "sampleRate": "100",
- "siteSpeedSampleRate": "1",
- "setAllMappedProps": true,
- "enableServerSideIdentify": true,
- "serverSideIdentifyEventCategory": "cat1",
- "serverSideIdentifyEventAction": "action1",
- "anonymizeIp": true,
- "domain": "domain",
- "enhancedEcommerce": true,
- "nonInteraction": true,
- "optimize": "abc123",
- "sendUserId": true,
- "useGoogleAmpClientId": true,
- "web-useNativeSDK": true,
- "dimensions": [
- {
- "from": "name",
- "to": "dimension1"
- },
- {
- "from": "custom2",
- "to": "dimension2"
- }
- ],
- "metrics": [
- {
- "from": "email",
- "to": "metric1"
- },
- {
- "from": "trait2",
- "to": "metric2"
- }
- ],
- "resetCustomDimensionsOnPage": [
- {
- "resetCustomDimensionsOnPage": "abc"
- },
- {
- "resetCustomDimensionsOnPage": "xyz"
- }
- ],
- "contentGroupings": [
- {
- "from": "plan",
- "to": "contentGroup1"
- },
- {
- "from": "prop2",
- "to": "contentGroup2"
- }
- ]
- },
- "Enabled": true
- }
- }
- ]
- }
+ name: 'ga360',
+ description: 'Test 47',
+ feature: 'processor',
+ module: 'destination',
+ version: 'v0',
+ input: {
+ request: {
+ body: [
+ {
+ message: {
+ channel: 'web',
+ context: {
+ app: {
+ build: '1.0.0',
+ name: 'RudderLabs JavaScript SDK',
+ namespace: 'com.rudderlabs.javascript',
+ version: '1.0.0',
+ },
+ traits: {
+ email: 'test@rudderstack.com',
+ },
+ library: {
+ name: 'RudderLabs JavaScript SDK',
+ version: '1.0.0',
+ },
+ userAgent:
+ 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36',
+ locale: 'en-US',
+ ip: '0.0.0.0',
+ os: {
+ name: '',
+ version: '',
+ },
+ screen: {
+ density: 2,
+ },
+ },
+ type: 'screen',
+ messageId: '5e10d13a-bf9a-44bf-b884-43a9e591ea71',
+ originalTimestamp: '2019-10-14T11:15:18.299Z',
+ anonymousId: '00000000000000000000000000',
+ userId: '12345',
+ properties: {
+ name: 'homescreen',
+ },
+ integrations: {
+ All: true,
+ },
+ sentAt: '2019-10-14T11:15:53.296Z',
+ },
+ destination: {
+ Config: {
+ trackingID: 'UA-165994240-1',
+ doubleClick: true,
+ enhancedLinkAttribution: true,
+ classic: true,
+ ignoredReferrers: '',
+ serverClassic: false,
+ includeSearch: true,
+ trackCategorizedPages: true,
+ trackNamedPages: true,
+ sampleRate: '100',
+ siteSpeedSampleRate: '1',
+ setAllMappedProps: true,
+ enableServerSideIdentify: true,
+ serverSideIdentifyEventCategory: 'cat1',
+ serverSideIdentifyEventAction: 'action1',
+ anonymizeIp: true,
+ domain: 'domain',
+ enhancedEcommerce: true,
+ nonInteraction: true,
+ optimize: 'abc123',
+ sendUserId: true,
+ useGoogleAmpClientId: true,
+ 'web-useNativeSDK': true,
+ dimensions: [
+ {
+ from: 'name',
+ to: 'dimension1',
+ },
+ {
+ from: 'custom2',
+ to: 'dimension2',
+ },
+ ],
+ metrics: [
+ {
+ from: 'email',
+ to: 'metric1',
+ },
+ {
+ from: 'trait2',
+ to: 'metric2',
+ },
+ ],
+ resetCustomDimensionsOnPage: [
+ {
+ resetCustomDimensionsOnPage: 'abc',
+ },
+ {
+ resetCustomDimensionsOnPage: 'xyz',
+ },
+ ],
+ contentGroupings: [
+ {
+ from: 'plan',
+ to: 'contentGroup1',
+ },
+ {
+ from: 'prop2',
+ to: 'contentGroup2',
+ },
+ ],
+ },
+ Enabled: true,
+ },
+ },
+ ],
},
- "output": {
- "response": {
- "status": 200,
- "body": [
- {
- "output": {
- "version": "1",
- "type": "REST",
- "method": "POST",
- "endpoint": "https://www.google-analytics.com/collect",
- "headers": {},
- "params": {
- "ni": 1,
- "ea": "Product List Clicked",
- "ec": "Sample Product List",
- "pa": "click",
- "el": "event",
- "v": "1",
- "t": "event",
- "tid": "UA-165994240-1",
- "ds": "web",
- "npa": 1,
- "aip": 1,
- "ua": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36",
- "ul": "en-US",
- "an": "RudderLabs JavaScript SDK",
- "av": "1.0.0",
- "aiid": "com.rudderlabs.javascript",
- "il1nm": "Sample Product List",
- "uid": "12345",
- "cid": "00000000000000000000000000",
- "qt": 124893881700
- },
- "body": {
- "JSON": {},
- "JSON_ARRAY": {},
- "XML": {},
- "FORM": {}
- },
- "files": {},
- "userId": "00000000000000000000000000"
- },
- "statusCode": 200
- }
- ]
- }
- }
- },
- {
- "name": "ga360",
- "description": "Test 41",
- "feature": "processor",
- "module": "destination",
- "version": "v0",
- "input": {
- "request": {
- "body": [
- {
- "message": {
- "channel": "web",
- "context": {
- "app": {
- "build": "1.0.0",
- "name": "RudderLabs JavaScript SDK",
- "namespace": "com.rudderlabs.javascript",
- "version": "1.0.0"
- },
- "traits": {
- "email": "test@rudderstack.com"
- },
- "library": {
- "name": "RudderLabs JavaScript SDK",
- "version": "1.0.0"
- },
- "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36",
- "locale": "en-US",
- "os": {
- "name": "",
- "version": ""
- },
- "screen": {
- "density": 2
- }
- },
- "type": "track",
- "messageId": "ec5481b6-a926-4d2e-b293-0b3a77c4d3be",
- "originalTimestamp": "2019-10-14T11:15:18.300Z",
- "anonymousId": "00000000000000000000000000",
- "userId": "12345",
- "event": "Order Cancelled",
- "properties": {
- "order_id": "rudderstackorder1",
- "total": 99.99,
- "shipping": 13.99,
- "tax": 20.99,
- "currency": "INR",
- "products": [
- {
- "quantity": 1,
- "price": 24.75,
- "name": "my product",
- "sku": "p-298",
- "product_id": "1"
- },
- {
- "quantity": 3,
- "price": 24.75,
- "name": "other product",
- "sku": "p-299",
- "product_id": "2"
- }
- ]
- },
- "integrations": {
- "All": true
- },
- "sentAt": "2019-10-14T11:15:53.296Z"
- },
- "destination": {
- "Config": {
- "trackingID": "UA-165994240-1",
- "doubleClick": true,
- "enhancedLinkAttribution": true,
- "classic": true,
- "ignoredReferrers": "",
- "serverClassic": false,
- "includeSearch": true,
- "trackCategorizedPages": true,
- "trackNamedPages": true,
- "sampleRate": "100",
- "siteSpeedSampleRate": "1",
- "setAllMappedProps": true,
- "enableServerSideIdentify": true,
- "serverSideIdentifyEventCategory": "cat1",
- "serverSideIdentifyEventAction": "action1",
- "anonymizeIp": true,
- "domain": "domain",
- "enhancedEcommerce": true,
- "nonInteraction": true,
- "optimize": "abc123",
- "sendUserId": true,
- "useGoogleAmpClientId": true,
- "web-useNativeSDK": true,
- "dimensions": [
- {
- "from": "name",
- "to": "dimension1"
- },
- {
- "from": "custom2",
- "to": "dimension2"
- }
- ],
- "metrics": [
- {
- "from": "email",
- "to": "metric1"
- },
- {
- "from": "trait2",
- "to": "metric2"
- }
- ],
- "resetCustomDimensionsOnPage": [
- {
- "resetCustomDimensionsOnPage": "abc"
- },
- {
- "resetCustomDimensionsOnPage": "xyz"
- }
- ],
- "contentGroupings": [
- {
- "from": "plan",
- "to": "contentGroup1"
- },
- {
- "from": "prop2",
- "to": "contentGroup2"
- }
- ]
- },
- "Enabled": true
- }
- }
- ]
- }
+ },
+ output: {
+ response: {
+ status: 200,
+ body: [
+ {
+ output: {
+ version: '1',
+ type: 'REST',
+ method: 'POST',
+ endpoint: 'https://www.google-analytics.com/collect',
+ headers: {},
+ params: {
+ cd1: 'homescreen',
+ v: '1',
+ t: 'screenview',
+ tid: 'UA-165994240-1',
+ ds: 'web',
+ an: 'RudderLabs JavaScript SDK',
+ av: '1.0.0',
+ aiid: 'com.rudderlabs.javascript',
+ npa: 1,
+ aip: 1,
+ cid: '00000000000000000000000000',
+ cd: 'homescreen',
+ ua: 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36',
+ uid: '12345',
+ ul: 'en-US',
+ uip: '0.0.0.0',
+ qt: 124893881701,
+ },
+ body: {
+ JSON: {},
+ XML: {},
+ JSON_ARRAY: {},
+ FORM: {},
+ },
+ files: {},
+ userId: '00000000000000000000000000',
+ },
+ statusCode: 200,
+ },
+ ],
},
- "output": {
- "response": {
- "status": 200,
- "body": [
- {
- "output": {
- "version": "1",
- "type": "REST",
- "method": "POST",
- "endpoint": "https://www.google-analytics.com/collect",
- "headers": {},
- "params": {
- "pa": "refund",
- "ev": 100,
- "tr": 99.99,
- "pr1id": "1",
- "pr1cd1": "my product",
- "pr1nm": "my product",
- "pr1pr": 24.75,
- "pr2id": "2",
- "pr2cd1": "other product",
- "pr2nm": "other product",
- "pr2pr": 24.75,
- "ea": "Order Cancelled",
- "ec": "EnhancedEcommerce",
- "v": "1",
- "t": "event",
- "el": "event",
- "tid": "UA-165994240-1",
- "ds": "web",
- "an": "RudderLabs JavaScript SDK",
- "av": "1.0.0",
- "aiid": "com.rudderlabs.javascript",
- "npa": 1,
- "aip": 1,
- "cid": "00000000000000000000000000",
- "ti": "rudderstackorder1",
- "ts": 13.99,
- "tt": 20.99,
- "cu": "INR",
- "ua": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36",
- "uid": "12345",
- "ul": "en-US",
- "pr1qt": 1,
- "pr2qt": 3,
- "ni": 1,
- "qt": 124893881700,
- },
- "body": {
- "JSON": {},
- "XML": {},
- "JSON_ARRAY": {},
- "FORM": {}
- },
- "files": {},
- "userId": "00000000000000000000000000"
- },
- "statusCode": 200
- }
- ]
- }
- }
+ },
},
{
- "name": "ga360",
- "description": "Test 42",
- "feature": "processor",
- "module": "destination",
- "version": "v0",
- "input": {
- "request": {
- "body": [
- {
- "message": {
- "channel": "web",
- "context": {
- "app": {
- "build": "1.0.0",
- "name": "RudderLabs JavaScript SDK",
- "namespace": "com.rudderlabs.javascript",
- "version": "1.0.0"
- },
- "traits": {
- "email": "test@rudderstack.com"
- },
- "library": {
- "name": "RudderLabs JavaScript SDK",
- "version": "1.0.0"
- },
- "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36",
- "locale": "en-US",
- "os": {
- "name": "",
- "version": ""
- },
- "screen": {
- "density": 2
- }
- },
- "type": "track",
- "messageId": "ec5481b6-a926-4d2e-b293-0b3a77c4d3be",
- "originalTimestamp": "2019-10-14T11:15:18.300Z",
- "anonymousId": "00000000000000000000000000",
- "userId": "12345",
- "event": "Order Cancelled",
- "properties": {
- "order_id": "rudderstackorder1",
- "value": 99.99,
- "shipping": 13.99,
- "tax": 20.99,
- "currency": "INR",
- "products": [
- {
- "quantity": 1,
- "price": 24.75,
- "name": "my product",
- "sku": "p-298",
- "product_id": "1"
- },
- {
- "quantity": 3,
- "price": 24.75,
- "name": "other product",
- "sku": "p-299",
- "product_id": "2"
- }
- ]
- },
- "integrations": {
- "All": true
- },
- "sentAt": "2019-10-14T11:15:53.296Z"
- },
- "destination": {
- "Config": {
- "trackingID": "UA-165994240-1",
- "doubleClick": true,
- "enhancedLinkAttribution": true,
- "classic": true,
- "ignoredReferrers": "",
- "serverClassic": false,
- "includeSearch": true,
- "trackCategorizedPages": true,
- "trackNamedPages": true,
- "sampleRate": "100",
- "siteSpeedSampleRate": "1",
- "setAllMappedProps": true,
- "enableServerSideIdentify": true,
- "serverSideIdentifyEventCategory": "cat1",
- "serverSideIdentifyEventAction": "action1",
- "anonymizeIp": true,
- "domain": "domain",
- "enhancedEcommerce": true,
- "nonInteraction": true,
- "optimize": "abc123",
- "sendUserId": true,
- "useGoogleAmpClientId": true,
- "web-useNativeSDK": true,
- "dimensions": [
- {
- "from": "name",
- "to": "dimension1"
- },
- {
- "from": "custom2",
- "to": "dimension2"
- }
- ],
- "metrics": [
- {
- "from": "email",
- "to": "metric1"
- },
- {
- "from": "trait2",
- "to": "metric2"
- }
- ],
- "resetCustomDimensionsOnPage": [
- {
- "resetCustomDimensionsOnPage": "abc"
- },
- {
- "resetCustomDimensionsOnPage": "xyz"
- }
- ],
- "contentGroupings": [
- {
- "from": "plan",
- "to": "contentGroup1"
- },
- {
- "from": "prop2",
- "to": "contentGroup2"
- }
- ]
- },
- "Enabled": true
- }
- }
- ]
- }
+ name: 'ga360',
+ description: 'Test 48',
+ feature: 'processor',
+ module: 'destination',
+ version: 'v0',
+ input: {
+ request: {
+ body: [
+ {
+ message: {
+ channel: 'web',
+ context: {
+ app: {
+ build: '1.0.0',
+ name: 'RudderLabs JavaScript SDK',
+ namespace: 'com.rudderlabs.javascript',
+ version: '1.0.0',
+ },
+ traits: {
+ email: 'test@rudderstack.com',
+ },
+ library: {
+ name: 'RudderLabs JavaScript SDK',
+ version: '1.0.0',
+ },
+ userAgent:
+ 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36',
+ locale: 'en-US',
+ ip: '0.0.0.0',
+ os: {
+ name: '',
+ version: '',
+ },
+ screen: {
+ density: 2,
+ },
+ },
+ type: 'newtype',
+ messageId: '5e10d13a-bf9a-44bf-b884-43a9e591ea71',
+ originalTimestamp: '2019-10-14T11:15:18.299Z',
+ anonymousId: '00000000000000000000000000',
+ userId: '12345',
+ properties: {
+ name: 'homescreen',
+ },
+ integrations: {
+ All: true,
+ },
+ sentAt: '2019-10-14T11:15:53.296Z',
+ },
+ destination: {
+ Config: {
+ trackingID: 'UA-165994240-1',
+ doubleClick: true,
+ enhancedLinkAttribution: true,
+ classic: true,
+ ignoredReferrers: '',
+ serverClassic: false,
+ includeSearch: true,
+ trackCategorizedPages: true,
+ trackNamedPages: true,
+ sampleRate: '100',
+ siteSpeedSampleRate: '1',
+ setAllMappedProps: true,
+ enableServerSideIdentify: true,
+ serverSideIdentifyEventCategory: 'cat1',
+ serverSideIdentifyEventAction: 'action1',
+ anonymizeIp: true,
+ domain: 'domain',
+ enhancedEcommerce: true,
+ nonInteraction: true,
+ optimize: 'abc123',
+ sendUserId: true,
+ useGoogleAmpClientId: true,
+ 'web-useNativeSDK': true,
+ dimensions: [
+ {
+ from: 'name',
+ to: 'dimension1',
+ },
+ {
+ from: 'custom2',
+ to: 'dimension2',
+ },
+ ],
+ metrics: [
+ {
+ from: 'email',
+ to: 'metric1',
+ },
+ {
+ from: 'trait2',
+ to: 'metric2',
+ },
+ ],
+ resetCustomDimensionsOnPage: [
+ {
+ resetCustomDimensionsOnPage: 'abc',
+ },
+ {
+ resetCustomDimensionsOnPage: 'xyz',
+ },
+ ],
+ contentGroupings: [
+ {
+ from: 'plan',
+ to: 'contentGroup1',
+ },
+ {
+ from: 'prop2',
+ to: 'contentGroup2',
+ },
+ ],
+ },
+ Enabled: true,
+ },
+ },
+ ],
},
- "output": {
- "response": {
- "status": 200,
- "body": [
- {
- "output": {
- "version": "1",
- "type": "REST",
- "method": "POST",
- "endpoint": "https://www.google-analytics.com/collect",
- "headers": {},
- "params": {
- "pa": "refund",
- "tr": 99.99,
- "pr1id": "1",
- "pr1cd1": "my product",
- "pr1nm": "my product",
- "pr1pr": 24.75,
- "pr2id": "2",
- "pr2cd1": "other product",
- "pr2nm": "other product",
- "pr2pr": 24.75,
- "ea": "Order Cancelled",
- "ev": 100,
- "ec": "EnhancedEcommerce",
- "v": "1",
- "t": "event",
- "el": "event",
- "tid": "UA-165994240-1",
- "ds": "web",
- "an": "RudderLabs JavaScript SDK",
- "av": "1.0.0",
- "aiid": "com.rudderlabs.javascript",
- "npa": 1,
- "aip": 1,
- "cid": "00000000000000000000000000",
- "ti": "rudderstackorder1",
- "ts": 13.99,
- "tt": 20.99,
- "cu": "INR",
- "ua": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36",
- "uid": "12345",
- "ul": "en-US",
- "pr1qt": 1,
- "pr2qt": 3,
- "ni": 1,
- "qt": 124893881700,
- },
- "body": {
- "JSON": {},
- "XML": {},
- "JSON_ARRAY": {},
- "FORM": {}
- },
- "files": {},
- "userId": "00000000000000000000000000"
- },
- "statusCode": 200
- }
- ]
- }
- }
- },
- {
- "name": "ga360",
- "description": "Test 43",
- "feature": "processor",
- "module": "destination",
- "version": "v0",
- "input": {
- "request": {
- "body": [
- {
- "message": {
- "channel": "web",
- "context": {
- "app": {
- "build": "1.0.0",
- "name": "RudderLabs JavaScript SDK",
- "namespace": "com.rudderlabs.javascript",
- "version": "1.0.0"
- },
- "traits": {
- "email": "test@rudderstack.com"
- },
- "library": {
- "name": "RudderLabs JavaScript SDK",
- "version": "1.0.0"
- },
- "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36",
- "locale": "en-US",
- "os": {
- "name": "",
- "version": ""
- },
- "screen": {
- "density": 2
- }
- },
- "type": "track",
- "messageId": "ec5481b6-a926-4d2e-b293-0b3a77c4d3be",
- "originalTimestamp": "2019-10-14T11:15:18.300Z",
- "anonymousId": "00000000000000000000000000",
- "userId": "12345",
- "event": "Order Cancelled",
- "properties": {
- "order_id": "rudderstackorder1",
- "revenue": 99.99,
- "shipping": 13.99,
- "tax": 20.99,
- "currency": "INR",
- "products": [
- {
- "quantity": 1,
- "price": 24.75,
- "name": "my product",
- "sku": "p-298",
- "product_id": "1"
- },
- {
- "quantity": 3,
- "price": 24.75,
- "name": "other product",
- "sku": "p-299",
- "product_id": "2"
- }
- ]
- },
- "integrations": {
- "All": true
- },
- "sentAt": "2019-10-14T11:15:53.296Z"
- },
- "destination": {
- "Config": {
- "trackingID": "UA-165994240-1",
- "doubleClick": true,
- "enhancedLinkAttribution": true,
- "classic": true,
- "ignoredReferrers": "",
- "serverClassic": false,
- "includeSearch": true,
- "trackCategorizedPages": true,
- "trackNamedPages": true,
- "sampleRate": "100",
- "siteSpeedSampleRate": "1",
- "setAllMappedProps": true,
- "enableServerSideIdentify": true,
- "serverSideIdentifyEventCategory": "cat1",
- "serverSideIdentifyEventAction": "action1",
- "anonymizeIp": true,
- "domain": "domain",
- "enhancedEcommerce": true,
- "nonInteraction": true,
- "optimize": "abc123",
- "sendUserId": true,
- "useGoogleAmpClientId": true,
- "web-useNativeSDK": true,
- "dimensions": [
- {
- "from": "name",
- "to": "dimension1"
- },
- {
- "from": "custom2",
- "to": "dimension2"
- }
- ],
- "metrics": [
- {
- "from": "email",
- "to": "metric1"
- },
- {
- "from": "trait2",
- "to": "metric2"
- }
- ],
- "resetCustomDimensionsOnPage": [
- {
- "resetCustomDimensionsOnPage": "abc"
- },
- {
- "resetCustomDimensionsOnPage": "xyz"
- }
- ],
- "contentGroupings": [
- {
- "from": "plan",
- "to": "contentGroup1"
- },
- {
- "from": "prop2",
- "to": "contentGroup2"
- }
- ]
- },
- "Enabled": true
- }
- }
- ]
- }
+ },
+ output: {
+ response: {
+ status: 200,
+ body: [
+ {
+ error: 'Message type newtype not supported',
+ statTags: {
+ destType: 'GA360',
+ errorCategory: 'dataValidation',
+ errorType: 'instrumentation',
+ feature: 'processor',
+ implementation: 'native',
+ module: 'destination',
+ },
+ statusCode: 400,
+ },
+ ],
},
- "output": {
- "response": {
- "status": 200,
- "body": [
- {
- "output": {
- "version": "1",
- "type": "REST",
- "method": "POST",
- "endpoint": "https://www.google-analytics.com/collect",
- "headers": {},
- "params": {
- "pa": "refund",
- "tr": 99.99,
- "pr1id": "1",
- "pr1cd1": "my product",
- "pr1nm": "my product",
- "pr1pr": 24.75,
- "pr2id": "2",
- "pr2cd1": "other product",
- "pr2nm": "other product",
- "pr2pr": 24.75,
- "ea": "Order Cancelled",
- "ev": 100,
- "ec": "EnhancedEcommerce",
- "v": "1",
- "t": "event",
- "el": "event",
- "tid": "UA-165994240-1",
- "ds": "web",
- "an": "RudderLabs JavaScript SDK",
- "av": "1.0.0",
- "aiid": "com.rudderlabs.javascript",
- "npa": 1,
- "aip": 1,
- "cid": "00000000000000000000000000",
- "ti": "rudderstackorder1",
- "ts": 13.99,
- "tt": 20.99,
- "cu": "INR",
- "ua": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36",
- "uid": "12345",
- "ul": "en-US",
- "pr1qt": 1,
- "pr2qt": 3,
- "ni": 1,
- "qt": 124893881700,
- },
- "body": {
- "JSON": {},
- "XML": {},
- "JSON_ARRAY": {},
- "FORM": {}
- },
- "files": {},
- "userId": "00000000000000000000000000"
- },
- "statusCode": 200
- }
- ]
- }
- }
+ },
},
{
- "name": "ga360",
- "description": "Test 44",
- "feature": "processor",
- "module": "destination",
- "version": "v0",
- "input": {
- "request": {
- "body": [
- {
- "message": {
- "channel": "web",
- "context": {
- "app": {
- "build": "1.0.0",
- "name": "RudderLabs JavaScript SDK",
- "namespace": "com.rudderlabs.javascript",
- "version": "1.0.0"
- },
- "traits": {
- "email": "test@rudderstack.com"
- },
- "library": {
- "name": "RudderLabs JavaScript SDK",
- "version": "1.0.0"
- },
- "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36",
- "locale": "en-US",
- "os": {
- "name": "",
- "version": ""
- },
- "screen": {
- "density": 2
- }
- },
- "type": "track",
- "messageId": "ec5481b6-a926-4d2e-b293-0b3a77c4d3be",
- "originalTimestamp": "2019-10-14T11:15:18.300Z",
- "anonymousId": "00000000000000000000000000",
- "userId": "12345",
- "event": "Order Cancelled",
- "properties": {
- "order_id": "rudderstackorder1",
- "revenue": 99.99,
- "shipping": 13.99,
- "tax": 20.99,
- "currency": "INR",
- "products": []
- },
- "integrations": {
- "All": true
- },
- "sentAt": "2019-10-14T11:15:53.296Z"
- },
- "destination": {
- "Config": {
- "trackingID": "UA-165994240-1",
- "doubleClick": true,
- "enhancedLinkAttribution": true,
- "classic": true,
- "ignoredReferrers": "",
- "serverClassic": false,
- "includeSearch": true,
- "trackCategorizedPages": true,
- "trackNamedPages": true,
- "sampleRate": "100",
- "siteSpeedSampleRate": "1",
- "setAllMappedProps": true,
- "enableServerSideIdentify": true,
- "serverSideIdentifyEventCategory": "cat1",
- "serverSideIdentifyEventAction": "action1",
- "anonymizeIp": true,
- "domain": "domain",
- "enhancedEcommerce": true,
- "nonInteraction": true,
- "optimize": "abc123",
- "sendUserId": true,
- "useGoogleAmpClientId": true,
- "web-useNativeSDK": true,
- "dimensions": [
- {
- "from": "name",
- "to": "dimension1"
- },
- {
- "from": "custom2",
- "to": "dimension2"
- }
- ],
- "metrics": [
- {
- "from": "email",
- "to": "metric1"
- },
- {
- "from": "trait2",
- "to": "metric2"
- }
- ],
- "resetCustomDimensionsOnPage": [
- {
- "resetCustomDimensionsOnPage": "abc"
- },
- {
- "resetCustomDimensionsOnPage": "xyz"
- }
- ],
- "contentGroupings": [
- {
- "from": "plan",
- "to": "contentGroup1"
- },
- {
- "from": "prop2",
- "to": "contentGroup2"
- }
- ]
- },
- "Enabled": true
- }
- }
- ]
- }
+ name: 'ga360',
+ description: 'Test 49',
+ feature: 'processor',
+ module: 'destination',
+ version: 'v0',
+ input: {
+ request: {
+ body: [
+ {
+ message: {
+ channel: 'web',
+ context: {
+ traits: {
+ name: 'Test',
+ },
+ app: {
+ build: '1.0.0',
+ name: 'RudderLabs JavaScript SDK',
+ namespace: 'com.rudderlabs.javascript',
+ version: '1.0.0',
+ },
+ library: {
+ name: 'RudderLabs JavaScript SDK',
+ version: '1.0.0',
+ },
+ userAgent:
+ 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36',
+ locale: 'en-US',
+ ip: '0.0.0.0',
+ os: {
+ name: '',
+ version: '',
+ },
+ screen: {
+ density: 2,
+ },
+ },
+ properties: {
+ plan: 'standard plan',
+ name: 'rudder test',
+ },
+ type: 'identify',
+ messageId: '84e26acc-56a5-4835-8233-591137fca468',
+ originalTimestamp: '2019-10-14T09:03:17.562Z',
+ userId: '12345',
+ integrations: {
+ All: true,
+ },
+ sentAt: '2019-10-14T09:03:22.563Z',
+ },
+ destination: {
+ Config: {
+ trackingID: 'UA-165994240-1',
+ doubleClick: true,
+ enhancedLinkAttribution: true,
+ classic: true,
+ ignoredReferrers: '',
+ serverClassic: false,
+ includeSearch: true,
+ trackCategorizedPages: true,
+ trackNamedPages: true,
+ sampleRate: '100',
+ siteSpeedSampleRate: '1',
+ setAllMappedProps: true,
+ enableServerSideIdentify: true,
+ serverSideIdentifyEventCategory: 'name',
+ serverSideIdentifyEventAction: 'action1',
+ anonymizeIp: true,
+ domain: 'domain',
+ enhancedEcommerce: true,
+ nonInteraction: true,
+ optimize: 'abc123',
+ sendUserId: true,
+ useGoogleAmpClientId: true,
+ 'web-useNativeSDK': true,
+ dimensions: [
+ {
+ from: 'name',
+ to: 'dimension1',
+ },
+ {
+ from: 'custom2',
+ to: 'dimension2',
+ },
+ ],
+ metrics: [
+ {
+ from: 'email',
+ to: 'metric1',
+ },
+ {
+ from: 'trait2',
+ to: 'metric2',
+ },
+ ],
+ resetCustomDimensionsOnPage: [
+ {
+ resetCustomDimensionsOnPage: 'abc',
+ },
+ {
+ resetCustomDimensionsOnPage: 'xyz',
+ },
+ ],
+ contentGroupings: [
+ {
+ from: 'plan',
+ to: 'contentGroup1',
+ },
+ {
+ from: 'prop2',
+ to: 'contentGroup2',
+ },
+ ],
+ },
+ Enabled: true,
+ },
+ },
+ ],
},
- "output": {
- "response": {
- "status": 200,
- "body": [
- {
- "error": "No product information supplied for transaction event",
- "statTags": {
- "destType": "GA360",
- "errorCategory": "dataValidation",
- "errorType": "instrumentation",
- "feature": "processor",
- "implementation": "native",
- "module": "destination"
- },
- "statusCode": 400
- }
- ]
- }
- }
- },
- {
- "name": "ga360",
- "description": "Test 45",
- "feature": "processor",
- "module": "destination",
- "version": "v0",
- "input": {
- "request": {
- "body": [
- {
- "message": {
- "channel": "web",
- "context": {
- "app": {
- "build": "1.0.0",
- "name": "RudderLabs JavaScript SDK",
- "namespace": "com.rudderlabs.javascript",
- "version": "1.0.0"
- },
- "traits": {
- "email": "test@rudderstack.com"
- },
- "library": {
- "name": "RudderLabs JavaScript SDK",
- "version": "1.0.0"
- },
- "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36",
- "locale": "en-US",
- "os": {
- "name": "",
- "version": ""
- },
- "screen": {
- "density": 2
- }
- },
- "type": "track",
- "messageId": "ec5481b6-a926-4d2e-b293-0b3a77c4d3be",
- "originalTimestamp": "2019-10-14T11:15:18.300Z",
- "anonymousId": "00000000000000000000000000",
- "userId": "12345",
- "event": "Cart Viewed",
- "properties": {
- "order_id": "rudderstackorder1",
- "revenue": 99.99,
- "shipping": 13.99,
- "tax": 20.99,
- "currency": "INR",
- "products": [
- {
- "quantity": 1,
- "price": 24.75,
- "name": "my product",
- "sku": "p-298",
- "product_id": "1"
- },
- {
- "quantity": 3,
- "price": 24.75,
- "name": "other product",
- "sku": "p-299",
- "product_id": "2"
- }
- ]
- },
- "integrations": {
- "All": true
- },
- "sentAt": "2019-10-14T11:15:53.296Z"
- },
- "destination": {
- "Config": {
- "trackingID": "UA-165994240-1",
- "doubleClick": true,
- "enhancedLinkAttribution": true,
- "classic": true,
- "ignoredReferrers": "",
- "serverClassic": false,
- "includeSearch": true,
- "trackCategorizedPages": true,
- "trackNamedPages": true,
- "sampleRate": "100",
- "siteSpeedSampleRate": "1",
- "setAllMappedProps": true,
- "enableServerSideIdentify": true,
- "serverSideIdentifyEventCategory": "cat1",
- "serverSideIdentifyEventAction": "action1",
- "anonymizeIp": true,
- "domain": "domain",
- "enhancedEcommerce": true,
- "nonInteraction": true,
- "optimize": "abc123",
- "sendUserId": true,
- "useGoogleAmpClientId": true,
- "web-useNativeSDK": true,
- "dimensions": [
- {
- "from": "name",
- "to": "dimension1"
- },
- {
- "from": "custom2",
- "to": "dimension2"
- }
- ],
- "metrics": [
- {
- "from": "email",
- "to": "metric1"
- },
- {
- "from": "trait2",
- "to": "metric2"
- }
- ],
- "resetCustomDimensionsOnPage": [
- {
- "resetCustomDimensionsOnPage": "abc"
- },
- {
- "resetCustomDimensionsOnPage": "xyz"
- }
- ],
- "contentGroupings": [
- {
- "from": "plan",
- "to": "contentGroup1"
- },
- {
- "from": "prop2",
- "to": "contentGroup2"
- }
- ]
- },
- "Enabled": true
- }
- }
- ]
- }
+ },
+ output: {
+ response: {
+ status: 200,
+ body: [
+ {
+ output: {
+ version: '1',
+ type: 'REST',
+ userId: '12345',
+ method: 'POST',
+ endpoint: 'https://www.google-analytics.com/collect',
+ headers: {},
+ params: {
+ ea: 'action1',
+ ec: 'Test',
+ ni: 1,
+ cd1: 'Test',
+ v: '1',
+ t: 'event',
+ tid: 'UA-165994240-1',
+ ds: 'web',
+ an: 'RudderLabs JavaScript SDK',
+ av: '1.0.0',
+ aiid: 'com.rudderlabs.javascript',
+ npa: 1,
+ aip: 1,
+ ua: 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36',
+ ul: 'en-US',
+ uid: '12345',
+ cid: '827ccb0eea8a706c4c34a16891f84e7b',
+ uip: '0.0.0.0',
+ qt: 124901802438,
+ },
+ body: {
+ JSON: {},
+ XML: {},
+ JSON_ARRAY: {},
+ FORM: {},
+ },
+ files: {},
+ },
+ statusCode: 200,
+ },
+ ],
},
- "output": {
- "response": {
- "status": 200,
- "body": [
- {
- "output": {
- "version": "1",
- "type": "REST",
- "method": "POST",
- "endpoint": "https://www.google-analytics.com/collect",
- "headers": {},
- "params": {
- "ea": "Cart Viewed",
- "ev": 100,
- "ec": "EnhancedEcommerce",
- "pa": "detail",
- "v": "1",
- "t": "event",
- "el": "event",
- "tid": "UA-165994240-1",
- "ds": "web",
- "an": "RudderLabs JavaScript SDK",
- "av": "1.0.0",
- "aiid": "com.rudderlabs.javascript",
- "npa": 1,
- "aip": 1,
- "ua": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36",
- "cid": "00000000000000000000000000",
- "uid": "12345",
- "ul": "en-US",
- "ni": 1,
- "pr1cd1": "my product",
- "pr1id": "1",
- "pr1nm": "my product",
- "pr1pr": 24.75,
- "pr1qt": 1,
- "pr2cd1": "other product",
- "pr2id": "2",
- "pr2nm": "other product",
- "pr2pr": 24.75,
- "pr2qt": 3,
- "qt": 124893881700,
- },
- "body": {
- "JSON": {},
- "XML": {},
- "JSON_ARRAY": {},
- "FORM": {}
- },
- "files": {},
- "userId": "00000000000000000000000000"
- },
- "statusCode": 200
- }
- ]
- }
- }
+ },
},
{
- "name": "ga360",
- "description": "Test 46",
- "feature": "processor",
- "module": "destination",
- "version": "v0",
- "input": {
- "request": {
- "body": [
- {
- "message": {
- "channel": "web",
- "context": {
- "traits": {
- "name1": "Test"
- },
- "app": {
- "build": "1.0.0",
- "name": "RudderLabs JavaScript SDK",
- "namespace": "com.rudderlabs.javascript",
- "version": "1.0.0"
- },
- "library": {
- "name": "RudderLabs JavaScript SDK",
- "version": "1.0.0"
- },
- "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36",
- "locale": "en-US",
- "ip": "0.0.0.0",
- "os": {
- "name": "",
- "version": ""
- },
- "screen": {
- "density": 2
- }
- },
- "properties": {
- "plan": "standard plan",
- "name": "rudder test"
- },
- "type": "identify",
- "messageId": "84e26acc-56a5-4835-8233-591137fca468",
- "originalTimestamp": "2019-10-14T09:03:17.562Z",
- "anonymousId": "00000000000000000000000000",
- "userId": "123456",
- "integrations": {
- "All": true
- },
- "traits": {
- "name1": "Test"
- },
- "sentAt": "2019-10-14T09:03:22.563Z"
- },
- "destination": {
- "Config": {
- "trackingID": "UA-165994240-1",
- "doubleClick": true,
- "enhancedLinkAttribution": true,
- "classic": true,
- "ignoredReferrers": "",
- "serverClassic": false,
- "includeSearch": true,
- "trackCategorizedPages": true,
- "trackNamedPages": true,
- "sampleRate": "100",
- "siteSpeedSampleRate": "1",
- "setAllMappedProps": true,
- "serverSideIdentifyEventCategory": "name",
- "serverSideIdentifyEventAction": "action1",
- "anonymizeIp": true,
- "domain": "domain",
- "enhancedEcommerce": true,
- "nonInteraction": true,
- "optimize": "abc123",
- "sendUserId": true,
- "useGoogleAmpClientId": true,
- "web-useNativeSDK": true,
- "dimensions": [
- {
- "from": "name",
- "to": "dimension1"
- },
- {
- "from": "custom2",
- "to": "dimension2"
- }
- ],
- "metrics": [
- {
- "from": "email",
- "to": "metric1"
- },
- {
- "from": "trait2",
- "to": "metric2"
- }
- ],
- "resetCustomDimensionsOnPage": [
- {
- "resetCustomDimensionsOnPage": "abc"
- },
- {
- "resetCustomDimensionsOnPage": "xyz"
- }
- ],
- "contentGroupings": [
- {
- "from": "plan",
- "to": "contentGroup1"
- },
- {
- "from": "prop2",
- "to": "contentGroup2"
- }
- ]
- },
- "Enabled": true
- }
- }
- ]
- }
+ name: 'ga360',
+ description: 'Test 50',
+ feature: 'processor',
+ module: 'destination',
+ version: 'v0',
+ input: {
+ request: {
+ body: [
+ {
+ message: {
+ channel: 'web',
+ context: {
+ traits: {
+ name: 'Test',
+ },
+ app: {
+ build: '1.0.0',
+ name: 'RudderLabs JavaScript SDK',
+ namespace: 'com.rudderlabs.javascript',
+ version: '1.0.0',
+ },
+ library: {
+ name: 'RudderLabs JavaScript SDK',
+ version: '1.0.0',
+ },
+ userAgent:
+ 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36',
+ locale: 'en-US',
+ ip: '0.0.0.0',
+ os: {
+ name: '',
+ version: '',
+ },
+ screen: {
+ density: 2,
+ },
+ },
+ properties: {
+ plan: 'standard plan',
+ name: 'rudder test',
+ },
+ type: 'identify',
+ messageId: '84e26acc-56a5-4835-8233-591137fca468',
+ originalTimestamp: '2019-10-14T09:03:17.562Z',
+ userId: '12345',
+ integrations: {
+ All: true,
+ },
+ sentAt: '2019-10-14T09:03:22.563Z',
+ },
+ destination: {
+ Config: {
+ trackingID: 'UA-165994240-1',
+ doubleClick: true,
+ enhancedLinkAttribution: true,
+ classic: true,
+ ignoredReferrers: '',
+ serverClassic: false,
+ includeSearch: true,
+ trackCategorizedPages: true,
+ trackNamedPages: true,
+ sampleRate: '100',
+ siteSpeedSampleRate: '1',
+ setAllMappedProps: true,
+ enableServerSideIdentify: true,
+ serverSideIdentifyEventCategory: 'name',
+ serverSideIdentifyEventAction: 'action1',
+ anonymizeIp: true,
+ disableMd5: true,
+ domain: 'domain',
+ enhancedEcommerce: true,
+ nonInteraction: true,
+ optimize: 'abc123',
+ sendUserId: true,
+ useGoogleAmpClientId: true,
+ 'web-useNativeSDK': true,
+ dimensions: [
+ {
+ from: 'name',
+ to: 'dimension1',
+ },
+ {
+ from: 'custom2',
+ to: 'dimension2',
+ },
+ ],
+ metrics: [
+ {
+ from: 'email',
+ to: 'metric1',
+ },
+ {
+ from: 'trait2',
+ to: 'metric2',
+ },
+ ],
+ resetCustomDimensionsOnPage: [
+ {
+ resetCustomDimensionsOnPage: 'abc',
+ },
+ {
+ resetCustomDimensionsOnPage: 'xyz',
+ },
+ ],
+ contentGroupings: [
+ {
+ from: 'plan',
+ to: 'contentGroup1',
+ },
+ {
+ from: 'prop2',
+ to: 'contentGroup2',
+ },
+ ],
+ },
+ Enabled: true,
+ },
+ },
+ ],
},
- "output": {
- "response": {
- "status": 200,
- "body": [
- {
- "error": "server side identify is not on",
- "statTags": {
- "destType": "GA360",
- "errorCategory": "dataValidation",
- "errorType": "configuration",
- "feature": "processor",
- "implementation": "native",
- "module": "destination"
- },
- "statusCode": 400
- }
- ]
- }
- }
- },
- {
- "name": "ga360",
- "description": "Test 47",
- "feature": "processor",
- "module": "destination",
- "version": "v0",
- "input": {
- "request": {
- "body": [
- {
- "message": {
- "channel": "web",
- "context": {
- "app": {
- "build": "1.0.0",
- "name": "RudderLabs JavaScript SDK",
- "namespace": "com.rudderlabs.javascript",
- "version": "1.0.0"
- },
- "traits": {
- "email": "test@rudderstack.com"
- },
- "library": {
- "name": "RudderLabs JavaScript SDK",
- "version": "1.0.0"
- },
- "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36",
- "locale": "en-US",
- "ip": "0.0.0.0",
- "os": {
- "name": "",
- "version": ""
- },
- "screen": {
- "density": 2
- }
- },
- "type": "screen",
- "messageId": "5e10d13a-bf9a-44bf-b884-43a9e591ea71",
- "originalTimestamp": "2019-10-14T11:15:18.299Z",
- "anonymousId": "00000000000000000000000000",
- "userId": "12345",
- "properties": {
- "name": "homescreen"
- },
- "integrations": {
- "All": true
- },
- "sentAt": "2019-10-14T11:15:53.296Z"
- },
- "destination": {
- "Config": {
- "trackingID": "UA-165994240-1",
- "doubleClick": true,
- "enhancedLinkAttribution": true,
- "classic": true,
- "ignoredReferrers": "",
- "serverClassic": false,
- "includeSearch": true,
- "trackCategorizedPages": true,
- "trackNamedPages": true,
- "sampleRate": "100",
- "siteSpeedSampleRate": "1",
- "setAllMappedProps": true,
- "enableServerSideIdentify": true,
- "serverSideIdentifyEventCategory": "cat1",
- "serverSideIdentifyEventAction": "action1",
- "anonymizeIp": true,
- "domain": "domain",
- "enhancedEcommerce": true,
- "nonInteraction": true,
- "optimize": "abc123",
- "sendUserId": true,
- "useGoogleAmpClientId": true,
- "web-useNativeSDK": true,
- "dimensions": [
- {
- "from": "name",
- "to": "dimension1"
- },
- {
- "from": "custom2",
- "to": "dimension2"
- }
- ],
- "metrics": [
- {
- "from": "email",
- "to": "metric1"
- },
- {
- "from": "trait2",
- "to": "metric2"
- }
- ],
- "resetCustomDimensionsOnPage": [
- {
- "resetCustomDimensionsOnPage": "abc"
- },
- {
- "resetCustomDimensionsOnPage": "xyz"
- }
- ],
- "contentGroupings": [
- {
- "from": "plan",
- "to": "contentGroup1"
- },
- {
- "from": "prop2",
- "to": "contentGroup2"
- }
- ]
- },
- "Enabled": true
- }
- }
- ]
- }
+ },
+ output: {
+ response: {
+ status: 200,
+ body: [
+ {
+ output: {
+ version: '1',
+ type: 'REST',
+ userId: '12345',
+ method: 'POST',
+ endpoint: 'https://www.google-analytics.com/collect',
+ headers: {},
+ params: {
+ ea: 'action1',
+ ec: 'Test',
+ ni: 1,
+ cd1: 'Test',
+ v: '1',
+ t: 'event',
+ tid: 'UA-165994240-1',
+ ds: 'web',
+ an: 'RudderLabs JavaScript SDK',
+ av: '1.0.0',
+ aiid: 'com.rudderlabs.javascript',
+ npa: 1,
+ aip: 1,
+ ua: 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36',
+ ul: 'en-US',
+ uid: '12345',
+ uip: '0.0.0.0',
+ qt: 124901802438,
+ },
+ body: {
+ JSON: {},
+ XML: {},
+ JSON_ARRAY: {},
+ FORM: {},
+ },
+ files: {},
+ },
+ statusCode: 200,
+ },
+ ],
},
- "output": {
- "response": {
- "status": 200,
- "body": [
- {
- "output": {
- "version": "1",
- "type": "REST",
- "method": "POST",
- "endpoint": "https://www.google-analytics.com/collect",
- "headers": {},
- "params": {
- "cd1": "homescreen",
- "v": "1",
- "t": "screenview",
- "tid": "UA-165994240-1",
- "ds": "web",
- "an": "RudderLabs JavaScript SDK",
- "av": "1.0.0",
- "aiid": "com.rudderlabs.javascript",
- "npa": 1,
- "aip": 1,
- "cid": "00000000000000000000000000",
- "cd": "homescreen",
- "ua": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36",
- "uid": "12345",
- "ul": "en-US",
- "uip": "0.0.0.0",
- "qt": 124893881701,
- },
- "body": {
- "JSON": {},
- "XML": {},
- "JSON_ARRAY": {},
- "FORM": {}
- },
- "files": {},
- "userId": "00000000000000000000000000"
- },
- "statusCode": 200
- }
- ]
- }
- }
+ },
},
{
- "name": "ga360",
- "description": "Test 48",
- "feature": "processor",
- "module": "destination",
- "version": "v0",
- "input": {
- "request": {
- "body": [
- {
- "message": {
- "channel": "web",
- "context": {
- "app": {
- "build": "1.0.0",
- "name": "RudderLabs JavaScript SDK",
- "namespace": "com.rudderlabs.javascript",
- "version": "1.0.0"
- },
- "traits": {
- "email": "test@rudderstack.com"
- },
- "library": {
- "name": "RudderLabs JavaScript SDK",
- "version": "1.0.0"
- },
- "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36",
- "locale": "en-US",
- "ip": "0.0.0.0",
- "os": {
- "name": "",
- "version": ""
- },
- "screen": {
- "density": 2
- }
- },
- "type": "newtype",
- "messageId": "5e10d13a-bf9a-44bf-b884-43a9e591ea71",
- "originalTimestamp": "2019-10-14T11:15:18.299Z",
- "anonymousId": "00000000000000000000000000",
- "userId": "12345",
- "properties": {
- "name": "homescreen"
- },
- "integrations": {
- "All": true
- },
- "sentAt": "2019-10-14T11:15:53.296Z"
- },
- "destination": {
- "Config": {
- "trackingID": "UA-165994240-1",
- "doubleClick": true,
- "enhancedLinkAttribution": true,
- "classic": true,
- "ignoredReferrers": "",
- "serverClassic": false,
- "includeSearch": true,
- "trackCategorizedPages": true,
- "trackNamedPages": true,
- "sampleRate": "100",
- "siteSpeedSampleRate": "1",
- "setAllMappedProps": true,
- "enableServerSideIdentify": true,
- "serverSideIdentifyEventCategory": "cat1",
- "serverSideIdentifyEventAction": "action1",
- "anonymizeIp": true,
- "domain": "domain",
- "enhancedEcommerce": true,
- "nonInteraction": true,
- "optimize": "abc123",
- "sendUserId": true,
- "useGoogleAmpClientId": true,
- "web-useNativeSDK": true,
- "dimensions": [
- {
- "from": "name",
- "to": "dimension1"
- },
- {
- "from": "custom2",
- "to": "dimension2"
- }
- ],
- "metrics": [
- {
- "from": "email",
- "to": "metric1"
- },
- {
- "from": "trait2",
- "to": "metric2"
- }
- ],
- "resetCustomDimensionsOnPage": [
- {
- "resetCustomDimensionsOnPage": "abc"
- },
- {
- "resetCustomDimensionsOnPage": "xyz"
- }
- ],
- "contentGroupings": [
- {
- "from": "plan",
- "to": "contentGroup1"
- },
- {
- "from": "prop2",
- "to": "contentGroup2"
- }
- ]
- },
- "Enabled": true
- }
- }
- ]
- }
+ name: 'ga360',
+ description: 'Test 51',
+ feature: 'processor',
+ module: 'destination',
+ version: 'v0',
+ input: {
+ request: {
+ body: [
+ {
+ message: {
+ channel: 'web',
+ context: {
+ traits: {
+ name: 'Test',
+ },
+ app: {
+ build: '1.0.0',
+ name: 'RudderLabs JavaScript SDK',
+ namespace: 'com.rudderlabs.javascript',
+ version: '1.0.0',
+ },
+ library: {
+ name: 'RudderLabs JavaScript SDK',
+ version: '1.0.0',
+ },
+ userAgent:
+ 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36',
+ locale: 'en-US',
+ ip: '0.0.0.0',
+ os: {
+ name: '',
+ version: '',
+ },
+ screen: {
+ density: 2,
+ },
+ },
+ properties: {
+ plan: 'standard plan',
+ name: 'rudder test',
+ },
+ type: 'identify',
+ messageId: '84e26acc-56a5-4835-8233-591137fca468',
+ originalTimestamp: '2019-10-14T09:03:17.562Z',
+ userId: '12345',
+ integrations: {
+ All: true,
+ GA: {
+ clientId: 'clientId',
+ },
+ 'Google Analytics': {
+ clientId: 'clientId',
+ },
+ },
+ sentAt: '2019-10-14T09:03:22.563Z',
+ },
+ destination: {
+ Config: {
+ trackingID: 'UA-165994240-1',
+ doubleClick: true,
+ enhancedLinkAttribution: true,
+ classic: true,
+ ignoredReferrers: '',
+ serverClassic: false,
+ includeSearch: true,
+ trackCategorizedPages: true,
+ trackNamedPages: true,
+ sampleRate: '100',
+ siteSpeedSampleRate: '1',
+ setAllMappedProps: true,
+ enableServerSideIdentify: true,
+ serverSideIdentifyEventCategory: 'name',
+ serverSideIdentifyEventAction: 'action1',
+ anonymizeIp: true,
+ domain: 'domain',
+ enhancedEcommerce: true,
+ nonInteraction: true,
+ optimize: 'abc123',
+ sendUserId: true,
+ useGoogleAmpClientId: true,
+ 'web-useNativeSDK': true,
+ dimensions: [
+ {
+ from: 'name',
+ to: 'dimension1',
+ },
+ {
+ from: 'custom2',
+ to: 'dimension2',
+ },
+ ],
+ metrics: [
+ {
+ from: 'email',
+ to: 'metric1',
+ },
+ {
+ from: 'trait2',
+ to: 'metric2',
+ },
+ ],
+ resetCustomDimensionsOnPage: [
+ {
+ resetCustomDimensionsOnPage: 'abc',
+ },
+ {
+ resetCustomDimensionsOnPage: 'xyz',
+ },
+ ],
+ contentGroupings: [
+ {
+ from: 'plan',
+ to: 'contentGroup1',
+ },
+ {
+ from: 'prop2',
+ to: 'contentGroup2',
+ },
+ ],
+ },
+ Enabled: true,
+ },
+ },
+ ],
},
- "output": {
- "response": {
- "status": 200,
- "body": [
- {
- "error": "Message type newtype not supported",
- "statTags": {
- "destType": "GA360",
- "errorCategory": "dataValidation",
- "errorType": "instrumentation",
- "feature": "processor",
- "implementation": "native",
- "module": "destination"
- },
- "statusCode": 400
- }
- ]
- }
- }
- },
- {
- "name": "ga360",
- "description": "Test 49",
- "feature": "processor",
- "module": "destination",
- "version": "v0",
- "input": {
- "request": {
- "body": [
- {
- "message": {
- "channel": "web",
- "context": {
- "traits": {
- "name": "Test"
- },
- "app": {
- "build": "1.0.0",
- "name": "RudderLabs JavaScript SDK",
- "namespace": "com.rudderlabs.javascript",
- "version": "1.0.0"
- },
- "library": {
- "name": "RudderLabs JavaScript SDK",
- "version": "1.0.0"
- },
- "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36",
- "locale": "en-US",
- "ip": "0.0.0.0",
- "os": {
- "name": "",
- "version": ""
- },
- "screen": {
- "density": 2
- }
- },
- "properties": {
- "plan": "standard plan",
- "name": "rudder test"
- },
- "type": "identify",
- "messageId": "84e26acc-56a5-4835-8233-591137fca468",
- "originalTimestamp": "2019-10-14T09:03:17.562Z",
- "userId": "12345",
- "integrations": {
- "All": true
- },
- "sentAt": "2019-10-14T09:03:22.563Z"
- },
- "destination": {
- "Config": {
- "trackingID": "UA-165994240-1",
- "doubleClick": true,
- "enhancedLinkAttribution": true,
- "classic": true,
- "ignoredReferrers": "",
- "serverClassic": false,
- "includeSearch": true,
- "trackCategorizedPages": true,
- "trackNamedPages": true,
- "sampleRate": "100",
- "siteSpeedSampleRate": "1",
- "setAllMappedProps": true,
- "enableServerSideIdentify": true,
- "serverSideIdentifyEventCategory": "name",
- "serverSideIdentifyEventAction": "action1",
- "anonymizeIp": true,
- "domain": "domain",
- "enhancedEcommerce": true,
- "nonInteraction": true,
- "optimize": "abc123",
- "sendUserId": true,
- "useGoogleAmpClientId": true,
- "web-useNativeSDK": true,
- "dimensions": [
- {
- "from": "name",
- "to": "dimension1"
- },
- {
- "from": "custom2",
- "to": "dimension2"
- }
- ],
- "metrics": [
- {
- "from": "email",
- "to": "metric1"
- },
- {
- "from": "trait2",
- "to": "metric2"
- }
- ],
- "resetCustomDimensionsOnPage": [
- {
- "resetCustomDimensionsOnPage": "abc"
- },
- {
- "resetCustomDimensionsOnPage": "xyz"
- }
- ],
- "contentGroupings": [
- {
- "from": "plan",
- "to": "contentGroup1"
- },
- {
- "from": "prop2",
- "to": "contentGroup2"
- }
- ]
- },
- "Enabled": true
- }
- }
- ]
- }
+ },
+ output: {
+ response: {
+ status: 200,
+ body: [
+ {
+ output: {
+ version: '1',
+ type: 'REST',
+ userId: '12345',
+ method: 'POST',
+ endpoint: 'https://www.google-analytics.com/collect',
+ headers: {},
+ params: {
+ ea: 'action1',
+ ec: 'Test',
+ ni: 1,
+ cd1: 'Test',
+ v: '1',
+ t: 'event',
+ tid: 'UA-165994240-1',
+ ds: 'web',
+ an: 'RudderLabs JavaScript SDK',
+ av: '1.0.0',
+ aiid: 'com.rudderlabs.javascript',
+ npa: 1,
+ aip: 1,
+ ua: 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36',
+ ul: 'en-US',
+ uid: '12345',
+ cid: 'clientId',
+ uip: '0.0.0.0',
+ qt: 124901802438,
+ },
+ body: {
+ JSON: {},
+ XML: {},
+ JSON_ARRAY: {},
+ FORM: {},
+ },
+ files: {},
+ },
+ statusCode: 200,
+ },
+ ],
},
- "output": {
- "response": {
- "status": 200,
- "body": [
- {
- "output": {
- "version": "1",
- "type": "REST",
- "userId": "12345",
- "method": "POST",
- "endpoint": "https://www.google-analytics.com/collect",
- "headers": {},
- "params": {
- "ea": "action1",
- "ec": "Test",
- "ni": 1,
- "cd1": "Test",
- "v": "1",
- "t": "event",
- "tid": "UA-165994240-1",
- "ds": "web",
- "an": "RudderLabs JavaScript SDK",
- "av": "1.0.0",
- "aiid": "com.rudderlabs.javascript",
- "npa": 1,
- "aip": 1,
- "ua": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36",
- "ul": "en-US",
- "uid": "12345",
- "cid": "827ccb0eea8a706c4c34a16891f84e7b",
- "uip": "0.0.0.0",
- "qt": 124901802438
- },
- "body": {
- "JSON": {},
- "XML": {},
- "JSON_ARRAY": {},
- "FORM": {}
- },
- "files": {}
- },
- "statusCode": 200
- }
- ]
- }
- }
+ },
},
{
- "name": "ga360",
- "description": "Test 50",
- "feature": "processor",
- "module": "destination",
- "version": "v0",
- "input": {
- "request": {
- "body": [
- {
- "message": {
- "channel": "web",
- "context": {
- "traits": {
- "name": "Test"
- },
- "app": {
- "build": "1.0.0",
- "name": "RudderLabs JavaScript SDK",
- "namespace": "com.rudderlabs.javascript",
- "version": "1.0.0"
- },
- "library": {
- "name": "RudderLabs JavaScript SDK",
- "version": "1.0.0"
- },
- "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36",
- "locale": "en-US",
- "ip": "0.0.0.0",
- "os": {
- "name": "",
- "version": ""
- },
- "screen": {
- "density": 2
- }
- },
- "properties": {
- "plan": "standard plan",
- "name": "rudder test"
- },
- "type": "identify",
- "messageId": "84e26acc-56a5-4835-8233-591137fca468",
- "originalTimestamp": "2019-10-14T09:03:17.562Z",
- "userId": "12345",
- "integrations": {
- "All": true
- },
- "sentAt": "2019-10-14T09:03:22.563Z"
- },
- "destination": {
- "Config": {
- "trackingID": "UA-165994240-1",
- "doubleClick": true,
- "enhancedLinkAttribution": true,
- "classic": true,
- "ignoredReferrers": "",
- "serverClassic": false,
- "includeSearch": true,
- "trackCategorizedPages": true,
- "trackNamedPages": true,
- "sampleRate": "100",
- "siteSpeedSampleRate": "1",
- "setAllMappedProps": true,
- "enableServerSideIdentify": true,
- "serverSideIdentifyEventCategory": "name",
- "serverSideIdentifyEventAction": "action1",
- "anonymizeIp": true,
- "disableMd5": true,
- "domain": "domain",
- "enhancedEcommerce": true,
- "nonInteraction": true,
- "optimize": "abc123",
- "sendUserId": true,
- "useGoogleAmpClientId": true,
- "web-useNativeSDK": true,
- "dimensions": [
- {
- "from": "name",
- "to": "dimension1"
- },
- {
- "from": "custom2",
- "to": "dimension2"
- }
- ],
- "metrics": [
- {
- "from": "email",
- "to": "metric1"
- },
- {
- "from": "trait2",
- "to": "metric2"
- }
- ],
- "resetCustomDimensionsOnPage": [
- {
- "resetCustomDimensionsOnPage": "abc"
- },
- {
- "resetCustomDimensionsOnPage": "xyz"
- }
- ],
- "contentGroupings": [
- {
- "from": "plan",
- "to": "contentGroup1"
- },
- {
- "from": "prop2",
- "to": "contentGroup2"
- }
- ]
- },
- "Enabled": true
- }
- }
- ]
- }
+ name: 'ga360',
+ description: 'Test 52',
+ feature: 'processor',
+ module: 'destination',
+ version: 'v0',
+ input: {
+ request: {
+ body: [
+ {
+ message: {
+ channel: 'web',
+ context: {
+ externalId: [
+ {
+ id: 'externalClientId',
+ type: 'gaExternalId',
+ },
+ ],
+ traits: {
+ name: 'Test',
+ },
+ app: {
+ build: '1.0.0',
+ name: 'RudderLabs JavaScript SDK',
+ namespace: 'com.rudderlabs.javascript',
+ version: '1.0.0',
+ },
+ library: {
+ name: 'RudderLabs JavaScript SDK',
+ version: '1.0.0',
+ },
+ userAgent:
+ 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36',
+ locale: 'en-US',
+ ip: '0.0.0.0',
+ os: {
+ name: '',
+ version: '',
+ },
+ screen: {
+ density: 2,
+ },
+ },
+ properties: {
+ plan: 'standard plan',
+ name: 'rudder test',
+ },
+ type: 'identify',
+ messageId: '84e26acc-56a5-4835-8233-591137fca468',
+ originalTimestamp: '2019-10-14T09:03:17.562Z',
+ userId: '12345',
+ integrations: {
+ All: true,
+ },
+ sentAt: '2019-10-14T09:03:22.563Z',
+ },
+ destination: {
+ Config: {
+ trackingID: 'UA-165994240-1',
+ doubleClick: true,
+ enhancedLinkAttribution: true,
+ classic: true,
+ ignoredReferrers: '',
+ serverClassic: false,
+ includeSearch: true,
+ trackCategorizedPages: true,
+ trackNamedPages: true,
+ sampleRate: '100',
+ siteSpeedSampleRate: '1',
+ setAllMappedProps: true,
+ enableServerSideIdentify: true,
+ serverSideIdentifyEventCategory: 'name',
+ serverSideIdentifyEventAction: 'action1',
+ anonymizeIp: true,
+ domain: 'domain',
+ enhancedEcommerce: true,
+ nonInteraction: true,
+ optimize: 'abc123',
+ sendUserId: true,
+ useGoogleAmpClientId: true,
+ 'web-useNativeSDK': true,
+ dimensions: [
+ {
+ from: 'name',
+ to: 'dimension1',
+ },
+ {
+ from: 'custom2',
+ to: 'dimension2',
+ },
+ ],
+ metrics: [
+ {
+ from: 'email',
+ to: 'metric1',
+ },
+ {
+ from: 'trait2',
+ to: 'metric2',
+ },
+ ],
+ resetCustomDimensionsOnPage: [
+ {
+ resetCustomDimensionsOnPage: 'abc',
+ },
+ {
+ resetCustomDimensionsOnPage: 'xyz',
+ },
+ ],
+ contentGroupings: [
+ {
+ from: 'plan',
+ to: 'contentGroup1',
+ },
+ {
+ from: 'prop2',
+ to: 'contentGroup2',
+ },
+ ],
+ },
+ Enabled: true,
+ },
+ },
+ ],
},
- "output": {
- "response": {
- "status": 200,
- "body": [
- {
- "output": {
- "version": "1",
- "type": "REST",
- "userId": "12345",
- "method": "POST",
- "endpoint": "https://www.google-analytics.com/collect",
- "headers": {},
- "params": {
- "ea": "action1",
- "ec": "Test",
- "ni": 1,
- "cd1": "Test",
- "v": "1",
- "t": "event",
- "tid": "UA-165994240-1",
- "ds": "web",
- "an": "RudderLabs JavaScript SDK",
- "av": "1.0.0",
- "aiid": "com.rudderlabs.javascript",
- "npa": 1,
- "aip": 1,
- "ua": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36",
- "ul": "en-US",
- "uid": "12345",
- "uip": "0.0.0.0",
- "qt": 124901802438
- },
- "body": {
- "JSON": {},
- "XML": {},
- "JSON_ARRAY": {},
- "FORM": {}
- },
- "files": {}
- },
- "statusCode": 200
- }
- ]
- }
- }
- },
- {
- "name": "ga360",
- "description": "Test 51",
- "feature": "processor",
- "module": "destination",
- "version": "v0",
- "input": {
- "request": {
- "body": [
- {
- "message": {
- "channel": "web",
- "context": {
- "traits": {
- "name": "Test"
- },
- "app": {
- "build": "1.0.0",
- "name": "RudderLabs JavaScript SDK",
- "namespace": "com.rudderlabs.javascript",
- "version": "1.0.0"
- },
- "library": {
- "name": "RudderLabs JavaScript SDK",
- "version": "1.0.0"
- },
- "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36",
- "locale": "en-US",
- "ip": "0.0.0.0",
- "os": {
- "name": "",
- "version": ""
- },
- "screen": {
- "density": 2
- }
- },
- "properties": {
- "plan": "standard plan",
- "name": "rudder test"
- },
- "type": "identify",
- "messageId": "84e26acc-56a5-4835-8233-591137fca468",
- "originalTimestamp": "2019-10-14T09:03:17.562Z",
- "userId": "12345",
- "integrations": {
- "All": true,
- "GA": {
- "clientId": "clientId"
- },
- "Google Analytics": {
- "clientId": "clientId"
- }
- },
- "sentAt": "2019-10-14T09:03:22.563Z"
- },
- "destination": {
- "Config": {
- "trackingID": "UA-165994240-1",
- "doubleClick": true,
- "enhancedLinkAttribution": true,
- "classic": true,
- "ignoredReferrers": "",
- "serverClassic": false,
- "includeSearch": true,
- "trackCategorizedPages": true,
- "trackNamedPages": true,
- "sampleRate": "100",
- "siteSpeedSampleRate": "1",
- "setAllMappedProps": true,
- "enableServerSideIdentify": true,
- "serverSideIdentifyEventCategory": "name",
- "serverSideIdentifyEventAction": "action1",
- "anonymizeIp": true,
- "domain": "domain",
- "enhancedEcommerce": true,
- "nonInteraction": true,
- "optimize": "abc123",
- "sendUserId": true,
- "useGoogleAmpClientId": true,
- "web-useNativeSDK": true,
- "dimensions": [
- {
- "from": "name",
- "to": "dimension1"
- },
- {
- "from": "custom2",
- "to": "dimension2"
- }
- ],
- "metrics": [
- {
- "from": "email",
- "to": "metric1"
- },
- {
- "from": "trait2",
- "to": "metric2"
- }
- ],
- "resetCustomDimensionsOnPage": [
- {
- "resetCustomDimensionsOnPage": "abc"
- },
- {
- "resetCustomDimensionsOnPage": "xyz"
- }
- ],
- "contentGroupings": [
- {
- "from": "plan",
- "to": "contentGroup1"
- },
- {
- "from": "prop2",
- "to": "contentGroup2"
- }
- ]
- },
- "Enabled": true
- }
- }
- ]
- }
+ },
+ output: {
+ response: {
+ status: 200,
+ body: [
+ {
+ output: {
+ version: '1',
+ type: 'REST',
+ userId: '12345',
+ method: 'POST',
+ endpoint: 'https://www.google-analytics.com/collect',
+ headers: {},
+ params: {
+ ea: 'action1',
+ ec: 'Test',
+ ni: 1,
+ cd1: 'Test',
+ v: '1',
+ t: 'event',
+ tid: 'UA-165994240-1',
+ ds: 'web',
+ an: 'RudderLabs JavaScript SDK',
+ av: '1.0.0',
+ aiid: 'com.rudderlabs.javascript',
+ npa: 1,
+ aip: 1,
+ ua: 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36',
+ ul: 'en-US',
+ uid: '12345',
+ cid: 'externalClientId',
+ uip: '0.0.0.0',
+ qt: 124901802438,
+ },
+ body: {
+ JSON: {},
+ XML: {},
+ JSON_ARRAY: {},
+ FORM: {},
+ },
+ files: {},
+ },
+ statusCode: 200,
+ },
+ ],
},
- "output": {
- "response": {
- "status": 200,
- "body": [
- {
- "output": {
- "version": "1",
- "type": "REST",
- "userId": "12345",
- "method": "POST",
- "endpoint": "https://www.google-analytics.com/collect",
- "headers": {},
- "params": {
- "ea": "action1",
- "ec": "Test",
- "ni": 1,
- "cd1": "Test",
- "v": "1",
- "t": "event",
- "tid": "UA-165994240-1",
- "ds": "web",
- "an": "RudderLabs JavaScript SDK",
- "av": "1.0.0",
- "aiid": "com.rudderlabs.javascript",
- "npa": 1,
- "aip": 1,
- "ua": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36",
- "ul": "en-US",
- "uid": "12345",
- "cid": "clientId",
- "uip": "0.0.0.0",
- "qt": 124901802438
- },
- "body": {
- "JSON": {},
- "XML": {},
- "JSON_ARRAY": {},
- "FORM": {}
- },
- "files": {}
- },
- "statusCode": 200
- }
- ]
- }
- }
+ },
},
- {
- "name": "ga360",
- "description": "Test 52",
- "feature": "processor",
- "module": "destination",
- "version": "v0",
- "input": {
- "request": {
- "body": [
- {
- "message": {
- "channel": "web",
- "context": {
- "externalId": [
- {
- "id": "externalClientId",
- "type": "gaExternalId"
- }
- ],
- "traits": {
- "name": "Test"
- },
- "app": {
- "build": "1.0.0",
- "name": "RudderLabs JavaScript SDK",
- "namespace": "com.rudderlabs.javascript",
- "version": "1.0.0"
- },
- "library": {
- "name": "RudderLabs JavaScript SDK",
- "version": "1.0.0"
- },
- "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36",
- "locale": "en-US",
- "ip": "0.0.0.0",
- "os": {
- "name": "",
- "version": ""
- },
- "screen": {
- "density": 2
- }
- },
- "properties": {
- "plan": "standard plan",
- "name": "rudder test"
- },
- "type": "identify",
- "messageId": "84e26acc-56a5-4835-8233-591137fca468",
- "originalTimestamp": "2019-10-14T09:03:17.562Z",
- "userId": "12345",
- "integrations": {
- "All": true
- },
- "sentAt": "2019-10-14T09:03:22.563Z"
- },
- "destination": {
- "Config": {
- "trackingID": "UA-165994240-1",
- "doubleClick": true,
- "enhancedLinkAttribution": true,
- "classic": true,
- "ignoredReferrers": "",
- "serverClassic": false,
- "includeSearch": true,
- "trackCategorizedPages": true,
- "trackNamedPages": true,
- "sampleRate": "100",
- "siteSpeedSampleRate": "1",
- "setAllMappedProps": true,
- "enableServerSideIdentify": true,
- "serverSideIdentifyEventCategory": "name",
- "serverSideIdentifyEventAction": "action1",
- "anonymizeIp": true,
- "domain": "domain",
- "enhancedEcommerce": true,
- "nonInteraction": true,
- "optimize": "abc123",
- "sendUserId": true,
- "useGoogleAmpClientId": true,
- "web-useNativeSDK": true,
- "dimensions": [
- {
- "from": "name",
- "to": "dimension1"
- },
- {
- "from": "custom2",
- "to": "dimension2"
- }
- ],
- "metrics": [
- {
- "from": "email",
- "to": "metric1"
- },
- {
- "from": "trait2",
- "to": "metric2"
- }
- ],
- "resetCustomDimensionsOnPage": [
- {
- "resetCustomDimensionsOnPage": "abc"
- },
- {
- "resetCustomDimensionsOnPage": "xyz"
- }
- ],
- "contentGroupings": [
- {
- "from": "plan",
- "to": "contentGroup1"
- },
- {
- "from": "prop2",
- "to": "contentGroup2"
- }
- ]
- },
- "Enabled": true
- }
- }
- ]
- }
- },
- "output": {
- "response": {
- "status": 200,
- "body": [
- {
- "output": {
- "version": "1",
- "type": "REST",
- "userId": "12345",
- "method": "POST",
- "endpoint": "https://www.google-analytics.com/collect",
- "headers": {},
- "params": {
- "ea": "action1",
- "ec": "Test",
- "ni": 1,
- "cd1": "Test",
- "v": "1",
- "t": "event",
- "tid": "UA-165994240-1",
- "ds": "web",
- "an": "RudderLabs JavaScript SDK",
- "av": "1.0.0",
- "aiid": "com.rudderlabs.javascript",
- "npa": 1,
- "aip": 1,
- "ua": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36",
- "ul": "en-US",
- "uid": "12345",
- "cid": "externalClientId",
- "uip": "0.0.0.0",
- "qt": 124901802438
- },
- "body": {
- "JSON": {},
- "XML": {},
- "JSON_ARRAY": {},
- "FORM": {}
- },
- "files": {}
- },
- "statusCode": 200
- }
- ]
- }
- }
- }
-].map((d) => ({ ...d, mockFns }))
+].map((d) => ({ ...d, mockFns }));
diff --git a/test/integrations/destinations/gainsight/processor/data.ts b/test/integrations/destinations/gainsight/processor/data.ts
index fbeb01f593..dc4fe25e1b 100644
--- a/test/integrations/destinations/gainsight/processor/data.ts
+++ b/test/integrations/destinations/gainsight/processor/data.ts
@@ -1,970 +1,979 @@
export const data = [
- {
- "name": "gainsight",
- "description": "Test 0",
- "feature": "processor",
- "module": "destination",
- "version": "v0",
- "input": {
- "request": {
- "body": [
- {
- "destination": {
- "Config": {
- "domain": "demo-domain.gainsightcloud.com",
- "accessKey": "sample-access-key",
- "personMap": [],
- "companyMap": [],
- "eventNameMap": [],
- "eventVersionMap": []
- }
- },
- "message": {
- "channel": "web",
- "context": {
- "app": {
- "build": "1.0.0",
- "name": "RudderLabs JavaScript SDK",
- "namespace": "com.rudderlabs.javascript",
- "version": "1.0.0"
- },
- "library": {
- "name": "RudderLabs JavaScript SDK",
- "version": "1.0.0"
- },
- "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36",
- "locale": "en-US",
- "ip": "0.0.0.0",
- "os": {
- "name": "",
- "version": ""
- },
- "screen": {
- "density": 2
- }
- },
- "messageId": "84e26acc-56a5-4835-8233-591137fca468",
- "session_id": "3049dc4c-5a95-4ccd-a3e7-d74a7e411f22",
- "originalTimestamp": "2019-10-14T09:03:17.562Z",
- "anonymousId": "anon_id",
- "type": "identify",
- "traits": {
- "email": "cosmo@krammer.com",
- "name": "Cosmo Krammer",
- "linkedinUrl": "https://linkedin.com/cosmo-krammer",
- "location": "New York",
- "emailOptOut": true,
- "masterAvatarTypeCode": 10
- },
- "integrations": {
- "All": true
- },
- "sentAt": "2019-10-14T09:03:22.563Z"
- }
- }
- ]
- }
- },
- "output": {
- "response": {
- "status": 200,
- "body": [
- {
- "output": {
- "body": {
- "XML": {},
- "JSON_ARRAY": {},
- "FORM": {},
- "JSON": {
- "Email": "cosmo@krammer.com",
- "Name": "Cosmo Krammer",
- "LinkedinUrl": "https://linkedin.com/cosmo-krammer",
- "Location": "New York",
- "EmailOptOut": true,
- "MasterAvatarTypeCode": 10
- }
- },
- "type": "REST",
- "files": {},
- "method": "PUT",
- "params": {},
- "headers": {
- "Accesskey": "sample-access-key",
- "Content-Type": "application/json"
- },
- "version": "1",
- "endpoint": "https://demo-domain.gainsightcloud.com/v1.0/api/people",
- "userId": ""
- },
- "statusCode": 200
- }
- ]
- }
- }
- },
- {
- "name": "gainsight",
- "description": "Test 1",
- "feature": "processor",
- "module": "destination",
- "version": "v0",
- "input": {
- "request": {
- "body": [
- {
- "destination": {
- "Config": {
- "domain": "demo-domain.gainsightcloud.com",
- "accessKey": "sample-access-key",
- "personMap": [
- {
- "from": "age",
- "to": "age__gc"
- }
- ],
- "companyMap": [],
- "eventNameMap": [],
- "eventVersionMap": []
- }
- },
- "message": {
- "channel": "web",
- "context": {
- "app": {
- "build": "1.0.0",
- "name": "RudderLabs JavaScript SDK",
- "namespace": "com.rudderlabs.javascript",
- "version": "1.0.0"
- },
- "library": {
- "name": "RudderLabs JavaScript SDK",
- "version": "1.0.0"
- },
- "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36",
- "locale": "en-US",
- "ip": "0.0.0.0",
- "os": {
- "name": "",
- "version": ""
- },
- "screen": {
- "density": 2
- }
- },
- "messageId": "84e26acc-56a5-4835-8233-591137fca468",
- "session_id": "3049dc4c-5a95-4ccd-a3e7-d74a7e411f22",
- "originalTimestamp": "2019-10-14T09:03:17.562Z",
- "anonymousId": "anon_id",
- "type": "identify",
- "traits": {
- "email": "cosmo@krammer.com",
- "name": "Cosmo Krammer",
- "linkedinUrl": "https://linkedin.com/cosmo-krammer",
- "location": "New York",
- "emailOptOut": true,
- "masterAvatarTypeCode": 10,
- "age": 35,
- "randomKey": "this should be dropped"
- },
- "integrations": {
- "All": true
- },
- "sentAt": "2019-10-14T09:03:22.563Z"
- }
- }
- ]
- }
- },
- "output": {
- "response": {
- "status": 200,
- "body": [
- {
- "output": {
- "body": {
- "XML": {},
- "JSON_ARRAY": {},
- "FORM": {},
- "JSON": {
- "Email": "cosmo@krammer.com",
- "Name": "Cosmo Krammer",
- "LinkedinUrl": "https://linkedin.com/cosmo-krammer",
- "Location": "New York",
- "EmailOptOut": true,
- "MasterAvatarTypeCode": 10,
- "age__gc": 35
- }
- },
- "type": "REST",
- "files": {},
- "method": "PUT",
- "params": {},
- "headers": {
- "Accesskey": "sample-access-key",
- "Content-Type": "application/json"
- },
- "version": "1",
- "endpoint": "https://demo-domain.gainsightcloud.com/v1.0/api/people",
- "userId": ""
- },
- "statusCode": 200
- }
- ]
- }
- }
- },
- {
- "name": "gainsight",
- "description": "Test 2",
- "feature": "processor",
- "module": "destination",
- "version": "v0",
- "input": {
- "request": {
- "body": [
- {
- "destination": {
- "Config": {
- "domain": "demo-domain.gainsightcloud.com",
- "accessKey": "sample-access-key",
- "personMap": [],
- "companyMap": [],
- "eventNameMap": [],
- "eventVersionMap": []
- }
- },
- "message": {
- "channel": "web",
- "context": {
- "app": {
- "build": "1.0.0",
- "name": "RudderLabs JavaScript SDK",
- "namespace": "com.rudderlabs.javascript",
- "version": "1.0.0"
- },
- "library": {
- "name": "RudderLabs JavaScript SDK",
- "version": "1.0.0"
- },
- "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36",
- "locale": "en-US",
- "ip": "0.0.0.0",
- "os": {
- "name": "",
- "version": ""
- },
- "screen": {
- "density": 2
- }
- },
- "messageId": "84e26acc-56a5-4835-8233-591137fca468",
- "session_id": "3049dc4c-5a95-4ccd-a3e7-d74a7e411f22",
- "originalTimestamp": "2019-10-14T09:03:17.562Z",
- "anonymousId": "anon_id",
- "type": "identify",
- "traits": {
- "name": "Cosmo Krammer",
- "linkedinUrl": "https://linkedin.com/cosmo-krammer",
- "location": "New York",
- "emailOptOut": true,
- "masterAvatarTypeCode": 10
- },
- "integrations": {
- "All": true
- },
- "sentAt": "2019-10-14T09:03:22.563Z"
- }
- }
- ]
- }
- },
- "output": {
- "response": {
- "status": 200,
- "body": [
- {
- "error": "email is required for identify",
- "statTags": {
- "destType": "GAINSIGHT",
- "errorCategory": "dataValidation",
- "errorType": "instrumentation",
- "feature": "processor",
- "implementation": "native",
- "module": "destination"
- },
- "statusCode": 400
- }
- ]
- }
- }
- },
- {
- "name": "gainsight",
- "description": "Test 3",
- "feature": "processor",
- "module": "destination",
- "version": "v0",
- "input": {
- "request": {
- "body": [
- {
- "destination": {
- "Config": {
- "domain": "demo-domain.gainsightcloud.com",
- "accessKey": "sample-access-key",
- "sharedSecret": "sample-shared-secret",
- "eventNameMap": [
- {
- "from": "Ticket Resolved",
- "to": "Ticket Resolved Event"
- }
- ],
- "eventVersionMap": [
- {
- "from": "Ticket Resolved",
- "to": "1.0.0"
- }
- ],
- "topicName": "Ticket Actions",
- "tenantId": "sample-tenant-id",
- "personMap": [],
- "companyMap": []
- }
- },
- "message": {
- "channel": "web",
- "context": {
- "app": {
- "build": "1.0.0",
- "name": "RudderLabs JavaScript SDK",
- "namespace": "com.rudderlabs.javascript",
- "version": "1.0.0"
- },
- "library": {
- "name": "RudderLabs JavaScript SDK",
- "version": "1.0.0"
- },
- "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36",
- "locale": "en-US",
- "ip": "0.0.0.0",
- "os": {
- "name": "",
- "version": ""
- },
- "screen": {
- "density": 2
- }
- },
- "messageId": "84e26acc-56a5-4835-8233-591137fca468",
- "session_id": "3049dc4c-5a95-4ccd-a3e7-d74a7e411f22",
- "originalTimestamp": "2019-10-14T09:03:17.562Z",
- "anonymousId": "anon_id",
- "type": "track",
- "event": "Ticket Resolved",
- "properties": {
- "ticketId": "sample-ticket-id",
- "actionEmail": "sample@email.com",
- "status": "resovled"
- },
- "integrations": {
- "All": true
- },
- "sentAt": "2019-10-14T09:03:22.563Z"
- }
- }
- ]
- }
- },
- "output": {
- "response": {
- "status": 200,
- "body": [
- {
- "output": {
- "body": {
- "XML": {},
- "JSON_ARRAY": {},
- "FORM": {},
- "JSON": {
- "ticketId": "sample-ticket-id",
- "actionEmail": "sample@email.com",
- "status": "resovled"
- }
- },
- "type": "REST",
- "files": {},
- "method": "POST",
- "params": {},
- "headers": {
- "Accesskey": "sample-access-key",
- "tenantId": "sample-tenant-id",
- "sharedSecret": "sample-shared-secret",
- "Content-Type": "application/json",
- "topicName": "Ticket Actions",
- "eventName": "Ticket Resolved Event",
- "eventVersion": "1.0.0"
- },
- "version": "1",
- "endpoint": "https://demo-domain.gainsightcloud.com/v1.0/api/eventManager/event",
- "userId": ""
- },
- "statusCode": 200
- }
- ]
- }
- }
- },
- {
- "name": "gainsight",
- "description": "Test 4",
- "feature": "processor",
- "module": "destination",
- "version": "v0",
- "input": {
- "request": {
- "body": [
- {
- "destination": {
- "Config": {
- "domain": "demo-domain.gainsightcloud.com",
- "accessKey": "sample-access-key",
- "sharedSecret": "sample-shared-secret",
- "personMap": [],
- "companyMap": [],
- "eventNameMap": [],
- "eventVersionMap": []
- }
- },
- "message": {
- "channel": "web",
- "context": {
- "app": {
- "build": "1.0.0",
- "name": "RudderLabs JavaScript SDK",
- "namespace": "com.rudderlabs.javascript",
- "version": "1.0.0"
- },
- "library": {
- "name": "RudderLabs JavaScript SDK",
- "version": "1.0.0"
- },
- "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36",
- "locale": "en-US",
- "ip": "0.0.0.0",
- "os": {
- "name": "",
- "version": ""
- },
- "screen": {
- "density": 2
- },
- "traits": {
- "email": "krammer@seinfeld.com"
- }
- },
- "messageId": "84e26acc-56a5-4835-8233-591137fca468",
- "session_id": "3049dc4c-5a95-4ccd-a3e7-d74a7e411f22",
- "originalTimestamp": "2019-10-14T09:03:17.562Z",
- "anonymousId": "anon_id",
- "type": "group",
- "traits": {
- "name": "Kramerica Industries",
- "industry": "Sitcom",
- "employees": "100",
- "status": "complete",
- "companyType": "spoof"
- },
- "integrations": {
- "All": true
- },
- "sentAt": "2019-10-14T09:03:22.563Z"
- }
- }
- ]
- }
- },
- "output": {
- "response": {
- "status": 200,
- "body": [
- {
- "output": {
- "body": {
- "XML": {},
- "JSON_ARRAY": {},
- "FORM": {},
- "JSON": {
- "Email": "krammer@seinfeld.com",
- "companies": [
- {
- "Company_ID": "1P0203VCESP7AUQMV9E953G"
- }
- ]
- }
- },
- "type": "REST",
- "files": {},
- "method": "PUT",
- "params": {},
- "headers": {
- "Accesskey": "sample-access-key",
- "Content-Type": "application/json"
- },
- "version": "1",
- "endpoint": "https://demo-domain.gainsightcloud.com/v1.0/api/people",
- "userId": ""
- },
- "statusCode": 200
- }
- ]
- }
- }
- },
- {
- "name": "gainsight",
- "description": "Test 5",
- "feature": "processor",
- "module": "destination",
- "version": "v0",
- "input": {
- "request": {
- "body": [
- {
- "destination": {
- "Config": {
- "domain": "demo-domain.gainsightcloud.com",
- "accessKey": "sample-access-key",
- "sharedSecret": "sample-shared-secret",
- "personMap": [],
- "companyMap": [],
- "eventNameMap": [],
- "eventVersionMap": []
- }
- },
- "message": {
- "channel": "web",
- "context": {
- "app": {
- "build": "1.0.0",
- "name": "RudderLabs JavaScript SDK",
- "namespace": "com.rudderlabs.javascript",
- "version": "1.0.0"
- },
- "library": {
- "name": "RudderLabs JavaScript SDK",
- "version": "1.0.0"
- },
- "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36",
- "locale": "en-US",
- "ip": "0.0.0.0",
- "os": {
- "name": "",
- "version": ""
- },
- "screen": {
- "density": 2
- },
- "traits": {
- "email": "krammer@seinfeld.com"
- }
- },
- "messageId": "84e26acc-56a5-4835-8233-591137fca468",
- "session_id": "3049dc4c-5a95-4ccd-a3e7-d74a7e411f22",
- "originalTimestamp": "2019-10-14T09:03:17.562Z",
- "anonymousId": "anon_id",
- "type": "group",
- "traits": {
- "name": "Seinfeld Corps",
- "industry": "TV Series",
- "employees": "50",
- "status": "complete"
- },
- "integrations": {
- "All": true
- },
- "sentAt": "2019-10-14T09:03:22.563Z"
- }
- }
- ]
- }
- },
- "output": {
- "response": {
- "status": 200,
- "body": [
- {
- "output": {
- "body": {
- "XML": {},
- "JSON_ARRAY": {},
- "FORM": {},
- "JSON": {
- "Email": "krammer@seinfeld.com",
- "companies": [
- {
- "Company_ID": "1P0203VCESP7AUQMV9E953G"
- }
- ]
- }
- },
- "type": "REST",
- "files": {},
- "method": "PUT",
- "params": {},
- "headers": {
- "Accesskey": "sample-access-key",
- "Content-Type": "application/json"
- },
- "version": "1",
- "endpoint": "https://demo-domain.gainsightcloud.com/v1.0/api/people",
- "userId": ""
- },
- "statusCode": 200
- }
- ]
- }
- }
- },
- {
- "name": "gainsight",
- "description": "Test 6",
- "feature": "processor",
- "module": "destination",
- "version": "v0",
- "input": {
- "request": {
- "body": [
- {
- "destination": {
- "Config": {
- "domain": "demo-domain.gainsightcloud.com",
- "accessKey": "sample-access-key",
- "personMap": [],
- "companyMap": [],
- "eventNameMap": [],
- "eventVersionMap": []
- }
- },
- "message": {
- "channel": "web",
- "context": {
- "app": {
- "build": "1.0.0",
- "name": "RudderLabs JavaScript SDK",
- "namespace": "com.rudderlabs.javascript",
- "version": "1.0.0"
- },
- "library": {
- "name": "RudderLabs JavaScript SDK",
- "version": "1.0.0"
- },
- "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36",
- "locale": "en-US",
- "ip": "0.0.0.0",
- "os": {
- "name": "",
- "version": ""
- },
- "screen": {
- "density": 2
- }
- },
- "messageId": "84e26acc-56a5-4835-8233-591137fca468",
- "session_id": "3049dc4c-5a95-4ccd-a3e7-d74a7e411f22",
- "originalTimestamp": "2019-10-14T09:03:17.562Z",
- "anonymousId": "anon_id",
- "type": "identify",
- "traits": {
- "email": "cosmo@krammer.com",
- "firstname": "Cosmo",
- "lastname": "Krammer",
- "linkedinUrl": "https://linkedin.com/cosmo-krammer",
- "location": "New York",
- "emailOptOut": true,
- "masterAvatarTypeCode": 10
- },
- "integrations": {
- "All": true
- },
- "sentAt": "2019-10-14T09:03:22.563Z"
- }
- }
- ]
- }
- },
- "output": {
- "response": {
- "status": 200,
- "body": [
- {
- "output": {
- "body": {
- "XML": {},
- "JSON_ARRAY": {},
- "FORM": {},
- "JSON": {
- "Email": "cosmo@krammer.com",
- "FirstName": "Cosmo",
- "LastName": "Krammer",
- "Name": "Cosmo Krammer",
- "LinkedinUrl": "https://linkedin.com/cosmo-krammer",
- "Location": "New York",
- "EmailOptOut": true,
- "MasterAvatarTypeCode": 10
- }
- },
- "type": "REST",
- "files": {},
- "method": "PUT",
- "params": {},
- "headers": {
- "Accesskey": "sample-access-key",
- "Content-Type": "application/json"
- },
- "version": "1",
- "endpoint": "https://demo-domain.gainsightcloud.com/v1.0/api/people",
- "userId": ""
- },
- "statusCode": 200
- }
- ]
- }
- }
- },
- {
- "name": "gainsight",
- "description": "Test 7",
- "feature": "processor",
- "module": "destination",
- "version": "v0",
- "input": {
- "request": {
- "body": [
- {
- "destination": {
- "Config": {
- "domain": "demo-domain.gainsightcloud.com",
- "accessKey": "sample-access-key",
- "sharedSecret": "sample-shared-secret",
- "eventNameMap": [
- {
- "from": "Ticket Resolved",
- "to": "Ticket Resolved Event"
- }
- ],
- "eventVersionMap": [
- {
- "from": "Ticket Resolved",
- "to": "1.0.0"
- }
- ],
- "topicName": "Ticket Actions",
- "tenantId": "sample-tenant-id",
- "personMap": [],
- "companyMap": [],
- "contractId": "externalId-shall-get-precedence"
- }
- },
- "message": {
- "channel": "web",
- "context": {
- "app": {
- "build": "1.0.0",
- "name": "RudderLabs JavaScript SDK",
- "namespace": "com.rudderlabs.javascript",
- "version": "1.0.0"
- },
- "library": {
- "name": "RudderLabs JavaScript SDK",
- "version": "1.0.0"
- },
- "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36",
- "locale": "en-US",
- "ip": "0.0.0.0",
- "os": {
- "name": "",
- "version": ""
- },
- "screen": {
- "density": 2
- },
- "externalId": [
- {
- "type": "gainsightEventContractId",
- "id": "sample-contract-id"
- }
- ]
- },
- "messageId": "84e26acc-56a5-4835-8233-591137fca468",
- "session_id": "3049dc4c-5a95-4ccd-a3e7-d74a7e411f22",
- "originalTimestamp": "2019-10-14T09:03:17.562Z",
- "anonymousId": "anon_id",
- "type": "track",
- "event": "Ticket Resolved",
- "properties": {
- "ticketId": "sample-ticket-id",
- "actionEmail": "sample@email.com",
- "status": "resovled"
- },
- "integrations": {
- "All": true
- },
- "sentAt": "2019-10-14T09:03:22.563Z"
- }
- }
- ]
- }
- },
- "output": {
- "response": {
- "status": 200,
- "body": [
- {
- "output": {
- "body": {
- "XML": {},
- "JSON_ARRAY": {},
- "FORM": {},
- "JSON": {
- "ticketId": "sample-ticket-id",
- "actionEmail": "sample@email.com",
- "status": "resovled"
- }
- },
- "type": "REST",
- "files": {},
- "method": "POST",
- "params": {},
- "headers": {
- "Accesskey": "sample-access-key",
- "tenantId": "sample-tenant-id",
- "sharedSecret": "sample-shared-secret",
- "Content-Type": "application/json",
- "topicName": "Ticket Actions",
- "eventName": "Ticket Resolved Event",
- "eventVersion": "1.0.0",
- "contractId": "sample-contract-id"
- },
- "version": "1",
- "endpoint": "https://demo-domain.gainsightcloud.com/v1.0/api/eventManager/event",
- "userId": ""
- },
- "statusCode": 200
- }
- ]
- }
- }
- },
- {
- "name": "gainsight",
- "description": "Test 8",
- "feature": "processor",
- "module": "destination",
- "version": "v0",
- "input": {
- "request": {
- "body": [
- {
- "destination": {
- "Config": {
- "domain": "demo-domain.gainsightcloud.com",
- "accessKey": "sample-access-key",
- "personMap": [
- {
- "from": "car",
- "to": "car__gc"
- }
- ],
- "companyMap": [],
- "eventNameMap": [],
- "eventVersionMap": []
- }
- },
- "message": {
- "channel": "web",
- "context": {
- "app": {
- "build": "1.0.0",
- "name": "RudderLabs JavaScript SDK",
- "namespace": "com.rudderlabs.javascript",
- "version": "1.0.0"
- },
- "library": {
- "name": "RudderLabs JavaScript SDK",
- "version": "1.0.0"
- },
- "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36",
- "locale": "en-US",
- "ip": "0.0.0.0",
- "os": {
- "name": "",
- "version": ""
- },
- "screen": {
- "density": 2
- }
- },
- "messageId": "84e26acc-56a5-4835-8233-591137fca468",
- "session_id": "3049dc4c-5a95-4ccd-a3e7-d74a7e411f22",
- "originalTimestamp": "2019-10-14T09:03:17.562Z",
- "anonymousId": "anon_id",
- "type": "identify",
- "traits": {
- "name": "Bruce Wayne",
- "email": "ceo@waynefoundation.com",
- "car": "Batmobile",
- "comments": "I am Batman!",
- "lastName": "Wayne",
- "location": "Gotham Central",
- "firstName": "Bruce",
- "linkedinUrl": "https://www.linkedin.com/in/notyourBatman/"
- },
- "integrations": {
- "All": true
- },
- "sentAt": "2019-10-14T09:03:22.563Z"
- }
- }
- ]
- }
- },
- "output": {
- "response": {
- "status": 200,
- "body": [
- {
- "output": {
- "body": {
- "XML": {},
- "JSON_ARRAY": {},
- "FORM": {},
- "JSON": {
- "Name": "Bruce Wayne",
- "Email": "ceo@waynefoundation.com",
- "car__gc": "Batmobile",
- "Comments": "I am Batman!",
- "LastName": "Wayne",
- "Location": "Gotham Central",
- "FirstName": "Bruce",
- "LinkedinUrl": "https://www.linkedin.com/in/notyourBatman/"
- }
- },
- "type": "REST",
- "files": {},
- "method": "PUT",
- "params": {},
- "headers": {
- "Accesskey": "sample-access-key",
- "Content-Type": "application/json"
- },
- "version": "1",
- "endpoint": "https://demo-domain.gainsightcloud.com/v1.0/api/people",
- "userId": ""
- },
- "statusCode": 200
- }
- ]
- }
- }
- }
-]
+ {
+ name: 'gainsight',
+ description: 'Test 0',
+ feature: 'processor',
+ module: 'destination',
+ version: 'v0',
+ input: {
+ request: {
+ body: [
+ {
+ destination: {
+ Config: {
+ domain: 'demo-domain.gainsightcloud.com',
+ accessKey: 'sample-access-key',
+ personMap: [],
+ companyMap: [],
+ eventNameMap: [],
+ eventVersionMap: [],
+ },
+ },
+ message: {
+ channel: 'web',
+ context: {
+ app: {
+ build: '1.0.0',
+ name: 'RudderLabs JavaScript SDK',
+ namespace: 'com.rudderlabs.javascript',
+ version: '1.0.0',
+ },
+ library: {
+ name: 'RudderLabs JavaScript SDK',
+ version: '1.0.0',
+ },
+ userAgent:
+ 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36',
+ locale: 'en-US',
+ ip: '0.0.0.0',
+ os: {
+ name: '',
+ version: '',
+ },
+ screen: {
+ density: 2,
+ },
+ },
+ messageId: '84e26acc-56a5-4835-8233-591137fca468',
+ session_id: '3049dc4c-5a95-4ccd-a3e7-d74a7e411f22',
+ originalTimestamp: '2019-10-14T09:03:17.562Z',
+ anonymousId: 'anon_id',
+ type: 'identify',
+ traits: {
+ email: 'cosmo@krammer.com',
+ name: 'Cosmo Krammer',
+ linkedinUrl: 'https://linkedin.com/cosmo-krammer',
+ location: 'New York',
+ emailOptOut: true,
+ masterAvatarTypeCode: 10,
+ },
+ integrations: {
+ All: true,
+ },
+ sentAt: '2019-10-14T09:03:22.563Z',
+ },
+ },
+ ],
+ },
+ },
+ output: {
+ response: {
+ status: 200,
+ body: [
+ {
+ output: {
+ body: {
+ XML: {},
+ JSON_ARRAY: {},
+ FORM: {},
+ JSON: {
+ Email: 'cosmo@krammer.com',
+ Name: 'Cosmo Krammer',
+ LinkedinUrl: 'https://linkedin.com/cosmo-krammer',
+ Location: 'New York',
+ EmailOptOut: true,
+ MasterAvatarTypeCode: 10,
+ },
+ },
+ type: 'REST',
+ files: {},
+ method: 'PUT',
+ params: {},
+ headers: {
+ Accesskey: 'sample-access-key',
+ 'Content-Type': 'application/json',
+ },
+ version: '1',
+ endpoint: 'https://demo-domain.gainsightcloud.com/v1.0/api/people',
+ userId: '',
+ },
+ statusCode: 200,
+ },
+ ],
+ },
+ },
+ },
+ {
+ name: 'gainsight',
+ description: 'Test 1',
+ feature: 'processor',
+ module: 'destination',
+ version: 'v0',
+ input: {
+ request: {
+ body: [
+ {
+ destination: {
+ Config: {
+ domain: 'demo-domain.gainsightcloud.com',
+ accessKey: 'sample-access-key',
+ personMap: [
+ {
+ from: 'age',
+ to: 'age__gc',
+ },
+ ],
+ companyMap: [],
+ eventNameMap: [],
+ eventVersionMap: [],
+ },
+ },
+ message: {
+ channel: 'web',
+ context: {
+ app: {
+ build: '1.0.0',
+ name: 'RudderLabs JavaScript SDK',
+ namespace: 'com.rudderlabs.javascript',
+ version: '1.0.0',
+ },
+ library: {
+ name: 'RudderLabs JavaScript SDK',
+ version: '1.0.0',
+ },
+ userAgent:
+ 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36',
+ locale: 'en-US',
+ ip: '0.0.0.0',
+ os: {
+ name: '',
+ version: '',
+ },
+ screen: {
+ density: 2,
+ },
+ },
+ messageId: '84e26acc-56a5-4835-8233-591137fca468',
+ session_id: '3049dc4c-5a95-4ccd-a3e7-d74a7e411f22',
+ originalTimestamp: '2019-10-14T09:03:17.562Z',
+ anonymousId: 'anon_id',
+ type: 'identify',
+ traits: {
+ email: 'cosmo@krammer.com',
+ name: 'Cosmo Krammer',
+ linkedinUrl: 'https://linkedin.com/cosmo-krammer',
+ location: 'New York',
+ emailOptOut: true,
+ masterAvatarTypeCode: 10,
+ age: 35,
+ randomKey: 'this should be dropped',
+ },
+ integrations: {
+ All: true,
+ },
+ sentAt: '2019-10-14T09:03:22.563Z',
+ },
+ },
+ ],
+ },
+ },
+ output: {
+ response: {
+ status: 200,
+ body: [
+ {
+ output: {
+ body: {
+ XML: {},
+ JSON_ARRAY: {},
+ FORM: {},
+ JSON: {
+ Email: 'cosmo@krammer.com',
+ Name: 'Cosmo Krammer',
+ LinkedinUrl: 'https://linkedin.com/cosmo-krammer',
+ Location: 'New York',
+ EmailOptOut: true,
+ MasterAvatarTypeCode: 10,
+ age__gc: 35,
+ },
+ },
+ type: 'REST',
+ files: {},
+ method: 'PUT',
+ params: {},
+ headers: {
+ Accesskey: 'sample-access-key',
+ 'Content-Type': 'application/json',
+ },
+ version: '1',
+ endpoint: 'https://demo-domain.gainsightcloud.com/v1.0/api/people',
+ userId: '',
+ },
+ statusCode: 200,
+ },
+ ],
+ },
+ },
+ },
+ {
+ name: 'gainsight',
+ description: 'Test 2',
+ feature: 'processor',
+ module: 'destination',
+ version: 'v0',
+ input: {
+ request: {
+ body: [
+ {
+ destination: {
+ Config: {
+ domain: 'demo-domain.gainsightcloud.com',
+ accessKey: 'sample-access-key',
+ personMap: [],
+ companyMap: [],
+ eventNameMap: [],
+ eventVersionMap: [],
+ },
+ },
+ message: {
+ channel: 'web',
+ context: {
+ app: {
+ build: '1.0.0',
+ name: 'RudderLabs JavaScript SDK',
+ namespace: 'com.rudderlabs.javascript',
+ version: '1.0.0',
+ },
+ library: {
+ name: 'RudderLabs JavaScript SDK',
+ version: '1.0.0',
+ },
+ userAgent:
+ 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36',
+ locale: 'en-US',
+ ip: '0.0.0.0',
+ os: {
+ name: '',
+ version: '',
+ },
+ screen: {
+ density: 2,
+ },
+ },
+ messageId: '84e26acc-56a5-4835-8233-591137fca468',
+ session_id: '3049dc4c-5a95-4ccd-a3e7-d74a7e411f22',
+ originalTimestamp: '2019-10-14T09:03:17.562Z',
+ anonymousId: 'anon_id',
+ type: 'identify',
+ traits: {
+ name: 'Cosmo Krammer',
+ linkedinUrl: 'https://linkedin.com/cosmo-krammer',
+ location: 'New York',
+ emailOptOut: true,
+ masterAvatarTypeCode: 10,
+ },
+ integrations: {
+ All: true,
+ },
+ sentAt: '2019-10-14T09:03:22.563Z',
+ },
+ },
+ ],
+ },
+ },
+ output: {
+ response: {
+ status: 200,
+ body: [
+ {
+ error: 'email is required for identify',
+ statTags: {
+ destType: 'GAINSIGHT',
+ errorCategory: 'dataValidation',
+ errorType: 'instrumentation',
+ feature: 'processor',
+ implementation: 'native',
+ module: 'destination',
+ },
+ statusCode: 400,
+ },
+ ],
+ },
+ },
+ },
+ {
+ name: 'gainsight',
+ description: 'Test 3',
+ feature: 'processor',
+ module: 'destination',
+ version: 'v0',
+ input: {
+ request: {
+ body: [
+ {
+ destination: {
+ Config: {
+ domain: 'demo-domain.gainsightcloud.com',
+ accessKey: 'sample-access-key',
+ sharedSecret: 'sample-shared-secret',
+ eventNameMap: [
+ {
+ from: 'Ticket Resolved',
+ to: 'Ticket Resolved Event',
+ },
+ ],
+ eventVersionMap: [
+ {
+ from: 'Ticket Resolved',
+ to: '1.0.0',
+ },
+ ],
+ topicName: 'Ticket Actions',
+ tenantId: 'sample-tenant-id',
+ personMap: [],
+ companyMap: [],
+ },
+ },
+ message: {
+ channel: 'web',
+ context: {
+ app: {
+ build: '1.0.0',
+ name: 'RudderLabs JavaScript SDK',
+ namespace: 'com.rudderlabs.javascript',
+ version: '1.0.0',
+ },
+ library: {
+ name: 'RudderLabs JavaScript SDK',
+ version: '1.0.0',
+ },
+ userAgent:
+ 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36',
+ locale: 'en-US',
+ ip: '0.0.0.0',
+ os: {
+ name: '',
+ version: '',
+ },
+ screen: {
+ density: 2,
+ },
+ },
+ messageId: '84e26acc-56a5-4835-8233-591137fca468',
+ session_id: '3049dc4c-5a95-4ccd-a3e7-d74a7e411f22',
+ originalTimestamp: '2019-10-14T09:03:17.562Z',
+ anonymousId: 'anon_id',
+ type: 'track',
+ event: 'Ticket Resolved',
+ properties: {
+ ticketId: 'sample-ticket-id',
+ actionEmail: 'sample@email.com',
+ status: 'resovled',
+ },
+ integrations: {
+ All: true,
+ },
+ sentAt: '2019-10-14T09:03:22.563Z',
+ },
+ },
+ ],
+ },
+ },
+ output: {
+ response: {
+ status: 200,
+ body: [
+ {
+ output: {
+ body: {
+ XML: {},
+ JSON_ARRAY: {},
+ FORM: {},
+ JSON: {
+ ticketId: 'sample-ticket-id',
+ actionEmail: 'sample@email.com',
+ status: 'resovled',
+ },
+ },
+ type: 'REST',
+ files: {},
+ method: 'POST',
+ params: {},
+ headers: {
+ Accesskey: 'sample-access-key',
+ tenantId: 'sample-tenant-id',
+ sharedSecret: 'sample-shared-secret',
+ 'Content-Type': 'application/json',
+ topicName: 'Ticket Actions',
+ eventName: 'Ticket Resolved Event',
+ eventVersion: '1.0.0',
+ },
+ version: '1',
+ endpoint: 'https://demo-domain.gainsightcloud.com/v1.0/api/eventManager/event',
+ userId: '',
+ },
+ statusCode: 200,
+ },
+ ],
+ },
+ },
+ },
+ {
+ name: 'gainsight',
+ description: 'Test 4',
+ feature: 'processor',
+ module: 'destination',
+ version: 'v0',
+ input: {
+ request: {
+ body: [
+ {
+ destination: {
+ Config: {
+ domain: 'demo-domain.gainsightcloud.com',
+ accessKey: 'sample-access-key',
+ sharedSecret: 'sample-shared-secret',
+ personMap: [],
+ companyMap: [],
+ eventNameMap: [],
+ eventVersionMap: [],
+ },
+ },
+ message: {
+ channel: 'web',
+ context: {
+ app: {
+ build: '1.0.0',
+ name: 'RudderLabs JavaScript SDK',
+ namespace: 'com.rudderlabs.javascript',
+ version: '1.0.0',
+ },
+ library: {
+ name: 'RudderLabs JavaScript SDK',
+ version: '1.0.0',
+ },
+ userAgent:
+ 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36',
+ locale: 'en-US',
+ ip: '0.0.0.0',
+ os: {
+ name: '',
+ version: '',
+ },
+ screen: {
+ density: 2,
+ },
+ traits: {
+ email: 'krammer@seinfeld.com',
+ },
+ },
+ messageId: '84e26acc-56a5-4835-8233-591137fca468',
+ session_id: '3049dc4c-5a95-4ccd-a3e7-d74a7e411f22',
+ originalTimestamp: '2019-10-14T09:03:17.562Z',
+ anonymousId: 'anon_id',
+ type: 'group',
+ traits: {
+ name: 'Kramerica Industries',
+ industry: 'Sitcom',
+ employees: '100',
+ status: 'complete',
+ companyType: 'spoof',
+ },
+ integrations: {
+ All: true,
+ },
+ sentAt: '2019-10-14T09:03:22.563Z',
+ },
+ },
+ ],
+ },
+ },
+ output: {
+ response: {
+ status: 200,
+ body: [
+ {
+ output: {
+ body: {
+ XML: {},
+ JSON_ARRAY: {},
+ FORM: {},
+ JSON: {
+ Email: 'krammer@seinfeld.com',
+ companies: [
+ {
+ Company_ID: '1P0203VCESP7AUQMV9E953G',
+ },
+ ],
+ },
+ },
+ type: 'REST',
+ files: {},
+ method: 'PUT',
+ params: {},
+ headers: {
+ Accesskey: 'sample-access-key',
+ 'Content-Type': 'application/json',
+ },
+ version: '1',
+ endpoint: 'https://demo-domain.gainsightcloud.com/v1.0/api/people',
+ userId: '',
+ },
+ statusCode: 200,
+ },
+ ],
+ },
+ },
+ },
+ {
+ name: 'gainsight',
+ description: 'Test 5',
+ feature: 'processor',
+ module: 'destination',
+ version: 'v0',
+ input: {
+ request: {
+ body: [
+ {
+ destination: {
+ Config: {
+ domain: 'demo-domain.gainsightcloud.com',
+ accessKey: 'sample-access-key',
+ sharedSecret: 'sample-shared-secret',
+ personMap: [],
+ companyMap: [],
+ eventNameMap: [],
+ eventVersionMap: [],
+ },
+ },
+ message: {
+ channel: 'web',
+ context: {
+ app: {
+ build: '1.0.0',
+ name: 'RudderLabs JavaScript SDK',
+ namespace: 'com.rudderlabs.javascript',
+ version: '1.0.0',
+ },
+ library: {
+ name: 'RudderLabs JavaScript SDK',
+ version: '1.0.0',
+ },
+ userAgent:
+ 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36',
+ locale: 'en-US',
+ ip: '0.0.0.0',
+ os: {
+ name: '',
+ version: '',
+ },
+ screen: {
+ density: 2,
+ },
+ traits: {
+ email: 'krammer@seinfeld.com',
+ },
+ },
+ messageId: '84e26acc-56a5-4835-8233-591137fca468',
+ session_id: '3049dc4c-5a95-4ccd-a3e7-d74a7e411f22',
+ originalTimestamp: '2019-10-14T09:03:17.562Z',
+ anonymousId: 'anon_id',
+ type: 'group',
+ traits: {
+ name: 'Seinfeld Corps',
+ industry: 'TV Series',
+ employees: '50',
+ status: 'complete',
+ },
+ integrations: {
+ All: true,
+ },
+ sentAt: '2019-10-14T09:03:22.563Z',
+ },
+ },
+ ],
+ },
+ },
+ output: {
+ response: {
+ status: 200,
+ body: [
+ {
+ output: {
+ body: {
+ XML: {},
+ JSON_ARRAY: {},
+ FORM: {},
+ JSON: {
+ Email: 'krammer@seinfeld.com',
+ companies: [
+ {
+ Company_ID: '1P0203VCESP7AUQMV9E953G',
+ },
+ ],
+ },
+ },
+ type: 'REST',
+ files: {},
+ method: 'PUT',
+ params: {},
+ headers: {
+ Accesskey: 'sample-access-key',
+ 'Content-Type': 'application/json',
+ },
+ version: '1',
+ endpoint: 'https://demo-domain.gainsightcloud.com/v1.0/api/people',
+ userId: '',
+ },
+ statusCode: 200,
+ },
+ ],
+ },
+ },
+ },
+ {
+ name: 'gainsight',
+ description: 'Test 6',
+ feature: 'processor',
+ module: 'destination',
+ version: 'v0',
+ input: {
+ request: {
+ body: [
+ {
+ destination: {
+ Config: {
+ domain: 'demo-domain.gainsightcloud.com',
+ accessKey: 'sample-access-key',
+ personMap: [],
+ companyMap: [],
+ eventNameMap: [],
+ eventVersionMap: [],
+ },
+ },
+ message: {
+ channel: 'web',
+ context: {
+ app: {
+ build: '1.0.0',
+ name: 'RudderLabs JavaScript SDK',
+ namespace: 'com.rudderlabs.javascript',
+ version: '1.0.0',
+ },
+ library: {
+ name: 'RudderLabs JavaScript SDK',
+ version: '1.0.0',
+ },
+ userAgent:
+ 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36',
+ locale: 'en-US',
+ ip: '0.0.0.0',
+ os: {
+ name: '',
+ version: '',
+ },
+ screen: {
+ density: 2,
+ },
+ },
+ messageId: '84e26acc-56a5-4835-8233-591137fca468',
+ session_id: '3049dc4c-5a95-4ccd-a3e7-d74a7e411f22',
+ originalTimestamp: '2019-10-14T09:03:17.562Z',
+ anonymousId: 'anon_id',
+ type: 'identify',
+ traits: {
+ email: 'cosmo@krammer.com',
+ firstname: 'Cosmo',
+ lastname: 'Krammer',
+ linkedinUrl: 'https://linkedin.com/cosmo-krammer',
+ location: 'New York',
+ emailOptOut: true,
+ masterAvatarTypeCode: 10,
+ },
+ integrations: {
+ All: true,
+ },
+ sentAt: '2019-10-14T09:03:22.563Z',
+ },
+ },
+ ],
+ },
+ },
+ output: {
+ response: {
+ status: 200,
+ body: [
+ {
+ output: {
+ body: {
+ XML: {},
+ JSON_ARRAY: {},
+ FORM: {},
+ JSON: {
+ Email: 'cosmo@krammer.com',
+ FirstName: 'Cosmo',
+ LastName: 'Krammer',
+ Name: 'Cosmo Krammer',
+ LinkedinUrl: 'https://linkedin.com/cosmo-krammer',
+ Location: 'New York',
+ EmailOptOut: true,
+ MasterAvatarTypeCode: 10,
+ },
+ },
+ type: 'REST',
+ files: {},
+ method: 'PUT',
+ params: {},
+ headers: {
+ Accesskey: 'sample-access-key',
+ 'Content-Type': 'application/json',
+ },
+ version: '1',
+ endpoint: 'https://demo-domain.gainsightcloud.com/v1.0/api/people',
+ userId: '',
+ },
+ statusCode: 200,
+ },
+ ],
+ },
+ },
+ },
+ {
+ name: 'gainsight',
+ description: 'Test 7',
+ feature: 'processor',
+ module: 'destination',
+ version: 'v0',
+ input: {
+ request: {
+ body: [
+ {
+ destination: {
+ Config: {
+ domain: 'demo-domain.gainsightcloud.com',
+ accessKey: 'sample-access-key',
+ sharedSecret: 'sample-shared-secret',
+ eventNameMap: [
+ {
+ from: 'Ticket Resolved',
+ to: 'Ticket Resolved Event',
+ },
+ ],
+ eventVersionMap: [
+ {
+ from: 'Ticket Resolved',
+ to: '1.0.0',
+ },
+ ],
+ topicName: 'Ticket Actions',
+ tenantId: 'sample-tenant-id',
+ personMap: [],
+ companyMap: [],
+ contractId: 'externalId-shall-get-precedence',
+ },
+ },
+ message: {
+ channel: 'web',
+ context: {
+ app: {
+ build: '1.0.0',
+ name: 'RudderLabs JavaScript SDK',
+ namespace: 'com.rudderlabs.javascript',
+ version: '1.0.0',
+ },
+ library: {
+ name: 'RudderLabs JavaScript SDK',
+ version: '1.0.0',
+ },
+ userAgent:
+ 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36',
+ locale: 'en-US',
+ ip: '0.0.0.0',
+ os: {
+ name: '',
+ version: '',
+ },
+ screen: {
+ density: 2,
+ },
+ externalId: [
+ {
+ type: 'gainsightEventContractId',
+ id: 'sample-contract-id',
+ },
+ ],
+ },
+ messageId: '84e26acc-56a5-4835-8233-591137fca468',
+ session_id: '3049dc4c-5a95-4ccd-a3e7-d74a7e411f22',
+ originalTimestamp: '2019-10-14T09:03:17.562Z',
+ anonymousId: 'anon_id',
+ type: 'track',
+ event: 'Ticket Resolved',
+ properties: {
+ ticketId: 'sample-ticket-id',
+ actionEmail: 'sample@email.com',
+ status: 'resovled',
+ },
+ integrations: {
+ All: true,
+ },
+ sentAt: '2019-10-14T09:03:22.563Z',
+ },
+ },
+ ],
+ },
+ },
+ output: {
+ response: {
+ status: 200,
+ body: [
+ {
+ output: {
+ body: {
+ XML: {},
+ JSON_ARRAY: {},
+ FORM: {},
+ JSON: {
+ ticketId: 'sample-ticket-id',
+ actionEmail: 'sample@email.com',
+ status: 'resovled',
+ },
+ },
+ type: 'REST',
+ files: {},
+ method: 'POST',
+ params: {},
+ headers: {
+ Accesskey: 'sample-access-key',
+ tenantId: 'sample-tenant-id',
+ sharedSecret: 'sample-shared-secret',
+ 'Content-Type': 'application/json',
+ topicName: 'Ticket Actions',
+ eventName: 'Ticket Resolved Event',
+ eventVersion: '1.0.0',
+ contractId: 'sample-contract-id',
+ },
+ version: '1',
+ endpoint: 'https://demo-domain.gainsightcloud.com/v1.0/api/eventManager/event',
+ userId: '',
+ },
+ statusCode: 200,
+ },
+ ],
+ },
+ },
+ },
+ {
+ name: 'gainsight',
+ description: 'Test 8',
+ feature: 'processor',
+ module: 'destination',
+ version: 'v0',
+ input: {
+ request: {
+ body: [
+ {
+ destination: {
+ Config: {
+ domain: 'demo-domain.gainsightcloud.com',
+ accessKey: 'sample-access-key',
+ personMap: [
+ {
+ from: 'car',
+ to: 'car__gc',
+ },
+ ],
+ companyMap: [],
+ eventNameMap: [],
+ eventVersionMap: [],
+ },
+ },
+ message: {
+ channel: 'web',
+ context: {
+ app: {
+ build: '1.0.0',
+ name: 'RudderLabs JavaScript SDK',
+ namespace: 'com.rudderlabs.javascript',
+ version: '1.0.0',
+ },
+ library: {
+ name: 'RudderLabs JavaScript SDK',
+ version: '1.0.0',
+ },
+ userAgent:
+ 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36',
+ locale: 'en-US',
+ ip: '0.0.0.0',
+ os: {
+ name: '',
+ version: '',
+ },
+ screen: {
+ density: 2,
+ },
+ },
+ messageId: '84e26acc-56a5-4835-8233-591137fca468',
+ session_id: '3049dc4c-5a95-4ccd-a3e7-d74a7e411f22',
+ originalTimestamp: '2019-10-14T09:03:17.562Z',
+ anonymousId: 'anon_id',
+ type: 'identify',
+ traits: {
+ name: 'Bruce Wayne',
+ email: 'ceo@waynefoundation.com',
+ car: 'Batmobile',
+ comments: 'I am Batman!',
+ lastName: 'Wayne',
+ location: 'Gotham Central',
+ firstName: 'Bruce',
+ linkedinUrl: 'https://www.linkedin.com/in/notyourBatman/',
+ },
+ integrations: {
+ All: true,
+ },
+ sentAt: '2019-10-14T09:03:22.563Z',
+ },
+ },
+ ],
+ },
+ },
+ output: {
+ response: {
+ status: 200,
+ body: [
+ {
+ output: {
+ body: {
+ XML: {},
+ JSON_ARRAY: {},
+ FORM: {},
+ JSON: {
+ Name: 'Bruce Wayne',
+ Email: 'ceo@waynefoundation.com',
+ car__gc: 'Batmobile',
+ Comments: 'I am Batman!',
+ LastName: 'Wayne',
+ Location: 'Gotham Central',
+ FirstName: 'Bruce',
+ LinkedinUrl: 'https://www.linkedin.com/in/notyourBatman/',
+ },
+ },
+ type: 'REST',
+ files: {},
+ method: 'PUT',
+ params: {},
+ headers: {
+ Accesskey: 'sample-access-key',
+ 'Content-Type': 'application/json',
+ },
+ version: '1',
+ endpoint: 'https://demo-domain.gainsightcloud.com/v1.0/api/people',
+ userId: '',
+ },
+ statusCode: 200,
+ },
+ ],
+ },
+ },
+ },
+];
diff --git a/test/integrations/destinations/gcs_datalake/processor/data.ts b/test/integrations/destinations/gcs_datalake/processor/data.ts
index 4f5d144b29..46c7788709 100644
--- a/test/integrations/destinations/gcs_datalake/processor/data.ts
+++ b/test/integrations/destinations/gcs_datalake/processor/data.ts
@@ -1,191 +1,194 @@
export const data = [
{
- name: 'gcs_datalake',
- description: 'No Message type',
- feature: 'processor',
- module: 'destination',
- version: 'v0',
- input: {
- request: {
- body: [
- {
- "message": {
- "receivedAt": "2023-09-29T15:07:16.650Z",
- "channel": "web",
- "context": {
- "app": {
- "build": "1.0.0",
- "name": "RudderLabs JavaScript SDK",
- "namespace": "com.rudderlabs.javascript",
- "version": "1.0.0"
- },
- "traits": {
- "email": "test@rudderstack.com"
- },
- "library": {
- "name": "RudderLabs JavaScript SDK",
- "version": "1.0.0"
- },
- "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36",
- "locale": "en-US",
- "os": {
- "name": "",
- "version": ""
- },
- "screen": {
- "density": 2
- }
- },
- "type": "track",
- "messageId": "ec5481b6-a926-4d2e-b293-0b3a77c4d3be",
- "originalTimestamp": "2019-10-14T11:15:18.300Z",
- "anonymousId": "00000000000000000000000000",
- "userId": "12345",
- "event": "Product List Clicked",
- "properties": {
- "list_id": "Sample Product List",
- "category": "Sample Product List",
- "products": []
- },
- "integrations": {
- "All": true
- },
- "sentAt": "2019-10-14T11:15:53.296Z"
- },
- "destination": {
- "Config": {
- "bucketName": "ps-data-mdm-prod-rudderstack",
- "prefix": "",
- "namespace": "",
- "credentials": "randomcreds",
- "syncFrequency": "30",
- "tableSuffix": "",
- "timeWindowLayout": "2006/01/02/15"
- },
- "Enabled": true
- }
- },
- ],
- method: 'POST',
+ name: 'gcs_datalake',
+ description: 'No Message type',
+ feature: 'processor',
+ module: 'destination',
+ version: 'v0',
+ input: {
+ request: {
+ body: [
+ {
+ message: {
+ receivedAt: '2023-09-29T15:07:16.650Z',
+ channel: 'web',
+ context: {
+ app: {
+ build: '1.0.0',
+ name: 'RudderLabs JavaScript SDK',
+ namespace: 'com.rudderlabs.javascript',
+ version: '1.0.0',
+ },
+ traits: {
+ email: 'test@rudderstack.com',
+ },
+ library: {
+ name: 'RudderLabs JavaScript SDK',
+ version: '1.0.0',
+ },
+ userAgent:
+ 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36',
+ locale: 'en-US',
+ os: {
+ name: '',
+ version: '',
+ },
+ screen: {
+ density: 2,
+ },
+ },
+ type: 'track',
+ messageId: 'ec5481b6-a926-4d2e-b293-0b3a77c4d3be',
+ originalTimestamp: '2019-10-14T11:15:18.300Z',
+ anonymousId: '00000000000000000000000000',
+ userId: '12345',
+ event: 'Product List Clicked',
+ properties: {
+ list_id: 'Sample Product List',
+ category: 'Sample Product List',
+ products: [],
+ },
+ integrations: {
+ All: true,
+ },
+ sentAt: '2019-10-14T11:15:53.296Z',
+ },
+ destination: {
+ Config: {
+ bucketName: 'ps-data-mdm-prod-rudderstack',
+ prefix: '',
+ namespace: '',
+ credentials: 'randomcreds',
+ syncFrequency: '30',
+ tableSuffix: '',
+ timeWindowLayout: '2006/01/02/15',
+ },
+ Enabled: true,
+ },
},
- pathSuffix: '',
+ ],
+ method: 'POST',
},
- output: {
- response: {
- status: 200,
- body: [
- {
- "output": {
- "metadata": {
- "table": "tracks",
- "columns": {
- "uuid_ts": "datetime",
- "context_app_build": "string",
- "context_app_name": "string",
- "context_app_namespace": "string",
- "context_app_version": "string",
- "context_traits_email": "string",
- "context_library_name": "string",
- "context_library_version": "string",
- "context_user_agent": "string",
- "context_locale": "string",
- "context_screen_density": "int",
- "event_text": "string",
- "id": "string",
- "anonymous_id": "string",
- "user_id": "string",
- "sent_at": "datetime",
- "received_at": "datetime",
- "original_timestamp": "datetime",
- "channel": "string",
- "event": "string"
- },
- "receivedAt": "2023-09-29T15:07:16.650Z"
- },
- "data": {
- "context_app_build": "1.0.0",
- "context_app_name": "RudderLabs JavaScript SDK",
- "context_app_namespace": "com.rudderlabs.javascript",
- "context_app_version": "1.0.0",
- "context_traits_email": "test@rudderstack.com",
- "context_library_name": "RudderLabs JavaScript SDK",
- "context_library_version": "1.0.0",
- "context_user_agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36",
- "context_locale": "en-US",
- "context_screen_density": 2,
- "event_text": "Product List Clicked",
- "id": "ec5481b6-a926-4d2e-b293-0b3a77c4d3be",
- "anonymous_id": "00000000000000000000000000",
- "user_id": "12345",
- "sent_at": "2019-10-14T11:15:53.296Z",
- "received_at": "2023-09-29T15:07:16.650Z",
- "original_timestamp": "2019-10-14T11:15:18.300Z",
- "channel": "web",
- "event": "product_list_clicked"
- },
- "userId": ""
- },
- "statusCode": 200
- },
- {
- "output": {
- "metadata": {
- "table": "product_list_clicked",
- "columns": {
- "uuid_ts": "datetime",
- "list_id": "string",
- "category": "string",
- "context_app_build": "string",
- "context_app_name": "string",
- "context_app_namespace": "string",
- "context_app_version": "string",
- "context_traits_email": "string",
- "context_library_name": "string",
- "context_library_version": "string",
- "context_user_agent": "string",
- "context_locale": "string",
- "context_screen_density": "int",
- "event_text": "string",
- "id": "string",
- "anonymous_id": "string",
- "user_id": "string",
- "sent_at": "datetime",
- "received_at": "datetime",
- "original_timestamp": "datetime",
- "channel": "string",
- "event": "string"
- },
- "receivedAt": "2023-09-29T15:07:16.650Z"
- },
- "data": {
- "list_id": "Sample Product List",
- "category": "Sample Product List",
- "context_app_build": "1.0.0",
- "context_app_name": "RudderLabs JavaScript SDK",
- "context_app_namespace": "com.rudderlabs.javascript",
- "context_app_version": "1.0.0",
- "context_traits_email": "test@rudderstack.com",
- "context_library_name": "RudderLabs JavaScript SDK",
- "context_library_version": "1.0.0",
- "context_user_agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36",
- "context_locale": "en-US",
- "context_screen_density": 2,
- "event_text": "Product List Clicked",
- "id": "ec5481b6-a926-4d2e-b293-0b3a77c4d3be",
- "anonymous_id": "00000000000000000000000000",
- "user_id": "12345",
- "sent_at": "2019-10-14T11:15:53.296Z",
- "received_at": "2023-09-29T15:07:16.650Z",
- "original_timestamp": "2019-10-14T11:15:18.300Z",
- "channel": "web",
- "event": "product_list_clicked"
- },
- "userId": ""
- },
- "statusCode": 200
- }
- ],
+ pathSuffix: '',
+ },
+ output: {
+ response: {
+ status: 200,
+ body: [
+ {
+ output: {
+ metadata: {
+ table: 'tracks',
+ columns: {
+ uuid_ts: 'datetime',
+ context_app_build: 'string',
+ context_app_name: 'string',
+ context_app_namespace: 'string',
+ context_app_version: 'string',
+ context_traits_email: 'string',
+ context_library_name: 'string',
+ context_library_version: 'string',
+ context_user_agent: 'string',
+ context_locale: 'string',
+ context_screen_density: 'int',
+ event_text: 'string',
+ id: 'string',
+ anonymous_id: 'string',
+ user_id: 'string',
+ sent_at: 'datetime',
+ received_at: 'datetime',
+ original_timestamp: 'datetime',
+ channel: 'string',
+ event: 'string',
+ },
+ receivedAt: '2023-09-29T15:07:16.650Z',
+ },
+ data: {
+ context_app_build: '1.0.0',
+ context_app_name: 'RudderLabs JavaScript SDK',
+ context_app_namespace: 'com.rudderlabs.javascript',
+ context_app_version: '1.0.0',
+ context_traits_email: 'test@rudderstack.com',
+ context_library_name: 'RudderLabs JavaScript SDK',
+ context_library_version: '1.0.0',
+ context_user_agent:
+ 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36',
+ context_locale: 'en-US',
+ context_screen_density: 2,
+ event_text: 'Product List Clicked',
+ id: 'ec5481b6-a926-4d2e-b293-0b3a77c4d3be',
+ anonymous_id: '00000000000000000000000000',
+ user_id: '12345',
+ sent_at: '2019-10-14T11:15:53.296Z',
+ received_at: '2023-09-29T15:07:16.650Z',
+ original_timestamp: '2019-10-14T11:15:18.300Z',
+ channel: 'web',
+ event: 'product_list_clicked',
+ },
+ userId: '',
+ },
+ statusCode: 200,
},
+ {
+ output: {
+ metadata: {
+ table: 'product_list_clicked',
+ columns: {
+ uuid_ts: 'datetime',
+ list_id: 'string',
+ category: 'string',
+ context_app_build: 'string',
+ context_app_name: 'string',
+ context_app_namespace: 'string',
+ context_app_version: 'string',
+ context_traits_email: 'string',
+ context_library_name: 'string',
+ context_library_version: 'string',
+ context_user_agent: 'string',
+ context_locale: 'string',
+ context_screen_density: 'int',
+ event_text: 'string',
+ id: 'string',
+ anonymous_id: 'string',
+ user_id: 'string',
+ sent_at: 'datetime',
+ received_at: 'datetime',
+ original_timestamp: 'datetime',
+ channel: 'string',
+ event: 'string',
+ },
+ receivedAt: '2023-09-29T15:07:16.650Z',
+ },
+ data: {
+ list_id: 'Sample Product List',
+ category: 'Sample Product List',
+ context_app_build: '1.0.0',
+ context_app_name: 'RudderLabs JavaScript SDK',
+ context_app_namespace: 'com.rudderlabs.javascript',
+ context_app_version: '1.0.0',
+ context_traits_email: 'test@rudderstack.com',
+ context_library_name: 'RudderLabs JavaScript SDK',
+ context_library_version: '1.0.0',
+ context_user_agent:
+ 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36',
+ context_locale: 'en-US',
+ context_screen_density: 2,
+ event_text: 'Product List Clicked',
+ id: 'ec5481b6-a926-4d2e-b293-0b3a77c4d3be',
+ anonymous_id: '00000000000000000000000000',
+ user_id: '12345',
+ sent_at: '2019-10-14T11:15:53.296Z',
+ received_at: '2023-09-29T15:07:16.650Z',
+ original_timestamp: '2019-10-14T11:15:18.300Z',
+ channel: 'web',
+ event: 'product_list_clicked',
+ },
+ userId: '',
+ },
+ statusCode: 200,
+ },
+ ],
},
- }
+ },
+ },
];
diff --git a/test/integrations/destinations/google_adwords_offline_conversions/dataDelivery/data.ts b/test/integrations/destinations/google_adwords_offline_conversions/dataDelivery/data.ts
index 36cd0ad801..ae75273399 100644
--- a/test/integrations/destinations/google_adwords_offline_conversions/dataDelivery/data.ts
+++ b/test/integrations/destinations/google_adwords_offline_conversions/dataDelivery/data.ts
@@ -1,750 +1,768 @@
export const data = [
{
- name: 'google_adwords_offline_conversions',
- description: 'Test 0',
- feature: 'dataDelivery',
- module: 'destination',
- version: 'v0',
- input: {
- request: {
- body: {
- "version": "1",
- "type": "REST",
- "method": "POST",
- "endpoint": "https://googleads.googleapis.com/v14/customers/11122233331/offlineUserDataJobs",
- "headers": {
- "Authorization": "Bearer abcd1234",
- "Content-Type": "application/json",
- "developer-token": "ijkl91011",
- "login-customer-id": "logincustomerid"
- },
- "params": {
- "customerId": "1112223333",
- "event": "Sign-up - click"
- },
- "body": {
- "JSON": {
- "addConversionPayload": {
- "enable_partial_failure": false,
- "enable_warnings": false,
- "operations": [
- {
- "create": {
- "transaction_attribute": {
- "CUSTOM_KEY": "CUSTOM_VALUE",
- "currency_code": "INR",
- "order_id": "order id",
- "store_attribute": {
- "store_code": "store code"
- },
- "transaction_amount_micros": "100000000",
- "transaction_date_time": "2019-10-14 11:15:18+00:00"
- },
- "userIdentifiers": [
- {
- "hashedEmail": "6db61e6dcbcf2390e4a46af26f26a133a3bee45021422fc7ae86e9136f14110",
- "userIdentifierSource": "UNSPECIFIED"
- }
- ]
- }
- }
- ],
- "validate_only": false
- },
- "createJobPayload": {
- "job": {
- "storeSalesMetadata": {
- "custom_key": "CUSTOM_KEY",
- "loyaltyFraction": 1,
- "transaction_upload_fraction": "1"
- },
- "type": "STORE_SALES_UPLOAD_FIRST_PARTY"
- }
- },
- "event": "1112223333",
- "executeJobPayload": {
- "validate_only": false
- },
- "isStoreConversion": true
+ name: 'google_adwords_offline_conversions',
+ description: 'Test 0',
+ feature: 'dataDelivery',
+ module: 'destination',
+ version: 'v0',
+ input: {
+ request: {
+ body: {
+ version: '1',
+ type: 'REST',
+ method: 'POST',
+ endpoint:
+ 'https://googleads.googleapis.com/v14/customers/11122233331/offlineUserDataJobs',
+ headers: {
+ Authorization: 'Bearer abcd1234',
+ 'Content-Type': 'application/json',
+ 'developer-token': 'ijkl91011',
+ 'login-customer-id': 'logincustomerid',
+ },
+ params: {
+ customerId: '1112223333',
+ event: 'Sign-up - click',
+ },
+ body: {
+ JSON: {
+ addConversionPayload: {
+ enable_partial_failure: false,
+ enable_warnings: false,
+ operations: [
+ {
+ create: {
+ transaction_attribute: {
+ CUSTOM_KEY: 'CUSTOM_VALUE',
+ currency_code: 'INR',
+ order_id: 'order id',
+ store_attribute: {
+ store_code: 'store code',
+ },
+ transaction_amount_micros: '100000000',
+ transaction_date_time: '2019-10-14 11:15:18+00:00',
},
- "JSON_ARRAY": {},
- "XML": {},
- "FORM": {}
+ userIdentifiers: [
+ {
+ hashedEmail:
+ '6db61e6dcbcf2390e4a46af26f26a133a3bee45021422fc7ae86e9136f14110',
+ userIdentifierSource: 'UNSPECIFIED',
+ },
+ ],
+ },
+ },
+ ],
+ validate_only: false,
+ },
+ createJobPayload: {
+ job: {
+ storeSalesMetadata: {
+ custom_key: 'CUSTOM_KEY',
+ loyaltyFraction: 1,
+ transaction_upload_fraction: '1',
},
- "files": {}
+ type: 'STORE_SALES_UPLOAD_FIRST_PARTY',
+ },
+ },
+ event: '1112223333',
+ executeJobPayload: {
+ validate_only: false,
},
- method: 'POST',
+ isStoreConversion: true,
+ },
+ JSON_ARRAY: {},
+ XML: {},
+ FORM: {},
},
+ files: {},
+ },
+ method: 'POST',
},
- output: {
- response: {
- status: 400,
- body: {
- "output": {
- "status": 400,
- "message": "[Google Ads Offline Conversions]:: Request contains an invalid argument. during google_ads_offline_store_conversions Add Conversion",
- "destinationResponse": {
- "error": {
- "code": 400,
- "details": [
- {
- "@type": "type.googleapis.com/google.ads.googleads.v14.errors.GoogleAdsFailure",
- "errors": [
- {
- "errorCode": {
- "offlineUserDataJobError": "INVALID_SHA256_FORMAT"
- },
- "message": "The SHA256 encoded value is malformed.",
- "location": {
- "fieldPathElements": [
- {
- "fieldName": "operations",
- "index": 0
- },
- {
- "fieldName": "create"
- },
- {
- "fieldName": "user_identifiers",
- "index": 0
- },
- {
- "fieldName": "hashed_email"
- }
- ]
- }
- }
- ],
- "requestId": "68697987"
- }
- ],
- "message": "Request contains an invalid argument.",
- "status": "INVALID_ARGUMENT"
- }
+ },
+ output: {
+ response: {
+ status: 400,
+ body: {
+ output: {
+ status: 400,
+ message:
+ '[Google Ads Offline Conversions]:: Request contains an invalid argument. during google_ads_offline_store_conversions Add Conversion',
+ destinationResponse: {
+ error: {
+ code: 400,
+ details: [
+ {
+ '@type': 'type.googleapis.com/google.ads.googleads.v14.errors.GoogleAdsFailure',
+ errors: [
+ {
+ errorCode: {
+ offlineUserDataJobError: 'INVALID_SHA256_FORMAT',
+ },
+ message: 'The SHA256 encoded value is malformed.',
+ location: {
+ fieldPathElements: [
+ {
+ fieldName: 'operations',
+ index: 0,
+ },
+ {
+ fieldName: 'create',
+ },
+ {
+ fieldName: 'user_identifiers',
+ index: 0,
+ },
+ {
+ fieldName: 'hashed_email',
+ },
+ ],
+ },
},
- "statTags": {
- "destType": "GOOGLE_ADWORDS_OFFLINE_CONVERSIONS",
- "destinationId": "Non-determininable",
- "errorCategory": "network",
- "errorType": "aborted",
- "feature": "dataDelivery",
- "implementation": "native",
- "module": "destination",
- "workspaceId": "Non-determininable",
- }
- }
+ ],
+ requestId: '68697987',
+ },
+ ],
+ message: 'Request contains an invalid argument.',
+ status: 'INVALID_ARGUMENT',
},
+ },
+ statTags: {
+ destType: 'GOOGLE_ADWORDS_OFFLINE_CONVERSIONS',
+ destinationId: 'Non-determininable',
+ errorCategory: 'network',
+ errorType: 'aborted',
+ feature: 'dataDelivery',
+ implementation: 'native',
+ module: 'destination',
+ workspaceId: 'Non-determininable',
+ },
},
+ },
},
+ },
},
{
- name: 'google_adwords_offline_conversions',
- description: 'Test 1',
- feature: 'dataDelivery',
- module: 'destination',
- version: 'v0',
- input: {
- request: {
- "body": {
- "version": "1",
- "type": "REST",
- "method": "POST",
- "endpoint": "https://googleads.googleapis.com/v14/customers/1112223333/offlineUserDataJobs",
- "headers": {
- "Authorization": "Bearer abcd1234",
- "Content-Type": "application/json",
- "developer-token": "ijkl91011",
- "login-customer-id": "logincustomerid"
- },
- "params": {
- "customerId": "1112223333",
- "event": "Sign-up - click"
- },
- "body": {
- "JSON": {
- "addConversionPayload": {
- "enable_partial_failure": false,
- "enable_warnings": false,
- "operations": [
- {
- "create": {
- "transaction_attribute": {
- "CUSTOM_KEY": "CUSTOM_VALUE",
- "currency_code": "INR",
- "order_id": "order id",
- "store_attribute": {
- "store_code": "store code"
- },
- "transaction_amount_micros": "100000000",
- "transaction_date_time": "2019-10-14 11:15:18+00:00"
- },
- "userIdentifiers": [
- {
- "hashedEmail": "6db61e6dcbcf2390e4a46af426f26a133a3bee45021422fc7ae86e9136f14110",
- "userIdentifierSource": "UNSPECIFIED"
- }
- ]
- }
- }
- ],
- "validate_only": false
- },
- "createJobPayload": {
- "job": {
- "storeSalesMetadata": {
- "custom_key": "CUSTOM_KEY",
- "loyaltyFraction": 1,
- "transaction_upload_fraction": "1"
- },
- "type": "STORE_SALES_UPLOAD_FIRST_PARTY"
- }
- },
- "event": "1112223333",
- "executeJobPayload": {
- "validate_only": false
- },
- "isStoreConversion": true
+ name: 'google_adwords_offline_conversions',
+ description: 'Test 1',
+ feature: 'dataDelivery',
+ module: 'destination',
+ version: 'v0',
+ input: {
+ request: {
+ body: {
+ version: '1',
+ type: 'REST',
+ method: 'POST',
+ endpoint: 'https://googleads.googleapis.com/v14/customers/1112223333/offlineUserDataJobs',
+ headers: {
+ Authorization: 'Bearer abcd1234',
+ 'Content-Type': 'application/json',
+ 'developer-token': 'ijkl91011',
+ 'login-customer-id': 'logincustomerid',
+ },
+ params: {
+ customerId: '1112223333',
+ event: 'Sign-up - click',
+ },
+ body: {
+ JSON: {
+ addConversionPayload: {
+ enable_partial_failure: false,
+ enable_warnings: false,
+ operations: [
+ {
+ create: {
+ transaction_attribute: {
+ CUSTOM_KEY: 'CUSTOM_VALUE',
+ currency_code: 'INR',
+ order_id: 'order id',
+ store_attribute: {
+ store_code: 'store code',
+ },
+ transaction_amount_micros: '100000000',
+ transaction_date_time: '2019-10-14 11:15:18+00:00',
},
- "JSON_ARRAY": {},
- "XML": {},
- "FORM": {}
+ userIdentifiers: [
+ {
+ hashedEmail:
+ '6db61e6dcbcf2390e4a46af426f26a133a3bee45021422fc7ae86e9136f14110',
+ userIdentifierSource: 'UNSPECIFIED',
+ },
+ ],
+ },
+ },
+ ],
+ validate_only: false,
+ },
+ createJobPayload: {
+ job: {
+ storeSalesMetadata: {
+ custom_key: 'CUSTOM_KEY',
+ loyaltyFraction: 1,
+ transaction_upload_fraction: '1',
},
- "files": {}
- }
+ type: 'STORE_SALES_UPLOAD_FIRST_PARTY',
+ },
+ },
+ event: '1112223333',
+ executeJobPayload: {
+ validate_only: false,
+ },
+ isStoreConversion: true,
+ },
+ JSON_ARRAY: {},
+ XML: {},
+ FORM: {},
},
+ files: {},
+ },
},
- output: {
- response: {
- status: 200,
- body: {
- "output": {
- "status": 200,
- "message": "[Google Ads Offline Conversions Response Handler] - Request processed successfully",
- "destinationResponse": {
- "response": {
- "name": "customers/111-222-3333/operations/abcd="
- },
- "status": 200
- }
- }
+ },
+ output: {
+ response: {
+ status: 200,
+ body: {
+ output: {
+ status: 200,
+ message:
+ '[Google Ads Offline Conversions Response Handler] - Request processed successfully',
+ destinationResponse: {
+ response: {
+ name: 'customers/111-222-3333/operations/abcd=',
},
+ status: 200,
+ },
},
+ },
},
+ },
},
{
- name: 'google_adwords_offline_conversions',
- description: 'Test 2',
- feature: 'dataDelivery',
- module: 'destination',
- version: 'v0',
- input: {
- request: {
- "body": {
- "version": "1",
- "type": "REST",
- "method": "POST",
- "endpoint": "https://googleads.googleapis.com/v14/customers/customerid/offlineUserDataJobs",
- "headers": {
- "Authorization": "Bearer abcd1234",
- "Content-Type": "application/json",
- "developer-token": "ijkl91011",
- "login-customer-id": "logincustomerid"
- },
- "params": {
- "customerId": "1112223333",
- "event": "Sign-up - click"
- },
- "body": {
- "JSON": {
- "addConversionPayload": {
- "enable_partial_failure": false,
- "enable_warnings": false,
- "operations": [
- {
- "create": {
- "transaction_attribute": {
- "CUSTOM_KEY": "CUSTOM_VALUE",
- "currency_code": "INR",
- "order_id": "order id",
- "store_attribute": {
- "store_code": "store code"
- },
- "transaction_amount_micros": "100000000",
- "transaction_date_time": "2019-10-14 11:15:18+00:00"
- },
- "userIdentifiers": [
- {
- "hashedEmail": "6db61e6dcbcf2390e4a46af426f26a133a3bee45021422fc7ae86e9136f14110",
- "userIdentifierSource": "UNSPECIFIED"
- }
- ]
- }
- }
- ],
- "validate_only": false
- },
- "createJobPayload": {
- "job": {
- "storeSalesMetadata": {
- "custom_key": "CUSTOM_KEY",
- "loyaltyFraction": 1,
- "transaction_upload_fraction": "1"
- },
- "type": "STORE_SALES_UPLOAD_FIRST_PARTY"
- }
- },
- "event": "1112223333",
- "executeJobPayload": {
- "validate_only": false
- },
- "isStoreConversion": true
+ name: 'google_adwords_offline_conversions',
+ description: 'Test 2',
+ feature: 'dataDelivery',
+ module: 'destination',
+ version: 'v0',
+ input: {
+ request: {
+ body: {
+ version: '1',
+ type: 'REST',
+ method: 'POST',
+ endpoint: 'https://googleads.googleapis.com/v14/customers/customerid/offlineUserDataJobs',
+ headers: {
+ Authorization: 'Bearer abcd1234',
+ 'Content-Type': 'application/json',
+ 'developer-token': 'ijkl91011',
+ 'login-customer-id': 'logincustomerid',
+ },
+ params: {
+ customerId: '1112223333',
+ event: 'Sign-up - click',
+ },
+ body: {
+ JSON: {
+ addConversionPayload: {
+ enable_partial_failure: false,
+ enable_warnings: false,
+ operations: [
+ {
+ create: {
+ transaction_attribute: {
+ CUSTOM_KEY: 'CUSTOM_VALUE',
+ currency_code: 'INR',
+ order_id: 'order id',
+ store_attribute: {
+ store_code: 'store code',
+ },
+ transaction_amount_micros: '100000000',
+ transaction_date_time: '2019-10-14 11:15:18+00:00',
},
- "JSON_ARRAY": {},
- "XML": {},
- "FORM": {}
+ userIdentifiers: [
+ {
+ hashedEmail:
+ '6db61e6dcbcf2390e4a46af426f26a133a3bee45021422fc7ae86e9136f14110',
+ userIdentifierSource: 'UNSPECIFIED',
+ },
+ ],
+ },
+ },
+ ],
+ validate_only: false,
+ },
+ createJobPayload: {
+ job: {
+ storeSalesMetadata: {
+ custom_key: 'CUSTOM_KEY',
+ loyaltyFraction: 1,
+ transaction_upload_fraction: '1',
},
- "files": {}
- }
+ type: 'STORE_SALES_UPLOAD_FIRST_PARTY',
+ },
+ },
+ event: '1112223333',
+ executeJobPayload: {
+ validate_only: false,
+ },
+ isStoreConversion: true,
+ },
+ JSON_ARRAY: {},
+ XML: {},
+ FORM: {},
},
+ files: {},
+ },
},
- output: {
- response: {
- status: 401,
- body: {
- "output": {
- "status": 401,
- "message": "[Google Ads Offline Conversions]:: Request had invalid authentication credentials. Expected OAuth 2 access token, login cookie or other valid authentication credential. See https://developers.google.com/identity/sign-in/web/devconsole-project. during google_ads_offline_store_conversions Job Creation",
- "authErrorCategory": "REFRESH_TOKEN",
- "destinationResponse": {
- "error": {
- "code": 401,
- "message": "Request had invalid authentication credentials. Expected OAuth 2 access token, login cookie or other valid authentication credential. See https://developers.google.com/identity/sign-in/web/devconsole-project.",
- "status": "UNAUTHENTICATED"
- }
- },
- "statTags": {
- "destType": "GOOGLE_ADWORDS_OFFLINE_CONVERSIONS",
- "destinationId": "Non-determininable",
- "errorCategory": "network",
- "errorType": "aborted",
- "feature": "dataDelivery",
- "implementation": "native",
- "module": "destination",
- "workspaceId": "Non-determininable"
- }
- }
- }
+ },
+ output: {
+ response: {
+ status: 401,
+ body: {
+ output: {
+ status: 401,
+ message:
+ '[Google Ads Offline Conversions]:: Request had invalid authentication credentials. Expected OAuth 2 access token, login cookie or other valid authentication credential. See https://developers.google.com/identity/sign-in/web/devconsole-project. during google_ads_offline_store_conversions Job Creation',
+ authErrorCategory: 'REFRESH_TOKEN',
+ destinationResponse: {
+ error: {
+ code: 401,
+ message:
+ 'Request had invalid authentication credentials. Expected OAuth 2 access token, login cookie or other valid authentication credential. See https://developers.google.com/identity/sign-in/web/devconsole-project.',
+ status: 'UNAUTHENTICATED',
+ },
+ },
+ statTags: {
+ destType: 'GOOGLE_ADWORDS_OFFLINE_CONVERSIONS',
+ destinationId: 'Non-determininable',
+ errorCategory: 'network',
+ errorType: 'aborted',
+ feature: 'dataDelivery',
+ implementation: 'native',
+ module: 'destination',
+ workspaceId: 'Non-determininable',
+ },
},
+ },
},
+ },
},
{
- name: 'google_adwords_offline_conversions',
- description: 'Test 3',
- feature: 'dataDelivery',
- module: 'destination',
- version: 'v0',
- input: {
- request: {
- "body": {
- "version": "1",
- "type": "REST",
- "method": "POST",
- "endpoint": "https://googleads.googleapis.com/v14/customers/1234567890:uploadClickConversions",
- "headers": {
- "Authorization": "Bearer abcd1234",
- "Content-Type": "application/json",
- "developer-token": "ijkl91011"
- },
- "params": {
- "event": "Sign-up - click",
- "customerId": "1234567890",
- "customVariables": [
- {
- "from": "value",
- "to": "revenue"
- },
- {
- "from": "total",
- "to": "cost"
- }
- ],
- "properties": {
- "gbraid": "gbraid",
- "wbraid": "wbraid",
- "externalAttributionCredit": 10,
- "externalAttributionModel": "externalAttributionModel",
- "conversionCustomVariable": "conversionCustomVariable",
- "value": "value",
- "merchantId": "9876merchantId",
- "feedCountryCode": "feedCountryCode",
- "feedLanguageCode": "feedLanguageCode",
- "localTransactionCost": 20,
- "products": [
- {
- "product_id": "507f1f77bcf86cd799439011",
- "quantity": "2",
- "price": "50",
- "sku": "45790-32",
- "name": "Monopoly: 3rd Edition",
- "position": "1",
- "category": "cars",
- "url": "https://www.example.com/product/path",
- "image_url": "https://www.example.com/product/path.jpg"
- }
- ],
- "userIdentifierSource": "FIRST_PARTY",
- "conversionEnvironment": "WEB",
- "gclid": "gclid",
- "conversionDateTime": "2022-01-01 12:32:45-08:00",
- "conversionValue": "1",
- "currency": "GBP",
- "orderId": "PL-123QR"
- }
+ name: 'google_adwords_offline_conversions',
+ description: 'Test 3',
+ feature: 'dataDelivery',
+ module: 'destination',
+ version: 'v0',
+ input: {
+ request: {
+ body: {
+ version: '1',
+ type: 'REST',
+ method: 'POST',
+ endpoint:
+ 'https://googleads.googleapis.com/v14/customers/1234567890:uploadClickConversions',
+ headers: {
+ Authorization: 'Bearer abcd1234',
+ 'Content-Type': 'application/json',
+ 'developer-token': 'ijkl91011',
+ },
+ params: {
+ event: 'Sign-up - click',
+ customerId: '1234567890',
+ customVariables: [
+ {
+ from: 'value',
+ to: 'revenue',
+ },
+ {
+ from: 'total',
+ to: 'cost',
+ },
+ ],
+ properties: {
+ gbraid: 'gbraid',
+ wbraid: 'wbraid',
+ externalAttributionCredit: 10,
+ externalAttributionModel: 'externalAttributionModel',
+ conversionCustomVariable: 'conversionCustomVariable',
+ value: 'value',
+ merchantId: '9876merchantId',
+ feedCountryCode: 'feedCountryCode',
+ feedLanguageCode: 'feedLanguageCode',
+ localTransactionCost: 20,
+ products: [
+ {
+ product_id: '507f1f77bcf86cd799439011',
+ quantity: '2',
+ price: '50',
+ sku: '45790-32',
+ name: 'Monopoly: 3rd Edition',
+ position: '1',
+ category: 'cars',
+ url: 'https://www.example.com/product/path',
+ image_url: 'https://www.example.com/product/path.jpg',
+ },
+ ],
+ userIdentifierSource: 'FIRST_PARTY',
+ conversionEnvironment: 'WEB',
+ gclid: 'gclid',
+ conversionDateTime: '2022-01-01 12:32:45-08:00',
+ conversionValue: '1',
+ currency: 'GBP',
+ orderId: 'PL-123QR',
+ },
+ },
+ body: {
+ JSON: {
+ conversions: [
+ {
+ gbraid: 'gbraid',
+ wbraid: 'wbraid',
+ externalAttributionData: {
+ externalAttributionCredit: 10,
+ externalAttributionModel: 'externalAttributionModel',
},
- "body": {
- "JSON": {
- "conversions": [
- {
- "gbraid": "gbraid",
- "wbraid": "wbraid",
- "externalAttributionData": {
- "externalAttributionCredit": 10,
- "externalAttributionModel": "externalAttributionModel"
- },
- "cartData": {
- "merchantId": 9876,
- "feedCountryCode": "feedCountryCode",
- "feedLanguageCode": "feedLanguageCode",
- "localTransactionCost": 20,
- "items": [
- {
- "productId": "507f1f77bcf86cd799439011",
- "quantity": 2,
- "unitPrice": 50
- }
- ]
- },
- "userIdentifiers": [
- {
- "userIdentifierSource": "FIRST_PARTY",
- "hashedEmail": "6db61e6dcbcf2390e4a46af426f26a133a3bee45021422fc7ae86e9136f14110"
- }
- ],
- "conversionEnvironment": "WEB",
- "gclid": "gclid",
- "conversionDateTime": "2022-01-01 12:32:45-08:00",
- "conversionValue": 1,
- "currencyCode": "GBP",
- "orderId": "PL-123QR"
- }
- ],
- "partialFailure": true
+ cartData: {
+ merchantId: 9876,
+ feedCountryCode: 'feedCountryCode',
+ feedLanguageCode: 'feedLanguageCode',
+ localTransactionCost: 20,
+ items: [
+ {
+ productId: '507f1f77bcf86cd799439011',
+ quantity: 2,
+ unitPrice: 50,
},
- "JSON_ARRAY": {},
- "XML": {},
- "FORM": {}
+ ],
},
- "files": {}
- }
+ userIdentifiers: [
+ {
+ userIdentifierSource: 'FIRST_PARTY',
+ hashedEmail:
+ '6db61e6dcbcf2390e4a46af426f26a133a3bee45021422fc7ae86e9136f14110',
+ },
+ ],
+ conversionEnvironment: 'WEB',
+ gclid: 'gclid',
+ conversionDateTime: '2022-01-01 12:32:45-08:00',
+ conversionValue: 1,
+ currencyCode: 'GBP',
+ orderId: 'PL-123QR',
+ },
+ ],
+ partialFailure: true,
+ },
+ JSON_ARRAY: {},
+ XML: {},
+ FORM: {},
},
+ files: {},
+ },
},
- output: {
- response: {
- status: 401,
- body: {
- "output": {
- "status": 401,
- "message": "[Google Ads Offline Conversions]:: [{\"error\":{\"code\":401,\"message\":\"Request had invalid authentication credentials. Expected OAuth 2 access token, login cookie or other valid authentication credential. See https://developers.google.com/identity/sign-in/web/devconsole-project.\",\"status\":\"UNAUTHENTICATED\"}}] during google_ads_offline_conversions response transformation",
- "authErrorCategory": "REFRESH_TOKEN",
- "destinationResponse": [
- {
- "error": {
- "code": 401,
- "message": "Request had invalid authentication credentials. Expected OAuth 2 access token, login cookie or other valid authentication credential. See https://developers.google.com/identity/sign-in/web/devconsole-project.",
- "status": "UNAUTHENTICATED"
- }
- }
- ],
- "statTags": {
- "destType": "GOOGLE_ADWORDS_OFFLINE_CONVERSIONS",
- "destinationId": "Non-determininable",
- "errorCategory": "network",
- "errorType": "aborted",
- "feature": "dataDelivery",
- "implementation": "native",
- "module": "destination",
- "workspaceId": "Non-determininable",
- }
- }
- }
+ },
+ output: {
+ response: {
+ status: 401,
+ body: {
+ output: {
+ status: 401,
+ message:
+ '[Google Ads Offline Conversions]:: [{"error":{"code":401,"message":"Request had invalid authentication credentials. Expected OAuth 2 access token, login cookie or other valid authentication credential. See https://developers.google.com/identity/sign-in/web/devconsole-project.","status":"UNAUTHENTICATED"}}] during google_ads_offline_conversions response transformation',
+ authErrorCategory: 'REFRESH_TOKEN',
+ destinationResponse: [
+ {
+ error: {
+ code: 401,
+ message:
+ 'Request had invalid authentication credentials. Expected OAuth 2 access token, login cookie or other valid authentication credential. See https://developers.google.com/identity/sign-in/web/devconsole-project.',
+ status: 'UNAUTHENTICATED',
+ },
+ },
+ ],
+ statTags: {
+ destType: 'GOOGLE_ADWORDS_OFFLINE_CONVERSIONS',
+ destinationId: 'Non-determininable',
+ errorCategory: 'network',
+ errorType: 'aborted',
+ feature: 'dataDelivery',
+ implementation: 'native',
+ module: 'destination',
+ workspaceId: 'Non-determininable',
+ },
},
+ },
},
+ },
},
{
- name: 'google_adwords_offline_conversions',
- description: 'Test 4',
- feature: 'dataDelivery',
- module: 'destination',
- version: 'v0',
- input: {
- "request": {
- "body": {
- "version": "1",
- "type": "REST",
- "method": "POST",
- "endpoint": "https://googleads.googleapis.com/v14/customers/1234567891:uploadClickConversions",
- "headers": {
- "Authorization": "Bearer abcd1234",
- "Content-Type": "application/json",
- "developer-token": "ijkl91011"
- },
- "params": {
- "event": "Sign-up - click",
- "customerId": "1234567891",
- "customVariables": [
- {
- "from": "Value",
- "to": "revenue"
- },
- {
- "from": "total",
- "to": "cost"
- }
- ],
- "properties": {
- "gbraid": "gbraid",
- "wbraid": "wbraid",
- "externalAttributionCredit": 10,
- "externalAttributionModel": "externalAttributionModel",
- "conversionCustomVariable": "conversionCustomVariable",
- "Value": "value",
- "merchantId": "9876merchantId",
- "feedCountryCode": "feedCountryCode",
- "feedLanguageCode": "feedLanguageCode",
- "localTransactionCost": 20,
- "products": [
- {
- "product_id": "507f1f77bcf86cd799439011",
- "quantity": "2",
- "price": "50",
- "sku": "45790-32",
- "name": "Monopoly: 3rd Edition",
- "position": "1",
- "category": "cars",
- "url": "https://www.example.com/product/path",
- "image_url": "https://www.example.com/product/path.jpg"
- }
- ],
- "userIdentifierSource": "FIRST_PARTY",
- "conversionEnvironment": "WEB",
- "gclid": "gclid",
- "conversionDateTime": "2022-01-01 12:32:45-08:00",
- "conversionValue": "1",
- "currency": "GBP",
- "orderId": "PL-123QR"
- }
+ name: 'google_adwords_offline_conversions',
+ description: 'Test 4',
+ feature: 'dataDelivery',
+ module: 'destination',
+ version: 'v0',
+ input: {
+ request: {
+ body: {
+ version: '1',
+ type: 'REST',
+ method: 'POST',
+ endpoint:
+ 'https://googleads.googleapis.com/v14/customers/1234567891:uploadClickConversions',
+ headers: {
+ Authorization: 'Bearer abcd1234',
+ 'Content-Type': 'application/json',
+ 'developer-token': 'ijkl91011',
+ },
+ params: {
+ event: 'Sign-up - click',
+ customerId: '1234567891',
+ customVariables: [
+ {
+ from: 'Value',
+ to: 'revenue',
+ },
+ {
+ from: 'total',
+ to: 'cost',
+ },
+ ],
+ properties: {
+ gbraid: 'gbraid',
+ wbraid: 'wbraid',
+ externalAttributionCredit: 10,
+ externalAttributionModel: 'externalAttributionModel',
+ conversionCustomVariable: 'conversionCustomVariable',
+ Value: 'value',
+ merchantId: '9876merchantId',
+ feedCountryCode: 'feedCountryCode',
+ feedLanguageCode: 'feedLanguageCode',
+ localTransactionCost: 20,
+ products: [
+ {
+ product_id: '507f1f77bcf86cd799439011',
+ quantity: '2',
+ price: '50',
+ sku: '45790-32',
+ name: 'Monopoly: 3rd Edition',
+ position: '1',
+ category: 'cars',
+ url: 'https://www.example.com/product/path',
+ image_url: 'https://www.example.com/product/path.jpg',
+ },
+ ],
+ userIdentifierSource: 'FIRST_PARTY',
+ conversionEnvironment: 'WEB',
+ gclid: 'gclid',
+ conversionDateTime: '2022-01-01 12:32:45-08:00',
+ conversionValue: '1',
+ currency: 'GBP',
+ orderId: 'PL-123QR',
+ },
+ },
+ body: {
+ JSON: {
+ conversions: [
+ {
+ gbraid: 'gbraid',
+ wbraid: 'wbraid',
+ externalAttributionData: {
+ externalAttributionCredit: 10,
+ externalAttributionModel: 'externalAttributionModel',
},
- "body": {
- "JSON": {
- "conversions": [
- {
- "gbraid": "gbraid",
- "wbraid": "wbraid",
- "externalAttributionData": {
- "externalAttributionCredit": 10,
- "externalAttributionModel": "externalAttributionModel"
- },
- "cartData": {
- "merchantId": 9876,
- "feedCountryCode": "feedCountryCode",
- "feedLanguageCode": "feedLanguageCode",
- "localTransactionCost": 20,
- "items": [
- {
- "productId": "507f1f77bcf86cd799439011",
- "quantity": 2,
- "unitPrice": 50
- }
- ]
- },
- "userIdentifiers": [
- {
- "userIdentifierSource": "FIRST_PARTY",
- "hashedPhoneNumber": "04e1dabb7c1348b72bfa87da179c9697c69af74827649266a5da8cdbb367abcd"
- }
- ],
- "conversionEnvironment": "WEB",
- "gclid": "gclid",
- "conversionDateTime": "2022-01-01 12:32:45-08:00",
- "conversionValue": 1,
- "currencyCode": "GBP",
- "orderId": "PL-123QR"
- }
- ],
- "partialFailure": true
+ cartData: {
+ merchantId: 9876,
+ feedCountryCode: 'feedCountryCode',
+ feedLanguageCode: 'feedLanguageCode',
+ localTransactionCost: 20,
+ items: [
+ {
+ productId: '507f1f77bcf86cd799439011',
+ quantity: 2,
+ unitPrice: 50,
},
- "JSON_ARRAY": {},
- "XML": {},
- "FORM": {}
+ ],
},
- "files": {}
- }
- }
+ userIdentifiers: [
+ {
+ userIdentifierSource: 'FIRST_PARTY',
+ hashedPhoneNumber:
+ '04e1dabb7c1348b72bfa87da179c9697c69af74827649266a5da8cdbb367abcd',
+ },
+ ],
+ conversionEnvironment: 'WEB',
+ gclid: 'gclid',
+ conversionDateTime: '2022-01-01 12:32:45-08:00',
+ conversionValue: 1,
+ currencyCode: 'GBP',
+ orderId: 'PL-123QR',
+ },
+ ],
+ partialFailure: true,
+ },
+ JSON_ARRAY: {},
+ XML: {},
+ FORM: {},
+ },
+ files: {},
+ },
},
- output: {
- response: {
+ },
+ output: {
+ response: {
+ status: 200,
+ body: {
+ output: {
+ status: 200,
+ message:
+ '[Google Ads Offline Conversions Response Handler] - Request processed successfully',
+ destinationResponse: {
+ response: [
+ {
+ adjustmentType: 'ENHANCEMENT',
+ conversionAction: 'customers/1234567891/conversionActions/874224905',
+ adjustmentDateTime: '2021-01-01 12:32:45-08:00',
+ gclidDateTimePair: {
+ gclid: '1234',
+ conversionDateTime: '2021-01-01 12:32:45-08:00',
+ },
+ orderId: '12345',
+ },
+ ],
status: 200,
- body: {
- "output": {
- "status": 200,
- "message": "[Google Ads Offline Conversions Response Handler] - Request processed successfully",
- "destinationResponse": {
- "response": [
- {
- "adjustmentType": "ENHANCEMENT",
- "conversionAction": "customers/1234567891/conversionActions/874224905",
- "adjustmentDateTime": "2021-01-01 12:32:45-08:00",
- "gclidDateTimePair": {
- "gclid": "1234",
- "conversionDateTime": "2021-01-01 12:32:45-08:00"
- },
- "orderId": "12345"
- }
- ],
- "status": 200
- }
- }
- }
+ },
},
+ },
},
+ },
},
{
- name: 'google_adwords_offline_conversions',
- description: 'Test 5',
- feature: 'dataDelivery',
- module: 'destination',
- version: 'v0',
- input: {
- "request": {
- "body": {
- "version": "1",
- "type": "REST",
- "method": "POST",
- "endpoint": "https://googleads.googleapis.com/v14/customers/1234567891:uploadClickConversions",
- "headers": {
- "Authorization": "Bearer abcd1234",
- "Content-Type": "application/json",
- "developer-token": "ijkl91011"
- },
- "params": {
- "event": "Sign-up - click",
- "customerId": "1234567891",
- "customVariables": [],
- "properties": {
- "gbraid": "gbraid",
- "wbraid": "wbraid",
- "externalAttributionCredit": 10,
- "externalAttributionModel": "externalAttributionModel",
- "conversionCustomVariable": "conversionCustomVariable",
- "value": "value",
- "merchantId": "9876merchantId",
- "feedCountryCode": "feedCountryCode",
- "feedLanguageCode": "feedLanguageCode",
- "localTransactionCost": 20,
- "products": [
- {
- "product_id": "507f1f77bcf86cd799439011",
- "quantity": "2",
- "price": "50",
- "sku": "45790-32",
- "name": "Monopoly: 3rd Edition",
- "position": "1",
- "category": "cars",
- "url": "https://www.example.com/product/path",
- "image_url": "https://www.example.com/product/path.jpg"
- }
- ],
- "userIdentifierSource": "FIRST_PARTY",
- "conversionEnvironment": "WEB",
- "gclid": "gclid",
- "conversionDateTime": "2022-01-01 12:32:45-08:00",
- "conversionValue": "1",
- "currency": "GBP",
- "orderId": "PL-123QR"
- }
+ name: 'google_adwords_offline_conversions',
+ description: 'Test 5',
+ feature: 'dataDelivery',
+ module: 'destination',
+ version: 'v0',
+ input: {
+ request: {
+ body: {
+ version: '1',
+ type: 'REST',
+ method: 'POST',
+ endpoint:
+ 'https://googleads.googleapis.com/v14/customers/1234567891:uploadClickConversions',
+ headers: {
+ Authorization: 'Bearer abcd1234',
+ 'Content-Type': 'application/json',
+ 'developer-token': 'ijkl91011',
+ },
+ params: {
+ event: 'Sign-up - click',
+ customerId: '1234567891',
+ customVariables: [],
+ properties: {
+ gbraid: 'gbraid',
+ wbraid: 'wbraid',
+ externalAttributionCredit: 10,
+ externalAttributionModel: 'externalAttributionModel',
+ conversionCustomVariable: 'conversionCustomVariable',
+ value: 'value',
+ merchantId: '9876merchantId',
+ feedCountryCode: 'feedCountryCode',
+ feedLanguageCode: 'feedLanguageCode',
+ localTransactionCost: 20,
+ products: [
+ {
+ product_id: '507f1f77bcf86cd799439011',
+ quantity: '2',
+ price: '50',
+ sku: '45790-32',
+ name: 'Monopoly: 3rd Edition',
+ position: '1',
+ category: 'cars',
+ url: 'https://www.example.com/product/path',
+ image_url: 'https://www.example.com/product/path.jpg',
+ },
+ ],
+ userIdentifierSource: 'FIRST_PARTY',
+ conversionEnvironment: 'WEB',
+ gclid: 'gclid',
+ conversionDateTime: '2022-01-01 12:32:45-08:00',
+ conversionValue: '1',
+ currency: 'GBP',
+ orderId: 'PL-123QR',
+ },
+ },
+ body: {
+ JSON: {
+ conversions: [
+ {
+ gbraid: 'gbraid',
+ wbraid: 'wbraid',
+ externalAttributionData: {
+ externalAttributionCredit: 10,
+ externalAttributionModel: 'externalAttributionModel',
},
- "body": {
- "JSON": {
- "conversions": [
- {
- "gbraid": "gbraid",
- "wbraid": "wbraid",
- "externalAttributionData": {
- "externalAttributionCredit": 10,
- "externalAttributionModel": "externalAttributionModel"
- },
- "cartData": {
- "merchantId": 9876,
- "feedCountryCode": "feedCountryCode",
- "feedLanguageCode": "feedLanguageCode",
- "localTransactionCost": 20,
- "items": [
- {
- "productId": "507f1f77bcf86cd799439011",
- "quantity": 2,
- "unitPrice": 50
- }
- ]
- },
- "userIdentifiers": [
- {
- "userIdentifierSource": "FIRST_PARTY",
- "hashedPhoneNumber": "04e1dabb7c1348b72bfa87da179c9697c69af74827649266a5da8cdbb367abcd"
- }
- ],
- "conversionEnvironment": "WEB",
- "gclid": "gclid",
- "conversionDateTime": "2022-01-01 12:32:45-08:00",
- "conversionValue": 1,
- "currencyCode": "GBP",
- "orderId": "PL-123QR"
- }
- ],
- "partialFailure": true
+ cartData: {
+ merchantId: 9876,
+ feedCountryCode: 'feedCountryCode',
+ feedLanguageCode: 'feedLanguageCode',
+ localTransactionCost: 20,
+ items: [
+ {
+ productId: '507f1f77bcf86cd799439011',
+ quantity: 2,
+ unitPrice: 50,
},
- "JSON_ARRAY": {},
- "XML": {},
- "FORM": {}
+ ],
},
- "files": {}
- }
- }
+ userIdentifiers: [
+ {
+ userIdentifierSource: 'FIRST_PARTY',
+ hashedPhoneNumber:
+ '04e1dabb7c1348b72bfa87da179c9697c69af74827649266a5da8cdbb367abcd',
+ },
+ ],
+ conversionEnvironment: 'WEB',
+ gclid: 'gclid',
+ conversionDateTime: '2022-01-01 12:32:45-08:00',
+ conversionValue: 1,
+ currencyCode: 'GBP',
+ orderId: 'PL-123QR',
+ },
+ ],
+ partialFailure: true,
+ },
+ JSON_ARRAY: {},
+ XML: {},
+ FORM: {},
+ },
+ files: {},
+ },
},
- output: {
- response: {
+ },
+ output: {
+ response: {
+ status: 200,
+ body: {
+ output: {
+ destinationResponse: {
+ response: [
+ {
+ adjustmentDateTime: '2021-01-01 12:32:45-08:00',
+ adjustmentType: 'ENHANCEMENT',
+ conversionAction: 'customers/1234567891/conversionActions/874224905',
+ gclidDateTimePair: {
+ conversionDateTime: '2021-01-01 12:32:45-08:00',
+ gclid: '1234',
+ },
+ orderId: '12345',
+ },
+ ],
status: 200,
- body: {
- "output": {
- "destinationResponse": {
- "response": [
- {
- "adjustmentDateTime": "2021-01-01 12:32:45-08:00",
- "adjustmentType": "ENHANCEMENT",
- "conversionAction": "customers/1234567891/conversionActions/874224905",
- "gclidDateTimePair": {
- "conversionDateTime": "2021-01-01 12:32:45-08:00",
- "gclid": "1234"
- },
- "orderId": "12345"
- }
- ],
- "status": 200
- },
- "message": "[Google Ads Offline Conversions Response Handler] - Request processed successfully",
- "status": 200
- }
- }
+ },
+ message:
+ '[Google Ads Offline Conversions Response Handler] - Request processed successfully',
+ status: 200,
},
+ },
},
- }
+ },
+ },
];
diff --git a/test/integrations/destinations/marketo_bulk_upload/processor/data.ts b/test/integrations/destinations/marketo_bulk_upload/processor/data.ts
index 5f3f2ccb58..f1b162ad28 100644
--- a/test/integrations/destinations/marketo_bulk_upload/processor/data.ts
+++ b/test/integrations/destinations/marketo_bulk_upload/processor/data.ts
@@ -1,499 +1,505 @@
export const data = [
- {
- "name": "marketo_bulk_upload",
- "description": "Test 0",
- "feature": "processor",
- "module": "destination",
- "version": "v0",
- "input": {
- "request": {
- "body": [
- {
- "message": {
- "type": "identify",
- "traits": {
- "name": "Carlo Lombard",
- "plan": "Quarterly Team+ Plan for Enuffsaid Media",
- "email": "carlo@enuffsaid.media"
- },
- "userId": 476335,
- "context": {
- "ip": "14.0.2.238",
- "page": {
- "url": "enuffsaid.proposify.com",
- "path": "/settings",
- "method": "POST",
- "referrer": "https://enuffsaid.proposify.com/login"
- },
- "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/97.0.4692.71 Safari/537.36"
- },
- "rudderId": "786dfec9-jfh",
- "messageId": "5d9bc6e2-ekjh"
- },
- "destination": {
- "ID": "1mMy5cqbtfuaKZv1IhVQKnBdVwe",
- "Config": {
- "munchkinId": "XXXX",
- "clientId": "YYYY",
- "clientSecret": "ZZZZ",
- "columnFieldsMapping": [
- {
- "to": "name__c",
- "from": "name"
- },
- {
- "to": "email__c",
- "from": "email"
- },
- {
- "to": "plan__c",
- "from": "plan"
- }
- ]
- }
- }
- }
- ]
- }
- },
- "output": {
- "response": {
- "status": 200,
- "body": [
- {
- "output": {
- "version": "1",
- "type": "REST",
- "method": "POST",
- "endpoint": "/fileUpload",
- "headers": {},
- "params": {},
- "body": {
- "JSON": {
- "name__c": "Carlo Lombard",
- "email__c": "carlo@enuffsaid.media",
- "plan__c": "Quarterly Team+ Plan for Enuffsaid Media"
- },
- "JSON_ARRAY": {},
- "XML": {},
- "FORM": {}
- },
- "files": {},
- "userId": ""
- },
- "statusCode": 200
- }
- ]
- }
- }
- },
- {
- "name": "marketo_bulk_upload",
- "description": "Test 1",
- "feature": "processor",
- "module": "destination",
- "version": "v0",
- "input": {
- "request": {
- "body": [
- {
- "message": {
- "traits": {
- "name": "Carlo Lombard",
- "plan": "Quarterly Team+ Plan for Enuffsaid Media",
- "email": "carlo@enuffsaid.media"
- },
- "userId": 476335,
- "context": {
- "ip": "14.0.2.238",
- "page": {
- "url": "enuffsaid.proposify.com",
- "path": "/settings",
- "method": "POST",
- "referrer": "https://enuffsaid.proposify.com/login"
- },
- "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/97.0.4692.71 Safari/537.36"
- },
- "rudderId": "786dfec9-jfh",
- "messageId": "5d9bc6e2-ekjh"
- },
- "destination": {
- "ID": "1mMy5cqbtfuaKZv1IhVQKnBdVwe",
- "Config": {
- "munchkinId": "XXXX",
- "clientId": "YYYY",
- "clientSecret": "ZZZZ",
- "columnFieldsMapping": [
- {
- "to": "name__c",
- "from": "name"
- },
- {
- "to": "email__c",
- "from": "email"
- },
- {
- "to": "plan__c",
- "from": "plan"
- }
- ]
- }
- }
- }
- ]
- }
- },
- "output": {
- "response": {
- "status": 200,
- "body": [
- {
- "error": "Event type is required",
- "statTags": {
- "destType": "MARKETO_BULK_UPLOAD",
- "errorCategory": "dataValidation",
- "errorType": "instrumentation",
- "feature": "processor",
- "implementation": "native",
- "module": "destination"
- },
- "statusCode": 400
- }
- ]
- }
- }
- },
- {
- "name": "marketo_bulk_upload",
- "description": "Test 2",
- "feature": "processor",
- "module": "destination",
- "version": "v0",
- "input": {
- "request": {
- "body": [
- {
- "message": {
- "type": "track",
- "traits": {
- "name": "Carlo Lombard",
- "plan": "Quarterly Team+ Plan for Enuffsaid Media",
- "email": "carlo@enuffsaid.media"
- },
- "userId": 476335,
- "context": {
- "ip": "14.0.2.238",
- "page": {
- "url": "enuffsaid.proposify.com",
- "path": "/settings",
- "method": "POST",
- "referrer": "https://enuffsaid.proposify.com/login"
- },
- "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/97.0.4692.71 Safari/537.36"
- },
- "rudderId": "786dfec9-jfh",
- "messageId": "5d9bc6e2-ekjh"
- },
- "destination": {
- "ID": "1mMy5cqbtfuaKZv1IhVQKnBdVwe",
- "Config": {
- "munchkinId": "XXXX",
- "clientId": "YYYY",
- "clientSecret": "ZZZZ",
- "columnFieldsMapping": [
- {
- "to": "name__c",
- "from": "name"
- },
- {
- "to": "email__c",
- "from": "email"
- },
- {
- "to": "plan__c",
- "from": "plan"
- }
- ]
- }
- }
- }
- ]
- }
- },
- "output": {
- "response": {
- "status": 200,
- "body": [
- {
- "error": "Event type track is not supported",
- "statTags": {
- "destType": "MARKETO_BULK_UPLOAD",
- "errorCategory": "dataValidation",
- "errorType": "instrumentation",
- "feature": "processor",
- "implementation": "native",
- "module": "destination"
- },
- "statusCode": 400
- }
- ]
- }
- }
- },
- {
- "name": "marketo_bulk_upload",
- "description": "Test 3",
- "feature": "processor",
- "module": "destination",
- "version": "v0",
- "input": {
- "request": {
- "body": [
- {
- "message": {
- "type": "identify",
- "traits": {
- "name": "Carlo Lombard",
- "plan": "Quarterly Team+ Plan for Enuffsaid Media",
- "email": "carlo@enuffsaid.media"
- },
- "userId": 476335,
- "context": {
- "ip": "14.0.2.238",
- "page": {
- "url": "enuffsaid.proposify.com",
- "path": "/settings",
- "method": "POST",
- "referrer": "https://enuffsaid.proposify.com/login"
- },
- "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/97.0.4692.71 Safari/537.36"
- },
- "rudderId": "786dfec9-jfh",
- "messageId": "5d9bc6e2-ekjh"
- },
- "destination": {
- "ID": "1mMy5cqbtfuaKZv1IhVQKnBdVwe",
- "Config": {
- "munchkinId": "XXXX",
- "clientId": "YYYY",
- "clientSecret": "ZZZZ",
- "columnFieldsMapping": [
- {
- "to": "name__c",
- "from": "1"
- },
- {
- "to": "email__c",
- "from": "email1"
- },
- {
- "to": "plan__c",
- "from": "plan1"
- }
- ]
- }
- }
- }
- ]
- }
- },
- "output": {
- "response": {
- "status": 200,
- "body": [
- {
- "output": {
- "version": "1",
- "type": "REST",
- "method": "POST",
- "endpoint": "/fileUpload",
- "headers": {},
- "params": {},
- "body": {
- "JSON": {},
- "JSON_ARRAY": {},
- "XML": {},
- "FORM": {}
- },
- "files": {},
- "userId": ""
- },
- "statusCode": 200
- }
- ]
- }
- }
- },
- {
- "name": "marketo_bulk_upload",
- "description": "Test 4",
- "feature": "processor",
- "module": "destination",
- "version": "v0",
- "input": {
- "request": {
- "body": [
- {
- "message": {
- "type": "identify",
- "traits": {
- "name": "Carlo Lombard",
- "plan": "Quarterly Team+ Plan for Enuffsaid Media",
- "email": "carlo@enuffsaid.media"
- },
- "userId": 476335,
- "context": {
- "ip": "14.0.2.238",
- "page": {
- "url": "enuffsaid.proposify.com",
- "path": "/settings",
- "method": "POST",
- "referrer": "https://enuffsaid.proposify.com/login"
- },
- "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/97.0.4692.71 Safari/537.36"
- },
- "rudderId": "786dfec9-jfh",
- "messageId": "5d9bc6e2-ekjh"
- },
- "destination": {
- "ID": "1mMy5cqbtfuaKZv1IhVQKnBdVwe",
- "Config": {
- "munchkinId": "XXXX",
- "clientId": "YYYY",
- "clientSecret": "ZZZZ",
- "columnFieldsMapping": [
- {
- "to": "name__c",
- "from": "name"
- },
- {
- "to": "email__c",
- "from": "email1"
- },
- {
- "to": "plan__c",
- "from": "plan1"
- }
- ]
- }
- }
- }
- ]
- }
- },
- "output": {
- "response": {
- "status": 200,
- "body": [
- {
- "output": {
- "version": "1",
- "type": "REST",
- "method": "POST",
- "endpoint": "/fileUpload",
- "headers": {},
- "params": {},
- "body": {
- "JSON": {
- "name__c": "Carlo Lombard"
- },
- "JSON_ARRAY": {},
- "XML": {},
- "FORM": {}
- },
- "files": {},
- "userId": ""
- },
- "statusCode": 200
- }
- ]
- }
- }
- },
- {
- "name": "marketo_bulk_upload",
- "description": "Test 5",
- "feature": "processor",
- "module": "destination",
- "version": "v0",
- "input": {
- "request": {
- "body": [
- {
- "message": {
- "type": "identify",
- "traits": {
- "name": "Carlo Lombard",
- "plan": 1
- },
- "userId": 476335,
- "context": {
- "ip": "14.0.2.238",
- "page": {
- "url": "enuffsaid.proposify.com",
- "path": "/settings",
- "method": "POST",
- "referrer": "https://enuffsaid.proposify.com/login"
- },
- "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/97.0.4692.71 Safari/537.36"
- },
- "rudderId": "786dfec9-jfh",
- "messageId": "5d9bc6e2-ekjh"
- },
- "destination": {
- "ID": "1mMy5cqbtfuaKZv1IhVQKnBdVwe",
- "Config": {
- "munchkinId": "XXXX",
- "clientId": "YYYY",
- "clientSecret": "ZZZZ",
- "columnFieldsMapping": [
- {
- "to": "name__c",
- "from": "name"
- },
- {
- "to": "email__c",
- "from": "email"
- },
- {
- "to": "plan__c",
- "from": "plan"
- }
- ]
- }
- }
- }
- ]
- }
- },
- "output": {
- "response": {
- "status": 200,
- "body": [
- {
- "output": {
- "version": "1",
- "type": "REST",
- "method": "POST",
- "endpoint": "/fileUpload",
- "headers": {},
- "params": {},
- "body": {
- "JSON": {
- "name__c": "Carlo Lombard",
- "plan__c": 1
- },
- "JSON_ARRAY": {},
- "XML": {},
- "FORM": {}
- },
- "files": {},
- "userId": ""
- },
- "statusCode": 200
- }
- ]
- }
- }
- }
-]
+ {
+ name: 'marketo_bulk_upload',
+ description: 'Test 0',
+ feature: 'processor',
+ module: 'destination',
+ version: 'v0',
+ input: {
+ request: {
+ body: [
+ {
+ message: {
+ type: 'identify',
+ traits: {
+ name: 'Carlo Lombard',
+ plan: 'Quarterly Team+ Plan for Enuffsaid Media',
+ email: 'carlo@enuffsaid.media',
+ },
+ userId: 476335,
+ context: {
+ ip: '14.0.2.238',
+ page: {
+ url: 'enuffsaid.proposify.com',
+ path: '/settings',
+ method: 'POST',
+ referrer: 'https://enuffsaid.proposify.com/login',
+ },
+ userAgent:
+ 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/97.0.4692.71 Safari/537.36',
+ },
+ rudderId: '786dfec9-jfh',
+ messageId: '5d9bc6e2-ekjh',
+ },
+ destination: {
+ ID: '1mMy5cqbtfuaKZv1IhVQKnBdVwe',
+ Config: {
+ munchkinId: 'XXXX',
+ clientId: 'YYYY',
+ clientSecret: 'ZZZZ',
+ columnFieldsMapping: [
+ {
+ to: 'name__c',
+ from: 'name',
+ },
+ {
+ to: 'email__c',
+ from: 'email',
+ },
+ {
+ to: 'plan__c',
+ from: 'plan',
+ },
+ ],
+ },
+ },
+ },
+ ],
+ },
+ },
+ output: {
+ response: {
+ status: 200,
+ body: [
+ {
+ output: {
+ version: '1',
+ type: 'REST',
+ method: 'POST',
+ endpoint: '/fileUpload',
+ headers: {},
+ params: {},
+ body: {
+ JSON: {
+ name__c: 'Carlo Lombard',
+ email__c: 'carlo@enuffsaid.media',
+ plan__c: 'Quarterly Team+ Plan for Enuffsaid Media',
+ },
+ JSON_ARRAY: {},
+ XML: {},
+ FORM: {},
+ },
+ files: {},
+ userId: '',
+ },
+ statusCode: 200,
+ },
+ ],
+ },
+ },
+ },
+ {
+ name: 'marketo_bulk_upload',
+ description: 'Test 1',
+ feature: 'processor',
+ module: 'destination',
+ version: 'v0',
+ input: {
+ request: {
+ body: [
+ {
+ message: {
+ traits: {
+ name: 'Carlo Lombard',
+ plan: 'Quarterly Team+ Plan for Enuffsaid Media',
+ email: 'carlo@enuffsaid.media',
+ },
+ userId: 476335,
+ context: {
+ ip: '14.0.2.238',
+ page: {
+ url: 'enuffsaid.proposify.com',
+ path: '/settings',
+ method: 'POST',
+ referrer: 'https://enuffsaid.proposify.com/login',
+ },
+ userAgent:
+ 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/97.0.4692.71 Safari/537.36',
+ },
+ rudderId: '786dfec9-jfh',
+ messageId: '5d9bc6e2-ekjh',
+ },
+ destination: {
+ ID: '1mMy5cqbtfuaKZv1IhVQKnBdVwe',
+ Config: {
+ munchkinId: 'XXXX',
+ clientId: 'YYYY',
+ clientSecret: 'ZZZZ',
+ columnFieldsMapping: [
+ {
+ to: 'name__c',
+ from: 'name',
+ },
+ {
+ to: 'email__c',
+ from: 'email',
+ },
+ {
+ to: 'plan__c',
+ from: 'plan',
+ },
+ ],
+ },
+ },
+ },
+ ],
+ },
+ },
+ output: {
+ response: {
+ status: 200,
+ body: [
+ {
+ error: 'Event type is required',
+ statTags: {
+ destType: 'MARKETO_BULK_UPLOAD',
+ errorCategory: 'dataValidation',
+ errorType: 'instrumentation',
+ feature: 'processor',
+ implementation: 'native',
+ module: 'destination',
+ },
+ statusCode: 400,
+ },
+ ],
+ },
+ },
+ },
+ {
+ name: 'marketo_bulk_upload',
+ description: 'Test 2',
+ feature: 'processor',
+ module: 'destination',
+ version: 'v0',
+ input: {
+ request: {
+ body: [
+ {
+ message: {
+ type: 'track',
+ traits: {
+ name: 'Carlo Lombard',
+ plan: 'Quarterly Team+ Plan for Enuffsaid Media',
+ email: 'carlo@enuffsaid.media',
+ },
+ userId: 476335,
+ context: {
+ ip: '14.0.2.238',
+ page: {
+ url: 'enuffsaid.proposify.com',
+ path: '/settings',
+ method: 'POST',
+ referrer: 'https://enuffsaid.proposify.com/login',
+ },
+ userAgent:
+ 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/97.0.4692.71 Safari/537.36',
+ },
+ rudderId: '786dfec9-jfh',
+ messageId: '5d9bc6e2-ekjh',
+ },
+ destination: {
+ ID: '1mMy5cqbtfuaKZv1IhVQKnBdVwe',
+ Config: {
+ munchkinId: 'XXXX',
+ clientId: 'YYYY',
+ clientSecret: 'ZZZZ',
+ columnFieldsMapping: [
+ {
+ to: 'name__c',
+ from: 'name',
+ },
+ {
+ to: 'email__c',
+ from: 'email',
+ },
+ {
+ to: 'plan__c',
+ from: 'plan',
+ },
+ ],
+ },
+ },
+ },
+ ],
+ },
+ },
+ output: {
+ response: {
+ status: 200,
+ body: [
+ {
+ error: 'Event type track is not supported',
+ statTags: {
+ destType: 'MARKETO_BULK_UPLOAD',
+ errorCategory: 'dataValidation',
+ errorType: 'instrumentation',
+ feature: 'processor',
+ implementation: 'native',
+ module: 'destination',
+ },
+ statusCode: 400,
+ },
+ ],
+ },
+ },
+ },
+ {
+ name: 'marketo_bulk_upload',
+ description: 'Test 3',
+ feature: 'processor',
+ module: 'destination',
+ version: 'v0',
+ input: {
+ request: {
+ body: [
+ {
+ message: {
+ type: 'identify',
+ traits: {
+ name: 'Carlo Lombard',
+ plan: 'Quarterly Team+ Plan for Enuffsaid Media',
+ email: 'carlo@enuffsaid.media',
+ },
+ userId: 476335,
+ context: {
+ ip: '14.0.2.238',
+ page: {
+ url: 'enuffsaid.proposify.com',
+ path: '/settings',
+ method: 'POST',
+ referrer: 'https://enuffsaid.proposify.com/login',
+ },
+ userAgent:
+ 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/97.0.4692.71 Safari/537.36',
+ },
+ rudderId: '786dfec9-jfh',
+ messageId: '5d9bc6e2-ekjh',
+ },
+ destination: {
+ ID: '1mMy5cqbtfuaKZv1IhVQKnBdVwe',
+ Config: {
+ munchkinId: 'XXXX',
+ clientId: 'YYYY',
+ clientSecret: 'ZZZZ',
+ columnFieldsMapping: [
+ {
+ to: 'name__c',
+ from: '1',
+ },
+ {
+ to: 'email__c',
+ from: 'email1',
+ },
+ {
+ to: 'plan__c',
+ from: 'plan1',
+ },
+ ],
+ },
+ },
+ },
+ ],
+ },
+ },
+ output: {
+ response: {
+ status: 200,
+ body: [
+ {
+ output: {
+ version: '1',
+ type: 'REST',
+ method: 'POST',
+ endpoint: '/fileUpload',
+ headers: {},
+ params: {},
+ body: {
+ JSON: {},
+ JSON_ARRAY: {},
+ XML: {},
+ FORM: {},
+ },
+ files: {},
+ userId: '',
+ },
+ statusCode: 200,
+ },
+ ],
+ },
+ },
+ },
+ {
+ name: 'marketo_bulk_upload',
+ description: 'Test 4',
+ feature: 'processor',
+ module: 'destination',
+ version: 'v0',
+ input: {
+ request: {
+ body: [
+ {
+ message: {
+ type: 'identify',
+ traits: {
+ name: 'Carlo Lombard',
+ plan: 'Quarterly Team+ Plan for Enuffsaid Media',
+ email: 'carlo@enuffsaid.media',
+ },
+ userId: 476335,
+ context: {
+ ip: '14.0.2.238',
+ page: {
+ url: 'enuffsaid.proposify.com',
+ path: '/settings',
+ method: 'POST',
+ referrer: 'https://enuffsaid.proposify.com/login',
+ },
+ userAgent:
+ 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/97.0.4692.71 Safari/537.36',
+ },
+ rudderId: '786dfec9-jfh',
+ messageId: '5d9bc6e2-ekjh',
+ },
+ destination: {
+ ID: '1mMy5cqbtfuaKZv1IhVQKnBdVwe',
+ Config: {
+ munchkinId: 'XXXX',
+ clientId: 'YYYY',
+ clientSecret: 'ZZZZ',
+ columnFieldsMapping: [
+ {
+ to: 'name__c',
+ from: 'name',
+ },
+ {
+ to: 'email__c',
+ from: 'email1',
+ },
+ {
+ to: 'plan__c',
+ from: 'plan1',
+ },
+ ],
+ },
+ },
+ },
+ ],
+ },
+ },
+ output: {
+ response: {
+ status: 200,
+ body: [
+ {
+ output: {
+ version: '1',
+ type: 'REST',
+ method: 'POST',
+ endpoint: '/fileUpload',
+ headers: {},
+ params: {},
+ body: {
+ JSON: {
+ name__c: 'Carlo Lombard',
+ },
+ JSON_ARRAY: {},
+ XML: {},
+ FORM: {},
+ },
+ files: {},
+ userId: '',
+ },
+ statusCode: 200,
+ },
+ ],
+ },
+ },
+ },
+ {
+ name: 'marketo_bulk_upload',
+ description: 'Test 5',
+ feature: 'processor',
+ module: 'destination',
+ version: 'v0',
+ input: {
+ request: {
+ body: [
+ {
+ message: {
+ type: 'identify',
+ traits: {
+ name: 'Carlo Lombard',
+ plan: 1,
+ },
+ userId: 476335,
+ context: {
+ ip: '14.0.2.238',
+ page: {
+ url: 'enuffsaid.proposify.com',
+ path: '/settings',
+ method: 'POST',
+ referrer: 'https://enuffsaid.proposify.com/login',
+ },
+ userAgent:
+ 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/97.0.4692.71 Safari/537.36',
+ },
+ rudderId: '786dfec9-jfh',
+ messageId: '5d9bc6e2-ekjh',
+ },
+ destination: {
+ ID: '1mMy5cqbtfuaKZv1IhVQKnBdVwe',
+ Config: {
+ munchkinId: 'XXXX',
+ clientId: 'YYYY',
+ clientSecret: 'ZZZZ',
+ columnFieldsMapping: [
+ {
+ to: 'name__c',
+ from: 'name',
+ },
+ {
+ to: 'email__c',
+ from: 'email',
+ },
+ {
+ to: 'plan__c',
+ from: 'plan',
+ },
+ ],
+ },
+ },
+ },
+ ],
+ },
+ },
+ output: {
+ response: {
+ status: 200,
+ body: [
+ {
+ output: {
+ version: '1',
+ type: 'REST',
+ method: 'POST',
+ endpoint: '/fileUpload',
+ headers: {},
+ params: {},
+ body: {
+ JSON: {
+ name__c: 'Carlo Lombard',
+ plan__c: 1,
+ },
+ JSON_ARRAY: {},
+ XML: {},
+ FORM: {},
+ },
+ files: {},
+ userId: '',
+ },
+ statusCode: 200,
+ },
+ ],
+ },
+ },
+ },
+];
diff --git a/test/integrations/destinations/marketo_static_list/dataDelivery/data.ts b/test/integrations/destinations/marketo_static_list/dataDelivery/data.ts
index 0ac9123592..f0275e329e 100644
--- a/test/integrations/destinations/marketo_static_list/dataDelivery/data.ts
+++ b/test/integrations/destinations/marketo_static_list/dataDelivery/data.ts
@@ -1,368 +1,375 @@
export const data = [
{
- "name": "marketo_static_list",
- "description": "Test 0",
- "feature": "dataDelivery",
- "module": "destination",
- "version": "v0",
- "input": {
- "request": {
- "body": {
- "type": "REST",
- "endpoint": "https://marketo_acct_id_success.mktorest.com/rest/v1/lists/1234/leads.json?id=110&id=111&id=112",
- "method": "POST",
- "userId": "",
- "headers": {
- "Authorization": "Bearer Incorrect_token",
- "Content-Type": "application/json"
+ name: 'marketo_static_list',
+ description: 'Test 0',
+ feature: 'dataDelivery',
+ module: 'destination',
+ version: 'v0',
+ input: {
+ request: {
+ body: {
+ type: 'REST',
+ endpoint:
+ 'https://marketo_acct_id_success.mktorest.com/rest/v1/lists/1234/leads.json?id=110&id=111&id=112',
+ method: 'POST',
+ userId: '',
+ headers: {
+ Authorization: 'Bearer Incorrect_token',
+ 'Content-Type': 'application/json',
},
- "body": {
- "FORM": {},
- "JSON": {},
- "JSON_ARRAY": {},
- "XML": {}
+ body: {
+ FORM: {},
+ JSON: {},
+ JSON_ARRAY: {},
+ XML: {},
+ },
+ files: {},
+ params: {
+ destination: 'marketo_static_list',
},
- "files": {},
- "params": {
- "destination": "marketo_static_list"
- }
},
- "method": "POST"
- }
+ method: 'POST',
+ },
},
- "output": {
- "response": {
- "status": 200,
- "body": {
- "output": {
- "message": "Request Processed Successfully",
- "destinationResponse": {
- "response": {
- "requestId": "b6d1#18a8d2c10e7",
- "result": [
+ output: {
+ response: {
+ status: 200,
+ body: {
+ output: {
+ message: 'Request Processed Successfully',
+ destinationResponse: {
+ response: {
+ requestId: 'b6d1#18a8d2c10e7',
+ result: [
{
- "id": 110,
- "status": "skipped",
- "reasons": [
+ id: 110,
+ status: 'skipped',
+ reasons: [
{
- "code": "1015",
- "message": "Lead not in list"
- }
- ]
+ code: '1015',
+ message: 'Lead not in list',
+ },
+ ],
},
{
- "id": 111,
- "status": "removed"
+ id: 111,
+ status: 'removed',
},
{
- "id": 112,
- "status": "removed"
- }
+ id: 112,
+ status: 'removed',
+ },
],
- "success": true
+ success: true,
},
- "status": 200
+ status: 200,
},
- "status": 200
- }
- }
- }
- }
+ status: 200,
+ },
+ },
+ },
+ },
},
{
- "name": "marketo_static_list",
- "description": "Test 1",
- "feature": "dataDelivery",
- "module": "destination",
- "version": "v0",
- "input": {
- "request": {
- "body": {
- "type": "REST",
- "endpoint": "https://marketo_acct_id_success.mktorest.com/rest/v1/lists/1234/leads.json?id=1&id=2&id=3",
- "method": "POST",
- "userId": "",
- "headers": {
- "Authorization": "Bearer Incorrect_token",
- "Content-Type": "application/json"
+ name: 'marketo_static_list',
+ description: 'Test 1',
+ feature: 'dataDelivery',
+ module: 'destination',
+ version: 'v0',
+ input: {
+ request: {
+ body: {
+ type: 'REST',
+ endpoint:
+ 'https://marketo_acct_id_success.mktorest.com/rest/v1/lists/1234/leads.json?id=1&id=2&id=3',
+ method: 'POST',
+ userId: '',
+ headers: {
+ Authorization: 'Bearer Incorrect_token',
+ 'Content-Type': 'application/json',
+ },
+ body: {
+ FORM: {},
+ JSON: {},
+ JSON_ARRAY: {},
+ XML: {},
},
- "body": {
- "FORM": {},
- "JSON": {},
- "JSON_ARRAY": {},
- "XML": {}
+ files: {},
+ params: {
+ destination: 'marketo_static_list',
},
- "files": {},
- "params": {
- "destination": "marketo_static_list"
- }
},
- "method": "POST"
- }
+ method: 'POST',
+ },
},
- "output": {
- "response": {
- "status": 500,
- "body": {
- "output": {
- "status": 500,
- "message": "Request Failed for Marketo Static List, Access token invalid (Retryable).during Marketo Static List Response Handling",
- "destinationResponse": {
- "response": {
- "requestId": "68d8#1846058ee27",
- "success": false,
- "errors": [
+ output: {
+ response: {
+ status: 500,
+ body: {
+ output: {
+ status: 500,
+ message:
+ 'Request Failed for Marketo Static List, Access token invalid (Retryable).during Marketo Static List Response Handling',
+ destinationResponse: {
+ response: {
+ requestId: '68d8#1846058ee27',
+ success: false,
+ errors: [
{
- "code": "601",
- "message": "Access token invalid"
- }
- ]
+ code: '601',
+ message: 'Access token invalid',
+ },
+ ],
},
- "status": 200
+ status: 200,
},
- "statTags": {
- "destType": "MARKETO_STATIC_LIST",
- "errorCategory": "network",
- "destinationId": "Non-determininable",
- "workspaceId": "Non-determininable",
- "errorType": "retryable",
- "feature": "dataDelivery",
- "implementation": "native",
- "module": "destination"
- }
- }
- }
- }
- }
+ statTags: {
+ destType: 'MARKETO_STATIC_LIST',
+ errorCategory: 'network',
+ destinationId: 'Non-determininable',
+ workspaceId: 'Non-determininable',
+ errorType: 'retryable',
+ feature: 'dataDelivery',
+ implementation: 'native',
+ module: 'destination',
+ },
+ },
+ },
+ },
+ },
},
{
- "name": "marketo_static_list",
- "description": "Test 2",
- "feature": "dataDelivery",
- "module": "destination",
- "version": "v0",
- "input": {
- "request": {
- "body": {
- "type": "REST",
- "endpoint": "https://marketo_acct_id_success.mktorest.com/rest/v1/lists/1234/leads.json?id=1&id=2",
- "method": "POST",
- "userId": "",
- "headers": {
- "Authorization": "Bearer token",
- "Content-Type": "application/json"
+ name: 'marketo_static_list',
+ description: 'Test 2',
+ feature: 'dataDelivery',
+ module: 'destination',
+ version: 'v0',
+ input: {
+ request: {
+ body: {
+ type: 'REST',
+ endpoint:
+ 'https://marketo_acct_id_success.mktorest.com/rest/v1/lists/1234/leads.json?id=1&id=2',
+ method: 'POST',
+ userId: '',
+ headers: {
+ Authorization: 'Bearer token',
+ 'Content-Type': 'application/json',
},
- "body": {
- "FORM": {},
- "JSON": {
- "action": "createOrUpdate",
- "input": [
+ body: {
+ FORM: {},
+ JSON: {
+ action: 'createOrUpdate',
+ input: [
{
- "City": "Tokyo",
- "Country": "JP",
- "Email": "gabi29@gmail.com",
- "PostalCode": "100-0001",
- "Title": "Owner",
- "id": 1328328,
- "userId": "gabi_userId_45"
- }
+ City: 'Tokyo',
+ Country: 'JP',
+ Email: 'gabi29@gmail.com',
+ PostalCode: '100-0001',
+ Title: 'Owner',
+ id: 1328328,
+ userId: 'gabi_userId_45',
+ },
],
- "lookupField": "id"
+ lookupField: 'id',
},
- "JSON_ARRAY": {},
- "XML": {}
+ JSON_ARRAY: {},
+ XML: {},
+ },
+ files: {},
+ params: {
+ destination: 'marketo_static_list',
},
- "files": {},
- "params": {
- "destination": "marketo_static_list"
- }
},
- "method": "POST"
- }
+ method: 'POST',
+ },
},
- "output": {
- "response": {
- "status": 200,
- "body": {
- "output": {
- "status": 200,
- "message": "Request Processed Successfully",
- "destinationResponse": {
- "response": {
- "requestId": "12d3c#1846057dce2",
- "success": true,
- "result": [
+ output: {
+ response: {
+ status: 200,
+ body: {
+ output: {
+ status: 200,
+ message: 'Request Processed Successfully',
+ destinationResponse: {
+ response: {
+ requestId: '12d3c#1846057dce2',
+ success: true,
+ result: [
{
- "id": 1,
- "status": "added"
+ id: 1,
+ status: 'added',
},
{
- "id": 2,
- "status": "added"
- }
- ]
+ id: 2,
+ status: 'added',
+ },
+ ],
},
- "status": 200
- }
- }
- }
- }
- }
+ status: 200,
+ },
+ },
+ },
+ },
+ },
},
{
- "name": "marketo_static_list",
- "description": "Test 3",
- "feature": "dataDelivery",
- "module": "destination",
- "version": "v0",
- "input": {
- "request": {
- "body": {
- "type": "REST",
- "endpoint": "https://marketo_acct_id_success.mktorest.com/rest/v1/lists/1234/leads.json?id=3&id=4",
- "method": "POST",
- "userId": "",
- "headers": {
- "Authorization": "Bearer token",
- "Content-Type": "application/json"
+ name: 'marketo_static_list',
+ description: 'Test 3',
+ feature: 'dataDelivery',
+ module: 'destination',
+ version: 'v0',
+ input: {
+ request: {
+ body: {
+ type: 'REST',
+ endpoint:
+ 'https://marketo_acct_id_success.mktorest.com/rest/v1/lists/1234/leads.json?id=3&id=4',
+ method: 'POST',
+ userId: '',
+ headers: {
+ Authorization: 'Bearer token',
+ 'Content-Type': 'application/json',
},
- "params": {},
- "body": {
- "FORM": {},
- "JSON": {
- "action": "createOrUpdate",
- "input": [
+ params: {},
+ body: {
+ FORM: {},
+ JSON: {
+ action: 'createOrUpdate',
+ input: [
{
- "City": "Tokyo",
- "Country": "JP",
- "Email": "gabi29@gmail.com",
- "PostalCode": "100-0001",
- "Title": "Owner",
- "id": 1328328,
- "userId": "gabi_userId_45"
+ City: 'Tokyo',
+ Country: 'JP',
+ Email: 'gabi29@gmail.com',
+ PostalCode: '100-0001',
+ Title: 'Owner',
+ id: 1328328,
+ userId: 'gabi_userId_45',
},
{
- "City": "Tokyo",
- "Country": "JP",
- "Email": "b@s.com",
- "PostalCode": "100-0001",
- "Title": "Owner",
- "id": 1328329,
- "userId": "ben_userId_45"
- }
+ City: 'Tokyo',
+ Country: 'JP',
+ Email: 'b@s.com',
+ PostalCode: '100-0001',
+ Title: 'Owner',
+ id: 1328329,
+ userId: 'ben_userId_45',
+ },
],
- "lookupField": "id"
+ lookupField: 'id',
},
- "JSON_ARRAY": {},
- "XML": {}
+ JSON_ARRAY: {},
+ XML: {},
},
- "files": {}
+ files: {},
},
- "method": "POST"
- }
+ method: 'POST',
+ },
},
- "output": {
- "response": {
- "status": 400,
- "body": {
- "output": {
- "destinationResponse": "",
- "message": "Request failed during: during Marketo Static List Response Handling, error: [{\"code\":\"1004\",\"message\":\"Lead not found\"}]",
- "statTags": {
- "destType": "MARKETO_STATIC_LIST",
- "errorCategory": "dataValidation",
- "destinationId": "Non-determininable",
- "workspaceId": "Non-determininable",
- "errorType": "instrumentation",
- "feature": "dataDelivery",
- "implementation": "native",
- "module": "destination"
+ output: {
+ response: {
+ status: 400,
+ body: {
+ output: {
+ destinationResponse: '',
+ message:
+ 'Request failed during: during Marketo Static List Response Handling, error: [{"code":"1004","message":"Lead not found"}]',
+ statTags: {
+ destType: 'MARKETO_STATIC_LIST',
+ errorCategory: 'dataValidation',
+ destinationId: 'Non-determininable',
+ workspaceId: 'Non-determininable',
+ errorType: 'instrumentation',
+ feature: 'dataDelivery',
+ implementation: 'native',
+ module: 'destination',
},
- "status": 400
- }
- }
- }
- }
+ status: 400,
+ },
+ },
+ },
+ },
},
{
- "name": "marketo_static_list",
- "description": "Test 4",
- "feature": "dataDelivery",
- "module": "destination",
- "version": "v0",
- "input": {
- "request": {
- "body": {
- "type": "REST",
- "endpoint": "https://marketo_acct_id_success.mktorest.com/rest/v1/lists/1234/leads.json?id=5&id=6",
- "method": "POST",
- "userId": "",
- "headers": {
- "Authorization": "Bearer token",
- "Content-Type": "application/json"
+ name: 'marketo_static_list',
+ description: 'Test 4',
+ feature: 'dataDelivery',
+ module: 'destination',
+ version: 'v0',
+ input: {
+ request: {
+ body: {
+ type: 'REST',
+ endpoint:
+ 'https://marketo_acct_id_success.mktorest.com/rest/v1/lists/1234/leads.json?id=5&id=6',
+ method: 'POST',
+ userId: '',
+ headers: {
+ Authorization: 'Bearer token',
+ 'Content-Type': 'application/json',
},
- "params": {},
- "body": {
- "FORM": {},
- "JSON": {
- "action": "createOrUpdate",
- "input": [
+ params: {},
+ body: {
+ FORM: {},
+ JSON: {
+ action: 'createOrUpdate',
+ input: [
{
- "City": "Tokyo",
- "Country": "JP",
- "Email": "gabi29@gmail.com",
- "PostalCode": "100-0001",
- "Title": "Owner",
- "id": 1328328,
- "userId": "gabi_userId_45"
+ City: 'Tokyo',
+ Country: 'JP',
+ Email: 'gabi29@gmail.com',
+ PostalCode: '100-0001',
+ Title: 'Owner',
+ id: 1328328,
+ userId: 'gabi_userId_45',
},
{
- "City": "Tokyo",
- "Country": "JP",
- "Email": "b@s.com",
- "PostalCode": "100-0001",
- "Title": "Owner",
- "id": 1328329,
- "userId": "ben_userId_45"
- }
+ City: 'Tokyo',
+ Country: 'JP',
+ Email: 'b@s.com',
+ PostalCode: '100-0001',
+ Title: 'Owner',
+ id: 1328329,
+ userId: 'ben_userId_45',
+ },
],
- "lookupField": "id"
+ lookupField: 'id',
},
- "JSON_ARRAY": {},
- "XML": {}
+ JSON_ARRAY: {},
+ XML: {},
},
- "files": {}
+ files: {},
},
- "method": "POST"
- }
+ method: 'POST',
+ },
},
- "output": {
- "response": {
- "status": 200,
- "body": {
- "output": {
- "status": 200,
- "message": "Request Processed Successfully",
- "destinationResponse": {
- "response": {
- "requestId": "12d3c#1846057dce2",
- "result": {
- "id": 5,
- "status": "skipped",
- "reasons": [
+ output: {
+ response: {
+ status: 200,
+ body: {
+ output: {
+ status: 200,
+ message: 'Request Processed Successfully',
+ destinationResponse: {
+ response: {
+ requestId: '12d3c#1846057dce2',
+ result: {
+ id: 5,
+ status: 'skipped',
+ reasons: [
{
- "code": "1015",
- "message": "Lead not in list"
- }
- ]
+ code: '1015',
+ message: 'Lead not in list',
+ },
+ ],
},
- "success": true
+ success: true,
},
- "status": 200
- }
- }
- }
- }
- }
- }
-]
+ status: 200,
+ },
+ },
+ },
+ },
+ },
+ },
+];
diff --git a/test/integrations/destinations/revenue_cat/processor/data.ts b/test/integrations/destinations/revenue_cat/processor/data.ts
index 4ebfe2f8a5..84b7c5975f 100644
--- a/test/integrations/destinations/revenue_cat/processor/data.ts
+++ b/test/integrations/destinations/revenue_cat/processor/data.ts
@@ -1,1079 +1,1083 @@
export const data = [
- {
- "name": "revenue_cat",
- "description": "Test 0",
- "feature": "processor",
- "module": "destination",
- "version": "v0",
- "input": {
- "request": {
- "body": [
- {
- "destination": {
- "Config": {
- "apiKey": "as9d920a5e75a18acb4a29abd9ec1e2e",
- "xPlatform": "stripe"
- }
- },
- "message": {
- "userId": "rudder1235678",
- "channel": "web",
- "context": {
- "ip": "14.5.67.21",
- "app": {
- "build": "1",
- "name": "RudderAndroidClient",
- "namespace": "com.rudderstack.demo.android",
- "version": "1.0"
- },
- "device": {
- "manufacturer": "Google",
- "model": "Android SDK built for x86",
- "name": "generic_x86",
- "type": "android"
- },
- "library": {
- "name": "com.rudderstack.android.sdk.core",
- "version": "0.1.4"
- },
- "locale": "en-US",
- "network": {
- "carrier": "Android",
- "bluetooth": false,
- "cellular": true,
- "wifi": true
- },
- "campaign": {
- "source": "google",
- "medium": "medium",
- "term": "keyword",
- "content": "some content"
- },
- "os": {
- "name": "Android",
- "version": "9"
- },
- "screen": {
- "density": 420,
- "height": 1794,
- "width": 1080
- },
- "timezone": "Asia/Mumbai",
- "userAgent": "Dalvik/2.1.0 (Linux; U; Android 9; Android SDK built for x86 Build/PSR1.180720.075)"
- },
- "type": "identify",
- "traits": {
- "email": "chandan@companyname.com",
- "phone": "92374162212",
- "lastname": "Doe",
- "density": "420",
- "height": "1794",
- "width": "1080",
- "iterableCampaignId": "1234",
- "iterableTemplateId": "1234"
- }
- }
- }
- ]
- }
- },
- "output": {
- "response": {
- "status": 200,
- "body": [
- {
- "output": {
- "version": "1",
- "type": "REST",
- "method": "GET",
- "endpoint": "https://api.revenuecat.com/v1/subscribers/rudder1235678",
- "headers": {
- "Authorization": "Basic as9d920a5e75a18acb4a29abd9ec1e2e",
- "Content-Type": "application/json"
- },
- "params": {},
- "body": {
- "JSON": {},
- "JSON_ARRAY": {},
- "XML": {},
- "FORM": {}
- },
- "files": {},
- "userId": ""
- },
- "statusCode": 200
- },
- {
- "output": {
- "version": "1",
- "type": "REST",
- "method": "POST",
- "endpoint": "https://api.revenuecat.com/v1/subscribers/rudder1235678/attributes",
- "headers": {
- "Authorization": "Basic as9d920a5e75a18acb4a29abd9ec1e2e",
- "Content-Type": "application/json"
- },
- "params": {},
- "body": {
- "JSON": {
- "attributes": {
- "app_user_id": {
- "value": "rudder1235678"
- },
- "$email": {
- "value": "chandan@companyname.com"
- },
- "$phoneNumber": {
- "value": "92374162212"
- },
- "$ip": {
- "value": "14.5.67.21"
- },
- "$iterableCampaignId": {
- "value": "1234"
- },
- "$iterableTemplateId": {
- "value": "1234"
- },
- "$displayName": {
- "value": "Doe"
- },
- "lastname": {
- "value": "Doe"
- },
- "density": {
- "value": "420"
- },
- "height": {
- "value": "1794"
- },
- "width": {
- "value": "1080"
- }
- }
- },
- "JSON_ARRAY": {},
- "XML": {},
- "FORM": {}
- },
- "files": {},
- "userId": ""
- },
- "statusCode": 200
- }
- ]
- }
- }
- },
- {
- "name": "revenue_cat",
- "description": "Test 1",
- "feature": "processor",
- "module": "destination",
- "version": "v0",
- "input": {
- "request": {
- "body": [
- {
- "destination": {
- "Config": {
- "apiKey": "a5e75dfda29abd920ec1ec8a18acb42e",
- "xPlatform": "stripe"
- }
- },
- "message": {
- "userId": "rudder1235678",
- "channel": "web",
- "context": {
- "ip": "14.5.67.21",
- "app": {
- "build": "1",
- "name": "RudderAndroidClient",
- "namespace": "com.rudderstack.demo.android",
- "version": "1.0"
- },
- "device": {
- "manufacturer": "Google",
- "model": "Android SDK built for x86",
- "name": "generic_x86",
- "type": "android"
- },
- "library": {
- "name": "com.rudderstack.android.sdk.core",
- "version": "0.1.4"
- },
- "locale": "en-US",
- "network": {
- "carrier": "Android",
- "bluetooth": false,
- "cellular": true,
- "wifi": true
- },
- "campaign": {
- "source": "google",
- "medium": "medium",
- "term": "keyword",
- "content": "some content"
- },
- "os": {
- "name": "Android",
- "version": "9"
- },
- "screen": {
- "density": 420,
- "height": 1794,
- "width": 1080
- },
- "timezone": "Asia/Mumbai",
- "userAgent": "Dalvik/2.1.0 (Linux; U; Android 9; Android SDK built for x86 Build/PSR1.180720.075)"
- },
- "type": "identify",
- "traits": {
- "email": "chandan@companyname.com",
- "phone": "92374162212",
- "firstname": "James",
- "density": 420,
- "height": 1794,
- "width": 1080,
- "iterableCampaignId": "1234",
- "iterableTemplateId": "1234"
- }
- }
- }
- ]
- }
- },
- "output": {
- "response": {
- "status": 200,
- "body": [
- {
- "output": {
- "version": "1",
- "type": "REST",
- "method": "GET",
- "endpoint": "https://api.revenuecat.com/v1/subscribers/rudder1235678",
- "headers": {
- "Authorization": "Basic a5e75dfda29abd920ec1ec8a18acb42e",
- "Content-Type": "application/json"
- },
- "params": {},
- "body": {
- "JSON": {},
- "JSON_ARRAY": {},
- "XML": {},
- "FORM": {}
- },
- "files": {},
- "userId": ""
- },
- "statusCode": 200
- },
- {
- "output": {
- "version": "1",
- "type": "REST",
- "method": "POST",
- "endpoint": "https://api.revenuecat.com/v1/subscribers/rudder1235678/attributes",
- "headers": {
- "Authorization": "Basic a5e75dfda29abd920ec1ec8a18acb42e",
- "Content-Type": "application/json"
- },
- "params": {},
- "body": {
- "JSON": {
- "attributes": {
- "app_user_id": {
- "value": "rudder1235678"
- },
- "$email": {
- "value": "chandan@companyname.com"
- },
- "$phoneNumber": {
- "value": "92374162212"
- },
- "$ip": {
- "value": "14.5.67.21"
- },
- "$iterableCampaignId": {
- "value": "1234"
- },
- "$iterableTemplateId": {
- "value": "1234"
- },
- "$displayName": {
- "value": "James"
- },
- "firstname": {
- "value": "James"
- },
- "density": {
- "value": "420"
- },
- "height": {
- "value": "1794"
- },
- "width": {
- "value": "1080"
- }
- }
- },
- "JSON_ARRAY": {},
- "XML": {},
- "FORM": {}
- },
- "files": {},
- "userId": ""
- },
- "statusCode": 200
- }
- ]
- }
- }
- },
- {
- "name": "revenue_cat",
- "description": "Test 2",
- "feature": "processor",
- "module": "destination",
- "version": "v0",
- "input": {
- "request": {
- "body": [
- {
- "destination": {
- "Config": {
- "xPlatform": "stripe"
- }
- },
- "message": {
- "userId": "rudder1235678",
- "channel": "web",
- "context": {
- "ip": "14.5.67.21",
- "app": {
- "build": "1",
- "name": "RudderAndroidClient",
- "namespace": "com.rudderstack.demo.android",
- "version": "1.0"
- },
- "device": {
- "manufacturer": "Google",
- "model": "Android SDK built for x86",
- "name": "generic_x86",
- "type": "android"
- },
- "library": {
- "name": "com.rudderstack.android.sdk.core",
- "version": "0.1.4"
- },
- "locale": "en-US",
- "network": {
- "carrier": "Android",
- "bluetooth": false,
- "cellular": true,
- "wifi": true
- },
- "campaign": {
- "source": "google",
- "medium": "medium",
- "term": "keyword",
- "content": "some content"
- },
- "os": {
- "name": "Android",
- "version": "9"
- },
- "screen": {
- "density": 420,
- "height": 1794,
- "width": 1080
- },
- "timezone": "Asia/Mumbai",
- "userAgent": "Dalvik/2.1.0 (Linux; U; Android 9; Android SDK built for x86 Build/PSR1.180720.075)"
- },
- "type": "identify",
- "traits": {
- "email": "chandan@companyname.com",
- "phone": "92374162212",
- "name": "John Doe"
- }
- }
- }
- ]
- }
- },
- "output": {
- "response": {
- "status": 200,
- "body": [
- {
- "statusCode": 400,
- "error": "Public API Key required for Authentication",
- "statTags": {
- "errorCategory": "dataValidation",
- "errorType": "configuration",
- "destType": "REVENUE_CAT",
- "module": "destination",
- "implementation": "native",
- "feature": "processor"
- }
- }
- ]
- }
- }
- },
- {
- "name": "revenue_cat",
- "description": "Test 3",
- "feature": "processor",
- "module": "destination",
- "version": "v0",
- "input": {
- "request": {
- "body": [
- {
- "destination": {
- "Config": {
- "apiKey": "a5e75d99c8a18acb4a29abd920ec1e2e"
- }
- },
- "message": {
- "userId": "rudder1235678",
- "channel": "web",
- "context": {
- "ip": "14.5.67.21",
- "app": {
- "build": "1",
- "name": "RudderAndroidClient",
- "namespace": "com.rudderstack.demo.android",
- "version": "1.0"
- },
- "device": {
- "manufacturer": "Google",
- "model": "Android SDK built for x86",
- "name": "generic_x86",
- "type": "android"
- },
- "library": {
- "name": "com.rudderstack.android.sdk.core",
- "version": "0.1.4"
- },
- "locale": "en-US",
- "network": {
- "carrier": "Android",
- "bluetooth": false,
- "cellular": true,
- "wifi": true
- },
- "campaign": {
- "source": "google",
- "medium": "medium",
- "term": "keyword",
- "content": "some content"
- },
- "os": {
- "name": "Android",
- "version": "9"
- },
- "screen": {
- "density": 420,
- "height": 1794,
- "width": 1080
- },
- "timezone": "Asia/Mumbai",
- "userAgent": "Dalvik/2.1.0 (Linux; U; Android 9; Android SDK built for x86 Build/PSR1.180720.075)"
- },
- "type": "identify",
- "traits": {
- "email": "chandan@companyname.com",
- "phone": "92374162212",
- "name": "John Doe"
- }
- }
- }
- ]
- }
- },
- "output": {
- "response": {
- "status": 200,
- "body": [
- {
- "output": {
- "version": "1",
- "type": "REST",
- "method": "GET",
- "endpoint": "https://api.revenuecat.com/v1/subscribers/rudder1235678",
- "headers": {
- "Authorization": "Basic a5e75d99c8a18acb4a29abd920ec1e2e",
- "Content-Type": "application/json"
- },
- "params": {},
- "body": {
- "JSON": {},
- "JSON_ARRAY": {},
- "XML": {},
- "FORM": {}
- },
- "files": {},
- "userId": ""
- },
- "statusCode": 200
- },
- {
- "output": {
- "version": "1",
- "type": "REST",
- "method": "POST",
- "endpoint": "https://api.revenuecat.com/v1/subscribers/rudder1235678/attributes",
- "headers": {
- "Authorization": "Basic a5e75d99c8a18acb4a29abd920ec1e2e",
- "Content-Type": "application/json"
- },
- "params": {},
- "body": {
- "JSON": {
- "attributes": {
- "app_user_id": {
- "value": "rudder1235678"
- },
- "$displayName": {
- "value": "John Doe"
- },
- "$email": {
- "value": "chandan@companyname.com"
- },
- "$phoneNumber": {
- "value": "92374162212"
- },
- "$ip": {
- "value": "14.5.67.21"
- }
- }
- },
- "JSON_ARRAY": {},
- "XML": {},
- "FORM": {}
- },
- "files": {},
- "userId": ""
- },
- "statusCode": 200
- }
- ]
- }
- }
- },
- {
- "name": "revenue_cat",
- "description": "Test 4",
- "feature": "processor",
- "module": "destination",
- "version": "v0",
- "input": {
- "request": {
- "body": [
- {
- "destination": {
- "Config": {
- "apiKey": "dummyApiKey"
- }
- },
- "message": {
- "type": "track",
- "userId": "rudder123",
- "properties": {
- "checkout_id": "12345",
- "order_id": "1234",
- "affiliation": "Apple Store",
- "total": 20,
- "revenue": 15,
- "shipping": 22,
- "tax": 1,
- "discount": 1.5,
- "coupon": "ImagePro",
- "currency": "USD",
- "fetch_token": "dummyFetchToken",
- "product_id": "123",
- "products": [
- {
- "sku": "G-32",
- "name": "Monopoly",
- "price": 14,
- "quantity": 1,
- "introductory_price": "350",
- "is_restore": true,
- "presented_offering_identifier": "123erd"
- },
- {
- "product_id": "345",
- "sku": "F-32",
- "name": "UNO",
- "price": 3.45,
- "quantity": 2,
- "category": "Games",
- "introductory_price": "250",
- "is_restore": false,
- "presented_offering_identifier": "123erd"
- }
- ]
- }
- }
- }
- ]
- }
- },
- "output": {
- "response": {
- "status": 200,
- "body": [
- {
- "statusCode": 400,
- "error": "X-Platform is required field",
- "statTags": {
- "errorCategory": "dataValidation",
- "errorType": "configuration",
- "destType": "REVENUE_CAT",
- "module": "destination",
- "implementation": "native",
- "feature": "processor"
- }
- }
- ]
- }
- }
- },
- {
- "name": "revenue_cat",
- "description": "Test 5",
- "feature": "processor",
- "module": "destination",
- "version": "v0",
- "input": {
- "request": {
- "body": [
- {
- "destination": {
- "Config": {
- "apiKey": "dummyApiKey",
- "xPlatform": "stripe"
- }
- },
- "message": {
- "type": "track",
- "userId": "rudder123",
- "properties": {
- "checkout_id": "12345",
- "order_id": "1234",
- "affiliation": "Apple Store",
- "total": 20,
- "revenue": 15,
- "shipping": 22,
- "tax": 1,
- "discount": 1.5,
- "coupon": "ImagePro",
- "currency": "USD",
- "fetch_token": "dummyFetchToken",
- "product_id": "123",
- "products": [
- {
- "sku": "G-32",
- "name": "Monopoly",
- "price": 14,
- "quantity": 1,
- "introductory_price": "350",
- "is_restore": true,
- "presented_offering_identifier": "123erd"
- },
- {
- "product_id": "345",
- "sku": "F-32",
- "name": "UNO",
- "price": 3.45,
- "quantity": 2,
- "category": "Games",
- "introductory_price": "250",
- "is_restore": false,
- "presented_offering_identifier": "123erd"
- }
- ]
- }
- }
- }
- ]
- }
- },
- "output": {
- "response": {
- "status": 200,
- "body": [
- {
- "output": {
- "version": "1",
- "type": "REST",
- "method": "POST",
- "endpoint": "https://api.revenuecat.com/v1/receipts",
- "headers": {
- "Authorization": "Basic dummyApiKey",
- "Content-Type": "application/json",
- "X-Platform": "stripe"
- },
- "params": {},
- "body": {
- "JSON": {
- "app_user_id": "rudder123",
- "fetch_token": "dummyFetchToken",
- "product_id": "123",
- "currency": "USD",
- "price": 14,
- "introductory_price": "350",
- "is_restore": true,
- "presented_offering_identifier": "123erd"
- },
- "JSON_ARRAY": {},
- "XML": {},
- "FORM": {}
- },
- "files": {},
- "userId": ""
- },
- "statusCode": 200
- },
- {
- "output": {
- "version": "1",
- "type": "REST",
- "method": "POST",
- "endpoint": "https://api.revenuecat.com/v1/receipts",
- "headers": {
- "Authorization": "Basic dummyApiKey",
- "Content-Type": "application/json",
- "X-Platform": "stripe"
- },
- "params": {},
- "body": {
- "JSON": {
- "app_user_id": "rudder123",
- "fetch_token": "dummyFetchToken",
- "product_id": "345",
- "currency": "USD",
- "price": 3.45,
- "introductory_price": "250",
- "is_restore": false,
- "presented_offering_identifier": "123erd"
- },
- "JSON_ARRAY": {},
- "XML": {},
- "FORM": {}
- },
- "files": {},
- "userId": ""
- },
- "statusCode": 200
- }
- ]
- }
- }
- },
- {
- "name": "revenue_cat",
- "description": "Test 6",
- "feature": "processor",
- "module": "destination",
- "version": "v0",
- "input": {
- "request": {
- "body": [
- {
- "destination": {
- "Config": {
- "apiKey": "dummyApiKey",
- "xPlatform": "stripe"
- }
- },
- "message": {
- "type": "track",
- "userId": "rudder123",
- "properties": {
- "checkout_id": "12345",
- "order_id": "1234",
- "affiliation": "Apple Store",
- "total": 20,
- "revenue": 15,
- "shipping": 22,
- "tax": 1,
- "discount": 1.5,
- "coupon": "ImagePro",
- "currency": "USD",
- "fetch_token": "dummyFetchToken",
- "product_id": "123-sa",
- "products": [
- {
- "sku": "G-32",
- "name": "Monopoly",
- "price": 14,
- "quantity": 1,
- "introductory_price": "350",
- "is_restore": true,
- "presented_offering_identifier": "123erd"
- },
- {
- "product_id": "345",
- "sku": "F-32",
- "name": "UNO",
- "price": 3.45,
- "quantity": 2,
- "category": "Games",
- "introductory_price": "250",
- "is_restore": false,
- "presented_offering_identifier": "123erd"
- },
- {
- "sku": "G-33",
- "name": "SunGlass",
- "price": 14,
- "quantity": 1,
- "introductory_price": "350",
- "is_restore": true,
- "presented_offering_identifier": "123erd"
- },
- {
- "sku": "G-35",
- "product_id": "1234sb",
- "name": "Real-me",
- "price": 14,
- "quantity": 1,
- "introductory_price": "350",
- "is_restore": true,
- "presented_offering_identifier": "123erd"
- }
- ]
- }
- }
- }
- ]
- }
- },
- "output": {
- "response": {
- "status": 200,
- "body": [
- {
- "output": {
- "version": "1",
- "type": "REST",
- "method": "POST",
- "endpoint": "https://api.revenuecat.com/v1/receipts",
- "headers": {
- "Authorization": "Basic dummyApiKey",
- "Content-Type": "application/json",
- "X-Platform": "stripe"
- },
- "params": {},
- "body": {
- "JSON": {
- "app_user_id": "rudder123",
- "fetch_token": "dummyFetchToken",
- "product_id": "123-sa",
- "currency": "USD",
- "price": 14,
- "introductory_price": "350",
- "is_restore": true,
- "presented_offering_identifier": "123erd"
- },
- "JSON_ARRAY": {},
- "XML": {},
- "FORM": {}
- },
- "files": {},
- "userId": ""
- },
- "statusCode": 200
- },
- {
- "output": {
- "version": "1",
- "type": "REST",
- "method": "POST",
- "endpoint": "https://api.revenuecat.com/v1/receipts",
- "headers": {
- "Authorization": "Basic dummyApiKey",
- "Content-Type": "application/json",
- "X-Platform": "stripe"
- },
- "params": {},
- "body": {
- "JSON": {
- "app_user_id": "rudder123",
- "fetch_token": "dummyFetchToken",
- "product_id": "345",
- "currency": "USD",
- "price": 3.45,
- "introductory_price": "250",
- "is_restore": false,
- "presented_offering_identifier": "123erd"
- },
- "JSON_ARRAY": {},
- "XML": {},
- "FORM": {}
- },
- "files": {},
- "userId": ""
- },
- "statusCode": 200
- },
- {
- "output": {
- "version": "1",
- "type": "REST",
- "method": "POST",
- "endpoint": "https://api.revenuecat.com/v1/receipts",
- "headers": {
- "Authorization": "Basic dummyApiKey",
- "Content-Type": "application/json",
- "X-Platform": "stripe"
- },
- "params": {},
- "body": {
- "JSON": {
- "app_user_id": "rudder123",
- "fetch_token": "dummyFetchToken",
- "product_id": "123-sa",
- "currency": "USD",
- "price": 14,
- "introductory_price": "350",
- "is_restore": true,
- "presented_offering_identifier": "123erd"
- },
- "JSON_ARRAY": {},
- "XML": {},
- "FORM": {}
- },
- "files": {},
- "userId": ""
- },
- "statusCode": 200
- },
- {
- "output": {
- "version": "1",
- "type": "REST",
- "method": "POST",
- "endpoint": "https://api.revenuecat.com/v1/receipts",
- "headers": {
- "Authorization": "Basic dummyApiKey",
- "Content-Type": "application/json",
- "X-Platform": "stripe"
- },
- "params": {},
- "body": {
- "JSON": {
- "app_user_id": "rudder123",
- "fetch_token": "dummyFetchToken",
- "product_id": "1234sb",
- "currency": "USD",
- "price": 14,
- "introductory_price": "350",
- "is_restore": true,
- "presented_offering_identifier": "123erd"
- },
- "JSON_ARRAY": {},
- "XML": {},
- "FORM": {}
- },
- "files": {},
- "userId": ""
- },
- "statusCode": 200
- }
- ]
- }
- }
- },
- {
- "name": "revenue_cat",
- "description": "Test 7",
- "feature": "processor",
- "module": "destination",
- "version": "v0",
- "input": {
- "request": {
- "body": [
- {
- "destination": {
- "Config": {
- "apiKey": "dummyApiKey",
- "xPlatform": "stripe"
- }
- },
- "message": {
- "type": "track",
- "userId": "rudder123",
- "properties": {
- "checkout_id": "12345",
- "order_id": "1234",
- "affiliation": "Apple Store",
- "total": 20,
- "revenue": 15,
- "shipping": 22,
- "tax": 1,
- "discount": 1.5,
- "coupon": "ImagePro",
- "currency": "USD",
- "fetch_token": "dummyFetchToken",
- "product_id": "123-sa",
- "sku": "G-32",
- "name": "Monopoly",
- "price": 14,
- "quantity": 1,
- "introductory_price": "350",
- "is_restore": true,
- "presented_offering_identifier": "123erd"
- }
- }
- }
- ]
- }
- },
- "output": {
- "response": {
- "status": 200,
- "body": [
- {
- "output": {
- "version": "1",
- "type": "REST",
- "method": "POST",
- "endpoint": "https://api.revenuecat.com/v1/receipts",
- "headers": {
- "Authorization": "Basic dummyApiKey",
- "Content-Type": "application/json",
- "X-Platform": "stripe"
- },
- "params": {},
- "body": {
- "JSON": {
- "app_user_id": "rudder123",
- "fetch_token": "dummyFetchToken",
- "product_id": "123-sa",
- "price": 14,
- "currency": "USD",
- "introductory_price": "350",
- "is_restore": true,
- "presented_offering_identifier": "123erd"
- },
- "JSON_ARRAY": {},
- "XML": {},
- "FORM": {}
- },
- "files": {},
- "userId": ""
- },
- "statusCode": 200
- }
- ]
- }
- }
- }
-]
+ {
+ name: 'revenue_cat',
+ description: 'Test 0',
+ feature: 'processor',
+ module: 'destination',
+ version: 'v0',
+ input: {
+ request: {
+ body: [
+ {
+ destination: {
+ Config: {
+ apiKey: 'as9d920a5e75a18acb4a29abd9ec1e2e',
+ xPlatform: 'stripe',
+ },
+ },
+ message: {
+ userId: 'rudder1235678',
+ channel: 'web',
+ context: {
+ ip: '14.5.67.21',
+ app: {
+ build: '1',
+ name: 'RudderAndroidClient',
+ namespace: 'com.rudderstack.demo.android',
+ version: '1.0',
+ },
+ device: {
+ manufacturer: 'Google',
+ model: 'Android SDK built for x86',
+ name: 'generic_x86',
+ type: 'android',
+ },
+ library: {
+ name: 'com.rudderstack.android.sdk.core',
+ version: '0.1.4',
+ },
+ locale: 'en-US',
+ network: {
+ carrier: 'Android',
+ bluetooth: false,
+ cellular: true,
+ wifi: true,
+ },
+ campaign: {
+ source: 'google',
+ medium: 'medium',
+ term: 'keyword',
+ content: 'some content',
+ },
+ os: {
+ name: 'Android',
+ version: '9',
+ },
+ screen: {
+ density: 420,
+ height: 1794,
+ width: 1080,
+ },
+ timezone: 'Asia/Mumbai',
+ userAgent:
+ 'Dalvik/2.1.0 (Linux; U; Android 9; Android SDK built for x86 Build/PSR1.180720.075)',
+ },
+ type: 'identify',
+ traits: {
+ email: 'chandan@companyname.com',
+ phone: '92374162212',
+ lastname: 'Doe',
+ density: '420',
+ height: '1794',
+ width: '1080',
+ iterableCampaignId: '1234',
+ iterableTemplateId: '1234',
+ },
+ },
+ },
+ ],
+ },
+ },
+ output: {
+ response: {
+ status: 200,
+ body: [
+ {
+ output: {
+ version: '1',
+ type: 'REST',
+ method: 'GET',
+ endpoint: 'https://api.revenuecat.com/v1/subscribers/rudder1235678',
+ headers: {
+ Authorization: 'Basic as9d920a5e75a18acb4a29abd9ec1e2e',
+ 'Content-Type': 'application/json',
+ },
+ params: {},
+ body: {
+ JSON: {},
+ JSON_ARRAY: {},
+ XML: {},
+ FORM: {},
+ },
+ files: {},
+ userId: '',
+ },
+ statusCode: 200,
+ },
+ {
+ output: {
+ version: '1',
+ type: 'REST',
+ method: 'POST',
+ endpoint: 'https://api.revenuecat.com/v1/subscribers/rudder1235678/attributes',
+ headers: {
+ Authorization: 'Basic as9d920a5e75a18acb4a29abd9ec1e2e',
+ 'Content-Type': 'application/json',
+ },
+ params: {},
+ body: {
+ JSON: {
+ attributes: {
+ app_user_id: {
+ value: 'rudder1235678',
+ },
+ $email: {
+ value: 'chandan@companyname.com',
+ },
+ $phoneNumber: {
+ value: '92374162212',
+ },
+ $ip: {
+ value: '14.5.67.21',
+ },
+ $iterableCampaignId: {
+ value: '1234',
+ },
+ $iterableTemplateId: {
+ value: '1234',
+ },
+ $displayName: {
+ value: 'Doe',
+ },
+ lastname: {
+ value: 'Doe',
+ },
+ density: {
+ value: '420',
+ },
+ height: {
+ value: '1794',
+ },
+ width: {
+ value: '1080',
+ },
+ },
+ },
+ JSON_ARRAY: {},
+ XML: {},
+ FORM: {},
+ },
+ files: {},
+ userId: '',
+ },
+ statusCode: 200,
+ },
+ ],
+ },
+ },
+ },
+ {
+ name: 'revenue_cat',
+ description: 'Test 1',
+ feature: 'processor',
+ module: 'destination',
+ version: 'v0',
+ input: {
+ request: {
+ body: [
+ {
+ destination: {
+ Config: {
+ apiKey: 'a5e75dfda29abd920ec1ec8a18acb42e',
+ xPlatform: 'stripe',
+ },
+ },
+ message: {
+ userId: 'rudder1235678',
+ channel: 'web',
+ context: {
+ ip: '14.5.67.21',
+ app: {
+ build: '1',
+ name: 'RudderAndroidClient',
+ namespace: 'com.rudderstack.demo.android',
+ version: '1.0',
+ },
+ device: {
+ manufacturer: 'Google',
+ model: 'Android SDK built for x86',
+ name: 'generic_x86',
+ type: 'android',
+ },
+ library: {
+ name: 'com.rudderstack.android.sdk.core',
+ version: '0.1.4',
+ },
+ locale: 'en-US',
+ network: {
+ carrier: 'Android',
+ bluetooth: false,
+ cellular: true,
+ wifi: true,
+ },
+ campaign: {
+ source: 'google',
+ medium: 'medium',
+ term: 'keyword',
+ content: 'some content',
+ },
+ os: {
+ name: 'Android',
+ version: '9',
+ },
+ screen: {
+ density: 420,
+ height: 1794,
+ width: 1080,
+ },
+ timezone: 'Asia/Mumbai',
+ userAgent:
+ 'Dalvik/2.1.0 (Linux; U; Android 9; Android SDK built for x86 Build/PSR1.180720.075)',
+ },
+ type: 'identify',
+ traits: {
+ email: 'chandan@companyname.com',
+ phone: '92374162212',
+ firstname: 'James',
+ density: 420,
+ height: 1794,
+ width: 1080,
+ iterableCampaignId: '1234',
+ iterableTemplateId: '1234',
+ },
+ },
+ },
+ ],
+ },
+ },
+ output: {
+ response: {
+ status: 200,
+ body: [
+ {
+ output: {
+ version: '1',
+ type: 'REST',
+ method: 'GET',
+ endpoint: 'https://api.revenuecat.com/v1/subscribers/rudder1235678',
+ headers: {
+ Authorization: 'Basic a5e75dfda29abd920ec1ec8a18acb42e',
+ 'Content-Type': 'application/json',
+ },
+ params: {},
+ body: {
+ JSON: {},
+ JSON_ARRAY: {},
+ XML: {},
+ FORM: {},
+ },
+ files: {},
+ userId: '',
+ },
+ statusCode: 200,
+ },
+ {
+ output: {
+ version: '1',
+ type: 'REST',
+ method: 'POST',
+ endpoint: 'https://api.revenuecat.com/v1/subscribers/rudder1235678/attributes',
+ headers: {
+ Authorization: 'Basic a5e75dfda29abd920ec1ec8a18acb42e',
+ 'Content-Type': 'application/json',
+ },
+ params: {},
+ body: {
+ JSON: {
+ attributes: {
+ app_user_id: {
+ value: 'rudder1235678',
+ },
+ $email: {
+ value: 'chandan@companyname.com',
+ },
+ $phoneNumber: {
+ value: '92374162212',
+ },
+ $ip: {
+ value: '14.5.67.21',
+ },
+ $iterableCampaignId: {
+ value: '1234',
+ },
+ $iterableTemplateId: {
+ value: '1234',
+ },
+ $displayName: {
+ value: 'James',
+ },
+ firstname: {
+ value: 'James',
+ },
+ density: {
+ value: '420',
+ },
+ height: {
+ value: '1794',
+ },
+ width: {
+ value: '1080',
+ },
+ },
+ },
+ JSON_ARRAY: {},
+ XML: {},
+ FORM: {},
+ },
+ files: {},
+ userId: '',
+ },
+ statusCode: 200,
+ },
+ ],
+ },
+ },
+ },
+ {
+ name: 'revenue_cat',
+ description: 'Test 2',
+ feature: 'processor',
+ module: 'destination',
+ version: 'v0',
+ input: {
+ request: {
+ body: [
+ {
+ destination: {
+ Config: {
+ xPlatform: 'stripe',
+ },
+ },
+ message: {
+ userId: 'rudder1235678',
+ channel: 'web',
+ context: {
+ ip: '14.5.67.21',
+ app: {
+ build: '1',
+ name: 'RudderAndroidClient',
+ namespace: 'com.rudderstack.demo.android',
+ version: '1.0',
+ },
+ device: {
+ manufacturer: 'Google',
+ model: 'Android SDK built for x86',
+ name: 'generic_x86',
+ type: 'android',
+ },
+ library: {
+ name: 'com.rudderstack.android.sdk.core',
+ version: '0.1.4',
+ },
+ locale: 'en-US',
+ network: {
+ carrier: 'Android',
+ bluetooth: false,
+ cellular: true,
+ wifi: true,
+ },
+ campaign: {
+ source: 'google',
+ medium: 'medium',
+ term: 'keyword',
+ content: 'some content',
+ },
+ os: {
+ name: 'Android',
+ version: '9',
+ },
+ screen: {
+ density: 420,
+ height: 1794,
+ width: 1080,
+ },
+ timezone: 'Asia/Mumbai',
+ userAgent:
+ 'Dalvik/2.1.0 (Linux; U; Android 9; Android SDK built for x86 Build/PSR1.180720.075)',
+ },
+ type: 'identify',
+ traits: {
+ email: 'chandan@companyname.com',
+ phone: '92374162212',
+ name: 'John Doe',
+ },
+ },
+ },
+ ],
+ },
+ },
+ output: {
+ response: {
+ status: 200,
+ body: [
+ {
+ statusCode: 400,
+ error: 'Public API Key required for Authentication',
+ statTags: {
+ errorCategory: 'dataValidation',
+ errorType: 'configuration',
+ destType: 'REVENUE_CAT',
+ module: 'destination',
+ implementation: 'native',
+ feature: 'processor',
+ },
+ },
+ ],
+ },
+ },
+ },
+ {
+ name: 'revenue_cat',
+ description: 'Test 3',
+ feature: 'processor',
+ module: 'destination',
+ version: 'v0',
+ input: {
+ request: {
+ body: [
+ {
+ destination: {
+ Config: {
+ apiKey: 'a5e75d99c8a18acb4a29abd920ec1e2e',
+ },
+ },
+ message: {
+ userId: 'rudder1235678',
+ channel: 'web',
+ context: {
+ ip: '14.5.67.21',
+ app: {
+ build: '1',
+ name: 'RudderAndroidClient',
+ namespace: 'com.rudderstack.demo.android',
+ version: '1.0',
+ },
+ device: {
+ manufacturer: 'Google',
+ model: 'Android SDK built for x86',
+ name: 'generic_x86',
+ type: 'android',
+ },
+ library: {
+ name: 'com.rudderstack.android.sdk.core',
+ version: '0.1.4',
+ },
+ locale: 'en-US',
+ network: {
+ carrier: 'Android',
+ bluetooth: false,
+ cellular: true,
+ wifi: true,
+ },
+ campaign: {
+ source: 'google',
+ medium: 'medium',
+ term: 'keyword',
+ content: 'some content',
+ },
+ os: {
+ name: 'Android',
+ version: '9',
+ },
+ screen: {
+ density: 420,
+ height: 1794,
+ width: 1080,
+ },
+ timezone: 'Asia/Mumbai',
+ userAgent:
+ 'Dalvik/2.1.0 (Linux; U; Android 9; Android SDK built for x86 Build/PSR1.180720.075)',
+ },
+ type: 'identify',
+ traits: {
+ email: 'chandan@companyname.com',
+ phone: '92374162212',
+ name: 'John Doe',
+ },
+ },
+ },
+ ],
+ },
+ },
+ output: {
+ response: {
+ status: 200,
+ body: [
+ {
+ output: {
+ version: '1',
+ type: 'REST',
+ method: 'GET',
+ endpoint: 'https://api.revenuecat.com/v1/subscribers/rudder1235678',
+ headers: {
+ Authorization: 'Basic a5e75d99c8a18acb4a29abd920ec1e2e',
+ 'Content-Type': 'application/json',
+ },
+ params: {},
+ body: {
+ JSON: {},
+ JSON_ARRAY: {},
+ XML: {},
+ FORM: {},
+ },
+ files: {},
+ userId: '',
+ },
+ statusCode: 200,
+ },
+ {
+ output: {
+ version: '1',
+ type: 'REST',
+ method: 'POST',
+ endpoint: 'https://api.revenuecat.com/v1/subscribers/rudder1235678/attributes',
+ headers: {
+ Authorization: 'Basic a5e75d99c8a18acb4a29abd920ec1e2e',
+ 'Content-Type': 'application/json',
+ },
+ params: {},
+ body: {
+ JSON: {
+ attributes: {
+ app_user_id: {
+ value: 'rudder1235678',
+ },
+ $displayName: {
+ value: 'John Doe',
+ },
+ $email: {
+ value: 'chandan@companyname.com',
+ },
+ $phoneNumber: {
+ value: '92374162212',
+ },
+ $ip: {
+ value: '14.5.67.21',
+ },
+ },
+ },
+ JSON_ARRAY: {},
+ XML: {},
+ FORM: {},
+ },
+ files: {},
+ userId: '',
+ },
+ statusCode: 200,
+ },
+ ],
+ },
+ },
+ },
+ {
+ name: 'revenue_cat',
+ description: 'Test 4',
+ feature: 'processor',
+ module: 'destination',
+ version: 'v0',
+ input: {
+ request: {
+ body: [
+ {
+ destination: {
+ Config: {
+ apiKey: 'dummyApiKey',
+ },
+ },
+ message: {
+ type: 'track',
+ userId: 'rudder123',
+ properties: {
+ checkout_id: '12345',
+ order_id: '1234',
+ affiliation: 'Apple Store',
+ total: 20,
+ revenue: 15,
+ shipping: 22,
+ tax: 1,
+ discount: 1.5,
+ coupon: 'ImagePro',
+ currency: 'USD',
+ fetch_token: 'dummyFetchToken',
+ product_id: '123',
+ products: [
+ {
+ sku: 'G-32',
+ name: 'Monopoly',
+ price: 14,
+ quantity: 1,
+ introductory_price: '350',
+ is_restore: true,
+ presented_offering_identifier: '123erd',
+ },
+ {
+ product_id: '345',
+ sku: 'F-32',
+ name: 'UNO',
+ price: 3.45,
+ quantity: 2,
+ category: 'Games',
+ introductory_price: '250',
+ is_restore: false,
+ presented_offering_identifier: '123erd',
+ },
+ ],
+ },
+ },
+ },
+ ],
+ },
+ },
+ output: {
+ response: {
+ status: 200,
+ body: [
+ {
+ statusCode: 400,
+ error: 'X-Platform is required field',
+ statTags: {
+ errorCategory: 'dataValidation',
+ errorType: 'configuration',
+ destType: 'REVENUE_CAT',
+ module: 'destination',
+ implementation: 'native',
+ feature: 'processor',
+ },
+ },
+ ],
+ },
+ },
+ },
+ {
+ name: 'revenue_cat',
+ description: 'Test 5',
+ feature: 'processor',
+ module: 'destination',
+ version: 'v0',
+ input: {
+ request: {
+ body: [
+ {
+ destination: {
+ Config: {
+ apiKey: 'dummyApiKey',
+ xPlatform: 'stripe',
+ },
+ },
+ message: {
+ type: 'track',
+ userId: 'rudder123',
+ properties: {
+ checkout_id: '12345',
+ order_id: '1234',
+ affiliation: 'Apple Store',
+ total: 20,
+ revenue: 15,
+ shipping: 22,
+ tax: 1,
+ discount: 1.5,
+ coupon: 'ImagePro',
+ currency: 'USD',
+ fetch_token: 'dummyFetchToken',
+ product_id: '123',
+ products: [
+ {
+ sku: 'G-32',
+ name: 'Monopoly',
+ price: 14,
+ quantity: 1,
+ introductory_price: '350',
+ is_restore: true,
+ presented_offering_identifier: '123erd',
+ },
+ {
+ product_id: '345',
+ sku: 'F-32',
+ name: 'UNO',
+ price: 3.45,
+ quantity: 2,
+ category: 'Games',
+ introductory_price: '250',
+ is_restore: false,
+ presented_offering_identifier: '123erd',
+ },
+ ],
+ },
+ },
+ },
+ ],
+ },
+ },
+ output: {
+ response: {
+ status: 200,
+ body: [
+ {
+ output: {
+ version: '1',
+ type: 'REST',
+ method: 'POST',
+ endpoint: 'https://api.revenuecat.com/v1/receipts',
+ headers: {
+ Authorization: 'Basic dummyApiKey',
+ 'Content-Type': 'application/json',
+ 'X-Platform': 'stripe',
+ },
+ params: {},
+ body: {
+ JSON: {
+ app_user_id: 'rudder123',
+ fetch_token: 'dummyFetchToken',
+ product_id: '123',
+ currency: 'USD',
+ price: 14,
+ introductory_price: '350',
+ is_restore: true,
+ presented_offering_identifier: '123erd',
+ },
+ JSON_ARRAY: {},
+ XML: {},
+ FORM: {},
+ },
+ files: {},
+ userId: '',
+ },
+ statusCode: 200,
+ },
+ {
+ output: {
+ version: '1',
+ type: 'REST',
+ method: 'POST',
+ endpoint: 'https://api.revenuecat.com/v1/receipts',
+ headers: {
+ Authorization: 'Basic dummyApiKey',
+ 'Content-Type': 'application/json',
+ 'X-Platform': 'stripe',
+ },
+ params: {},
+ body: {
+ JSON: {
+ app_user_id: 'rudder123',
+ fetch_token: 'dummyFetchToken',
+ product_id: '345',
+ currency: 'USD',
+ price: 3.45,
+ introductory_price: '250',
+ is_restore: false,
+ presented_offering_identifier: '123erd',
+ },
+ JSON_ARRAY: {},
+ XML: {},
+ FORM: {},
+ },
+ files: {},
+ userId: '',
+ },
+ statusCode: 200,
+ },
+ ],
+ },
+ },
+ },
+ {
+ name: 'revenue_cat',
+ description: 'Test 6',
+ feature: 'processor',
+ module: 'destination',
+ version: 'v0',
+ input: {
+ request: {
+ body: [
+ {
+ destination: {
+ Config: {
+ apiKey: 'dummyApiKey',
+ xPlatform: 'stripe',
+ },
+ },
+ message: {
+ type: 'track',
+ userId: 'rudder123',
+ properties: {
+ checkout_id: '12345',
+ order_id: '1234',
+ affiliation: 'Apple Store',
+ total: 20,
+ revenue: 15,
+ shipping: 22,
+ tax: 1,
+ discount: 1.5,
+ coupon: 'ImagePro',
+ currency: 'USD',
+ fetch_token: 'dummyFetchToken',
+ product_id: '123-sa',
+ products: [
+ {
+ sku: 'G-32',
+ name: 'Monopoly',
+ price: 14,
+ quantity: 1,
+ introductory_price: '350',
+ is_restore: true,
+ presented_offering_identifier: '123erd',
+ },
+ {
+ product_id: '345',
+ sku: 'F-32',
+ name: 'UNO',
+ price: 3.45,
+ quantity: 2,
+ category: 'Games',
+ introductory_price: '250',
+ is_restore: false,
+ presented_offering_identifier: '123erd',
+ },
+ {
+ sku: 'G-33',
+ name: 'SunGlass',
+ price: 14,
+ quantity: 1,
+ introductory_price: '350',
+ is_restore: true,
+ presented_offering_identifier: '123erd',
+ },
+ {
+ sku: 'G-35',
+ product_id: '1234sb',
+ name: 'Real-me',
+ price: 14,
+ quantity: 1,
+ introductory_price: '350',
+ is_restore: true,
+ presented_offering_identifier: '123erd',
+ },
+ ],
+ },
+ },
+ },
+ ],
+ },
+ },
+ output: {
+ response: {
+ status: 200,
+ body: [
+ {
+ output: {
+ version: '1',
+ type: 'REST',
+ method: 'POST',
+ endpoint: 'https://api.revenuecat.com/v1/receipts',
+ headers: {
+ Authorization: 'Basic dummyApiKey',
+ 'Content-Type': 'application/json',
+ 'X-Platform': 'stripe',
+ },
+ params: {},
+ body: {
+ JSON: {
+ app_user_id: 'rudder123',
+ fetch_token: 'dummyFetchToken',
+ product_id: '123-sa',
+ currency: 'USD',
+ price: 14,
+ introductory_price: '350',
+ is_restore: true,
+ presented_offering_identifier: '123erd',
+ },
+ JSON_ARRAY: {},
+ XML: {},
+ FORM: {},
+ },
+ files: {},
+ userId: '',
+ },
+ statusCode: 200,
+ },
+ {
+ output: {
+ version: '1',
+ type: 'REST',
+ method: 'POST',
+ endpoint: 'https://api.revenuecat.com/v1/receipts',
+ headers: {
+ Authorization: 'Basic dummyApiKey',
+ 'Content-Type': 'application/json',
+ 'X-Platform': 'stripe',
+ },
+ params: {},
+ body: {
+ JSON: {
+ app_user_id: 'rudder123',
+ fetch_token: 'dummyFetchToken',
+ product_id: '345',
+ currency: 'USD',
+ price: 3.45,
+ introductory_price: '250',
+ is_restore: false,
+ presented_offering_identifier: '123erd',
+ },
+ JSON_ARRAY: {},
+ XML: {},
+ FORM: {},
+ },
+ files: {},
+ userId: '',
+ },
+ statusCode: 200,
+ },
+ {
+ output: {
+ version: '1',
+ type: 'REST',
+ method: 'POST',
+ endpoint: 'https://api.revenuecat.com/v1/receipts',
+ headers: {
+ Authorization: 'Basic dummyApiKey',
+ 'Content-Type': 'application/json',
+ 'X-Platform': 'stripe',
+ },
+ params: {},
+ body: {
+ JSON: {
+ app_user_id: 'rudder123',
+ fetch_token: 'dummyFetchToken',
+ product_id: '123-sa',
+ currency: 'USD',
+ price: 14,
+ introductory_price: '350',
+ is_restore: true,
+ presented_offering_identifier: '123erd',
+ },
+ JSON_ARRAY: {},
+ XML: {},
+ FORM: {},
+ },
+ files: {},
+ userId: '',
+ },
+ statusCode: 200,
+ },
+ {
+ output: {
+ version: '1',
+ type: 'REST',
+ method: 'POST',
+ endpoint: 'https://api.revenuecat.com/v1/receipts',
+ headers: {
+ Authorization: 'Basic dummyApiKey',
+ 'Content-Type': 'application/json',
+ 'X-Platform': 'stripe',
+ },
+ params: {},
+ body: {
+ JSON: {
+ app_user_id: 'rudder123',
+ fetch_token: 'dummyFetchToken',
+ product_id: '1234sb',
+ currency: 'USD',
+ price: 14,
+ introductory_price: '350',
+ is_restore: true,
+ presented_offering_identifier: '123erd',
+ },
+ JSON_ARRAY: {},
+ XML: {},
+ FORM: {},
+ },
+ files: {},
+ userId: '',
+ },
+ statusCode: 200,
+ },
+ ],
+ },
+ },
+ },
+ {
+ name: 'revenue_cat',
+ description: 'Test 7',
+ feature: 'processor',
+ module: 'destination',
+ version: 'v0',
+ input: {
+ request: {
+ body: [
+ {
+ destination: {
+ Config: {
+ apiKey: 'dummyApiKey',
+ xPlatform: 'stripe',
+ },
+ },
+ message: {
+ type: 'track',
+ userId: 'rudder123',
+ properties: {
+ checkout_id: '12345',
+ order_id: '1234',
+ affiliation: 'Apple Store',
+ total: 20,
+ revenue: 15,
+ shipping: 22,
+ tax: 1,
+ discount: 1.5,
+ coupon: 'ImagePro',
+ currency: 'USD',
+ fetch_token: 'dummyFetchToken',
+ product_id: '123-sa',
+ sku: 'G-32',
+ name: 'Monopoly',
+ price: 14,
+ quantity: 1,
+ introductory_price: '350',
+ is_restore: true,
+ presented_offering_identifier: '123erd',
+ },
+ },
+ },
+ ],
+ },
+ },
+ output: {
+ response: {
+ status: 200,
+ body: [
+ {
+ output: {
+ version: '1',
+ type: 'REST',
+ method: 'POST',
+ endpoint: 'https://api.revenuecat.com/v1/receipts',
+ headers: {
+ Authorization: 'Basic dummyApiKey',
+ 'Content-Type': 'application/json',
+ 'X-Platform': 'stripe',
+ },
+ params: {},
+ body: {
+ JSON: {
+ app_user_id: 'rudder123',
+ fetch_token: 'dummyFetchToken',
+ product_id: '123-sa',
+ price: 14,
+ currency: 'USD',
+ introductory_price: '350',
+ is_restore: true,
+ presented_offering_identifier: '123erd',
+ },
+ JSON_ARRAY: {},
+ XML: {},
+ FORM: {},
+ },
+ files: {},
+ userId: '',
+ },
+ statusCode: 200,
+ },
+ ],
+ },
+ },
+ },
+];
diff --git a/test/integrations/destinations/rockerbox/processor/data.ts b/test/integrations/destinations/rockerbox/processor/data.ts
index efb74d2e6e..76dd8ef11b 100644
--- a/test/integrations/destinations/rockerbox/processor/data.ts
+++ b/test/integrations/destinations/rockerbox/processor/data.ts
@@ -1,749 +1,746 @@
export const data = [
- {
- "name": "rockerbox",
- "description": "Test 0",
- "feature": "processor",
- "module": "destination",
- "version": "v0",
- "input": {
- "request": {
- "body": [
- {
- "destination": {
- "Config": {
- "advertiserId": "KDH4JNDHCFJHJ57SJOWJE490W01JFNHGDSSFHDKDSDF"
- }
- },
- "message": {
- "context": {
- "traits": {
- "homwTown": "kanpur",
- "age": "24"
- }
- },
- "type": "Identify",
- "userId": "yash001",
- "originalTimestamp": "2019-10-14T09:03:17.562Z"
- }
- }
- ]
- }
- },
- "output": {
- "response": {
- "status": 200,
- "body": [
- {
- "statusCode": 400,
- "error": "Message type identify is not supported",
- "statTags": {
- "errorCategory": "dataValidation",
- "errorType": "instrumentation",
- "destType": "ROCKERBOX",
- "module": "destination",
- "implementation": "native",
- "feature": "processor"
- }
- }
- ]
- }
- }
- },
- {
- "name": "rockerbox",
- "description": "Test 1",
- "feature": "processor",
- "module": "destination",
- "version": "v0",
- "input": {
- "request": {
- "body": [
- {
- "destination": {
- "Config": {
- "advertiserId": "test id",
- "eventFilteringOption": "disable",
- "whitelistedEvents": [
- {
- "eventName": ""
- }
- ],
- "blacklistedEvents": [
- {
- "eventName": ""
- }
- ],
- "eventsMap": [
- {
- "from": "Product Added To Cart",
- "to": "conv.add_to_cart"
- }
- ],
- "useNativeSDK": {
- "web": false
- },
- "clientAuthId": {
- "web": "test-client-auth-id"
- },
- "oneTrustCookieCategories": {
- "web": [
- {
- "oneTrustCookieCategory": "Marketing Sample"
- }
- ]
- },
- "customDomain": {
- "web": "https://cookiedomain.com"
- },
- "enableCookieSync": {
- "web": true
- }
- }
- },
- "message": {
- "type": "track",
- "event": "Product Added",
- "sentAt": "2022-08-07T20:02:19.352Z",
- "userId": "userSampleX138",
- "channel": "web",
- "context": {
- "os": {
- "name": "",
- "version": ""
- },
- "locale": "en-IN",
- "screen": {
- "width": 1440,
- "height": 900,
- "density": 2,
- "innerWidth": 584,
- "innerHeight": 789
- },
- "traits": {
- "email": "userSampleX120@gmail.com",
- "phone": "9878764736",
- "last_name": "Stack",
- "first_name": "Rudder",
- "subscription": "youtube"
- },
- "campaign": {},
- "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/103.0.0.0 Safari/537.36"
- },
- "rudderId": "4a47e99b-2afc-45c6-b902-ed69282ca805",
- "messageId": "1659902539347900-c622426c-a1dd-44c0-ac6d-d4dbee3f4a93",
- "properties": {
- "checkout_id": "12345",
- "product_url": "http://www.yourdomain.com/products/red-t-shirt",
- "product_name": "Red T-shirt"
- },
- "anonymousId": "5f093403-1457-4a2c-b4e4-c61ec3bacf56",
- "integrations": {
- "All": true
- },
- "originalTimestamp": "2022-08-07T20:02:19.347Z"
- },
- "writeKey": "2D0yaayoBD7bp8uFomnBONdedcA",
- "requestIP": "[::1]",
- "receivedAt": "2022-08-08T01:32:19.369+05:30"
- }
- ]
- }
- },
- "output": {
- "response": {
- "status": 200,
- "body": [
- {
- "statusCode": 400,
- "error": "The event is not associated to a RockerBox event. Aborting!",
- "statTags": {
- "errorCategory": "dataValidation",
- "errorType": "configuration",
- "destType": "ROCKERBOX",
- "module": "destination",
- "implementation": "native",
- "feature": "processor"
- }
- }
- ]
- }
- }
- },
- {
- "name": "rockerbox",
- "description": "Test 2",
- "feature": "processor",
- "module": "destination",
- "version": "v0",
- "input": {
- "request": {
- "body": [
- {
- "destination": {
- "Config": {
- "advertiserId": "test id",
- "eventFilteringOption": "disable",
- "whitelistedEvents": [
- {
- "eventName": ""
- }
- ],
- "blacklistedEvents": [
- {
- "eventName": ""
- }
- ],
- "eventsMap": [
- {
- "from": "Product Added",
- "to": "conv.add_to_cart"
- }
- ],
- "useNativeSDK": {
- "web": false
- },
- "clientAuthId": {
- "web": "test-client-auth-id"
- },
- "oneTrustCookieCategories": {
- "web": [
- {
- "oneTrustCookieCategory": "Marketing Sample"
- }
- ]
- },
- "customDomain": {
- "web": "https://cookiedomain.com"
- },
- "enableCookieSync": {
- "web": true
- }
- }
- },
- "message": {
- "type": "track",
- "event": "Product Added",
- "sentAt": "2022-08-07T20:02:19.352Z",
- "userId": "userSampleX138",
- "channel": "web",
- "context": {
- "os": {
- "name": "",
- "version": ""
- },
- "locale": "en-IN",
- "traits": {
- "email": "userSampleX120@gmail.com",
- "phone": "9878764736",
- "last_name": "Stack",
- "first_name": "Rudder"
- },
- "campaign": {},
- "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/103.0.0.0 Safari/537.36"
- },
- "rudderId": "4a47e99b-2afc-45c6-b902-ed69282ca805",
- "messageId": "1659902539347900-c622426c-a1dd-44c0-ac6d-d4dbee3f4a93",
- "properties": {
- "checkout_id": "12345",
- "product_url": "http://www.yourdomain.com/products/red-t-shirt",
- "product_name": "Red T-shirt"
- },
- "anonymousId": "5f093403-1457-4a2c-b4e4-c61ec3bacf56",
- "integrations": {
- "All": true
- },
- "originalTimestamp": "2022-08-07T20:02:19.347Z"
- },
- "writeKey": "2D0yaayoBD7bp8uFomnBONdedcA",
- "requestIP": "[::1]",
- "receivedAt": "2022-08-08T01:32:19.369+05:30"
- }
- ]
- }
- },
- "output": {
- "response": {
- "status": 200,
- "body": [
- {
- "output": {
- "version": "1",
- "type": "REST",
- "method": "POST",
- "endpoint": "https://webhooks.getrockerbox.com/rudderstack",
- "headers": {},
- "params": {
- "advertiser": "test id"
- },
- "body": {
- "JSON": {
- "customer_id": "userSampleX138",
- "anonymous_id": "5f093403-1457-4a2c-b4e4-c61ec3bacf56",
- "email": "userSampleX120@gmail.com",
- "phone": "9878764736",
- "timestamp": 1659902539,
- "conversion_source": "RudderStack",
- "action": "conv.add_to_cart",
- "checkout_id": "12345",
- "product_url": "http://www.yourdomain.com/products/red-t-shirt",
- "product_name": "Red T-shirt"
- },
- "JSON_ARRAY": {},
- "XML": {},
- "FORM": {}
- },
- "files": {},
- "userId": ""
- },
- "statusCode": 200
- }
- ]
- }
- }
- },
- {
- "name": "rockerbox",
- "description": "Test 3",
- "feature": "processor",
- "module": "destination",
- "version": "v0",
- "input": {
- "request": {
- "body": [
- {
- "destination": {
- "Config": {
- "advertiserId": "test id",
- "eventFilteringOption": "disable",
- "whitelistedEvents": [
- {
- "eventName": ""
- }
- ],
- "blacklistedEvents": [
- {
- "eventName": ""
- }
- ],
- "eventsMap": [
- {
- "from": "Product Added",
- "to": "conv.add_to_cart"
- }
- ],
- "useNativeSDK": {
- "web": false
- },
- "clientAuthId": {
- "web": "test-client-auth-id"
- },
- "oneTrustCookieCategories": {
- "web": [
- {
- "oneTrustCookieCategory": "Marketing Sample"
- }
- ]
- },
- "customDomain": {
- "web": "https://cookiedomain.com"
- },
- "enableCookieSync": {
- "web": true
- }
- }
- },
- "message": {
- "type": "track",
- "event": "Product Added",
- "sentAt": "2022-08-07T20:02:19.352Z",
- "userId": "userSampleX138",
- "channel": "web",
- "context": {
- "os": {
- "name": "",
- "version": ""
- },
- "locale": "en-IN",
- "traits": {
- "email": "userSampleX120@gmail.com",
- "phone": "9878764736",
- "last_name": "Stack",
- "first_name": "Rudder"
- },
- "externalId": [
- {
- "type": "rockerboxExternalId",
- "id": "rbUid"
- }
- ],
- "campaign": {},
- "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/103.0.0.0 Safari/537.36"
- },
- "rudderId": "4a47e99b-2afc-45c6-b902-ed69282ca805",
- "messageId": "1659902539347900-c622426c-a1dd-44c0-ac6d-d4dbee3f4a93",
- "properties": {
- "checkout_id": "12345",
- "product_url": "http://www.yourdomain.com/products/red-t-shirt",
- "product_name": "Red T-shirt",
- "externalId": "rbUid",
- "countryCode": "IN",
- "listingId": "10101"
- },
- "anonymousId": "5f093403-1457-4a2c-b4e4-c61ec3bacf56",
- "integrations": {
- "All": true
- },
- "originalTimestamp": "2022-08-07T20:02:19.347Z"
- },
- "writeKey": "2D0yaayoBD7bp8uFomnBONdedcA",
- "requestIP": "[::1]",
- "receivedAt": "2022-08-08T01:32:19.369+05:30"
- }
- ]
- }
- },
- "output": {
- "response": {
- "status": 200,
- "body": [
- {
- "output": {
- "version": "1",
- "type": "REST",
- "method": "POST",
- "endpoint": "https://webhooks.getrockerbox.com/rudderstack",
- "headers": {},
- "params": {
- "advertiser": "test id"
- },
- "body": {
- "JSON": {
- "customer_id": "userSampleX138",
- "anonymous_id": "5f093403-1457-4a2c-b4e4-c61ec3bacf56",
- "email": "userSampleX120@gmail.com",
- "phone": "9878764736",
- "timestamp": 1659902539,
- "country_code": "IN",
- "listing_id": "10101",
- "conversion_source": "RudderStack",
- "action": "conv.add_to_cart",
- "checkout_id": "12345",
- "product_url": "http://www.yourdomain.com/products/red-t-shirt",
- "product_name": "Red T-shirt",
- "externalId": "rbUid"
- },
- "JSON_ARRAY": {},
- "XML": {},
- "FORM": {}
- },
- "files": {},
- "userId": ""
- },
- "statusCode": 200
- }
- ]
- }
- }
- },
- {
- "name": "rockerbox",
- "description": "Test 4",
- "feature": "processor",
- "module": "destination",
- "version": "v0",
- "input": {
- "request": {
- "body": [
- {
- "destination": {
- "Config": {
- "advertiserId": "hdowhfiqhfwaiwhrdafshbfacicolsa",
- "eventFilteringOption": "disable",
- "whitelistedEvents": [
- {
- "eventName": ""
- }
- ],
- "blacklistedEvents": [
- {
- "eventName": ""
- }
- ],
- "eventsMap": [
- {
- "from": "Product Added",
- "to": "conv.add_to_cart"
- }
- ],
- "customPropsMapping": [
- {
- "from": "unit_id",
- "to": "unitID"
- },
- {
- "from": "merch_id",
- "to": "merch_id"
- },
- {
- "from": "bounce_id",
- "to": "bounceID"
- }
- ],
- "useNativeSDK": {
- "web": false
- },
- "useNativeSDKToSend": {
- "web": false
- },
- "clientAuthId": {
- "web": ""
- },
- "oneTrustCookieCategories": {
- "web": [
- {
- "oneTrustCookieCategory": ""
- }
- ]
- },
- "customDomain": {
- "web": ""
- },
- "enableCookieSync": {
- "web": false
- }
- }
- },
- "message": {
- "channel": "web",
- "context": {
- "app": {
- "build": "1.0.0",
- "name": "RudderLabs JavaScript SDK",
- "namespace": "com.rudderlabs.javascript",
- "version": "1.0.0"
- },
- "library": {
- "name": "RudderLabs JavaScript SDK",
- "version": "1.0.0"
- },
- "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36",
- "locale": "en-US",
- "ip": "0.0.0.0",
- "os": {
- "name": "",
- "version": ""
- },
- "screen": {
- "density": 2
- }
- },
- "messageId": "84e26acc-56a5-4835-8233-591137fca468",
- "session_id": "3049dc4c-5a95-4ccd-a3e7-d74a7e411f22",
- "originalTimestamp": "2019-10-14T09:03:17.562Z",
- "anonymousId": "anon_id",
- "type": "track",
- "traits": {
- "userId": "anon_id",
- "email": "jamesDoe@gmail.com",
- "name": "James Doe",
- "phone": "92374162212",
- "gender": "M",
- "employed": true,
- "birthday": "1614775793",
- "education": "Science",
- "graduate": true,
- "married": true,
- "customerType": "Prime",
- "msg_push": true,
- "msgSms": true,
- "msgemail": true,
- "msgwhatsapp": false,
- "custom_tags": [
- "Test_User",
- "Interested_User",
- "DIY_Hobby"
- ],
- "custom_mappings": {
- "Office": "Trastkiv",
- "Country": "Russia"
- },
- "address": {
- "city": "kolkata",
- "country": "India",
- "postalCode": 789223,
- "state": "WB",
- "street": ""
- }
- },
- "properties": {
- "unit_id": 123,
- "merch_id": false,
- "bounceiD": "fakefake",
- "counce_id": ""
- },
- "event": "Product Added",
- "integrations": {
- "All": true
- },
- "sentAt": "2019-10-14T09:03:22.563Z"
- },
- "writeKey": "2D0yaayoBD7bp8uFomnBONdedcA",
- "requestIP": "[::1]",
- "receivedAt": "2022-08-08T01:32:19.369+05:30"
- }
- ]
- }
- },
- "output": {
- "response": {
- "status": 200,
- "body": [
- {
- "output": {
- "version": "1",
- "type": "REST",
- "method": "POST",
- "endpoint": "https://webhooks.getrockerbox.com/rudderstack",
- "headers": {},
- "params": {
- "advertiser": "hdowhfiqhfwaiwhrdafshbfacicolsa"
- },
- "body": {
- "JSON": {
- "customer_id": "anon_id",
- "anonymous_id": "anon_id",
- "email": "jamesDoe@gmail.com",
- "phone": "92374162212",
- "timestamp": 1571043797,
- "conversion_source": "RudderStack",
- "action": "conv.add_to_cart",
- "unit_id": 123,
- "merch_id": false,
- "bounceiD": "fakefake",
- "counce_id": ""
- },
- "JSON_ARRAY": {},
- "XML": {},
- "FORM": {}
- },
- "files": {},
- "userId": ""
- },
- "statusCode": 200
- }
- ]
- }
- }
- },
- {
- "name": "rockerbox",
- "description": "Test 5",
- "feature": "processor",
- "module": "destination",
- "version": "v0",
- "input": {
- "request": {
- "body": [
- {
- "destination": {
- "Config": {
- "advertiserId": "KDH4JNDHCFJHJ57SJOWJE490W01JFNHGDSSFHDKDSDF"
- }
- },
- "message": {
- "channel": "web",
- "context": {
- "app": {
- "build": "1.0.0",
- "name": "RudderLabs JavaScript SDK",
- "namespace": "com.rudderlabs.javascript",
- "version": "1.0.0"
- },
- "library": {
- "name": "RudderLabs JavaScript SDK",
- "version": "1.0.0"
- },
- "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36",
- "locale": "en-US",
- "ip": "0.0.0.0",
- "os": {
- "name": "",
- "version": ""
- },
- "screen": {
- "density": 2
- }
- },
- "messageId": "84e26acc-56a5-4835-8233-591137fca468",
- "session_id": "3049dc4c-5a95-4ccd-a3e7-d74a7e411f22",
- "originalTimestamp": "2019-10-14T09:03:17.562Z",
- "type": "track",
- "traits": {
- "email": "jamesDoe@gmail.com",
- "name": "James Doe",
- "phone": "92374162212",
- "gender": "M",
- "employed": true,
- "birthday": "1614775793",
- "education": "Science",
- "graduate": true,
- "married": true,
- "customerType": "Prime",
- "msg_push": true,
- "msgSms": true,
- "msgemail": true,
- "msgwhatsapp": false,
- "custom_tags": [
- "Test_User",
- "Interested_User",
- "DIY_Hobby"
- ],
- "custom_mappings": {
- "Office": "Trastkiv",
- "Country": "Russia"
- },
- "address": {
- "city": "kolkata",
- "country": "India",
- "postalCode": 789223,
- "state": "WB",
- "street": ""
- }
- },
- "properties": {
- "unit_id": 123,
- "merch_id": false,
- "bounceiD": "fakefake",
- "counce_id": ""
- },
- "event": "Product Added",
- "integrations": {
- "All": true
- },
- "sentAt": "2019-10-14T09:03:22.563Z"
- }
- }
- ]
- }
- },
- "output": {
- "response": {
- "status": 200,
- "body": [
- {
- "statusCode": 400,
- "error": "Anyone of userId or anonymousId is required to make the call",
- "statTags": {
- "errorCategory": "dataValidation",
- "errorType": "instrumentation",
- "destType": "ROCKERBOX",
- "module": "destination",
- "implementation": "native",
- "feature": "processor"
- }
- }
- ]
- }
- }
- }
-]
+ {
+ name: 'rockerbox',
+ description: 'Test 0',
+ feature: 'processor',
+ module: 'destination',
+ version: 'v0',
+ input: {
+ request: {
+ body: [
+ {
+ destination: {
+ Config: {
+ advertiserId: 'KDH4JNDHCFJHJ57SJOWJE490W01JFNHGDSSFHDKDSDF',
+ },
+ },
+ message: {
+ context: {
+ traits: {
+ homwTown: 'kanpur',
+ age: '24',
+ },
+ },
+ type: 'Identify',
+ userId: 'yash001',
+ originalTimestamp: '2019-10-14T09:03:17.562Z',
+ },
+ },
+ ],
+ },
+ },
+ output: {
+ response: {
+ status: 200,
+ body: [
+ {
+ statusCode: 400,
+ error: 'Message type identify is not supported',
+ statTags: {
+ errorCategory: 'dataValidation',
+ errorType: 'instrumentation',
+ destType: 'ROCKERBOX',
+ module: 'destination',
+ implementation: 'native',
+ feature: 'processor',
+ },
+ },
+ ],
+ },
+ },
+ },
+ {
+ name: 'rockerbox',
+ description: 'Test 1',
+ feature: 'processor',
+ module: 'destination',
+ version: 'v0',
+ input: {
+ request: {
+ body: [
+ {
+ destination: {
+ Config: {
+ advertiserId: 'test id',
+ eventFilteringOption: 'disable',
+ whitelistedEvents: [
+ {
+ eventName: '',
+ },
+ ],
+ blacklistedEvents: [
+ {
+ eventName: '',
+ },
+ ],
+ eventsMap: [
+ {
+ from: 'Product Added To Cart',
+ to: 'conv.add_to_cart',
+ },
+ ],
+ useNativeSDK: {
+ web: false,
+ },
+ clientAuthId: {
+ web: 'test-client-auth-id',
+ },
+ oneTrustCookieCategories: {
+ web: [
+ {
+ oneTrustCookieCategory: 'Marketing Sample',
+ },
+ ],
+ },
+ customDomain: {
+ web: 'https://cookiedomain.com',
+ },
+ enableCookieSync: {
+ web: true,
+ },
+ },
+ },
+ message: {
+ type: 'track',
+ event: 'Product Added',
+ sentAt: '2022-08-07T20:02:19.352Z',
+ userId: 'userSampleX138',
+ channel: 'web',
+ context: {
+ os: {
+ name: '',
+ version: '',
+ },
+ locale: 'en-IN',
+ screen: {
+ width: 1440,
+ height: 900,
+ density: 2,
+ innerWidth: 584,
+ innerHeight: 789,
+ },
+ traits: {
+ email: 'userSampleX120@gmail.com',
+ phone: '9878764736',
+ last_name: 'Stack',
+ first_name: 'Rudder',
+ subscription: 'youtube',
+ },
+ campaign: {},
+ userAgent:
+ 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/103.0.0.0 Safari/537.36',
+ },
+ rudderId: '4a47e99b-2afc-45c6-b902-ed69282ca805',
+ messageId: '1659902539347900-c622426c-a1dd-44c0-ac6d-d4dbee3f4a93',
+ properties: {
+ checkout_id: '12345',
+ product_url: 'http://www.yourdomain.com/products/red-t-shirt',
+ product_name: 'Red T-shirt',
+ },
+ anonymousId: '5f093403-1457-4a2c-b4e4-c61ec3bacf56',
+ integrations: {
+ All: true,
+ },
+ originalTimestamp: '2022-08-07T20:02:19.347Z',
+ },
+ writeKey: '2D0yaayoBD7bp8uFomnBONdedcA',
+ requestIP: '[::1]',
+ receivedAt: '2022-08-08T01:32:19.369+05:30',
+ },
+ ],
+ },
+ },
+ output: {
+ response: {
+ status: 200,
+ body: [
+ {
+ statusCode: 400,
+ error: 'The event is not associated to a RockerBox event. Aborting!',
+ statTags: {
+ errorCategory: 'dataValidation',
+ errorType: 'configuration',
+ destType: 'ROCKERBOX',
+ module: 'destination',
+ implementation: 'native',
+ feature: 'processor',
+ },
+ },
+ ],
+ },
+ },
+ },
+ {
+ name: 'rockerbox',
+ description: 'Test 2',
+ feature: 'processor',
+ module: 'destination',
+ version: 'v0',
+ input: {
+ request: {
+ body: [
+ {
+ destination: {
+ Config: {
+ advertiserId: 'test id',
+ eventFilteringOption: 'disable',
+ whitelistedEvents: [
+ {
+ eventName: '',
+ },
+ ],
+ blacklistedEvents: [
+ {
+ eventName: '',
+ },
+ ],
+ eventsMap: [
+ {
+ from: 'Product Added',
+ to: 'conv.add_to_cart',
+ },
+ ],
+ useNativeSDK: {
+ web: false,
+ },
+ clientAuthId: {
+ web: 'test-client-auth-id',
+ },
+ oneTrustCookieCategories: {
+ web: [
+ {
+ oneTrustCookieCategory: 'Marketing Sample',
+ },
+ ],
+ },
+ customDomain: {
+ web: 'https://cookiedomain.com',
+ },
+ enableCookieSync: {
+ web: true,
+ },
+ },
+ },
+ message: {
+ type: 'track',
+ event: 'Product Added',
+ sentAt: '2022-08-07T20:02:19.352Z',
+ userId: 'userSampleX138',
+ channel: 'web',
+ context: {
+ os: {
+ name: '',
+ version: '',
+ },
+ locale: 'en-IN',
+ traits: {
+ email: 'userSampleX120@gmail.com',
+ phone: '9878764736',
+ last_name: 'Stack',
+ first_name: 'Rudder',
+ },
+ campaign: {},
+ userAgent:
+ 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/103.0.0.0 Safari/537.36',
+ },
+ rudderId: '4a47e99b-2afc-45c6-b902-ed69282ca805',
+ messageId: '1659902539347900-c622426c-a1dd-44c0-ac6d-d4dbee3f4a93',
+ properties: {
+ checkout_id: '12345',
+ product_url: 'http://www.yourdomain.com/products/red-t-shirt',
+ product_name: 'Red T-shirt',
+ },
+ anonymousId: '5f093403-1457-4a2c-b4e4-c61ec3bacf56',
+ integrations: {
+ All: true,
+ },
+ originalTimestamp: '2022-08-07T20:02:19.347Z',
+ },
+ writeKey: '2D0yaayoBD7bp8uFomnBONdedcA',
+ requestIP: '[::1]',
+ receivedAt: '2022-08-08T01:32:19.369+05:30',
+ },
+ ],
+ },
+ },
+ output: {
+ response: {
+ status: 200,
+ body: [
+ {
+ output: {
+ version: '1',
+ type: 'REST',
+ method: 'POST',
+ endpoint: 'https://webhooks.getrockerbox.com/rudderstack',
+ headers: {},
+ params: {
+ advertiser: 'test id',
+ },
+ body: {
+ JSON: {
+ customer_id: 'userSampleX138',
+ anonymous_id: '5f093403-1457-4a2c-b4e4-c61ec3bacf56',
+ email: 'userSampleX120@gmail.com',
+ phone: '9878764736',
+ timestamp: 1659902539,
+ conversion_source: 'RudderStack',
+ action: 'conv.add_to_cart',
+ checkout_id: '12345',
+ product_url: 'http://www.yourdomain.com/products/red-t-shirt',
+ product_name: 'Red T-shirt',
+ },
+ JSON_ARRAY: {},
+ XML: {},
+ FORM: {},
+ },
+ files: {},
+ userId: '',
+ },
+ statusCode: 200,
+ },
+ ],
+ },
+ },
+ },
+ {
+ name: 'rockerbox',
+ description: 'Test 3',
+ feature: 'processor',
+ module: 'destination',
+ version: 'v0',
+ input: {
+ request: {
+ body: [
+ {
+ destination: {
+ Config: {
+ advertiserId: 'test id',
+ eventFilteringOption: 'disable',
+ whitelistedEvents: [
+ {
+ eventName: '',
+ },
+ ],
+ blacklistedEvents: [
+ {
+ eventName: '',
+ },
+ ],
+ eventsMap: [
+ {
+ from: 'Product Added',
+ to: 'conv.add_to_cart',
+ },
+ ],
+ useNativeSDK: {
+ web: false,
+ },
+ clientAuthId: {
+ web: 'test-client-auth-id',
+ },
+ oneTrustCookieCategories: {
+ web: [
+ {
+ oneTrustCookieCategory: 'Marketing Sample',
+ },
+ ],
+ },
+ customDomain: {
+ web: 'https://cookiedomain.com',
+ },
+ enableCookieSync: {
+ web: true,
+ },
+ },
+ },
+ message: {
+ type: 'track',
+ event: 'Product Added',
+ sentAt: '2022-08-07T20:02:19.352Z',
+ userId: 'userSampleX138',
+ channel: 'web',
+ context: {
+ os: {
+ name: '',
+ version: '',
+ },
+ locale: 'en-IN',
+ traits: {
+ email: 'userSampleX120@gmail.com',
+ phone: '9878764736',
+ last_name: 'Stack',
+ first_name: 'Rudder',
+ },
+ externalId: [
+ {
+ type: 'rockerboxExternalId',
+ id: 'rbUid',
+ },
+ ],
+ campaign: {},
+ userAgent:
+ 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/103.0.0.0 Safari/537.36',
+ },
+ rudderId: '4a47e99b-2afc-45c6-b902-ed69282ca805',
+ messageId: '1659902539347900-c622426c-a1dd-44c0-ac6d-d4dbee3f4a93',
+ properties: {
+ checkout_id: '12345',
+ product_url: 'http://www.yourdomain.com/products/red-t-shirt',
+ product_name: 'Red T-shirt',
+ externalId: 'rbUid',
+ countryCode: 'IN',
+ listingId: '10101',
+ },
+ anonymousId: '5f093403-1457-4a2c-b4e4-c61ec3bacf56',
+ integrations: {
+ All: true,
+ },
+ originalTimestamp: '2022-08-07T20:02:19.347Z',
+ },
+ writeKey: '2D0yaayoBD7bp8uFomnBONdedcA',
+ requestIP: '[::1]',
+ receivedAt: '2022-08-08T01:32:19.369+05:30',
+ },
+ ],
+ },
+ },
+ output: {
+ response: {
+ status: 200,
+ body: [
+ {
+ output: {
+ version: '1',
+ type: 'REST',
+ method: 'POST',
+ endpoint: 'https://webhooks.getrockerbox.com/rudderstack',
+ headers: {},
+ params: {
+ advertiser: 'test id',
+ },
+ body: {
+ JSON: {
+ customer_id: 'userSampleX138',
+ anonymous_id: '5f093403-1457-4a2c-b4e4-c61ec3bacf56',
+ email: 'userSampleX120@gmail.com',
+ phone: '9878764736',
+ timestamp: 1659902539,
+ country_code: 'IN',
+ listing_id: '10101',
+ conversion_source: 'RudderStack',
+ action: 'conv.add_to_cart',
+ checkout_id: '12345',
+ product_url: 'http://www.yourdomain.com/products/red-t-shirt',
+ product_name: 'Red T-shirt',
+ externalId: 'rbUid',
+ },
+ JSON_ARRAY: {},
+ XML: {},
+ FORM: {},
+ },
+ files: {},
+ userId: '',
+ },
+ statusCode: 200,
+ },
+ ],
+ },
+ },
+ },
+ {
+ name: 'rockerbox',
+ description: 'Test 4',
+ feature: 'processor',
+ module: 'destination',
+ version: 'v0',
+ input: {
+ request: {
+ body: [
+ {
+ destination: {
+ Config: {
+ advertiserId: 'hdowhfiqhfwaiwhrdafshbfacicolsa',
+ eventFilteringOption: 'disable',
+ whitelistedEvents: [
+ {
+ eventName: '',
+ },
+ ],
+ blacklistedEvents: [
+ {
+ eventName: '',
+ },
+ ],
+ eventsMap: [
+ {
+ from: 'Product Added',
+ to: 'conv.add_to_cart',
+ },
+ ],
+ customPropsMapping: [
+ {
+ from: 'unit_id',
+ to: 'unitID',
+ },
+ {
+ from: 'merch_id',
+ to: 'merch_id',
+ },
+ {
+ from: 'bounce_id',
+ to: 'bounceID',
+ },
+ ],
+ useNativeSDK: {
+ web: false,
+ },
+ useNativeSDKToSend: {
+ web: false,
+ },
+ clientAuthId: {
+ web: '',
+ },
+ oneTrustCookieCategories: {
+ web: [
+ {
+ oneTrustCookieCategory: '',
+ },
+ ],
+ },
+ customDomain: {
+ web: '',
+ },
+ enableCookieSync: {
+ web: false,
+ },
+ },
+ },
+ message: {
+ channel: 'web',
+ context: {
+ app: {
+ build: '1.0.0',
+ name: 'RudderLabs JavaScript SDK',
+ namespace: 'com.rudderlabs.javascript',
+ version: '1.0.0',
+ },
+ library: {
+ name: 'RudderLabs JavaScript SDK',
+ version: '1.0.0',
+ },
+ userAgent:
+ 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36',
+ locale: 'en-US',
+ ip: '0.0.0.0',
+ os: {
+ name: '',
+ version: '',
+ },
+ screen: {
+ density: 2,
+ },
+ },
+ messageId: '84e26acc-56a5-4835-8233-591137fca468',
+ session_id: '3049dc4c-5a95-4ccd-a3e7-d74a7e411f22',
+ originalTimestamp: '2019-10-14T09:03:17.562Z',
+ anonymousId: 'anon_id',
+ type: 'track',
+ traits: {
+ userId: 'anon_id',
+ email: 'jamesDoe@gmail.com',
+ name: 'James Doe',
+ phone: '92374162212',
+ gender: 'M',
+ employed: true,
+ birthday: '1614775793',
+ education: 'Science',
+ graduate: true,
+ married: true,
+ customerType: 'Prime',
+ msg_push: true,
+ msgSms: true,
+ msgemail: true,
+ msgwhatsapp: false,
+ custom_tags: ['Test_User', 'Interested_User', 'DIY_Hobby'],
+ custom_mappings: {
+ Office: 'Trastkiv',
+ Country: 'Russia',
+ },
+ address: {
+ city: 'kolkata',
+ country: 'India',
+ postalCode: 789223,
+ state: 'WB',
+ street: '',
+ },
+ },
+ properties: {
+ unit_id: 123,
+ merch_id: false,
+ bounceiD: 'fakefake',
+ counce_id: '',
+ },
+ event: 'Product Added',
+ integrations: {
+ All: true,
+ },
+ sentAt: '2019-10-14T09:03:22.563Z',
+ },
+ writeKey: '2D0yaayoBD7bp8uFomnBONdedcA',
+ requestIP: '[::1]',
+ receivedAt: '2022-08-08T01:32:19.369+05:30',
+ },
+ ],
+ },
+ },
+ output: {
+ response: {
+ status: 200,
+ body: [
+ {
+ output: {
+ version: '1',
+ type: 'REST',
+ method: 'POST',
+ endpoint: 'https://webhooks.getrockerbox.com/rudderstack',
+ headers: {},
+ params: {
+ advertiser: 'hdowhfiqhfwaiwhrdafshbfacicolsa',
+ },
+ body: {
+ JSON: {
+ customer_id: 'anon_id',
+ anonymous_id: 'anon_id',
+ email: 'jamesDoe@gmail.com',
+ phone: '92374162212',
+ timestamp: 1571043797,
+ conversion_source: 'RudderStack',
+ action: 'conv.add_to_cart',
+ unit_id: 123,
+ merch_id: false,
+ bounceiD: 'fakefake',
+ counce_id: '',
+ },
+ JSON_ARRAY: {},
+ XML: {},
+ FORM: {},
+ },
+ files: {},
+ userId: '',
+ },
+ statusCode: 200,
+ },
+ ],
+ },
+ },
+ },
+ {
+ name: 'rockerbox',
+ description: 'Test 5',
+ feature: 'processor',
+ module: 'destination',
+ version: 'v0',
+ input: {
+ request: {
+ body: [
+ {
+ destination: {
+ Config: {
+ advertiserId: 'KDH4JNDHCFJHJ57SJOWJE490W01JFNHGDSSFHDKDSDF',
+ },
+ },
+ message: {
+ channel: 'web',
+ context: {
+ app: {
+ build: '1.0.0',
+ name: 'RudderLabs JavaScript SDK',
+ namespace: 'com.rudderlabs.javascript',
+ version: '1.0.0',
+ },
+ library: {
+ name: 'RudderLabs JavaScript SDK',
+ version: '1.0.0',
+ },
+ userAgent:
+ 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36',
+ locale: 'en-US',
+ ip: '0.0.0.0',
+ os: {
+ name: '',
+ version: '',
+ },
+ screen: {
+ density: 2,
+ },
+ },
+ messageId: '84e26acc-56a5-4835-8233-591137fca468',
+ session_id: '3049dc4c-5a95-4ccd-a3e7-d74a7e411f22',
+ originalTimestamp: '2019-10-14T09:03:17.562Z',
+ type: 'track',
+ traits: {
+ email: 'jamesDoe@gmail.com',
+ name: 'James Doe',
+ phone: '92374162212',
+ gender: 'M',
+ employed: true,
+ birthday: '1614775793',
+ education: 'Science',
+ graduate: true,
+ married: true,
+ customerType: 'Prime',
+ msg_push: true,
+ msgSms: true,
+ msgemail: true,
+ msgwhatsapp: false,
+ custom_tags: ['Test_User', 'Interested_User', 'DIY_Hobby'],
+ custom_mappings: {
+ Office: 'Trastkiv',
+ Country: 'Russia',
+ },
+ address: {
+ city: 'kolkata',
+ country: 'India',
+ postalCode: 789223,
+ state: 'WB',
+ street: '',
+ },
+ },
+ properties: {
+ unit_id: 123,
+ merch_id: false,
+ bounceiD: 'fakefake',
+ counce_id: '',
+ },
+ event: 'Product Added',
+ integrations: {
+ All: true,
+ },
+ sentAt: '2019-10-14T09:03:22.563Z',
+ },
+ },
+ ],
+ },
+ },
+ output: {
+ response: {
+ status: 200,
+ body: [
+ {
+ statusCode: 400,
+ error: 'Anyone of userId or anonymousId is required to make the call',
+ statTags: {
+ errorCategory: 'dataValidation',
+ errorType: 'instrumentation',
+ destType: 'ROCKERBOX',
+ module: 'destination',
+ implementation: 'native',
+ feature: 'processor',
+ },
+ },
+ ],
+ },
+ },
+ },
+];
diff --git a/test/integrations/destinations/segment/processor/data.ts b/test/integrations/destinations/segment/processor/data.ts
index b2b8c679a5..9ba9601d6e 100644
--- a/test/integrations/destinations/segment/processor/data.ts
+++ b/test/integrations/destinations/segment/processor/data.ts
@@ -1,670 +1,675 @@
export const data = [
- {
- "name": "segment",
- "description": "Test 0",
- "feature": "processor",
- "module": "destination",
- "version": "v0",
- "input": {
- "request": {
- "body": [
- {
- "destination": {
- "ID": "1afmecIpsJm7D72aRTksxyODrwR",
- "Name": "Segment",
- "DestinationDefinition": {
- "ID": "1afjjahf0X5lSyNze7Xh7aqJs11",
- "Name": "SEGMENT",
- "DisplayName": "Segment",
- "Config": {
- "excludeKeys": [],
- "includeKeys": []
- }
- },
- "Config": {
- "writeKey": "abcdefghijklmnopqrstuvwxyz"
- },
- "Enabled": true,
- "Transformations": [],
- "IsProcessorEnabled": true
- },
- "message": {
- "anonymousId": "ac7722c2-ccb6-4ae2-baf6-1effe861f4cd",
- "channel": "web",
- "context": {
- "app": {
- "build": "1.0.0",
- "name": "RudderLabs JavaScript SDK",
- "namespace": "com.rudderlabs.javascript",
- "version": "1.1.1-rc.2"
- },
- "library": {
- "name": "RudderLabs JavaScript SDK",
- "version": "1.1.1-rc.2"
- },
- "locale": "en-GB",
- "os": {
- "name": "",
- "version": ""
- },
- "page": {
- "path": "/tests/html/index4.html",
- "referrer": "",
- "search": "",
- "title": "",
- "url": "http://localhost/tests/html/index4.html"
- },
- "screen": {
- "density": 2
- },
- "traits": {
- "age": 23,
- "email": "testmp@rudderstack.com",
- "firstname": "Test Kafka"
- },
- "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/80.0.3987.163 Safari/537.36"
- },
- "integrations": {
- "All": true
- },
- "messageId": "258b77c6-442d-4bdc-8729-f0e4cef41353",
- "name": "home",
- "originalTimestamp": "2020-04-17T14:55:31.367Z",
- "properties": {
- "path": "/tests/html/index4.html",
- "referrer": "",
- "search": "",
- "title": "",
- "url": "http://localhost/tests/html/index4.html"
- },
- "receivedAt": "2020-04-17T20:25:31.381+05:30",
- "request_ip": "[::1]:57363",
- "sentAt": "2020-04-17T14:55:31.367Z",
- "timestamp": "2020-04-17T20:25:31.381+05:30",
- "type": "page",
- "userId": "user12345"
- }
- }
- ]
- }
- },
- "output": {
- "response": {
- "status": 200,
- "body": [
- {
- "output": {
- "version": "1",
- "type": "REST",
- "method": "POST",
- "userId": "user12345",
- "endpoint": "https://api.segment.io/v1/batch",
- "headers": {
- "Content-Type": "application/json",
- "Authorization": "Basic YWJjZGVmZ2hpamtsbW5vcHFyc3R1dnd4eXo6"
- },
- "params": {},
- "body": {
- "JSON": {
- "batch": [
- {
- "anonymousId": "ac7722c2-ccb6-4ae2-baf6-1effe861f4cd",
- "type": "page",
- "userId": "user12345",
- "traits": {
- "age": 23,
- "email": "testmp@rudderstack.com",
- "firstname": "Test Kafka"
- },
- "properties": {
- "path": "/tests/html/index4.html",
- "referrer": "",
- "search": "",
- "title": "",
- "url": "http://localhost/tests/html/index4.html"
- },
- "timeStamp": "2020-04-17T20:25:31.381+05:30"
- }
- ]
- },
- "XML": {},
- "JSON_ARRAY": {},
- "FORM": {}
- },
- "files": {},
- "statusCode": 200
- },
- "statusCode": 200
- }
- ]
- }
- }
- },
- {
- "name": "segment",
- "description": "Test 1",
- "feature": "processor",
- "module": "destination",
- "version": "v0",
- "input": {
- "request": {
- "body": [
- {
- "destination": {
- "ID": "1afmecIpsJm7D72aRTksxyODrwR",
- "Name": "Segment",
- "DestinationDefinition": {
- "ID": "1afjjahf0X5lSyNze7Xh7aqJs11",
- "Name": "SEGMENT",
- "DisplayName": "Segment",
- "Config": {
- "excludeKeys": [],
- "includeKeys": []
- }
- },
- "Config": {
- "writeKey": "abcdefghijklmnopqrstuvwxyz"
- },
- "Enabled": true,
- "Transformations": [],
- "IsProcessorEnabled": true
- },
- "message": {
- "anonymousId": "ac7722c2-ccb6-4ae2-baf6-1effe861f4cd",
- "channel": "web",
- "context": {
- "app": {
- "build": "1.0.0",
- "name": "RudderLabs JavaScript SDK",
- "namespace": "com.rudderlabs.javascript",
- "version": "1.1.1-rc.2"
- },
- "library": {
- "name": "RudderLabs JavaScript SDK",
- "version": "1.1.1-rc.2"
- },
- "locale": "en-GB",
- "os": {
- "name": "",
- "version": ""
- },
- "page": {
- "path": "/tests/html/index4.html",
- "referrer": "",
- "search": "",
- "title": "",
- "url": "http://localhost/tests/html/index4.html"
- },
- "screen": {
- "density": 2
- },
- "traits": {
- "age": 23,
- "email": "testmp@email.com",
- "firstname": "Test Transformer"
- },
- "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/80.0.3987.163 Safari/537.36"
- },
- "integrations": {
- "All": true
- },
- "messageId": "023a3a48-190a-4968-9394-a8e99b81a3c0",
- "originalTimestamp": "2020-04-17T14:55:31.37Z",
- "receivedAt": "2020-04-17T20:25:31.401+05:30",
- "request_ip": "[::1]:57364",
- "sentAt": "2020-04-17T14:55:31.37Z",
- "timestamp": "2020-04-17T20:25:31.401+05:30",
- "type": "identify",
- "userId": "user12345"
- }
- }
- ]
- }
- },
- "output": {
- "response": {
- "status": 200,
- "body": [
- {
- "output": {
- "version": "1",
- "type": "REST",
- "userId": "user12345",
- "method": "POST",
- "endpoint": "https://api.segment.io/v1/batch",
- "headers": {
- "Content-Type": "application/json",
- "Authorization": "Basic YWJjZGVmZ2hpamtsbW5vcHFyc3R1dnd4eXo6"
- },
- "params": {},
- "body": {
- "JSON": {
- "batch": [
- {
- "anonymousId": "ac7722c2-ccb6-4ae2-baf6-1effe861f4cd",
- "type": "identify",
- "userId": "user12345",
- "traits": {
- "age": 23,
- "email": "testmp@email.com",
- "firstname": "Test Transformer"
- },
- "timeStamp": "2020-04-17T20:25:31.401+05:30"
- }
- ]
- },
- "XML": {},
- "JSON_ARRAY": {},
- "FORM": {}
- },
- "files": {},
- "statusCode": 200
- },
- "statusCode": 200
- }
- ]
- }
- }
- },
- {
- "name": "segment",
- "description": "Test 2",
- "feature": "processor",
- "module": "destination",
- "version": "v0",
- "input": {
- "request": {
- "body": [
- {
- "destination": {
- "ID": "1afmecIpsJm7D72aRTksxyODrwR",
- "Name": "Segment",
- "DestinationDefinition": {
- "ID": "1afjjahf0X5lSyNze7Xh7aqJs11",
- "Name": "SEGMENT",
- "DisplayName": "Segment",
- "Config": {
- "excludeKeys": [],
- "includeKeys": []
- }
- },
- "Config": {
- "writeKey": "abcdefghijklmnopqrstuvwxyz"
- },
- "Enabled": true,
- "Transformations": [],
- "IsProcessorEnabled": true
- },
- "message": {
- "anonymousId": "ac7722c2-ccb6-4ae2-baf6-1effe861f4cd",
- "channel": "web",
- "context": {
- "app": {
- "build": "1.0.0",
- "name": "RudderLabs JavaScript SDK",
- "namespace": "com.rudderlabs.javascript",
- "version": "1.1.1-rc.2"
- },
- "library": {
- "name": "RudderLabs JavaScript SDK",
- "version": "1.1.1-rc.2"
- },
- "locale": "en-GB",
- "os": {
- "name": "",
- "version": ""
- },
- "page": {
- "path": "/tests/html/index4.html",
- "referrer": "",
- "search": "",
- "title": "",
- "url": "http://localhost/tests/html/index4.html"
- },
- "screen": {
- "density": 2
- },
- "traits": {
- "age": 23,
- "email": "testmp@email.com",
- "firstname": "Test Transformer"
- },
- "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/80.0.3987.163 Safari/537.36"
- },
- "event": "test track with property",
- "integrations": {
- "All": true
- },
- "messageId": "584fde02-901a-4964-a4a0-4078b999d5b2",
- "originalTimestamp": "2020-04-17T14:55:31.372Z",
- "properties": {
- "test_prop_1": "test prop",
- "test_prop_2": 1232
- },
- "receivedAt": "2020-04-17T20:25:31.401+05:30",
- "request_ip": "[::1]:57365",
- "sentAt": "2020-04-17T14:55:31.372Z",
- "timestamp": "2020-04-17T20:25:31.401+05:30",
- "type": "track",
- "userId": "user12345"
- }
- }
- ]
- }
- },
- "output": {
- "response": {
- "status": 200,
- "body": [
- {
- "output": {
- "version": "1",
- "type": "REST",
- "userId": "user12345",
- "method": "POST",
- "endpoint": "https://api.segment.io/v1/batch",
- "headers": {
- "Content-Type": "application/json",
- "Authorization": "Basic YWJjZGVmZ2hpamtsbW5vcHFyc3R1dnd4eXo6"
- },
- "params": {},
- "body": {
- "JSON": {
- "batch": [
- {
- "anonymousId": "ac7722c2-ccb6-4ae2-baf6-1effe861f4cd",
- "type": "track",
- "userId": "user12345",
- "event": "test track with property",
- "traits": {
- "age": 23,
- "email": "testmp@email.com",
- "firstname": "Test Transformer"
- },
- "properties": {
- "test_prop_1": "test prop",
- "test_prop_2": 1232
- },
- "timeStamp": "2020-04-17T20:25:31.401+05:30"
- }
- ]
- },
- "XML": {},
- "JSON_ARRAY": {},
- "FORM": {}
- },
- "files": {},
- "statusCode": 200
- },
- "statusCode": 200
- }
- ]
- }
- }
- },
- {
- "name": "segment",
- "description": "Test 3",
- "feature": "processor",
- "module": "destination",
- "version": "v0",
- "input": {
- "request": {
- "body": [
- {
- "destination": {
- "ID": "1afmecIpsJm7D72aRTksxyODrwR",
- "Name": "Segment",
- "DestinationDefinition": {
- "ID": "1afjjahf0X5lSyNze7Xh7aqJs11",
- "Name": "SEGMENT",
- "DisplayName": "Segment",
- "Config": {
- "excludeKeys": [],
- "includeKeys": []
- }
- },
- "Config": {
- "writeKey": "abcdefghijklmnopqrstuvwxyz"
- },
- "Enabled": true,
- "Transformations": [],
- "IsProcessorEnabled": true
- },
- "message": {
- "channel": "web",
- "context": {
- "app": {
- "build": "1.0.0",
- "name": "RudderLabs JavaScript SDK",
- "namespace": "com.rudderlabs.javascript",
- "version": "1.1.1-rc.2"
- },
- "library": {
- "name": "RudderLabs JavaScript SDK",
- "version": "1.1.1-rc.2"
- },
- "locale": "en-GB",
- "os": {
- "name": "",
- "version": ""
- },
- "page": {
- "path": "/tests/html/index4.html",
- "referrer": "",
- "search": "",
- "title": "",
- "url": "http://localhost/tests/html/index4.html"
- },
- "screen": {
- "density": 2
- },
- "traits": {
- "age": 23,
- "email": "testmp@rudderstack.com",
- "firstname": "Test Kafka"
- },
- "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/80.0.3987.163 Safari/537.36"
- },
- "integrations": {
- "All": true
- },
- "messageId": "258b77c6-442d-4bdc-8729-f0e4cef41353",
- "name": "home",
- "originalTimestamp": "2020-04-17T14:55:31.367Z",
- "properties": {
- "path": "/tests/html/index4.html",
- "referrer": "",
- "search": "",
- "title": "",
- "url": "http://localhost/tests/html/index4.html"
- },
- "receivedAt": "2020-04-17T20:25:31.381+05:30",
- "request_ip": "[::1]:57363",
- "sentAt": "2020-04-17T14:55:31.367Z",
- "timestamp": "2020-04-17T20:25:31.381+05:30",
- "type": "page",
- "userId": "user12345"
- }
- }
- ]
- }
- },
- "output": {
- "response": {
- "status": 200,
- "body": [
- {
- "output": {
- "version": "1",
- "type": "REST",
- "method": "POST",
- "endpoint": "https://api.segment.io/v1/batch",
- "headers": {
- "Content-Type": "application/json",
- "Authorization": "Basic YWJjZGVmZ2hpamtsbW5vcHFyc3R1dnd4eXo6"
- },
- "params": {},
- "body": {
- "JSON": {
- "batch": [
- {
- "type": "page",
- "userId": "user12345",
- "traits": {
- "age": 23,
- "email": "testmp@rudderstack.com",
- "firstname": "Test Kafka"
- },
- "properties": {
- "path": "/tests/html/index4.html",
- "referrer": "",
- "search": "",
- "title": "",
- "url": "http://localhost/tests/html/index4.html"
- },
- "timeStamp": "2020-04-17T20:25:31.381+05:30"
- }
- ]
- },
- "XML": {},
- "JSON_ARRAY": {},
- "FORM": {}
- },
- "files": {},
- "userId": "user12345",
- "statusCode": 200
- },
- "statusCode": 200
- }
- ]
- }
- }
- },
- {
- "name": "segment",
- "description": "Test 4",
- "feature": "processor",
- "module": "destination",
- "version": "v0",
- "input": {
- "request": {
- "body": [
- {
- "destination": {
- "ID": "1afmecIpsJm7D72aRTksxyODrwR",
- "Name": "Segment",
- "DestinationDefinition": {
- "ID": "1afjjahf0X5lSyNze7Xh7aqJs11",
- "Name": "SEGMENT",
- "DisplayName": "Segment",
- "Config": {
- "excludeKeys": [],
- "includeKeys": []
- }
- },
- "Config": {
- "writeKey": "abcdefghijklmnopqrstuvwxyz"
- },
- "Enabled": true,
- "Transformations": [],
- "IsProcessorEnabled": true
- },
- "message": {
- "anonymousId": "ac7722c2-ccb6-4ae2-baf6-1effe861f4cd",
- "channel": "web",
- "context": {
- "app": {
- "build": "1.0.0",
- "name": "RudderLabs JavaScript SDK",
- "namespace": "com.rudderlabs.javascript",
- "version": "1.1.1-rc.2"
- },
- "library": {
- "name": "RudderLabs JavaScript SDK",
- "version": "1.1.1-rc.2"
- },
- "locale": "en-GB",
- "os": {
- "name": "",
- "version": ""
- },
- "page": {
- "path": "/tests/html/index4.html",
- "referrer": "",
- "search": "",
- "title": "",
- "url": "http://localhost/tests/html/index4.html"
- },
- "screen": {
- "density": 2
- },
- "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/80.0.3987.163 Safari/537.36"
- },
- "event": "test track with property",
- "integrations": {
- "All": true
- },
- "messageId": "584fde02-901a-4964-a4a0-4078b999d5b2",
- "originalTimestamp": "2020-04-17T14:55:31.372Z",
- "properties": {
- "test_prop_1": "test prop",
- "test_prop_2": 1232
- },
- "receivedAt": "2020-04-17T20:25:31.401+05:30",
- "request_ip": "[::1]:57365",
- "sentAt": "2020-04-17T14:55:31.372Z",
- "timestamp": "2020-04-17T20:25:31.401+05:30",
- "type": "track",
- "userId": "user12345"
- }
- }
- ]
- }
- },
- "output": {
- "response": {
- "status": 200,
- "body": [
- {
- "output": {
- "version": "1",
- "type": "REST",
- "method": "POST",
- "endpoint": "https://api.segment.io/v1/batch",
- "headers": {
- "Content-Type": "application/json",
- "Authorization": "Basic YWJjZGVmZ2hpamtsbW5vcHFyc3R1dnd4eXo6"
- },
- "params": {},
- "body": {
- "JSON": {
- "batch": [
- {
- "anonymousId": "ac7722c2-ccb6-4ae2-baf6-1effe861f4cd",
- "type": "track",
- "userId": "user12345",
- "event": "test track with property",
- "properties": {
- "test_prop_1": "test prop",
- "test_prop_2": 1232
- },
- "timeStamp": "2020-04-17T20:25:31.401+05:30"
- }
- ]
- },
- "XML": {},
- "JSON_ARRAY": {},
- "FORM": {}
- },
- "files": {},
- "userId": "user12345",
- "statusCode": 200
- },
- "statusCode": 200
- }
- ]
- }
- }
- }
-]
+ {
+ name: 'segment',
+ description: 'Test 0',
+ feature: 'processor',
+ module: 'destination',
+ version: 'v0',
+ input: {
+ request: {
+ body: [
+ {
+ destination: {
+ ID: '1afmecIpsJm7D72aRTksxyODrwR',
+ Name: 'Segment',
+ DestinationDefinition: {
+ ID: '1afjjahf0X5lSyNze7Xh7aqJs11',
+ Name: 'SEGMENT',
+ DisplayName: 'Segment',
+ Config: {
+ excludeKeys: [],
+ includeKeys: [],
+ },
+ },
+ Config: {
+ writeKey: 'abcdefghijklmnopqrstuvwxyz',
+ },
+ Enabled: true,
+ Transformations: [],
+ IsProcessorEnabled: true,
+ },
+ message: {
+ anonymousId: 'ac7722c2-ccb6-4ae2-baf6-1effe861f4cd',
+ channel: 'web',
+ context: {
+ app: {
+ build: '1.0.0',
+ name: 'RudderLabs JavaScript SDK',
+ namespace: 'com.rudderlabs.javascript',
+ version: '1.1.1-rc.2',
+ },
+ library: {
+ name: 'RudderLabs JavaScript SDK',
+ version: '1.1.1-rc.2',
+ },
+ locale: 'en-GB',
+ os: {
+ name: '',
+ version: '',
+ },
+ page: {
+ path: '/tests/html/index4.html',
+ referrer: '',
+ search: '',
+ title: '',
+ url: 'http://localhost/tests/html/index4.html',
+ },
+ screen: {
+ density: 2,
+ },
+ traits: {
+ age: 23,
+ email: 'testmp@rudderstack.com',
+ firstname: 'Test Kafka',
+ },
+ userAgent:
+ 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/80.0.3987.163 Safari/537.36',
+ },
+ integrations: {
+ All: true,
+ },
+ messageId: '258b77c6-442d-4bdc-8729-f0e4cef41353',
+ name: 'home',
+ originalTimestamp: '2020-04-17T14:55:31.367Z',
+ properties: {
+ path: '/tests/html/index4.html',
+ referrer: '',
+ search: '',
+ title: '',
+ url: 'http://localhost/tests/html/index4.html',
+ },
+ receivedAt: '2020-04-17T20:25:31.381+05:30',
+ request_ip: '[::1]:57363',
+ sentAt: '2020-04-17T14:55:31.367Z',
+ timestamp: '2020-04-17T20:25:31.381+05:30',
+ type: 'page',
+ userId: 'user12345',
+ },
+ },
+ ],
+ },
+ },
+ output: {
+ response: {
+ status: 200,
+ body: [
+ {
+ output: {
+ version: '1',
+ type: 'REST',
+ method: 'POST',
+ userId: 'user12345',
+ endpoint: 'https://api.segment.io/v1/batch',
+ headers: {
+ 'Content-Type': 'application/json',
+ Authorization: 'Basic YWJjZGVmZ2hpamtsbW5vcHFyc3R1dnd4eXo6',
+ },
+ params: {},
+ body: {
+ JSON: {
+ batch: [
+ {
+ anonymousId: 'ac7722c2-ccb6-4ae2-baf6-1effe861f4cd',
+ type: 'page',
+ userId: 'user12345',
+ traits: {
+ age: 23,
+ email: 'testmp@rudderstack.com',
+ firstname: 'Test Kafka',
+ },
+ properties: {
+ path: '/tests/html/index4.html',
+ referrer: '',
+ search: '',
+ title: '',
+ url: 'http://localhost/tests/html/index4.html',
+ },
+ timeStamp: '2020-04-17T20:25:31.381+05:30',
+ },
+ ],
+ },
+ XML: {},
+ JSON_ARRAY: {},
+ FORM: {},
+ },
+ files: {},
+ statusCode: 200,
+ },
+ statusCode: 200,
+ },
+ ],
+ },
+ },
+ },
+ {
+ name: 'segment',
+ description: 'Test 1',
+ feature: 'processor',
+ module: 'destination',
+ version: 'v0',
+ input: {
+ request: {
+ body: [
+ {
+ destination: {
+ ID: '1afmecIpsJm7D72aRTksxyODrwR',
+ Name: 'Segment',
+ DestinationDefinition: {
+ ID: '1afjjahf0X5lSyNze7Xh7aqJs11',
+ Name: 'SEGMENT',
+ DisplayName: 'Segment',
+ Config: {
+ excludeKeys: [],
+ includeKeys: [],
+ },
+ },
+ Config: {
+ writeKey: 'abcdefghijklmnopqrstuvwxyz',
+ },
+ Enabled: true,
+ Transformations: [],
+ IsProcessorEnabled: true,
+ },
+ message: {
+ anonymousId: 'ac7722c2-ccb6-4ae2-baf6-1effe861f4cd',
+ channel: 'web',
+ context: {
+ app: {
+ build: '1.0.0',
+ name: 'RudderLabs JavaScript SDK',
+ namespace: 'com.rudderlabs.javascript',
+ version: '1.1.1-rc.2',
+ },
+ library: {
+ name: 'RudderLabs JavaScript SDK',
+ version: '1.1.1-rc.2',
+ },
+ locale: 'en-GB',
+ os: {
+ name: '',
+ version: '',
+ },
+ page: {
+ path: '/tests/html/index4.html',
+ referrer: '',
+ search: '',
+ title: '',
+ url: 'http://localhost/tests/html/index4.html',
+ },
+ screen: {
+ density: 2,
+ },
+ traits: {
+ age: 23,
+ email: 'testmp@email.com',
+ firstname: 'Test Transformer',
+ },
+ userAgent:
+ 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/80.0.3987.163 Safari/537.36',
+ },
+ integrations: {
+ All: true,
+ },
+ messageId: '023a3a48-190a-4968-9394-a8e99b81a3c0',
+ originalTimestamp: '2020-04-17T14:55:31.37Z',
+ receivedAt: '2020-04-17T20:25:31.401+05:30',
+ request_ip: '[::1]:57364',
+ sentAt: '2020-04-17T14:55:31.37Z',
+ timestamp: '2020-04-17T20:25:31.401+05:30',
+ type: 'identify',
+ userId: 'user12345',
+ },
+ },
+ ],
+ },
+ },
+ output: {
+ response: {
+ status: 200,
+ body: [
+ {
+ output: {
+ version: '1',
+ type: 'REST',
+ userId: 'user12345',
+ method: 'POST',
+ endpoint: 'https://api.segment.io/v1/batch',
+ headers: {
+ 'Content-Type': 'application/json',
+ Authorization: 'Basic YWJjZGVmZ2hpamtsbW5vcHFyc3R1dnd4eXo6',
+ },
+ params: {},
+ body: {
+ JSON: {
+ batch: [
+ {
+ anonymousId: 'ac7722c2-ccb6-4ae2-baf6-1effe861f4cd',
+ type: 'identify',
+ userId: 'user12345',
+ traits: {
+ age: 23,
+ email: 'testmp@email.com',
+ firstname: 'Test Transformer',
+ },
+ timeStamp: '2020-04-17T20:25:31.401+05:30',
+ },
+ ],
+ },
+ XML: {},
+ JSON_ARRAY: {},
+ FORM: {},
+ },
+ files: {},
+ statusCode: 200,
+ },
+ statusCode: 200,
+ },
+ ],
+ },
+ },
+ },
+ {
+ name: 'segment',
+ description: 'Test 2',
+ feature: 'processor',
+ module: 'destination',
+ version: 'v0',
+ input: {
+ request: {
+ body: [
+ {
+ destination: {
+ ID: '1afmecIpsJm7D72aRTksxyODrwR',
+ Name: 'Segment',
+ DestinationDefinition: {
+ ID: '1afjjahf0X5lSyNze7Xh7aqJs11',
+ Name: 'SEGMENT',
+ DisplayName: 'Segment',
+ Config: {
+ excludeKeys: [],
+ includeKeys: [],
+ },
+ },
+ Config: {
+ writeKey: 'abcdefghijklmnopqrstuvwxyz',
+ },
+ Enabled: true,
+ Transformations: [],
+ IsProcessorEnabled: true,
+ },
+ message: {
+ anonymousId: 'ac7722c2-ccb6-4ae2-baf6-1effe861f4cd',
+ channel: 'web',
+ context: {
+ app: {
+ build: '1.0.0',
+ name: 'RudderLabs JavaScript SDK',
+ namespace: 'com.rudderlabs.javascript',
+ version: '1.1.1-rc.2',
+ },
+ library: {
+ name: 'RudderLabs JavaScript SDK',
+ version: '1.1.1-rc.2',
+ },
+ locale: 'en-GB',
+ os: {
+ name: '',
+ version: '',
+ },
+ page: {
+ path: '/tests/html/index4.html',
+ referrer: '',
+ search: '',
+ title: '',
+ url: 'http://localhost/tests/html/index4.html',
+ },
+ screen: {
+ density: 2,
+ },
+ traits: {
+ age: 23,
+ email: 'testmp@email.com',
+ firstname: 'Test Transformer',
+ },
+ userAgent:
+ 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/80.0.3987.163 Safari/537.36',
+ },
+ event: 'test track with property',
+ integrations: {
+ All: true,
+ },
+ messageId: '584fde02-901a-4964-a4a0-4078b999d5b2',
+ originalTimestamp: '2020-04-17T14:55:31.372Z',
+ properties: {
+ test_prop_1: 'test prop',
+ test_prop_2: 1232,
+ },
+ receivedAt: '2020-04-17T20:25:31.401+05:30',
+ request_ip: '[::1]:57365',
+ sentAt: '2020-04-17T14:55:31.372Z',
+ timestamp: '2020-04-17T20:25:31.401+05:30',
+ type: 'track',
+ userId: 'user12345',
+ },
+ },
+ ],
+ },
+ },
+ output: {
+ response: {
+ status: 200,
+ body: [
+ {
+ output: {
+ version: '1',
+ type: 'REST',
+ userId: 'user12345',
+ method: 'POST',
+ endpoint: 'https://api.segment.io/v1/batch',
+ headers: {
+ 'Content-Type': 'application/json',
+ Authorization: 'Basic YWJjZGVmZ2hpamtsbW5vcHFyc3R1dnd4eXo6',
+ },
+ params: {},
+ body: {
+ JSON: {
+ batch: [
+ {
+ anonymousId: 'ac7722c2-ccb6-4ae2-baf6-1effe861f4cd',
+ type: 'track',
+ userId: 'user12345',
+ event: 'test track with property',
+ traits: {
+ age: 23,
+ email: 'testmp@email.com',
+ firstname: 'Test Transformer',
+ },
+ properties: {
+ test_prop_1: 'test prop',
+ test_prop_2: 1232,
+ },
+ timeStamp: '2020-04-17T20:25:31.401+05:30',
+ },
+ ],
+ },
+ XML: {},
+ JSON_ARRAY: {},
+ FORM: {},
+ },
+ files: {},
+ statusCode: 200,
+ },
+ statusCode: 200,
+ },
+ ],
+ },
+ },
+ },
+ {
+ name: 'segment',
+ description: 'Test 3',
+ feature: 'processor',
+ module: 'destination',
+ version: 'v0',
+ input: {
+ request: {
+ body: [
+ {
+ destination: {
+ ID: '1afmecIpsJm7D72aRTksxyODrwR',
+ Name: 'Segment',
+ DestinationDefinition: {
+ ID: '1afjjahf0X5lSyNze7Xh7aqJs11',
+ Name: 'SEGMENT',
+ DisplayName: 'Segment',
+ Config: {
+ excludeKeys: [],
+ includeKeys: [],
+ },
+ },
+ Config: {
+ writeKey: 'abcdefghijklmnopqrstuvwxyz',
+ },
+ Enabled: true,
+ Transformations: [],
+ IsProcessorEnabled: true,
+ },
+ message: {
+ channel: 'web',
+ context: {
+ app: {
+ build: '1.0.0',
+ name: 'RudderLabs JavaScript SDK',
+ namespace: 'com.rudderlabs.javascript',
+ version: '1.1.1-rc.2',
+ },
+ library: {
+ name: 'RudderLabs JavaScript SDK',
+ version: '1.1.1-rc.2',
+ },
+ locale: 'en-GB',
+ os: {
+ name: '',
+ version: '',
+ },
+ page: {
+ path: '/tests/html/index4.html',
+ referrer: '',
+ search: '',
+ title: '',
+ url: 'http://localhost/tests/html/index4.html',
+ },
+ screen: {
+ density: 2,
+ },
+ traits: {
+ age: 23,
+ email: 'testmp@rudderstack.com',
+ firstname: 'Test Kafka',
+ },
+ userAgent:
+ 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/80.0.3987.163 Safari/537.36',
+ },
+ integrations: {
+ All: true,
+ },
+ messageId: '258b77c6-442d-4bdc-8729-f0e4cef41353',
+ name: 'home',
+ originalTimestamp: '2020-04-17T14:55:31.367Z',
+ properties: {
+ path: '/tests/html/index4.html',
+ referrer: '',
+ search: '',
+ title: '',
+ url: 'http://localhost/tests/html/index4.html',
+ },
+ receivedAt: '2020-04-17T20:25:31.381+05:30',
+ request_ip: '[::1]:57363',
+ sentAt: '2020-04-17T14:55:31.367Z',
+ timestamp: '2020-04-17T20:25:31.381+05:30',
+ type: 'page',
+ userId: 'user12345',
+ },
+ },
+ ],
+ },
+ },
+ output: {
+ response: {
+ status: 200,
+ body: [
+ {
+ output: {
+ version: '1',
+ type: 'REST',
+ method: 'POST',
+ endpoint: 'https://api.segment.io/v1/batch',
+ headers: {
+ 'Content-Type': 'application/json',
+ Authorization: 'Basic YWJjZGVmZ2hpamtsbW5vcHFyc3R1dnd4eXo6',
+ },
+ params: {},
+ body: {
+ JSON: {
+ batch: [
+ {
+ type: 'page',
+ userId: 'user12345',
+ traits: {
+ age: 23,
+ email: 'testmp@rudderstack.com',
+ firstname: 'Test Kafka',
+ },
+ properties: {
+ path: '/tests/html/index4.html',
+ referrer: '',
+ search: '',
+ title: '',
+ url: 'http://localhost/tests/html/index4.html',
+ },
+ timeStamp: '2020-04-17T20:25:31.381+05:30',
+ },
+ ],
+ },
+ XML: {},
+ JSON_ARRAY: {},
+ FORM: {},
+ },
+ files: {},
+ userId: 'user12345',
+ statusCode: 200,
+ },
+ statusCode: 200,
+ },
+ ],
+ },
+ },
+ },
+ {
+ name: 'segment',
+ description: 'Test 4',
+ feature: 'processor',
+ module: 'destination',
+ version: 'v0',
+ input: {
+ request: {
+ body: [
+ {
+ destination: {
+ ID: '1afmecIpsJm7D72aRTksxyODrwR',
+ Name: 'Segment',
+ DestinationDefinition: {
+ ID: '1afjjahf0X5lSyNze7Xh7aqJs11',
+ Name: 'SEGMENT',
+ DisplayName: 'Segment',
+ Config: {
+ excludeKeys: [],
+ includeKeys: [],
+ },
+ },
+ Config: {
+ writeKey: 'abcdefghijklmnopqrstuvwxyz',
+ },
+ Enabled: true,
+ Transformations: [],
+ IsProcessorEnabled: true,
+ },
+ message: {
+ anonymousId: 'ac7722c2-ccb6-4ae2-baf6-1effe861f4cd',
+ channel: 'web',
+ context: {
+ app: {
+ build: '1.0.0',
+ name: 'RudderLabs JavaScript SDK',
+ namespace: 'com.rudderlabs.javascript',
+ version: '1.1.1-rc.2',
+ },
+ library: {
+ name: 'RudderLabs JavaScript SDK',
+ version: '1.1.1-rc.2',
+ },
+ locale: 'en-GB',
+ os: {
+ name: '',
+ version: '',
+ },
+ page: {
+ path: '/tests/html/index4.html',
+ referrer: '',
+ search: '',
+ title: '',
+ url: 'http://localhost/tests/html/index4.html',
+ },
+ screen: {
+ density: 2,
+ },
+ userAgent:
+ 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/80.0.3987.163 Safari/537.36',
+ },
+ event: 'test track with property',
+ integrations: {
+ All: true,
+ },
+ messageId: '584fde02-901a-4964-a4a0-4078b999d5b2',
+ originalTimestamp: '2020-04-17T14:55:31.372Z',
+ properties: {
+ test_prop_1: 'test prop',
+ test_prop_2: 1232,
+ },
+ receivedAt: '2020-04-17T20:25:31.401+05:30',
+ request_ip: '[::1]:57365',
+ sentAt: '2020-04-17T14:55:31.372Z',
+ timestamp: '2020-04-17T20:25:31.401+05:30',
+ type: 'track',
+ userId: 'user12345',
+ },
+ },
+ ],
+ },
+ },
+ output: {
+ response: {
+ status: 200,
+ body: [
+ {
+ output: {
+ version: '1',
+ type: 'REST',
+ method: 'POST',
+ endpoint: 'https://api.segment.io/v1/batch',
+ headers: {
+ 'Content-Type': 'application/json',
+ Authorization: 'Basic YWJjZGVmZ2hpamtsbW5vcHFyc3R1dnd4eXo6',
+ },
+ params: {},
+ body: {
+ JSON: {
+ batch: [
+ {
+ anonymousId: 'ac7722c2-ccb6-4ae2-baf6-1effe861f4cd',
+ type: 'track',
+ userId: 'user12345',
+ event: 'test track with property',
+ properties: {
+ test_prop_1: 'test prop',
+ test_prop_2: 1232,
+ },
+ timeStamp: '2020-04-17T20:25:31.401+05:30',
+ },
+ ],
+ },
+ XML: {},
+ JSON_ARRAY: {},
+ FORM: {},
+ },
+ files: {},
+ userId: 'user12345',
+ statusCode: 200,
+ },
+ statusCode: 200,
+ },
+ ],
+ },
+ },
+ },
+];
diff --git a/test/integrations/destinations/snapchat_custom_audience/dataDelivery/data.ts b/test/integrations/destinations/snapchat_custom_audience/dataDelivery/data.ts
index 1903938660..d8ec365a82 100644
--- a/test/integrations/destinations/snapchat_custom_audience/dataDelivery/data.ts
+++ b/test/integrations/destinations/snapchat_custom_audience/dataDelivery/data.ts
@@ -1,222 +1,206 @@
export const data = [
{
- "name": "snapchat_custom_audience",
- "description": "Test 0",
- "feature": "dataDelivery",
- "module": "destination",
- "version": "v0",
- "input": {
- "request": {
- "body": {
- "version": "1",
- "type": "REST",
- "method": "POST",
- "endpoint": "https://adsapi.snapchat.com/v1/segments/123/users",
- "headers": {
- "Authorization": "Bearer abcd123",
- "Content-Type": "application/json"
+ name: 'snapchat_custom_audience',
+ description: 'Test 0',
+ feature: 'dataDelivery',
+ module: 'destination',
+ version: 'v0',
+ input: {
+ request: {
+ body: {
+ version: '1',
+ type: 'REST',
+ method: 'POST',
+ endpoint: 'https://adsapi.snapchat.com/v1/segments/123/users',
+ headers: {
+ Authorization: 'Bearer abcd123',
+ 'Content-Type': 'application/json',
},
- "body": {
- "JSON": {
- "users": [
+ body: {
+ JSON: {
+ users: [
{
- "schema": [
- "EMAIL_SHA256"
- ],
- "data": [
- [
- "938758751f5af66652a118e26503af824404bc13acd1cb7642ddff99916f0e1c"
- ]
- ]
- }
- ]
+ schema: ['EMAIL_SHA256'],
+ data: [['938758751f5af66652a118e26503af824404bc13acd1cb7642ddff99916f0e1c']],
+ },
+ ],
},
- "JSON_ARRAY": {},
- "XML": {},
- "FORM": {}
+ JSON_ARRAY: {},
+ XML: {},
+ FORM: {},
+ },
+ files: {},
+ params: {
+ destination: 'snapchat_custom_audience',
},
- "files": {},
- "params": {
- "destination": "snapchat_custom_audience"
- }
},
- "method": "POST"
- }
+ method: 'POST',
+ },
},
- "output": {
- "response": {
- "status": 200,
- "body": {
- "output": {
- "status": 200,
- "message": "Request Processed Successfully",
- "destinationResponse": {
- "response": {
- "request_status": "SUCCESS",
- "request_id": "12345",
- "users": [
+ output: {
+ response: {
+ status: 200,
+ body: {
+ output: {
+ status: 200,
+ message: 'Request Processed Successfully',
+ destinationResponse: {
+ response: {
+ request_status: 'SUCCESS',
+ request_id: '12345',
+ users: [
{
- "sub_request_status": "SUCCESS",
- "user": {
- "number_uploaded_users": 1
- }
- }
- ]
+ sub_request_status: 'SUCCESS',
+ user: {
+ number_uploaded_users: 1,
+ },
+ },
+ ],
},
- "status": 200
- }
- }
- }
- }
- }
+ status: 200,
+ },
+ },
+ },
+ },
+ },
},
{
- "name": "snapchat_custom_audience",
- "description": "Test 1",
- "feature": "dataDelivery",
- "module": "destination",
- "version": "v0",
- "input": {
- "request": {
- "body": {
- "version": "1",
- "type": "REST",
- "method": "POST",
- "endpoint": "https://adsapi.snapchat.com/v1/segments/456/users",
- "headers": {
- "Authorization": "Bearer abcd123",
- "Content-Type": "application/json"
+ name: 'snapchat_custom_audience',
+ description: 'Test 1',
+ feature: 'dataDelivery',
+ module: 'destination',
+ version: 'v0',
+ input: {
+ request: {
+ body: {
+ version: '1',
+ type: 'REST',
+ method: 'POST',
+ endpoint: 'https://adsapi.snapchat.com/v1/segments/456/users',
+ headers: {
+ Authorization: 'Bearer abcd123',
+ 'Content-Type': 'application/json',
},
- "body": {
- "JSON": {
- "users": [
+ body: {
+ JSON: {
+ users: [
{
- "schema": [
- "EMAIL_SHA256"
- ],
- "data": [
- [
- "938758751f5af66652a118e26503af824404bc13acd1cb7642ddff99916f0e1c"
- ]
- ]
- }
- ]
+ schema: ['EMAIL_SHA256'],
+ data: [['938758751f5af66652a118e26503af824404bc13acd1cb7642ddff99916f0e1c']],
+ },
+ ],
},
- "JSON_ARRAY": {},
- "XML": {},
- "FORM": {}
+ JSON_ARRAY: {},
+ XML: {},
+ FORM: {},
+ },
+ files: {},
+ params: {
+ destination: 'snapchat_custom_audience',
},
- "files": {},
- "params": {
- "destination": "snapchat_custom_audience"
- }
},
- "method": "POST"
- }
+ method: 'POST',
+ },
},
- "output": {
- "response": {
- "status": 500,
- "body": {
- "output": {
- "status": 500,
- "destinationResponse": {
- "response": "unauthorized",
- "status": 401
+ output: {
+ response: {
+ status: 500,
+ body: {
+ output: {
+ status: 500,
+ destinationResponse: {
+ response: 'unauthorized',
+ status: 401,
},
- "message": "Failed with unauthorized during snapchat_custom_audience response transformation",
- "statTags": {
- "destType": "SNAPCHAT_CUSTOM_AUDIENCE",
- "errorCategory": "network",
- "destinationId": "Non-determininable",
- "workspaceId": "Non-determininable",
- "errorType": "retryable",
- "feature": "dataDelivery",
- "implementation": "native",
- "module": "destination"
+ message:
+ 'Failed with unauthorized during snapchat_custom_audience response transformation',
+ statTags: {
+ destType: 'SNAPCHAT_CUSTOM_AUDIENCE',
+ errorCategory: 'network',
+ destinationId: 'Non-determininable',
+ workspaceId: 'Non-determininable',
+ errorType: 'retryable',
+ feature: 'dataDelivery',
+ implementation: 'native',
+ module: 'destination',
},
- "authErrorCategory": "REFRESH_TOKEN"
- }
- }
- }
- }
+ authErrorCategory: 'REFRESH_TOKEN',
+ },
+ },
+ },
+ },
},
{
- "name": "snapchat_custom_audience",
- "description": "Test 2",
- "feature": "dataDelivery",
- "module": "destination",
- "version": "v0",
- "input": {
- "request": {
- "body": {
- "version": "1",
- "type": "REST",
- "method": "DELETE",
- "endpoint": "https://adsapi.snapchat.com/v1/segments/789/users",
- "headers": {
- "Authorization": "Bearer abcd123",
- "Content-Type": "application/json"
+ name: 'snapchat_custom_audience',
+ description: 'Test 2',
+ feature: 'dataDelivery',
+ module: 'destination',
+ version: 'v0',
+ input: {
+ request: {
+ body: {
+ version: '1',
+ type: 'REST',
+ method: 'DELETE',
+ endpoint: 'https://adsapi.snapchat.com/v1/segments/789/users',
+ headers: {
+ Authorization: 'Bearer abcd123',
+ 'Content-Type': 'application/json',
},
- "body": {
- "JSON": {
- "users": [
+ body: {
+ JSON: {
+ users: [
{
- "id": "123456",
- "schema": [
- "EMAIL_SHA256"
- ],
- "data": [
- [
- "938758751f5af66652a118e26503af824404bc13acd1cb7642ddff99916f0e1c"
- ]
- ]
- }
- ]
+ id: '123456',
+ schema: ['EMAIL_SHA256'],
+ data: [['938758751f5af66652a118e26503af824404bc13acd1cb7642ddff99916f0e1c']],
+ },
+ ],
},
- "JSON_ARRAY": {},
- "XML": {},
- "FORM": {}
+ JSON_ARRAY: {},
+ XML: {},
+ FORM: {},
+ },
+ files: {},
+ params: {
+ destination: 'snapchat_custom_audience',
},
- "files": {},
- "params": {
- "destination": "snapchat_custom_audience"
- }
},
- "method": "POST"
- }
+ method: 'POST',
+ },
},
- "output": {
- "response": {
- "status": 400,
- "body": {
- "output": {
- "authErrorCategory": "AUTH_STATUS_INACTIVE",
- "status": 400,
- "destinationResponse": {
- "response": {
- "request_status": "ERROR",
- "request_id": "98e2a602-3cf4-4596-a8f9-7f034161f89a",
- "debug_message": "Caller does not have permission",
- "display_message": "We're sorry, but the requested resource is not available at this time",
- "error_code": "E3002"
+ output: {
+ response: {
+ status: 400,
+ body: {
+ output: {
+ authErrorCategory: 'AUTH_STATUS_INACTIVE',
+ status: 400,
+ destinationResponse: {
+ response: {
+ request_status: 'ERROR',
+ request_id: '98e2a602-3cf4-4596-a8f9-7f034161f89a',
+ debug_message: 'Caller does not have permission',
+ display_message:
+ "We're sorry, but the requested resource is not available at this time",
+ error_code: 'E3002',
},
- "status": 403
+ status: 403,
},
- "message": "undefined during snapchat_custom_audience response transformation",
- "statTags": {
- "destType": "SNAPCHAT_CUSTOM_AUDIENCE",
- "errorCategory": "network",
- "destinationId": "Non-determininable",
- "workspaceId": "Non-determininable",
- "errorType": "aborted",
- "feature": "dataDelivery",
- "implementation": "native",
- "module": "destination"
- }
- }
- }
- }
- }
- }
-]
+ message: 'undefined during snapchat_custom_audience response transformation',
+ statTags: {
+ destType: 'SNAPCHAT_CUSTOM_AUDIENCE',
+ errorCategory: 'network',
+ destinationId: 'Non-determininable',
+ workspaceId: 'Non-determininable',
+ errorType: 'aborted',
+ feature: 'dataDelivery',
+ implementation: 'native',
+ module: 'destination',
+ },
+ },
+ },
+ },
+ },
+ },
+];
diff --git a/test/integrations/destinations/snapchat_custom_audience/processor/data.ts b/test/integrations/destinations/snapchat_custom_audience/processor/data.ts
index a73a959699..546f056fa4 100644
--- a/test/integrations/destinations/snapchat_custom_audience/processor/data.ts
+++ b/test/integrations/destinations/snapchat_custom_audience/processor/data.ts
@@ -1,1404 +1,1351 @@
export const data = [
- {
- "name": "snapchat_custom_audience",
- "description": "Test 0",
- "feature": "processor",
- "module": "destination",
- "version": "v0",
- "input": {
- "request": {
- "body": [
- {
- "metadata": {
- "secret": {
- "access_token": "dummyAccessToken",
- "refresh_token": "dummyRefreshToken",
- "developer_token": "dummyDeveloperToken"
- }
- },
- "destination": {
- "Config": {
- "segmentId": "123",
- "disableHashing": false,
- "schema": "email"
- }
- },
- "message": {
- "userId": "user 1",
- "anonymousId": "anon-id-new",
- "event": "event1",
- "type": "audiencelist",
- "properties": {
- "listData": {
- "add": [
- {
- "email": "test@abc.com",
- "phone": "@09876543210",
- "firstName": "test",
- "lastName": "rudderlabs",
- "country": "US",
- "postalCode": "1245"
- }
- ]
- },
- "enablePartialFailure": true
- },
- "context": {
- "ip": "14.5.67.21",
- "library": {
- "name": "http"
- }
- },
- "timestamp": "2020-02-02T00:23:09.544Z"
- }
- }
- ]
- }
- },
- "output": {
- "response": {
- "status": 200,
- "body": [
- {
- "output": {
- "version": "1",
- "type": "REST",
- "method": "POST",
- "endpoint": "https://adsapi.snapchat.com/v1/segments/123/users",
- "headers": {
- "Authorization": "Bearer dummyAccessToken",
- "Content-Type": "application/json"
- },
- "params": {},
- "body": {
- "JSON": {
- "users": [
- {
- "schema": [
- "EMAIL_SHA256"
- ],
- "data": [
- [
- "d3142c8f9c9129484daf28df80cc5c955791efed5e69afabb603bc8cb9ffd419"
- ]
- ]
- }
- ]
- },
- "JSON_ARRAY": {},
- "XML": {},
- "FORM": {}
- },
- "files": {},
- "userId": ""
- },
- "metadata": {
- "secret": {
- "access_token": "dummyAccessToken",
- "refresh_token": "dummyRefreshToken",
- "developer_token": "dummyDeveloperToken"
- }
- },
- "statusCode": 200
- }
- ]
- }
- }
- },
- {
- "name": "snapchat_custom_audience",
- "description": "Test 1",
- "feature": "processor",
- "module": "destination",
- "version": "v0",
- "input": {
- "request": {
- "body": [
- {
- "metadata": {
- "secret": {
- "access_token": "dummyAccessToken",
- "refresh_token": "dummyRefreshToken",
- "developer_token": "dummyDeveloperToken"
- }
- },
- "destination": {
- "Config": {
- "segmentId": "123",
- "disableHashing": true,
- "schema": "email"
- }
- },
- "message": {
- "userId": "user 1",
- "anonymousId": "anon-id-new",
- "event": "event1",
- "type": "audiencelist",
- "properties": {
- "listData": {
- "remove": [
- {
- "email": "d3142c8f9c9129484daf28df80cc5c955791efed5e69afabb603bc8cb9ffd419",
- "phone": "@09876543210",
- "firstName": "test",
- "lastName": "rudderlabs",
- "country": "US",
- "postalCode": "1245"
- }
- ]
- },
- "enablePartialFailure": true
- },
- "context": {
- "ip": "14.5.67.21",
- "library": {
- "name": "http"
- }
- },
- "timestamp": "2020-02-02T00:23:09.544Z"
- }
- }
- ]
- }
- },
- "output": {
- "response": {
- "status": 200,
- "body": [
- {
- "output": {
- "version": "1",
- "type": "REST",
- "method": "DELETE",
- "endpoint": "https://adsapi.snapchat.com/v1/segments/123/users",
- "headers": {
- "Authorization": "Bearer dummyAccessToken",
- "Content-Type": "application/json"
- },
- "params": {},
- "body": {
- "JSON": {
- "users": [
- {
- "schema": [
- "EMAIL_SHA256"
- ],
- "data": [
- [
- "d3142c8f9c9129484daf28df80cc5c955791efed5e69afabb603bc8cb9ffd419"
- ]
- ],
- "id": "123"
- }
- ]
- },
- "JSON_ARRAY": {},
- "XML": {},
- "FORM": {}
- },
- "files": {},
- "userId": ""
- },
- "metadata": {
- "secret": {
- "access_token": "dummyAccessToken",
- "refresh_token": "dummyRefreshToken",
- "developer_token": "dummyDeveloperToken"
- }
- },
- "statusCode": 200
- }
- ]
- }
- }
- },
- {
- "name": "snapchat_custom_audience",
- "description": "Test 2",
- "feature": "processor",
- "module": "destination",
- "version": "v0",
- "input": {
- "request": {
- "body": [
- {
- "metadata": {
- "secret": {
- "access_token": "dummyAccessToken",
- "refresh_token": "dummyRefreshToken",
- "developer_token": "dummyDeveloperToken"
- }
- },
- "destination": {
- "Config": {
- "segmentId": "123",
- "disableHashing": false,
- "schema": "email"
- }
- },
- "message": {
- "userId": "user 1",
- "anonymousId": "anon-id-new",
- "event": "event1",
- "type": "audiencelist",
- "properties": {
- "listData": {
- "add": [
- {
- "email": "test@abc.com",
- "phone": "@09876543210",
- "firstName": "test",
- "lastName": "rudderlabs",
- "country": "US",
- "postalCode": "1245"
- }
- ],
- "remove": [
- {
- "email": "test@abc.com",
- "phone": "@09876543210",
- "firstName": "test",
- "lastName": "rudderlabs",
- "country": "US",
- "postalCode": "1245"
- }
- ]
- },
- "enablePartialFailure": true
- },
- "context": {
- "ip": "14.5.67.21",
- "library": {
- "name": "http"
- }
- },
- "timestamp": "2020-02-02T00:23:09.544Z"
- }
- }
- ]
- }
- },
- "output": {
- "response": {
- "status": 200,
- "body": [
- {
- "output": {
- "version": "1",
- "type": "REST",
- "method": "POST",
- "endpoint": "https://adsapi.snapchat.com/v1/segments/123/users",
- "headers": {
- "Authorization": "Bearer dummyAccessToken",
- "Content-Type": "application/json"
- },
- "params": {},
- "body": {
- "JSON": {
- "users": [
- {
- "schema": [
- "EMAIL_SHA256"
- ],
- "data": [
- [
- "d3142c8f9c9129484daf28df80cc5c955791efed5e69afabb603bc8cb9ffd419"
- ]
- ]
- }
- ]
- },
- "JSON_ARRAY": {},
- "XML": {},
- "FORM": {}
- },
- "files": {},
- "userId": ""
- },
- "metadata": {
- "secret": {
- "access_token": "dummyAccessToken",
- "refresh_token": "dummyRefreshToken",
- "developer_token": "dummyDeveloperToken"
- }
- },
- "statusCode": 200
- },
- {
- "output": {
- "version": "1",
- "type": "REST",
- "method": "DELETE",
- "endpoint": "https://adsapi.snapchat.com/v1/segments/123/users",
- "headers": {
- "Authorization": "Bearer dummyAccessToken",
- "Content-Type": "application/json"
- },
- "params": {},
- "body": {
- "JSON": {
- "users": [
- {
- "schema": [
- "EMAIL_SHA256"
- ],
- "data": [
- [
- "d3142c8f9c9129484daf28df80cc5c955791efed5e69afabb603bc8cb9ffd419"
- ]
- ],
- "id": "123"
- }
- ]
- },
- "JSON_ARRAY": {},
- "XML": {},
- "FORM": {}
- },
- "files": {},
- "userId": ""
- },
- "metadata": {
- "secret": {
- "access_token": "dummyAccessToken",
- "refresh_token": "dummyRefreshToken",
- "developer_token": "dummyDeveloperToken"
- }
- },
- "statusCode": 200
- }
- ]
- }
- }
- },
- {
- "name": "snapchat_custom_audience",
- "description": "Test 3",
- "feature": "processor",
- "module": "destination",
- "version": "v0",
- "input": {
- "request": {
- "body": [
- {
- "metadata": {
- "secret": {
- "access_token": "dummyAccessToken",
- "refresh_token": "dummyRefreshToken",
- "developer_token": "dummyDeveloperToken"
- }
- },
- "destination": {
- "Config": {
- "segmentId": "123",
- "disableHashing": false,
- "schema": "email"
- }
- },
- "message": {
- "userId": "user 1",
- "anonymousId": "anon-id-new",
- "event": "event1",
- "type": "audiencelist",
- "properties": {
- "listData": {
- "add": [
- {
- "email": "test@abc.com",
- "phone": "@09876543210",
- "firstName": "test",
- "lastName": "rudderlabs",
- "country": "US",
- "postalCode": "1245"
- },
- {
- "email": "test@rudderstack.com",
- "phone": "@09876543210",
- "firstName": "rudderlabs",
- "lastName": "rudderlabs",
- "country": "US",
- "postalCode": "1245"
- }
- ]
- },
- "enablePartialFailure": true
- },
- "context": {
- "ip": "14.5.67.21",
- "library": {
- "name": "http"
- }
- },
- "timestamp": "2020-02-02T00:23:09.544Z"
- }
- }
- ]
- }
- },
- "output": {
- "response": {
- "status": 200,
- "body": [
- {
- "output": {
- "version": "1",
- "type": "REST",
- "method": "POST",
- "endpoint": "https://adsapi.snapchat.com/v1/segments/123/users",
- "headers": {
- "Authorization": "Bearer dummyAccessToken",
- "Content-Type": "application/json"
- },
- "params": {},
- "body": {
- "JSON": {
- "users": [
- {
- "schema": [
- "EMAIL_SHA256"
- ],
- "data": [
- [
- "d3142c8f9c9129484daf28df80cc5c955791efed5e69afabb603bc8cb9ffd419"
- ],
- [
- "1c5e54849f5c711ce38fa60716fbbe44bff478f9ca250897b39cdfc2438cd1bd"
- ]
- ]
- }
- ]
- },
- "JSON_ARRAY": {},
- "XML": {},
- "FORM": {}
- },
- "files": {},
- "userId": ""
- },
- "metadata": {
- "secret": {
- "access_token": "dummyAccessToken",
- "refresh_token": "dummyRefreshToken",
- "developer_token": "dummyDeveloperToken"
- }
- },
- "statusCode": 200
- }
- ]
- }
- }
- },
- {
- "name": "snapchat_custom_audience",
- "description": "Test 4",
- "feature": "processor",
- "module": "destination",
- "version": "v0",
- "input": {
- "request": {
- "body": [
- {
- "metadata": {
- "secret": {
- "access_token": "dummyAccessToken",
- "refresh_token": "dummyRefreshToken",
- "developer_token": "dummyDeveloperToken"
- }
- },
- "destination": {
- "Config": {
- "segmentId": "123",
- "disableHashing": false,
- "schema": "email"
- }
- },
- "message": {
- "userId": "user 1",
- "anonymousId": "anon-id-new",
- "event": "event1",
- "type": "audiencelist",
- "properties": {
- "listData": {
- "remove": [
- {
- "email": "test@abc.com",
- "phone": "@09876543210",
- "firstName": "test",
- "lastName": "rudderlabs",
- "country": "US",
- "postalCode": "1245"
- },
- {
- "email": "test@rudderstack.com",
- "phone": "@09876543210",
- "firstName": "rudderlabs",
- "lastName": "rudderlabs",
- "country": "US",
- "postalCode": "1245"
- }
- ]
- },
- "enablePartialFailure": true
- },
- "context": {
- "ip": "14.5.67.21",
- "library": {
- "name": "http"
- }
- },
- "timestamp": "2020-02-02T00:23:09.544Z"
- }
- }
- ]
- }
- },
- "output": {
- "response": {
- "status": 200,
- "body": [
- {
- "output": {
- "version": "1",
- "type": "REST",
- "method": "DELETE",
- "endpoint": "https://adsapi.snapchat.com/v1/segments/123/users",
- "headers": {
- "Authorization": "Bearer dummyAccessToken",
- "Content-Type": "application/json"
- },
- "params": {},
- "body": {
- "JSON": {
- "users": [
- {
- "schema": [
- "EMAIL_SHA256"
- ],
- "data": [
- [
- "d3142c8f9c9129484daf28df80cc5c955791efed5e69afabb603bc8cb9ffd419"
- ],
- [
- "1c5e54849f5c711ce38fa60716fbbe44bff478f9ca250897b39cdfc2438cd1bd"
- ]
- ],
- "id": "123"
- }
- ]
- },
- "JSON_ARRAY": {},
- "XML": {},
- "FORM": {}
- },
- "files": {},
- "userId": ""
- },
- "metadata": {
- "secret": {
- "access_token": "dummyAccessToken",
- "refresh_token": "dummyRefreshToken",
- "developer_token": "dummyDeveloperToken"
- }
- },
- "statusCode": 200
- }
- ]
- }
- }
- },
- {
- "name": "snapchat_custom_audience",
- "description": "Test 5",
- "feature": "processor",
- "module": "destination",
- "version": "v0",
- "input": {
- "request": {
- "body": [
- {
- "metadata": {
- "secret": {
- "access_token": "dummyAccessToken",
- "refresh_token": "dummyRefreshToken",
- "developer_token": "dummyDeveloperToken"
- }
- },
- "destination": {
- "Config": {
- "segmentId": "123",
- "disableHashing": false,
- "schema": "email"
- }
- },
- "message": {
- "userId": "user 1",
- "anonymousId": "anon-id-new",
- "event": "event1",
- "type": "audience",
- "properties": {
- "listData": {
- "add": [
- {
- "email": "test@rudderstack.com",
- "phone": "@09876543210",
- "firstName": "rudderlabs",
- "lastName": "rudderlabs",
- "country": "US",
- "postalCode": "1245"
- }
- ]
- },
- "enablePartialFailure": true
- },
- "context": {
- "ip": "14.5.67.21",
- "library": {
- "name": "http"
- }
- },
- "timestamp": "2020-02-02T00:23:09.544Z"
- }
- }
- ]
- }
- },
- "output": {
- "response": {
- "status": 200,
- "body": [
- {
- "metadata": {
- "secret": {
- "access_token": "dummyAccessToken",
- "refresh_token": "dummyRefreshToken",
- "developer_token": "dummyDeveloperToken"
- }
- },
- "statusCode": 400,
- "error": "Event type audience is not supported",
- "statTags": {
- "errorCategory": "dataValidation",
- "errorType": "instrumentation",
- "destType": "SNAPCHAT_CUSTOM_AUDIENCE",
- "module": "destination",
- "implementation": "native",
- "feature": "processor"
- }
- }
- ]
- }
- }
- },
- {
- "name": "snapchat_custom_audience",
- "description": "Test 6",
- "feature": "processor",
- "module": "destination",
- "version": "v0",
- "input": {
- "request": {
- "body": [
- {
- "metadata": {
- "secret": {
- "access_token": "dummyAccessToken",
- "refresh_token": "dummyRefreshToken",
- "developer_token": "dummyDeveloperToken"
- }
- },
- "destination": {
- "Config": {
- "segmentId": "123",
- "disableHashing": false,
- "schema": "email"
- }
- },
- "message": {
- "userId": "user 1",
- "anonymousId": "anon-id-new",
- "event": "event1",
- "properties": {
- "listData": {
- "add": [
- {
- "email": "test@rudderstack.com",
- "phone": "@09876543210",
- "firstName": "rudderlabs",
- "lastName": "rudderlabs",
- "country": "US",
- "postalCode": "1245"
- }
- ]
- },
- "enablePartialFailure": true
- },
- "context": {
- "ip": "14.5.67.21",
- "library": {
- "name": "http"
- }
- },
- "timestamp": "2020-02-02T00:23:09.544Z"
- }
- }
- ]
- }
- },
- "output": {
- "response": {
- "status": 200,
- "body": [
- {
- "metadata": {
- "secret": {
- "access_token": "dummyAccessToken",
- "refresh_token": "dummyRefreshToken",
- "developer_token": "dummyDeveloperToken"
- }
- },
- "statusCode": 400,
- "error": "Event type is required",
- "statTags": {
- "errorCategory": "dataValidation",
- "errorType": "instrumentation",
- "destType": "SNAPCHAT_CUSTOM_AUDIENCE",
- "module": "destination",
- "implementation": "native",
- "feature": "processor"
- }
- }
- ]
- }
- }
- },
- {
- "name": "snapchat_custom_audience",
- "description": "Test 7",
- "feature": "processor",
- "module": "destination",
- "version": "v0",
- "input": {
- "request": {
- "body": [
- {
- "metadata": {
- "secret": {
- "access_token": "dummyAccessToken",
- "refresh_token": "dummyRefreshToken",
- "developer_token": "dummyDeveloperToken"
- }
- },
- "destination": {
- "Config": {
- "segmentId": "123",
- "disableHashing": false,
- "schema": "email"
- }
- },
- "message": {
- "userId": "user 1",
- "anonymousId": "anon-id-new",
- "event": "event1",
- "type": "audiencelist",
- "context": {
- "ip": "14.5.67.21",
- "library": {
- "name": "http"
- }
- },
- "timestamp": "2020-02-02T00:23:09.544Z"
- }
- }
- ]
- }
- },
- "output": {
- "response": {
- "status": 200,
- "body": [
- {
- "metadata": {
- "secret": {
- "access_token": "dummyAccessToken",
- "refresh_token": "dummyRefreshToken",
- "developer_token": "dummyDeveloperToken"
- }
- },
- "statusCode": 400,
- "error": "Message properties is not present. Aborting message",
- "statTags": {
- "errorCategory": "dataValidation",
- "errorType": "instrumentation",
- "destType": "SNAPCHAT_CUSTOM_AUDIENCE",
- "module": "destination",
- "implementation": "native",
- "feature": "processor"
- }
- }
- ]
- }
- }
- },
- {
- "name": "snapchat_custom_audience",
- "description": "Test 8",
- "feature": "processor",
- "module": "destination",
- "version": "v0",
- "input": {
- "request": {
- "body": [
- {
- "metadata": {
- "secret": {
- "access_token": "dummyAccessToken",
- "refresh_token": "dummyRefreshToken",
- "developer_token": "dummyDeveloperToken"
- }
- },
- "destination": {
- "Config": {
- "segmentId": "123",
- "disableHashing": false,
- "schema": "email"
- }
- },
- "message": {
- "userId": "user 1",
- "anonymousId": "anon-id-new",
- "event": "event1",
- "type": "audiencelist",
- "properties": {
- "enablePartialFailure": true
- },
- "context": {
- "ip": "14.5.67.21",
- "library": {
- "name": "http"
- }
- },
- "timestamp": "2020-02-02T00:23:09.544Z"
- }
- }
- ]
- }
- },
- "output": {
- "response": {
- "status": 200,
- "body": [
- {
- "metadata": {
- "secret": {
- "access_token": "dummyAccessToken",
- "refresh_token": "dummyRefreshToken",
- "developer_token": "dummyDeveloperToken"
- }
- },
- "statusCode": 400,
- "error": "listData is not present inside properties. Aborting message",
- "statTags": {
- "errorCategory": "dataValidation",
- "errorType": "instrumentation",
- "destType": "SNAPCHAT_CUSTOM_AUDIENCE",
- "module": "destination",
- "implementation": "native",
- "feature": "processor"
- }
- }
- ]
- }
- }
- },
- {
- "name": "snapchat_custom_audience",
- "description": "Test 9",
- "feature": "processor",
- "module": "destination",
- "version": "v0",
- "input": {
- "request": {
- "body": [
- {
- "metadata": {
- "secret": {
- "access_token": "dummyAccessToken",
- "refresh_token": "dummyRefreshToken",
- "developer_token": "dummyDeveloperToken"
- }
- },
- "destination": {
- "Config": {
- "segmentId": "123",
- "disableHashing": false,
- "schema": "email"
- }
- },
- "message": {
- "userId": "user 1",
- "anonymousId": "anon-id-new",
- "event": "event1",
- "type": "audiencelist",
- "properties": {
- "listData": {
- "abc": "123"
- },
- "enablePartialFailure": true
- },
- "context": {
- "ip": "14.5.67.21",
- "library": {
- "name": "http"
- }
- },
- "timestamp": "2020-02-02T00:23:09.544Z"
- }
- }
- ]
- }
- },
- "output": {
- "response": {
- "status": 200,
- "body": [
- {
- "metadata": {
- "secret": {
- "access_token": "dummyAccessToken",
- "refresh_token": "dummyRefreshToken",
- "developer_token": "dummyDeveloperToken"
- }
- },
- "statusCode": 400,
- "error": "Neither 'add' nor 'remove' property is present inside 'listData'. Aborting message",
- "statTags": {
- "errorCategory": "dataValidation",
- "errorType": "instrumentation",
- "destType": "SNAPCHAT_CUSTOM_AUDIENCE",
- "module": "destination",
- "implementation": "native",
- "feature": "processor"
- }
- }
- ]
- }
- }
- },
- {
- "name": "snapchat_custom_audience",
- "description": "Test 10",
- "feature": "processor",
- "module": "destination",
- "version": "v0",
- "input": {
- "request": {
- "body": [
- {
- "metadata": {
- "secret": {
- "access_token": "dummyAccessToken",
- "refresh_token": "dummyRefreshToken",
- "developer_token": "dummyDeveloperToken"
- }
- },
- "destination": {
- "Config": {
- "segmentId": "123",
- "disableHashing": false,
- "schema": "email"
- }
- },
- "message": {
- "userId": "user 1",
- "anonymousId": "anon-id-new",
- "event": "event1",
- "type": "audiencelist",
- "properties": {
- "listData": {
- "remove": [
- {
- "email": "",
- "phone": "@09876543210",
- "firstName": "test",
- "lastName": "rudderlabs",
- "country": "US",
- "postalCode": "1245"
- },
- {
- "phone": "@09876543210",
- "firstName": "test",
- "lastName": "rudderlabs",
- "country": "US",
- "postalCode": "1245"
- }
- ]
- },
- "enablePartialFailure": true
- },
- "context": {
- "ip": "14.5.67.21",
- "library": {
- "name": "http"
- }
- },
- "timestamp": "2020-02-02T00:23:09.544Z"
- }
- }
- ]
- }
- },
- "output": {
- "response": {
- "status": 200,
- "body": [
- {
- "metadata": {
- "secret": {
- "access_token": "dummyAccessToken",
- "refresh_token": "dummyRefreshToken",
- "developer_token": "dummyDeveloperToken"
- }
- },
- "statusCode": 400,
- "error": "Required schema parameter email is not found from payload",
- "statTags": {
- "errorCategory": "dataValidation",
- "errorType": "instrumentation",
- "destType": "SNAPCHAT_CUSTOM_AUDIENCE",
- "module": "destination",
- "implementation": "native",
- "feature": "processor"
- }
- }
- ]
- }
- }
- },
- {
- "name": "snapchat_custom_audience",
- "description": "Test 11",
- "feature": "processor",
- "module": "destination",
- "version": "v0",
- "input": {
- "request": {
- "body": [
- {
- "metadata": {
- "secret": {
- "access_token": "dummyAccessToken",
- "refresh_token": "dummyRefreshToken",
- "developer_token": "dummyDeveloperToken"
- }
- },
- "destination": {
- "Config": {
- "segmentId": "123",
- "disableHashing": false,
- "schema": "email"
- }
- },
- "message": {
- "userId": "user 1",
- "anonymousId": "anon-id-new",
- "event": "event1",
- "type": "audiencelist",
- "properties": {
- "listData": {
- "remove": [
- {
- "email": "abcd@abc.com",
- "phone": "@09876543210",
- "firstName": "test",
- "lastName": "rudderlabs",
- "country": "US",
- "postalCode": "1245"
- },
- {
- "phone": "@09876543210",
- "firstName": "test",
- "lastName": "rudderlabs",
- "country": "US",
- "postalCode": "1245"
- }
- ]
- },
- "enablePartialFailure": true
- },
- "context": {
- "ip": "14.5.67.21",
- "library": {
- "name": "http"
- }
- },
- "timestamp": "2020-02-02T00:23:09.544Z"
- }
- }
- ]
- }
- },
- "output": {
- "response": {
- "status": 200,
- "body": [
- {
- "output": {
- "version": "1",
- "type": "REST",
- "method": "DELETE",
- "endpoint": "https://adsapi.snapchat.com/v1/segments/123/users",
- "headers": {
- "Authorization": "Bearer dummyAccessToken",
- "Content-Type": "application/json"
- },
- "params": {},
- "body": {
- "JSON": {
- "users": [
- {
- "schema": [
- "EMAIL_SHA256"
- ],
- "data": [
- [
- "8c37cbc5d9abb3082303c6548571cfc7655a4546ddc1e943f041fc9126e7274a"
- ]
- ],
- "id": "123"
- }
- ]
- },
- "JSON_ARRAY": {},
- "XML": {},
- "FORM": {}
- },
- "files": {},
- "userId": ""
- },
- "metadata": {
- "secret": {
- "access_token": "dummyAccessToken",
- "refresh_token": "dummyRefreshToken",
- "developer_token": "dummyDeveloperToken"
- }
- },
- "statusCode": 200
- }
- ]
- }
- }
- },
- {
- "name": "snapchat_custom_audience",
- "description": "Test 12",
- "feature": "processor",
- "module": "destination",
- "version": "v0",
- "input": {
- "request": {
- "body": [
- {
- "metadata": {
- "secret": {
- "access_token": "dummyAccessToken",
- "refresh_token": "dummyRefreshToken",
- "developer_token": "dummyDeveloperToken"
- }
- },
- "destination": {
- "Config": {
- "segmentId": "123",
- "disableHashing": false,
- "schema": "phone"
- }
- },
- "message": {
- "userId": "user 1",
- "anonymousId": "anon-id-new",
- "event": "event1",
- "type": "audiencelist",
- "properties": {
- "listData": {
- "add": [
- {
- "email": "test@abc.com",
- "phone": "09876543210",
- "firstName": "test",
- "lastName": "rudderlabs",
- "country": "US",
- "postalCode": "1245"
- }
- ]
- },
- "enablePartialFailure": true
- },
- "context": {
- "ip": "14.5.67.21",
- "library": {
- "name": "http"
- }
- },
- "timestamp": "2020-02-02T00:23:09.544Z"
- }
- }
- ]
- }
- },
- "output": {
- "response": {
- "status": 200,
- "body": [
- {
- "output": {
- "version": "1",
- "type": "REST",
- "method": "POST",
- "endpoint": "https://adsapi.snapchat.com/v1/segments/123/users",
- "headers": {
- "Authorization": "Bearer dummyAccessToken",
- "Content-Type": "application/json"
- },
- "params": {},
- "body": {
- "JSON": {
- "users": [
- {
- "schema": [
- "PHONE_SHA256"
- ],
- "data": [
- [
- "7619ee8cea49187f309616e30ecf54be072259b43760f1f550a644945d5572f2"
- ]
- ]
- }
- ]
- },
- "JSON_ARRAY": {},
- "XML": {},
- "FORM": {}
- },
- "files": {},
- "userId": ""
- },
- "metadata": {
- "secret": {
- "access_token": "dummyAccessToken",
- "refresh_token": "dummyRefreshToken",
- "developer_token": "dummyDeveloperToken"
- }
- },
- "statusCode": 200
- }
- ]
- }
- }
- },
- {
- "name": "snapchat_custom_audience",
- "description": "Test 13",
- "feature": "processor",
- "module": "destination",
- "version": "v0",
- "input": {
- "request": {
- "body": [
- {
- "metadata": {
- "secret": {
- "access_token": "dummyAccessToken",
- "refresh_token": "dummyRefreshToken",
- "developer_token": "dummyDeveloperToken"
- }
- },
- "destination": {
- "Config": {
- "segmentId": "123",
- "disableHashing": false,
- "schema": "mobileAdId"
- }
- },
- "message": {
- "userId": "user 1",
- "anonymousId": "anon-id-new",
- "event": "event1",
- "type": "audiencelist",
- "properties": {
- "listData": {
- "add": [
- {
- "email": "test@abc.com",
- "phone": "09876543210",
- "mobileId": "1334",
- "firstName": "test",
- "lastName": "rudderlabs",
- "country": "US",
- "postalCode": "1245"
- }
- ]
- },
- "enablePartialFailure": true
- },
- "context": {
- "ip": "14.5.67.21",
- "library": {
- "name": "http"
- }
- },
- "timestamp": "2020-02-02T00:23:09.544Z"
- }
- }
- ]
- }
- },
- "output": {
- "response": {
- "status": 200,
- "body": [
- {
- "output": {
- "version": "1",
- "type": "REST",
- "method": "POST",
- "endpoint": "https://adsapi.snapchat.com/v1/segments/123/users",
- "headers": {
- "Authorization": "Bearer dummyAccessToken",
- "Content-Type": "application/json"
- },
- "params": {},
- "body": {
- "JSON": {
- "users": [
- {
- "schema": [
- "MOBILE_AD_ID_SHA256"
- ],
- "data": [
- [
- "eb43272640b269219a01caf99c5a4122d6edc0916d45ac13c0ce80ca3ad2def0"
- ]
- ]
- }
- ]
- },
- "JSON_ARRAY": {},
- "XML": {},
- "FORM": {}
- },
- "files": {},
- "userId": ""
- },
- "metadata": {
- "secret": {
- "access_token": "dummyAccessToken",
- "refresh_token": "dummyRefreshToken",
- "developer_token": "dummyDeveloperToken"
- }
- },
- "statusCode": 200
- }
- ]
- }
- }
- }
-]
+ {
+ name: 'snapchat_custom_audience',
+ description: 'Test 0',
+ feature: 'processor',
+ module: 'destination',
+ version: 'v0',
+ input: {
+ request: {
+ body: [
+ {
+ metadata: {
+ secret: {
+ access_token: 'dummyAccessToken',
+ refresh_token: 'dummyRefreshToken',
+ developer_token: 'dummyDeveloperToken',
+ },
+ },
+ destination: {
+ Config: {
+ segmentId: '123',
+ disableHashing: false,
+ schema: 'email',
+ },
+ },
+ message: {
+ userId: 'user 1',
+ anonymousId: 'anon-id-new',
+ event: 'event1',
+ type: 'audiencelist',
+ properties: {
+ listData: {
+ add: [
+ {
+ email: 'test@abc.com',
+ phone: '@09876543210',
+ firstName: 'test',
+ lastName: 'rudderlabs',
+ country: 'US',
+ postalCode: '1245',
+ },
+ ],
+ },
+ enablePartialFailure: true,
+ },
+ context: {
+ ip: '14.5.67.21',
+ library: {
+ name: 'http',
+ },
+ },
+ timestamp: '2020-02-02T00:23:09.544Z',
+ },
+ },
+ ],
+ },
+ },
+ output: {
+ response: {
+ status: 200,
+ body: [
+ {
+ output: {
+ version: '1',
+ type: 'REST',
+ method: 'POST',
+ endpoint: 'https://adsapi.snapchat.com/v1/segments/123/users',
+ headers: {
+ Authorization: 'Bearer dummyAccessToken',
+ 'Content-Type': 'application/json',
+ },
+ params: {},
+ body: {
+ JSON: {
+ users: [
+ {
+ schema: ['EMAIL_SHA256'],
+ data: [['d3142c8f9c9129484daf28df80cc5c955791efed5e69afabb603bc8cb9ffd419']],
+ },
+ ],
+ },
+ JSON_ARRAY: {},
+ XML: {},
+ FORM: {},
+ },
+ files: {},
+ userId: '',
+ },
+ metadata: {
+ secret: {
+ access_token: 'dummyAccessToken',
+ refresh_token: 'dummyRefreshToken',
+ developer_token: 'dummyDeveloperToken',
+ },
+ },
+ statusCode: 200,
+ },
+ ],
+ },
+ },
+ },
+ {
+ name: 'snapchat_custom_audience',
+ description: 'Test 1',
+ feature: 'processor',
+ module: 'destination',
+ version: 'v0',
+ input: {
+ request: {
+ body: [
+ {
+ metadata: {
+ secret: {
+ access_token: 'dummyAccessToken',
+ refresh_token: 'dummyRefreshToken',
+ developer_token: 'dummyDeveloperToken',
+ },
+ },
+ destination: {
+ Config: {
+ segmentId: '123',
+ disableHashing: true,
+ schema: 'email',
+ },
+ },
+ message: {
+ userId: 'user 1',
+ anonymousId: 'anon-id-new',
+ event: 'event1',
+ type: 'audiencelist',
+ properties: {
+ listData: {
+ remove: [
+ {
+ email: 'd3142c8f9c9129484daf28df80cc5c955791efed5e69afabb603bc8cb9ffd419',
+ phone: '@09876543210',
+ firstName: 'test',
+ lastName: 'rudderlabs',
+ country: 'US',
+ postalCode: '1245',
+ },
+ ],
+ },
+ enablePartialFailure: true,
+ },
+ context: {
+ ip: '14.5.67.21',
+ library: {
+ name: 'http',
+ },
+ },
+ timestamp: '2020-02-02T00:23:09.544Z',
+ },
+ },
+ ],
+ },
+ },
+ output: {
+ response: {
+ status: 200,
+ body: [
+ {
+ output: {
+ version: '1',
+ type: 'REST',
+ method: 'DELETE',
+ endpoint: 'https://adsapi.snapchat.com/v1/segments/123/users',
+ headers: {
+ Authorization: 'Bearer dummyAccessToken',
+ 'Content-Type': 'application/json',
+ },
+ params: {},
+ body: {
+ JSON: {
+ users: [
+ {
+ schema: ['EMAIL_SHA256'],
+ data: [['d3142c8f9c9129484daf28df80cc5c955791efed5e69afabb603bc8cb9ffd419']],
+ id: '123',
+ },
+ ],
+ },
+ JSON_ARRAY: {},
+ XML: {},
+ FORM: {},
+ },
+ files: {},
+ userId: '',
+ },
+ metadata: {
+ secret: {
+ access_token: 'dummyAccessToken',
+ refresh_token: 'dummyRefreshToken',
+ developer_token: 'dummyDeveloperToken',
+ },
+ },
+ statusCode: 200,
+ },
+ ],
+ },
+ },
+ },
+ {
+ name: 'snapchat_custom_audience',
+ description: 'Test 2',
+ feature: 'processor',
+ module: 'destination',
+ version: 'v0',
+ input: {
+ request: {
+ body: [
+ {
+ metadata: {
+ secret: {
+ access_token: 'dummyAccessToken',
+ refresh_token: 'dummyRefreshToken',
+ developer_token: 'dummyDeveloperToken',
+ },
+ },
+ destination: {
+ Config: {
+ segmentId: '123',
+ disableHashing: false,
+ schema: 'email',
+ },
+ },
+ message: {
+ userId: 'user 1',
+ anonymousId: 'anon-id-new',
+ event: 'event1',
+ type: 'audiencelist',
+ properties: {
+ listData: {
+ add: [
+ {
+ email: 'test@abc.com',
+ phone: '@09876543210',
+ firstName: 'test',
+ lastName: 'rudderlabs',
+ country: 'US',
+ postalCode: '1245',
+ },
+ ],
+ remove: [
+ {
+ email: 'test@abc.com',
+ phone: '@09876543210',
+ firstName: 'test',
+ lastName: 'rudderlabs',
+ country: 'US',
+ postalCode: '1245',
+ },
+ ],
+ },
+ enablePartialFailure: true,
+ },
+ context: {
+ ip: '14.5.67.21',
+ library: {
+ name: 'http',
+ },
+ },
+ timestamp: '2020-02-02T00:23:09.544Z',
+ },
+ },
+ ],
+ },
+ },
+ output: {
+ response: {
+ status: 200,
+ body: [
+ {
+ output: {
+ version: '1',
+ type: 'REST',
+ method: 'POST',
+ endpoint: 'https://adsapi.snapchat.com/v1/segments/123/users',
+ headers: {
+ Authorization: 'Bearer dummyAccessToken',
+ 'Content-Type': 'application/json',
+ },
+ params: {},
+ body: {
+ JSON: {
+ users: [
+ {
+ schema: ['EMAIL_SHA256'],
+ data: [['d3142c8f9c9129484daf28df80cc5c955791efed5e69afabb603bc8cb9ffd419']],
+ },
+ ],
+ },
+ JSON_ARRAY: {},
+ XML: {},
+ FORM: {},
+ },
+ files: {},
+ userId: '',
+ },
+ metadata: {
+ secret: {
+ access_token: 'dummyAccessToken',
+ refresh_token: 'dummyRefreshToken',
+ developer_token: 'dummyDeveloperToken',
+ },
+ },
+ statusCode: 200,
+ },
+ {
+ output: {
+ version: '1',
+ type: 'REST',
+ method: 'DELETE',
+ endpoint: 'https://adsapi.snapchat.com/v1/segments/123/users',
+ headers: {
+ Authorization: 'Bearer dummyAccessToken',
+ 'Content-Type': 'application/json',
+ },
+ params: {},
+ body: {
+ JSON: {
+ users: [
+ {
+ schema: ['EMAIL_SHA256'],
+ data: [['d3142c8f9c9129484daf28df80cc5c955791efed5e69afabb603bc8cb9ffd419']],
+ id: '123',
+ },
+ ],
+ },
+ JSON_ARRAY: {},
+ XML: {},
+ FORM: {},
+ },
+ files: {},
+ userId: '',
+ },
+ metadata: {
+ secret: {
+ access_token: 'dummyAccessToken',
+ refresh_token: 'dummyRefreshToken',
+ developer_token: 'dummyDeveloperToken',
+ },
+ },
+ statusCode: 200,
+ },
+ ],
+ },
+ },
+ },
+ {
+ name: 'snapchat_custom_audience',
+ description: 'Test 3',
+ feature: 'processor',
+ module: 'destination',
+ version: 'v0',
+ input: {
+ request: {
+ body: [
+ {
+ metadata: {
+ secret: {
+ access_token: 'dummyAccessToken',
+ refresh_token: 'dummyRefreshToken',
+ developer_token: 'dummyDeveloperToken',
+ },
+ },
+ destination: {
+ Config: {
+ segmentId: '123',
+ disableHashing: false,
+ schema: 'email',
+ },
+ },
+ message: {
+ userId: 'user 1',
+ anonymousId: 'anon-id-new',
+ event: 'event1',
+ type: 'audiencelist',
+ properties: {
+ listData: {
+ add: [
+ {
+ email: 'test@abc.com',
+ phone: '@09876543210',
+ firstName: 'test',
+ lastName: 'rudderlabs',
+ country: 'US',
+ postalCode: '1245',
+ },
+ {
+ email: 'test@rudderstack.com',
+ phone: '@09876543210',
+ firstName: 'rudderlabs',
+ lastName: 'rudderlabs',
+ country: 'US',
+ postalCode: '1245',
+ },
+ ],
+ },
+ enablePartialFailure: true,
+ },
+ context: {
+ ip: '14.5.67.21',
+ library: {
+ name: 'http',
+ },
+ },
+ timestamp: '2020-02-02T00:23:09.544Z',
+ },
+ },
+ ],
+ },
+ },
+ output: {
+ response: {
+ status: 200,
+ body: [
+ {
+ output: {
+ version: '1',
+ type: 'REST',
+ method: 'POST',
+ endpoint: 'https://adsapi.snapchat.com/v1/segments/123/users',
+ headers: {
+ Authorization: 'Bearer dummyAccessToken',
+ 'Content-Type': 'application/json',
+ },
+ params: {},
+ body: {
+ JSON: {
+ users: [
+ {
+ schema: ['EMAIL_SHA256'],
+ data: [
+ ['d3142c8f9c9129484daf28df80cc5c955791efed5e69afabb603bc8cb9ffd419'],
+ ['1c5e54849f5c711ce38fa60716fbbe44bff478f9ca250897b39cdfc2438cd1bd'],
+ ],
+ },
+ ],
+ },
+ JSON_ARRAY: {},
+ XML: {},
+ FORM: {},
+ },
+ files: {},
+ userId: '',
+ },
+ metadata: {
+ secret: {
+ access_token: 'dummyAccessToken',
+ refresh_token: 'dummyRefreshToken',
+ developer_token: 'dummyDeveloperToken',
+ },
+ },
+ statusCode: 200,
+ },
+ ],
+ },
+ },
+ },
+ {
+ name: 'snapchat_custom_audience',
+ description: 'Test 4',
+ feature: 'processor',
+ module: 'destination',
+ version: 'v0',
+ input: {
+ request: {
+ body: [
+ {
+ metadata: {
+ secret: {
+ access_token: 'dummyAccessToken',
+ refresh_token: 'dummyRefreshToken',
+ developer_token: 'dummyDeveloperToken',
+ },
+ },
+ destination: {
+ Config: {
+ segmentId: '123',
+ disableHashing: false,
+ schema: 'email',
+ },
+ },
+ message: {
+ userId: 'user 1',
+ anonymousId: 'anon-id-new',
+ event: 'event1',
+ type: 'audiencelist',
+ properties: {
+ listData: {
+ remove: [
+ {
+ email: 'test@abc.com',
+ phone: '@09876543210',
+ firstName: 'test',
+ lastName: 'rudderlabs',
+ country: 'US',
+ postalCode: '1245',
+ },
+ {
+ email: 'test@rudderstack.com',
+ phone: '@09876543210',
+ firstName: 'rudderlabs',
+ lastName: 'rudderlabs',
+ country: 'US',
+ postalCode: '1245',
+ },
+ ],
+ },
+ enablePartialFailure: true,
+ },
+ context: {
+ ip: '14.5.67.21',
+ library: {
+ name: 'http',
+ },
+ },
+ timestamp: '2020-02-02T00:23:09.544Z',
+ },
+ },
+ ],
+ },
+ },
+ output: {
+ response: {
+ status: 200,
+ body: [
+ {
+ output: {
+ version: '1',
+ type: 'REST',
+ method: 'DELETE',
+ endpoint: 'https://adsapi.snapchat.com/v1/segments/123/users',
+ headers: {
+ Authorization: 'Bearer dummyAccessToken',
+ 'Content-Type': 'application/json',
+ },
+ params: {},
+ body: {
+ JSON: {
+ users: [
+ {
+ schema: ['EMAIL_SHA256'],
+ data: [
+ ['d3142c8f9c9129484daf28df80cc5c955791efed5e69afabb603bc8cb9ffd419'],
+ ['1c5e54849f5c711ce38fa60716fbbe44bff478f9ca250897b39cdfc2438cd1bd'],
+ ],
+ id: '123',
+ },
+ ],
+ },
+ JSON_ARRAY: {},
+ XML: {},
+ FORM: {},
+ },
+ files: {},
+ userId: '',
+ },
+ metadata: {
+ secret: {
+ access_token: 'dummyAccessToken',
+ refresh_token: 'dummyRefreshToken',
+ developer_token: 'dummyDeveloperToken',
+ },
+ },
+ statusCode: 200,
+ },
+ ],
+ },
+ },
+ },
+ {
+ name: 'snapchat_custom_audience',
+ description: 'Test 5',
+ feature: 'processor',
+ module: 'destination',
+ version: 'v0',
+ input: {
+ request: {
+ body: [
+ {
+ metadata: {
+ secret: {
+ access_token: 'dummyAccessToken',
+ refresh_token: 'dummyRefreshToken',
+ developer_token: 'dummyDeveloperToken',
+ },
+ },
+ destination: {
+ Config: {
+ segmentId: '123',
+ disableHashing: false,
+ schema: 'email',
+ },
+ },
+ message: {
+ userId: 'user 1',
+ anonymousId: 'anon-id-new',
+ event: 'event1',
+ type: 'audience',
+ properties: {
+ listData: {
+ add: [
+ {
+ email: 'test@rudderstack.com',
+ phone: '@09876543210',
+ firstName: 'rudderlabs',
+ lastName: 'rudderlabs',
+ country: 'US',
+ postalCode: '1245',
+ },
+ ],
+ },
+ enablePartialFailure: true,
+ },
+ context: {
+ ip: '14.5.67.21',
+ library: {
+ name: 'http',
+ },
+ },
+ timestamp: '2020-02-02T00:23:09.544Z',
+ },
+ },
+ ],
+ },
+ },
+ output: {
+ response: {
+ status: 200,
+ body: [
+ {
+ metadata: {
+ secret: {
+ access_token: 'dummyAccessToken',
+ refresh_token: 'dummyRefreshToken',
+ developer_token: 'dummyDeveloperToken',
+ },
+ },
+ statusCode: 400,
+ error: 'Event type audience is not supported',
+ statTags: {
+ errorCategory: 'dataValidation',
+ errorType: 'instrumentation',
+ destType: 'SNAPCHAT_CUSTOM_AUDIENCE',
+ module: 'destination',
+ implementation: 'native',
+ feature: 'processor',
+ },
+ },
+ ],
+ },
+ },
+ },
+ {
+ name: 'snapchat_custom_audience',
+ description: 'Test 6',
+ feature: 'processor',
+ module: 'destination',
+ version: 'v0',
+ input: {
+ request: {
+ body: [
+ {
+ metadata: {
+ secret: {
+ access_token: 'dummyAccessToken',
+ refresh_token: 'dummyRefreshToken',
+ developer_token: 'dummyDeveloperToken',
+ },
+ },
+ destination: {
+ Config: {
+ segmentId: '123',
+ disableHashing: false,
+ schema: 'email',
+ },
+ },
+ message: {
+ userId: 'user 1',
+ anonymousId: 'anon-id-new',
+ event: 'event1',
+ properties: {
+ listData: {
+ add: [
+ {
+ email: 'test@rudderstack.com',
+ phone: '@09876543210',
+ firstName: 'rudderlabs',
+ lastName: 'rudderlabs',
+ country: 'US',
+ postalCode: '1245',
+ },
+ ],
+ },
+ enablePartialFailure: true,
+ },
+ context: {
+ ip: '14.5.67.21',
+ library: {
+ name: 'http',
+ },
+ },
+ timestamp: '2020-02-02T00:23:09.544Z',
+ },
+ },
+ ],
+ },
+ },
+ output: {
+ response: {
+ status: 200,
+ body: [
+ {
+ metadata: {
+ secret: {
+ access_token: 'dummyAccessToken',
+ refresh_token: 'dummyRefreshToken',
+ developer_token: 'dummyDeveloperToken',
+ },
+ },
+ statusCode: 400,
+ error: 'Event type is required',
+ statTags: {
+ errorCategory: 'dataValidation',
+ errorType: 'instrumentation',
+ destType: 'SNAPCHAT_CUSTOM_AUDIENCE',
+ module: 'destination',
+ implementation: 'native',
+ feature: 'processor',
+ },
+ },
+ ],
+ },
+ },
+ },
+ {
+ name: 'snapchat_custom_audience',
+ description: 'Test 7',
+ feature: 'processor',
+ module: 'destination',
+ version: 'v0',
+ input: {
+ request: {
+ body: [
+ {
+ metadata: {
+ secret: {
+ access_token: 'dummyAccessToken',
+ refresh_token: 'dummyRefreshToken',
+ developer_token: 'dummyDeveloperToken',
+ },
+ },
+ destination: {
+ Config: {
+ segmentId: '123',
+ disableHashing: false,
+ schema: 'email',
+ },
+ },
+ message: {
+ userId: 'user 1',
+ anonymousId: 'anon-id-new',
+ event: 'event1',
+ type: 'audiencelist',
+ context: {
+ ip: '14.5.67.21',
+ library: {
+ name: 'http',
+ },
+ },
+ timestamp: '2020-02-02T00:23:09.544Z',
+ },
+ },
+ ],
+ },
+ },
+ output: {
+ response: {
+ status: 200,
+ body: [
+ {
+ metadata: {
+ secret: {
+ access_token: 'dummyAccessToken',
+ refresh_token: 'dummyRefreshToken',
+ developer_token: 'dummyDeveloperToken',
+ },
+ },
+ statusCode: 400,
+ error: 'Message properties is not present. Aborting message',
+ statTags: {
+ errorCategory: 'dataValidation',
+ errorType: 'instrumentation',
+ destType: 'SNAPCHAT_CUSTOM_AUDIENCE',
+ module: 'destination',
+ implementation: 'native',
+ feature: 'processor',
+ },
+ },
+ ],
+ },
+ },
+ },
+ {
+ name: 'snapchat_custom_audience',
+ description: 'Test 8',
+ feature: 'processor',
+ module: 'destination',
+ version: 'v0',
+ input: {
+ request: {
+ body: [
+ {
+ metadata: {
+ secret: {
+ access_token: 'dummyAccessToken',
+ refresh_token: 'dummyRefreshToken',
+ developer_token: 'dummyDeveloperToken',
+ },
+ },
+ destination: {
+ Config: {
+ segmentId: '123',
+ disableHashing: false,
+ schema: 'email',
+ },
+ },
+ message: {
+ userId: 'user 1',
+ anonymousId: 'anon-id-new',
+ event: 'event1',
+ type: 'audiencelist',
+ properties: {
+ enablePartialFailure: true,
+ },
+ context: {
+ ip: '14.5.67.21',
+ library: {
+ name: 'http',
+ },
+ },
+ timestamp: '2020-02-02T00:23:09.544Z',
+ },
+ },
+ ],
+ },
+ },
+ output: {
+ response: {
+ status: 200,
+ body: [
+ {
+ metadata: {
+ secret: {
+ access_token: 'dummyAccessToken',
+ refresh_token: 'dummyRefreshToken',
+ developer_token: 'dummyDeveloperToken',
+ },
+ },
+ statusCode: 400,
+ error: 'listData is not present inside properties. Aborting message',
+ statTags: {
+ errorCategory: 'dataValidation',
+ errorType: 'instrumentation',
+ destType: 'SNAPCHAT_CUSTOM_AUDIENCE',
+ module: 'destination',
+ implementation: 'native',
+ feature: 'processor',
+ },
+ },
+ ],
+ },
+ },
+ },
+ {
+ name: 'snapchat_custom_audience',
+ description: 'Test 9',
+ feature: 'processor',
+ module: 'destination',
+ version: 'v0',
+ input: {
+ request: {
+ body: [
+ {
+ metadata: {
+ secret: {
+ access_token: 'dummyAccessToken',
+ refresh_token: 'dummyRefreshToken',
+ developer_token: 'dummyDeveloperToken',
+ },
+ },
+ destination: {
+ Config: {
+ segmentId: '123',
+ disableHashing: false,
+ schema: 'email',
+ },
+ },
+ message: {
+ userId: 'user 1',
+ anonymousId: 'anon-id-new',
+ event: 'event1',
+ type: 'audiencelist',
+ properties: {
+ listData: {
+ abc: '123',
+ },
+ enablePartialFailure: true,
+ },
+ context: {
+ ip: '14.5.67.21',
+ library: {
+ name: 'http',
+ },
+ },
+ timestamp: '2020-02-02T00:23:09.544Z',
+ },
+ },
+ ],
+ },
+ },
+ output: {
+ response: {
+ status: 200,
+ body: [
+ {
+ metadata: {
+ secret: {
+ access_token: 'dummyAccessToken',
+ refresh_token: 'dummyRefreshToken',
+ developer_token: 'dummyDeveloperToken',
+ },
+ },
+ statusCode: 400,
+ error:
+ "Neither 'add' nor 'remove' property is present inside 'listData'. Aborting message",
+ statTags: {
+ errorCategory: 'dataValidation',
+ errorType: 'instrumentation',
+ destType: 'SNAPCHAT_CUSTOM_AUDIENCE',
+ module: 'destination',
+ implementation: 'native',
+ feature: 'processor',
+ },
+ },
+ ],
+ },
+ },
+ },
+ {
+ name: 'snapchat_custom_audience',
+ description: 'Test 10',
+ feature: 'processor',
+ module: 'destination',
+ version: 'v0',
+ input: {
+ request: {
+ body: [
+ {
+ metadata: {
+ secret: {
+ access_token: 'dummyAccessToken',
+ refresh_token: 'dummyRefreshToken',
+ developer_token: 'dummyDeveloperToken',
+ },
+ },
+ destination: {
+ Config: {
+ segmentId: '123',
+ disableHashing: false,
+ schema: 'email',
+ },
+ },
+ message: {
+ userId: 'user 1',
+ anonymousId: 'anon-id-new',
+ event: 'event1',
+ type: 'audiencelist',
+ properties: {
+ listData: {
+ remove: [
+ {
+ email: '',
+ phone: '@09876543210',
+ firstName: 'test',
+ lastName: 'rudderlabs',
+ country: 'US',
+ postalCode: '1245',
+ },
+ {
+ phone: '@09876543210',
+ firstName: 'test',
+ lastName: 'rudderlabs',
+ country: 'US',
+ postalCode: '1245',
+ },
+ ],
+ },
+ enablePartialFailure: true,
+ },
+ context: {
+ ip: '14.5.67.21',
+ library: {
+ name: 'http',
+ },
+ },
+ timestamp: '2020-02-02T00:23:09.544Z',
+ },
+ },
+ ],
+ },
+ },
+ output: {
+ response: {
+ status: 200,
+ body: [
+ {
+ metadata: {
+ secret: {
+ access_token: 'dummyAccessToken',
+ refresh_token: 'dummyRefreshToken',
+ developer_token: 'dummyDeveloperToken',
+ },
+ },
+ statusCode: 400,
+ error: 'Required schema parameter email is not found from payload',
+ statTags: {
+ errorCategory: 'dataValidation',
+ errorType: 'instrumentation',
+ destType: 'SNAPCHAT_CUSTOM_AUDIENCE',
+ module: 'destination',
+ implementation: 'native',
+ feature: 'processor',
+ },
+ },
+ ],
+ },
+ },
+ },
+ {
+ name: 'snapchat_custom_audience',
+ description: 'Test 11',
+ feature: 'processor',
+ module: 'destination',
+ version: 'v0',
+ input: {
+ request: {
+ body: [
+ {
+ metadata: {
+ secret: {
+ access_token: 'dummyAccessToken',
+ refresh_token: 'dummyRefreshToken',
+ developer_token: 'dummyDeveloperToken',
+ },
+ },
+ destination: {
+ Config: {
+ segmentId: '123',
+ disableHashing: false,
+ schema: 'email',
+ },
+ },
+ message: {
+ userId: 'user 1',
+ anonymousId: 'anon-id-new',
+ event: 'event1',
+ type: 'audiencelist',
+ properties: {
+ listData: {
+ remove: [
+ {
+ email: 'abcd@abc.com',
+ phone: '@09876543210',
+ firstName: 'test',
+ lastName: 'rudderlabs',
+ country: 'US',
+ postalCode: '1245',
+ },
+ {
+ phone: '@09876543210',
+ firstName: 'test',
+ lastName: 'rudderlabs',
+ country: 'US',
+ postalCode: '1245',
+ },
+ ],
+ },
+ enablePartialFailure: true,
+ },
+ context: {
+ ip: '14.5.67.21',
+ library: {
+ name: 'http',
+ },
+ },
+ timestamp: '2020-02-02T00:23:09.544Z',
+ },
+ },
+ ],
+ },
+ },
+ output: {
+ response: {
+ status: 200,
+ body: [
+ {
+ output: {
+ version: '1',
+ type: 'REST',
+ method: 'DELETE',
+ endpoint: 'https://adsapi.snapchat.com/v1/segments/123/users',
+ headers: {
+ Authorization: 'Bearer dummyAccessToken',
+ 'Content-Type': 'application/json',
+ },
+ params: {},
+ body: {
+ JSON: {
+ users: [
+ {
+ schema: ['EMAIL_SHA256'],
+ data: [['8c37cbc5d9abb3082303c6548571cfc7655a4546ddc1e943f041fc9126e7274a']],
+ id: '123',
+ },
+ ],
+ },
+ JSON_ARRAY: {},
+ XML: {},
+ FORM: {},
+ },
+ files: {},
+ userId: '',
+ },
+ metadata: {
+ secret: {
+ access_token: 'dummyAccessToken',
+ refresh_token: 'dummyRefreshToken',
+ developer_token: 'dummyDeveloperToken',
+ },
+ },
+ statusCode: 200,
+ },
+ ],
+ },
+ },
+ },
+ {
+ name: 'snapchat_custom_audience',
+ description: 'Test 12',
+ feature: 'processor',
+ module: 'destination',
+ version: 'v0',
+ input: {
+ request: {
+ body: [
+ {
+ metadata: {
+ secret: {
+ access_token: 'dummyAccessToken',
+ refresh_token: 'dummyRefreshToken',
+ developer_token: 'dummyDeveloperToken',
+ },
+ },
+ destination: {
+ Config: {
+ segmentId: '123',
+ disableHashing: false,
+ schema: 'phone',
+ },
+ },
+ message: {
+ userId: 'user 1',
+ anonymousId: 'anon-id-new',
+ event: 'event1',
+ type: 'audiencelist',
+ properties: {
+ listData: {
+ add: [
+ {
+ email: 'test@abc.com',
+ phone: '09876543210',
+ firstName: 'test',
+ lastName: 'rudderlabs',
+ country: 'US',
+ postalCode: '1245',
+ },
+ ],
+ },
+ enablePartialFailure: true,
+ },
+ context: {
+ ip: '14.5.67.21',
+ library: {
+ name: 'http',
+ },
+ },
+ timestamp: '2020-02-02T00:23:09.544Z',
+ },
+ },
+ ],
+ },
+ },
+ output: {
+ response: {
+ status: 200,
+ body: [
+ {
+ output: {
+ version: '1',
+ type: 'REST',
+ method: 'POST',
+ endpoint: 'https://adsapi.snapchat.com/v1/segments/123/users',
+ headers: {
+ Authorization: 'Bearer dummyAccessToken',
+ 'Content-Type': 'application/json',
+ },
+ params: {},
+ body: {
+ JSON: {
+ users: [
+ {
+ schema: ['PHONE_SHA256'],
+ data: [['7619ee8cea49187f309616e30ecf54be072259b43760f1f550a644945d5572f2']],
+ },
+ ],
+ },
+ JSON_ARRAY: {},
+ XML: {},
+ FORM: {},
+ },
+ files: {},
+ userId: '',
+ },
+ metadata: {
+ secret: {
+ access_token: 'dummyAccessToken',
+ refresh_token: 'dummyRefreshToken',
+ developer_token: 'dummyDeveloperToken',
+ },
+ },
+ statusCode: 200,
+ },
+ ],
+ },
+ },
+ },
+ {
+ name: 'snapchat_custom_audience',
+ description: 'Test 13',
+ feature: 'processor',
+ module: 'destination',
+ version: 'v0',
+ input: {
+ request: {
+ body: [
+ {
+ metadata: {
+ secret: {
+ access_token: 'dummyAccessToken',
+ refresh_token: 'dummyRefreshToken',
+ developer_token: 'dummyDeveloperToken',
+ },
+ },
+ destination: {
+ Config: {
+ segmentId: '123',
+ disableHashing: false,
+ schema: 'mobileAdId',
+ },
+ },
+ message: {
+ userId: 'user 1',
+ anonymousId: 'anon-id-new',
+ event: 'event1',
+ type: 'audiencelist',
+ properties: {
+ listData: {
+ add: [
+ {
+ email: 'test@abc.com',
+ phone: '09876543210',
+ mobileId: '1334',
+ firstName: 'test',
+ lastName: 'rudderlabs',
+ country: 'US',
+ postalCode: '1245',
+ },
+ ],
+ },
+ enablePartialFailure: true,
+ },
+ context: {
+ ip: '14.5.67.21',
+ library: {
+ name: 'http',
+ },
+ },
+ timestamp: '2020-02-02T00:23:09.544Z',
+ },
+ },
+ ],
+ },
+ },
+ output: {
+ response: {
+ status: 200,
+ body: [
+ {
+ output: {
+ version: '1',
+ type: 'REST',
+ method: 'POST',
+ endpoint: 'https://adsapi.snapchat.com/v1/segments/123/users',
+ headers: {
+ Authorization: 'Bearer dummyAccessToken',
+ 'Content-Type': 'application/json',
+ },
+ params: {},
+ body: {
+ JSON: {
+ users: [
+ {
+ schema: ['MOBILE_AD_ID_SHA256'],
+ data: [['eb43272640b269219a01caf99c5a4122d6edc0916d45ac13c0ce80ca3ad2def0']],
+ },
+ ],
+ },
+ JSON_ARRAY: {},
+ XML: {},
+ FORM: {},
+ },
+ files: {},
+ userId: '',
+ },
+ metadata: {
+ secret: {
+ access_token: 'dummyAccessToken',
+ refresh_token: 'dummyRefreshToken',
+ developer_token: 'dummyDeveloperToken',
+ },
+ },
+ statusCode: 200,
+ },
+ ],
+ },
+ },
+ },
+];
diff --git a/test/integrations/destinations/splitio/processor/data.ts b/test/integrations/destinations/splitio/processor/data.ts
index 20ffa00fc2..3fda93cc30 100644
--- a/test/integrations/destinations/splitio/processor/data.ts
+++ b/test/integrations/destinations/splitio/processor/data.ts
@@ -1,915 +1,905 @@
export const data = [
- {
- "name": "splitio",
- "description": "Test 0",
- "feature": "processor",
- "module": "destination",
- "version": "v0",
- "input": {
- "request": {
- "body": [
- {
- "message": {
- "traits": {
- "martin": 21.565,
- "trafficTypeName": "user",
- "vertical": "restaurant",
- "eventTypeId": "page_load end to end",
- "timestamp": 1513357833000,
- "GMV": false
- },
- "userId": "user123",
- "messageId": "c73198a8-41d8-4426-9fd9-de167194d5f3",
- "rudderId": "bda76e3e-87eb-4153-9d1e-e9c2ed48b7a5",
- "context": {
- "ip": "14.5.67.21",
- "traits": {
- "abc": "new-val",
- "key": "key_user_0",
- "value": "0.93"
- },
- "library": {
- "name": "http"
- }
- },
- "type": "group",
- "groupId": "group1",
- "timestamp": "2020-01-21T00:21:34.208Z",
- "writeKey": "1pe7u01A7rYOrvacE6WSgI6ESXh",
- "receivedAt": "2021-04-19T14:53:18.215+05:30",
- "requestIP": "[::1]"
- },
- "destination": {
- "Config": {
- "apiKey": "abcde",
- "environment": "staging",
- "trafficType": "user"
- }
- }
- }
- ]
- }
- },
- "output": {
- "response": {
- "status": 200,
- "body": [
- {
- "output": {
- "version": "1",
- "type": "REST",
- "method": "POST",
- "endpoint": "https://events.split.io/api/events",
- "headers": {
- "Content-Type": "application/json",
- "Authorization": "Bearer abcde"
- },
- "params": {},
- "body": {
- "JSON": {
- "eventTypeId": "group",
- "key": "user123",
- "timestamp": 1579566094208,
- "environmentName": "staging",
- "trafficTypeName": "user",
- "properties": {
- "martin": 21.565,
- "vertical": "restaurant",
- "GMV": false
- }
- },
- "JSON_ARRAY": {},
- "XML": {},
- "FORM": {}
- },
- "files": {},
- "userId": ""
- },
- "statusCode": 200
- }
- ]
- }
- }
- },
- {
- "name": "splitio",
- "description": "Test 1",
- "feature": "processor",
- "module": "destination",
- "version": "v0",
- "input": {
- "request": {
- "body": [
- {
- "message": {
- "traits": {
- "martin": 21.565,
- "trafficTypeName": "user",
- "eventTypeId": "page_load end to end",
- "timestamp": 1513357833000,
- "address": {
- "city": "San Francisco",
- "state": "CA",
- "country": "USA"
- },
- "key1": {
- "a": "a"
- },
- "key2": [
- 1,
- 2,
- 3
- ],
- "key3": {
- "key4": {}
- },
- "key5": null
- },
- "userId": "user123",
- "messageId": "c73198a8-41d8-4426-9fd9-de167194d5f3",
- "rudderId": "bda76e3e-87eb-4153-9d1e-e9c2ed48b7a5",
- "context": {
- "ip": "14.5.67.21",
- "traits": {
- "abc": "new-val",
- "key": "key_user_0"
- },
- "library": {
- "name": "http"
- }
- },
- "type": "identify",
- "timestamp": "2020-01-21T00:21:34.208Z",
- "writeKey": "1pe7u01A7rYOrvacE6WSgI6ESXh",
- "receivedAt": "2021-04-19T14:53:18.215+05:30",
- "requestIP": "[::1]"
- },
- "destination": {
- "Config": {
- "apiKey": "abcde",
- "environment": "staging",
- "trafficType": "user"
- }
- }
- }
- ]
- }
- },
- "output": {
- "response": {
- "status": 200,
- "body": [
- {
- "output": {
- "version": "1",
- "type": "REST",
- "method": "POST",
- "endpoint": "https://events.split.io/api/events",
- "headers": {
- "Content-Type": "application/json",
- "Authorization": "Bearer abcde"
- },
- "params": {},
- "body": {
- "JSON": {
- "eventTypeId": "identify",
- "key": "user123",
- "timestamp": 1579566094208,
- "environmentName": "staging",
- "trafficTypeName": "user",
- "properties": {
- "martin": 21.565,
- "address.city": "San Francisco",
- "address.state": "CA",
- "address.country": "USA",
- "key1.a": "a",
- "key2[0]": 1,
- "key2[1]": 2,
- "key2[2]": 3
- }
- },
- "JSON_ARRAY": {},
- "XML": {},
- "FORM": {}
- },
- "files": {},
- "userId": ""
- },
- "statusCode": 200
- }
- ]
- }
- }
- },
- {
- "name": "splitio",
- "description": "Test 2",
- "feature": "processor",
- "module": "destination",
- "version": "v0",
- "input": {
- "request": {
- "body": [
- {
- "message": {
- "event": "splitio_test_1",
- "messageId": "9b200548-5961-4448-9dbc-098b7ce85751",
- "properties": {
- "eventTypeId": "page_load",
- "trafficTypeName": "user",
- "key": "key_user_0",
- "timestamp": 1513357833000,
- "value": "0.93",
- "martin": 21.565,
- "vertical": "restaurant",
- "GMV": true,
- "abc": "new-val",
- "property1": {
- "property2": 1,
- "property3": "test",
- "property4": {
- "subProp1": {
- "a": "a",
- "b": "b"
- },
- "subProp2": [
- "a",
- "b"
- ],
- "subProp3": {
- "prop": {}
- }
- }
- },
- "properties5": null
- },
- "receivedAt": "2021-03-01T22:55:54.806Z",
- "rudderId": "6886eb9e-215d-4f61-a651-4b8ef18aaea3",
- "timestamp": "2021-03-01T22:55:54.771Z",
- "type": "track",
- "userId": "user 1"
- },
- "destination": {
- "Config": {
- "apiKey": "abcde",
- "environment": "production",
- "trafficType": "user"
- }
- }
- }
- ]
- }
- },
- "output": {
- "response": {
- "status": 200,
- "body": [
- {
- "output": {
- "version": "1",
- "type": "REST",
- "method": "POST",
- "endpoint": "https://events.split.io/api/events",
- "headers": {
- "Content-Type": "application/json",
- "Authorization": "Bearer abcde"
- },
- "params": {},
- "body": {
- "JSON": {
- "eventTypeId": "splitio_test_1",
- "key": "user 1",
- "timestamp": 1614639354771,
- "value": 0.93,
- "environmentName": "production",
- "trafficTypeName": "user",
- "properties": {
- "martin": 21.565,
- "vertical": "restaurant",
- "GMV": true,
- "abc": "new-val",
- "property1.property2": 1,
- "property1.property3": "test",
- "property1.property4.subProp1.a": "a",
- "property1.property4.subProp1.b": "b",
- "property1.property4.subProp2[0]": "a",
- "property1.property4.subProp2[1]": "b"
- }
- },
- "JSON_ARRAY": {},
- "XML": {},
- "FORM": {}
- },
- "files": {},
- "userId": ""
- },
- "statusCode": 200
- }
- ]
- }
- }
- },
- {
- "name": "splitio",
- "description": "Test 3",
- "feature": "processor",
- "module": "destination",
- "version": "v0",
- "input": {
- "request": {
- "body": [
- {
- "message": {
- "name": "splitio_test_1",
- "messageId": "9b200548-5961-4448-9dbc-098b7ce85751",
- "properties": {
- "eventTypeId": "page_load",
- "trafficTypeName": "user",
- "key": "key_user_0",
- "timestamp": 1513357833000,
- "value": "0.93",
- "martin": 21.565,
- "vertical": "restaurant",
- "GMV": true,
- "abc": "new-val"
- },
- "receivedAt": "2021-03-01T22:55:54.806Z",
- "rudderId": "6886eb9e-215d-4f61-a651-4b8ef18aaea3",
- "timestamp": "2021-03-01T22:55:54.771Z",
- "type": "page",
- "userId": "user 1"
- },
- "destination": {
- "Config": {
- "apiKey": "abcde",
- "environment": "production",
- "trafficType": "user"
- }
- }
- }
- ]
- }
- },
- "output": {
- "response": {
- "status": 200,
- "body": [
- {
- "output": {
- "version": "1",
- "type": "REST",
- "method": "POST",
- "endpoint": "https://events.split.io/api/events",
- "headers": {
- "Content-Type": "application/json",
- "Authorization": "Bearer abcde"
- },
- "params": {},
- "body": {
- "JSON": {
- "eventTypeId": "Viewed_splitio_test_1_page",
- "key": "user 1",
- "timestamp": 1614639354771,
- "value": 0.93,
- "environmentName": "production",
- "trafficTypeName": "user",
- "properties": {
- "martin": 21.565,
- "vertical": "restaurant",
- "GMV": true,
- "abc": "new-val"
- }
- },
- "JSON_ARRAY": {},
- "XML": {},
- "FORM": {}
- },
- "files": {},
- "userId": ""
- },
- "statusCode": 200
- }
- ]
- }
- }
- },
- {
- "name": "splitio",
- "description": "Test 4",
- "feature": "processor",
- "module": "destination",
- "version": "v0",
- "input": {
- "request": {
- "body": [
- {
- "message": {
- "name": "splitio_test_1",
- "messageId": "9b200548-5961-4448-9dbc-098b7ce85751",
- "properties": {
- "eventTypeId": "page_load",
- "trafficTypeName": "user",
- "key": "key_user_0",
- "timestamp": 1513357833000,
- "value": "0.93",
- "martin": 21.565,
- "vertical": "restaurant",
- "GMV": true,
- "abc": "new-val"
- },
- "receivedAt": "2021-03-01T22:55:54.806Z",
- "rudderId": "6886eb9e-215d-4f61-a651-4b8ef18aaea3",
- "timestamp": "2021-03-01T22:55:54.771Z",
- "type": "screen",
- "userId": "user 1"
- },
- "destination": {
- "Config": {
- "apiKey": "abcde",
- "environment": "staging",
- "trafficType": "user"
- }
- }
- }
- ]
- }
- },
- "output": {
- "response": {
- "status": 200,
- "body": [
- {
- "output": {
- "version": "1",
- "type": "REST",
- "method": "POST",
- "endpoint": "https://events.split.io/api/events",
- "headers": {
- "Content-Type": "application/json",
- "Authorization": "Bearer abcde"
- },
- "params": {},
- "body": {
- "JSON": {
- "eventTypeId": "Viewed_splitio_test_1_screen",
- "key": "user 1",
- "timestamp": 1614639354771,
- "value": 0.93,
- "environmentName": "staging",
- "trafficTypeName": "user",
- "properties": {
- "martin": 21.565,
- "vertical": "restaurant",
- "GMV": true,
- "abc": "new-val"
- }
- },
- "JSON_ARRAY": {},
- "XML": {},
- "FORM": {}
- },
- "files": {},
- "userId": ""
- },
- "statusCode": 200
- }
- ]
- }
- }
- },
- {
- "name": "splitio",
- "description": "Test 5",
- "feature": "processor",
- "module": "destination",
- "version": "v0",
- "input": {
- "request": {
- "body": [
- {
- "message": {
- "userId": "user123",
- "messageId": "c73198a8-41d8-4426-9fd9-de167194d5f3",
- "rudderId": "bda76e3e-87eb-4153-9d1e-e9c2ed48b7a5",
- "context": {
- "ip": "14.5.67.21",
- "traits": {
- "abc": "new-val",
- "key": "key_user_0",
- "newProperty": "1",
- "martin": 21.565,
- "vertical": "restaurant",
- "GMV": false
- },
- "library": {
- "name": "http"
- }
- },
- "type": "identify",
- "timestamp": "2020-01-21T00:21:34.208Z",
- "writeKey": "1pe7u01A7rYOrvacE6WSgI6ESXh",
- "receivedAt": "2021-04-19T14:53:18.215+05:30",
- "requestIP": "[::1]"
- },
- "destination": {
- "Config": {
- "apiKey": "abcde",
- "environment": "staging",
- "trafficType": "user"
- }
- }
- }
- ]
- }
- },
- "output": {
- "response": {
- "status": 200,
- "body": [
- {
- "output": {
- "version": "1",
- "type": "REST",
- "method": "POST",
- "endpoint": "https://events.split.io/api/events",
- "headers": {
- "Content-Type": "application/json",
- "Authorization": "Bearer abcde"
- },
- "params": {},
- "body": {
- "JSON": {
- "eventTypeId": "identify",
- "key": "user123",
- "timestamp": 1579566094208,
- "environmentName": "staging",
- "trafficTypeName": "user",
- "properties": {
- "abc": "new-val",
- "newProperty": "1",
- "martin": 21.565,
- "vertical": "restaurant",
- "GMV": false
- }
- },
- "JSON_ARRAY": {},
- "XML": {},
- "FORM": {}
- },
- "files": {},
- "userId": ""
- },
- "statusCode": 200
- }
- ]
- }
- }
- },
- {
- "name": "splitio",
- "description": "Test 6",
- "feature": "processor",
- "module": "destination",
- "version": "v0",
- "input": {
- "request": {
- "body": [
- {
- "message": {
- "userId": "user123",
- "messageId": "c73198a8-41d8-4426-9fd9-de167194d5f3",
- "rudderId": "bda76e3e-87eb-4153-9d1e-e9c2ed48b7a5",
- "context": {
- "ip": "14.5.67.21",
- "traits": {
- "abc": "new-val",
- "key": "key_user_0",
- "newProperty": "1"
- },
- "library": {
- "name": "http"
- }
- },
- "timestamp": "2020-01-21T00:21:34.208Z",
- "writeKey": "1pe7u01A7rYOrvacE6WSgI6ESXh",
- "receivedAt": "2021-04-19T14:53:18.215+05:30",
- "requestIP": "[::1]"
- },
- "destination": {
- "Config": {
- "apiKey": "abcde",
- "environment": "staging",
- "trafficType": "user"
- }
- }
- }
- ]
- }
- },
- "output": {
- "response": {
- "status": 200,
- "body": [
- {
- "statusCode": 400,
- "error": "Event type is required",
- "statTags": {
- "errorCategory": "dataValidation",
- "errorType": "instrumentation",
- "destType": "SPLITIO",
- "module": "destination",
- "implementation": "native",
- "feature": "processor"
- }
- }
- ]
- }
- }
- },
- {
- "name": "splitio",
- "description": "Test 7",
- "feature": "processor",
- "module": "destination",
- "version": "v0",
- "input": {
- "request": {
- "body": [
- {
- "message": {
- "userId": "user123",
- "messageId": "c73198a8-41d8-4426-9fd9-de167194d5f3",
- "rudderId": "bda76e3e-87eb-4153-9d1e-e9c2ed48b7a5",
- "context": {
- "ip": "14.5.67.21",
- "traits": {
- "abc": "new-val",
- "key": "key_user_0",
- "newProperty": "1"
- },
- "library": {
- "name": "http"
- }
- },
- "type": "abc",
- "timestamp": "2020-01-21T00:21:34.208Z",
- "writeKey": "1pe7u01A7rYOrvacE6WSgI6ESXh",
- "receivedAt": "2021-04-19T14:53:18.215+05:30",
- "requestIP": "[::1]"
- },
- "destination": {
- "Config": {
- "apiKey": "abcde",
- "environment": "staging",
- "trafficType": "user"
- }
- }
- }
- ]
- }
- },
- "output": {
- "response": {
- "status": 200,
- "body": [
- {
- "statusCode": 400,
- "error": "Event type abc is not supported",
- "statTags": {
- "errorCategory": "dataValidation",
- "errorType": "instrumentation",
- "destType": "SPLITIO",
- "module": "destination",
- "implementation": "native",
- "feature": "processor"
- }
- }
- ]
- }
- }
- },
- {
- "name": "splitio",
- "description": "Test 8",
- "feature": "processor",
- "module": "destination",
- "version": "v0",
- "input": {
- "request": {
- "body": [
- {
- "message": {
- "name": "@$%%^&",
- "messageId": "9b200548-5961-4448-9dbc-098b7ce85751",
- "properties": {
- "eventTypeId": "page_load",
- "trafficTypeName": "user",
- "key": "key_user_0",
- "timestamp": 1513357833000,
- "value": "0.93",
- "martin": 21.565,
- "vertical": "restaurant",
- "GMV": true,
- "abc": "new-val"
- },
- "receivedAt": "2021-03-01T22:55:54.806Z",
- "rudderId": "6886eb9e-215d-4f61-a651-4b8ef18aaea3",
- "timestamp": "2021-03-01T22:55:54.771Z",
- "type": "page",
- "userId": "user 1"
- },
- "destination": {
- "Config": {
- "apiKey": "abcde",
- "environment": "production",
- "trafficType": "user"
- }
- }
- }
- ]
- }
- },
- "output": {
- "response": {
- "status": 200,
- "body": [
- {
- "statusCode": 400,
- "error": "eventTypeId does not match with ideal format /^[\\dA-Za-z][\\w.-]{0,79}$/",
- "statTags": {
- "errorCategory": "dataValidation",
- "errorType": "instrumentation",
- "destType": "SPLITIO",
- "module": "destination",
- "implementation": "native",
- "feature": "processor"
- }
- }
- ]
- }
- }
- },
- {
- "name": "splitio",
- "description": "Test 9",
- "feature": "processor",
- "module": "destination",
- "version": "v0",
- "input": {
- "request": {
- "body": [
- {
- "message": {
- "name": "1pplication accepted",
- "messageId": "9b200548-5961-4448-9dbc-098b7ce85751",
- "category": "food",
- "properties": {
- "eventTypeId": "page_load",
- "trafficTypeName": "user",
- "key": "key_user_0",
- "timestamp": 1513357833000,
- "value": "bc2",
- "martin": 21.565,
- "vertical": [
- "restaurant",
- "mall"
- ],
- "GMV": true,
- "abc": "new-val"
- },
- "receivedAt": "2021-03-01T22:55:54.806Z",
- "rudderId": "6886eb9e-215d-4f61-a651-4b8ef18aaea3",
- "timestamp": "2021-03-01T22:55:54.771Z",
- "type": "page",
- "userId": "user 1"
- },
- "destination": {
- "Config": {
- "apiKey": "abcde",
- "environment": "production",
- "trafficType": "user"
- }
- }
- }
- ]
- }
- },
- "output": {
- "response": {
- "status": 200,
- "body": [
- {
- "output": {
- "version": "1",
- "type": "REST",
- "method": "POST",
- "endpoint": "https://events.split.io/api/events",
- "headers": {
- "Content-Type": "application/json",
- "Authorization": "Bearer abcde"
- },
- "params": {},
- "body": {
- "JSON": {
- "eventTypeId": "Viewed_1pplication_accepted_page",
- "key": "user 1",
- "timestamp": 1614639354771,
- "environmentName": "production",
- "trafficTypeName": "user",
- "properties": {
- "martin": 21.565,
- "vertical[0]": "restaurant",
- "vertical[1]": "mall",
- "GMV": true,
- "abc": "new-val",
- "category": "food"
- }
- },
- "JSON_ARRAY": {},
- "XML": {},
- "FORM": {}
- },
- "files": {},
- "userId": ""
- },
- "statusCode": 200
- }
- ]
- }
- }
- },
- {
- "name": "splitio",
- "description": "Test 10",
- "feature": "processor",
- "module": "destination",
- "version": "v0",
- "input": {
- "request": {
- "body": [
- {
- "message": {
- "userId": "user123",
- "messageId": "c73198a8-41d8-4426-9fd9-de167194d5f3",
- "rudderId": "bda76e3e-87eb-4153-9d1e-e9c2ed48b7a5",
- "context": {
- "ip": "14.5.67.21",
- "library": {
- "name": "http"
- }
- },
- "type": "identify",
- "timestamp": "2020-01-21T00:21:34.208Z",
- "writeKey": "1pe7u01A7rYOrvacE6WSgI6ESXh",
- "receivedAt": "2021-04-19T14:53:18.215+05:30",
- "requestIP": "[::1]"
- },
- "destination": {
- "Config": {
- "apiKey": "abcde",
- "environment": "staging",
- "trafficType": "user"
- }
- }
- }
- ]
- }
- },
- "output": {
- "response": {
- "status": 200,
- "body": [
- {
- "output": {
- "version": "1",
- "type": "REST",
- "method": "POST",
- "endpoint": "https://events.split.io/api/events",
- "headers": {
- "Content-Type": "application/json",
- "Authorization": "Bearer abcde"
- },
- "params": {},
- "body": {
- "JSON": {
- "eventTypeId": "identify",
- "key": "user123",
- "timestamp": 1579566094208,
- "environmentName": "staging",
- "trafficTypeName": "user",
- "properties": {}
- },
- "JSON_ARRAY": {},
- "XML": {},
- "FORM": {}
- },
- "files": {},
- "userId": ""
- },
- "statusCode": 200
- }
- ]
- }
- }
- }
-]
+ {
+ name: 'splitio',
+ description: 'Test 0',
+ feature: 'processor',
+ module: 'destination',
+ version: 'v0',
+ input: {
+ request: {
+ body: [
+ {
+ message: {
+ traits: {
+ martin: 21.565,
+ trafficTypeName: 'user',
+ vertical: 'restaurant',
+ eventTypeId: 'page_load end to end',
+ timestamp: 1513357833000,
+ GMV: false,
+ },
+ userId: 'user123',
+ messageId: 'c73198a8-41d8-4426-9fd9-de167194d5f3',
+ rudderId: 'bda76e3e-87eb-4153-9d1e-e9c2ed48b7a5',
+ context: {
+ ip: '14.5.67.21',
+ traits: {
+ abc: 'new-val',
+ key: 'key_user_0',
+ value: '0.93',
+ },
+ library: {
+ name: 'http',
+ },
+ },
+ type: 'group',
+ groupId: 'group1',
+ timestamp: '2020-01-21T00:21:34.208Z',
+ writeKey: '1pe7u01A7rYOrvacE6WSgI6ESXh',
+ receivedAt: '2021-04-19T14:53:18.215+05:30',
+ requestIP: '[::1]',
+ },
+ destination: {
+ Config: {
+ apiKey: 'abcde',
+ environment: 'staging',
+ trafficType: 'user',
+ },
+ },
+ },
+ ],
+ },
+ },
+ output: {
+ response: {
+ status: 200,
+ body: [
+ {
+ output: {
+ version: '1',
+ type: 'REST',
+ method: 'POST',
+ endpoint: 'https://events.split.io/api/events',
+ headers: {
+ 'Content-Type': 'application/json',
+ Authorization: 'Bearer abcde',
+ },
+ params: {},
+ body: {
+ JSON: {
+ eventTypeId: 'group',
+ key: 'user123',
+ timestamp: 1579566094208,
+ environmentName: 'staging',
+ trafficTypeName: 'user',
+ properties: {
+ martin: 21.565,
+ vertical: 'restaurant',
+ GMV: false,
+ },
+ },
+ JSON_ARRAY: {},
+ XML: {},
+ FORM: {},
+ },
+ files: {},
+ userId: '',
+ },
+ statusCode: 200,
+ },
+ ],
+ },
+ },
+ },
+ {
+ name: 'splitio',
+ description: 'Test 1',
+ feature: 'processor',
+ module: 'destination',
+ version: 'v0',
+ input: {
+ request: {
+ body: [
+ {
+ message: {
+ traits: {
+ martin: 21.565,
+ trafficTypeName: 'user',
+ eventTypeId: 'page_load end to end',
+ timestamp: 1513357833000,
+ address: {
+ city: 'San Francisco',
+ state: 'CA',
+ country: 'USA',
+ },
+ key1: {
+ a: 'a',
+ },
+ key2: [1, 2, 3],
+ key3: {
+ key4: {},
+ },
+ key5: null,
+ },
+ userId: 'user123',
+ messageId: 'c73198a8-41d8-4426-9fd9-de167194d5f3',
+ rudderId: 'bda76e3e-87eb-4153-9d1e-e9c2ed48b7a5',
+ context: {
+ ip: '14.5.67.21',
+ traits: {
+ abc: 'new-val',
+ key: 'key_user_0',
+ },
+ library: {
+ name: 'http',
+ },
+ },
+ type: 'identify',
+ timestamp: '2020-01-21T00:21:34.208Z',
+ writeKey: '1pe7u01A7rYOrvacE6WSgI6ESXh',
+ receivedAt: '2021-04-19T14:53:18.215+05:30',
+ requestIP: '[::1]',
+ },
+ destination: {
+ Config: {
+ apiKey: 'abcde',
+ environment: 'staging',
+ trafficType: 'user',
+ },
+ },
+ },
+ ],
+ },
+ },
+ output: {
+ response: {
+ status: 200,
+ body: [
+ {
+ output: {
+ version: '1',
+ type: 'REST',
+ method: 'POST',
+ endpoint: 'https://events.split.io/api/events',
+ headers: {
+ 'Content-Type': 'application/json',
+ Authorization: 'Bearer abcde',
+ },
+ params: {},
+ body: {
+ JSON: {
+ eventTypeId: 'identify',
+ key: 'user123',
+ timestamp: 1579566094208,
+ environmentName: 'staging',
+ trafficTypeName: 'user',
+ properties: {
+ martin: 21.565,
+ 'address.city': 'San Francisco',
+ 'address.state': 'CA',
+ 'address.country': 'USA',
+ 'key1.a': 'a',
+ 'key2[0]': 1,
+ 'key2[1]': 2,
+ 'key2[2]': 3,
+ },
+ },
+ JSON_ARRAY: {},
+ XML: {},
+ FORM: {},
+ },
+ files: {},
+ userId: '',
+ },
+ statusCode: 200,
+ },
+ ],
+ },
+ },
+ },
+ {
+ name: 'splitio',
+ description: 'Test 2',
+ feature: 'processor',
+ module: 'destination',
+ version: 'v0',
+ input: {
+ request: {
+ body: [
+ {
+ message: {
+ event: 'splitio_test_1',
+ messageId: '9b200548-5961-4448-9dbc-098b7ce85751',
+ properties: {
+ eventTypeId: 'page_load',
+ trafficTypeName: 'user',
+ key: 'key_user_0',
+ timestamp: 1513357833000,
+ value: '0.93',
+ martin: 21.565,
+ vertical: 'restaurant',
+ GMV: true,
+ abc: 'new-val',
+ property1: {
+ property2: 1,
+ property3: 'test',
+ property4: {
+ subProp1: {
+ a: 'a',
+ b: 'b',
+ },
+ subProp2: ['a', 'b'],
+ subProp3: {
+ prop: {},
+ },
+ },
+ },
+ properties5: null,
+ },
+ receivedAt: '2021-03-01T22:55:54.806Z',
+ rudderId: '6886eb9e-215d-4f61-a651-4b8ef18aaea3',
+ timestamp: '2021-03-01T22:55:54.771Z',
+ type: 'track',
+ userId: 'user 1',
+ },
+ destination: {
+ Config: {
+ apiKey: 'abcde',
+ environment: 'production',
+ trafficType: 'user',
+ },
+ },
+ },
+ ],
+ },
+ },
+ output: {
+ response: {
+ status: 200,
+ body: [
+ {
+ output: {
+ version: '1',
+ type: 'REST',
+ method: 'POST',
+ endpoint: 'https://events.split.io/api/events',
+ headers: {
+ 'Content-Type': 'application/json',
+ Authorization: 'Bearer abcde',
+ },
+ params: {},
+ body: {
+ JSON: {
+ eventTypeId: 'splitio_test_1',
+ key: 'user 1',
+ timestamp: 1614639354771,
+ value: 0.93,
+ environmentName: 'production',
+ trafficTypeName: 'user',
+ properties: {
+ martin: 21.565,
+ vertical: 'restaurant',
+ GMV: true,
+ abc: 'new-val',
+ 'property1.property2': 1,
+ 'property1.property3': 'test',
+ 'property1.property4.subProp1.a': 'a',
+ 'property1.property4.subProp1.b': 'b',
+ 'property1.property4.subProp2[0]': 'a',
+ 'property1.property4.subProp2[1]': 'b',
+ },
+ },
+ JSON_ARRAY: {},
+ XML: {},
+ FORM: {},
+ },
+ files: {},
+ userId: '',
+ },
+ statusCode: 200,
+ },
+ ],
+ },
+ },
+ },
+ {
+ name: 'splitio',
+ description: 'Test 3',
+ feature: 'processor',
+ module: 'destination',
+ version: 'v0',
+ input: {
+ request: {
+ body: [
+ {
+ message: {
+ name: 'splitio_test_1',
+ messageId: '9b200548-5961-4448-9dbc-098b7ce85751',
+ properties: {
+ eventTypeId: 'page_load',
+ trafficTypeName: 'user',
+ key: 'key_user_0',
+ timestamp: 1513357833000,
+ value: '0.93',
+ martin: 21.565,
+ vertical: 'restaurant',
+ GMV: true,
+ abc: 'new-val',
+ },
+ receivedAt: '2021-03-01T22:55:54.806Z',
+ rudderId: '6886eb9e-215d-4f61-a651-4b8ef18aaea3',
+ timestamp: '2021-03-01T22:55:54.771Z',
+ type: 'page',
+ userId: 'user 1',
+ },
+ destination: {
+ Config: {
+ apiKey: 'abcde',
+ environment: 'production',
+ trafficType: 'user',
+ },
+ },
+ },
+ ],
+ },
+ },
+ output: {
+ response: {
+ status: 200,
+ body: [
+ {
+ output: {
+ version: '1',
+ type: 'REST',
+ method: 'POST',
+ endpoint: 'https://events.split.io/api/events',
+ headers: {
+ 'Content-Type': 'application/json',
+ Authorization: 'Bearer abcde',
+ },
+ params: {},
+ body: {
+ JSON: {
+ eventTypeId: 'Viewed_splitio_test_1_page',
+ key: 'user 1',
+ timestamp: 1614639354771,
+ value: 0.93,
+ environmentName: 'production',
+ trafficTypeName: 'user',
+ properties: {
+ martin: 21.565,
+ vertical: 'restaurant',
+ GMV: true,
+ abc: 'new-val',
+ },
+ },
+ JSON_ARRAY: {},
+ XML: {},
+ FORM: {},
+ },
+ files: {},
+ userId: '',
+ },
+ statusCode: 200,
+ },
+ ],
+ },
+ },
+ },
+ {
+ name: 'splitio',
+ description: 'Test 4',
+ feature: 'processor',
+ module: 'destination',
+ version: 'v0',
+ input: {
+ request: {
+ body: [
+ {
+ message: {
+ name: 'splitio_test_1',
+ messageId: '9b200548-5961-4448-9dbc-098b7ce85751',
+ properties: {
+ eventTypeId: 'page_load',
+ trafficTypeName: 'user',
+ key: 'key_user_0',
+ timestamp: 1513357833000,
+ value: '0.93',
+ martin: 21.565,
+ vertical: 'restaurant',
+ GMV: true,
+ abc: 'new-val',
+ },
+ receivedAt: '2021-03-01T22:55:54.806Z',
+ rudderId: '6886eb9e-215d-4f61-a651-4b8ef18aaea3',
+ timestamp: '2021-03-01T22:55:54.771Z',
+ type: 'screen',
+ userId: 'user 1',
+ },
+ destination: {
+ Config: {
+ apiKey: 'abcde',
+ environment: 'staging',
+ trafficType: 'user',
+ },
+ },
+ },
+ ],
+ },
+ },
+ output: {
+ response: {
+ status: 200,
+ body: [
+ {
+ output: {
+ version: '1',
+ type: 'REST',
+ method: 'POST',
+ endpoint: 'https://events.split.io/api/events',
+ headers: {
+ 'Content-Type': 'application/json',
+ Authorization: 'Bearer abcde',
+ },
+ params: {},
+ body: {
+ JSON: {
+ eventTypeId: 'Viewed_splitio_test_1_screen',
+ key: 'user 1',
+ timestamp: 1614639354771,
+ value: 0.93,
+ environmentName: 'staging',
+ trafficTypeName: 'user',
+ properties: {
+ martin: 21.565,
+ vertical: 'restaurant',
+ GMV: true,
+ abc: 'new-val',
+ },
+ },
+ JSON_ARRAY: {},
+ XML: {},
+ FORM: {},
+ },
+ files: {},
+ userId: '',
+ },
+ statusCode: 200,
+ },
+ ],
+ },
+ },
+ },
+ {
+ name: 'splitio',
+ description: 'Test 5',
+ feature: 'processor',
+ module: 'destination',
+ version: 'v0',
+ input: {
+ request: {
+ body: [
+ {
+ message: {
+ userId: 'user123',
+ messageId: 'c73198a8-41d8-4426-9fd9-de167194d5f3',
+ rudderId: 'bda76e3e-87eb-4153-9d1e-e9c2ed48b7a5',
+ context: {
+ ip: '14.5.67.21',
+ traits: {
+ abc: 'new-val',
+ key: 'key_user_0',
+ newProperty: '1',
+ martin: 21.565,
+ vertical: 'restaurant',
+ GMV: false,
+ },
+ library: {
+ name: 'http',
+ },
+ },
+ type: 'identify',
+ timestamp: '2020-01-21T00:21:34.208Z',
+ writeKey: '1pe7u01A7rYOrvacE6WSgI6ESXh',
+ receivedAt: '2021-04-19T14:53:18.215+05:30',
+ requestIP: '[::1]',
+ },
+ destination: {
+ Config: {
+ apiKey: 'abcde',
+ environment: 'staging',
+ trafficType: 'user',
+ },
+ },
+ },
+ ],
+ },
+ },
+ output: {
+ response: {
+ status: 200,
+ body: [
+ {
+ output: {
+ version: '1',
+ type: 'REST',
+ method: 'POST',
+ endpoint: 'https://events.split.io/api/events',
+ headers: {
+ 'Content-Type': 'application/json',
+ Authorization: 'Bearer abcde',
+ },
+ params: {},
+ body: {
+ JSON: {
+ eventTypeId: 'identify',
+ key: 'user123',
+ timestamp: 1579566094208,
+ environmentName: 'staging',
+ trafficTypeName: 'user',
+ properties: {
+ abc: 'new-val',
+ newProperty: '1',
+ martin: 21.565,
+ vertical: 'restaurant',
+ GMV: false,
+ },
+ },
+ JSON_ARRAY: {},
+ XML: {},
+ FORM: {},
+ },
+ files: {},
+ userId: '',
+ },
+ statusCode: 200,
+ },
+ ],
+ },
+ },
+ },
+ {
+ name: 'splitio',
+ description: 'Test 6',
+ feature: 'processor',
+ module: 'destination',
+ version: 'v0',
+ input: {
+ request: {
+ body: [
+ {
+ message: {
+ userId: 'user123',
+ messageId: 'c73198a8-41d8-4426-9fd9-de167194d5f3',
+ rudderId: 'bda76e3e-87eb-4153-9d1e-e9c2ed48b7a5',
+ context: {
+ ip: '14.5.67.21',
+ traits: {
+ abc: 'new-val',
+ key: 'key_user_0',
+ newProperty: '1',
+ },
+ library: {
+ name: 'http',
+ },
+ },
+ timestamp: '2020-01-21T00:21:34.208Z',
+ writeKey: '1pe7u01A7rYOrvacE6WSgI6ESXh',
+ receivedAt: '2021-04-19T14:53:18.215+05:30',
+ requestIP: '[::1]',
+ },
+ destination: {
+ Config: {
+ apiKey: 'abcde',
+ environment: 'staging',
+ trafficType: 'user',
+ },
+ },
+ },
+ ],
+ },
+ },
+ output: {
+ response: {
+ status: 200,
+ body: [
+ {
+ statusCode: 400,
+ error: 'Event type is required',
+ statTags: {
+ errorCategory: 'dataValidation',
+ errorType: 'instrumentation',
+ destType: 'SPLITIO',
+ module: 'destination',
+ implementation: 'native',
+ feature: 'processor',
+ },
+ },
+ ],
+ },
+ },
+ },
+ {
+ name: 'splitio',
+ description: 'Test 7',
+ feature: 'processor',
+ module: 'destination',
+ version: 'v0',
+ input: {
+ request: {
+ body: [
+ {
+ message: {
+ userId: 'user123',
+ messageId: 'c73198a8-41d8-4426-9fd9-de167194d5f3',
+ rudderId: 'bda76e3e-87eb-4153-9d1e-e9c2ed48b7a5',
+ context: {
+ ip: '14.5.67.21',
+ traits: {
+ abc: 'new-val',
+ key: 'key_user_0',
+ newProperty: '1',
+ },
+ library: {
+ name: 'http',
+ },
+ },
+ type: 'abc',
+ timestamp: '2020-01-21T00:21:34.208Z',
+ writeKey: '1pe7u01A7rYOrvacE6WSgI6ESXh',
+ receivedAt: '2021-04-19T14:53:18.215+05:30',
+ requestIP: '[::1]',
+ },
+ destination: {
+ Config: {
+ apiKey: 'abcde',
+ environment: 'staging',
+ trafficType: 'user',
+ },
+ },
+ },
+ ],
+ },
+ },
+ output: {
+ response: {
+ status: 200,
+ body: [
+ {
+ statusCode: 400,
+ error: 'Event type abc is not supported',
+ statTags: {
+ errorCategory: 'dataValidation',
+ errorType: 'instrumentation',
+ destType: 'SPLITIO',
+ module: 'destination',
+ implementation: 'native',
+ feature: 'processor',
+ },
+ },
+ ],
+ },
+ },
+ },
+ {
+ name: 'splitio',
+ description: 'Test 8',
+ feature: 'processor',
+ module: 'destination',
+ version: 'v0',
+ input: {
+ request: {
+ body: [
+ {
+ message: {
+ name: '@$%%^&',
+ messageId: '9b200548-5961-4448-9dbc-098b7ce85751',
+ properties: {
+ eventTypeId: 'page_load',
+ trafficTypeName: 'user',
+ key: 'key_user_0',
+ timestamp: 1513357833000,
+ value: '0.93',
+ martin: 21.565,
+ vertical: 'restaurant',
+ GMV: true,
+ abc: 'new-val',
+ },
+ receivedAt: '2021-03-01T22:55:54.806Z',
+ rudderId: '6886eb9e-215d-4f61-a651-4b8ef18aaea3',
+ timestamp: '2021-03-01T22:55:54.771Z',
+ type: 'page',
+ userId: 'user 1',
+ },
+ destination: {
+ Config: {
+ apiKey: 'abcde',
+ environment: 'production',
+ trafficType: 'user',
+ },
+ },
+ },
+ ],
+ },
+ },
+ output: {
+ response: {
+ status: 200,
+ body: [
+ {
+ statusCode: 400,
+ error: 'eventTypeId does not match with ideal format /^[\\dA-Za-z][\\w.-]{0,79}$/',
+ statTags: {
+ errorCategory: 'dataValidation',
+ errorType: 'instrumentation',
+ destType: 'SPLITIO',
+ module: 'destination',
+ implementation: 'native',
+ feature: 'processor',
+ },
+ },
+ ],
+ },
+ },
+ },
+ {
+ name: 'splitio',
+ description: 'Test 9',
+ feature: 'processor',
+ module: 'destination',
+ version: 'v0',
+ input: {
+ request: {
+ body: [
+ {
+ message: {
+ name: '1pplication accepted',
+ messageId: '9b200548-5961-4448-9dbc-098b7ce85751',
+ category: 'food',
+ properties: {
+ eventTypeId: 'page_load',
+ trafficTypeName: 'user',
+ key: 'key_user_0',
+ timestamp: 1513357833000,
+ value: 'bc2',
+ martin: 21.565,
+ vertical: ['restaurant', 'mall'],
+ GMV: true,
+ abc: 'new-val',
+ },
+ receivedAt: '2021-03-01T22:55:54.806Z',
+ rudderId: '6886eb9e-215d-4f61-a651-4b8ef18aaea3',
+ timestamp: '2021-03-01T22:55:54.771Z',
+ type: 'page',
+ userId: 'user 1',
+ },
+ destination: {
+ Config: {
+ apiKey: 'abcde',
+ environment: 'production',
+ trafficType: 'user',
+ },
+ },
+ },
+ ],
+ },
+ },
+ output: {
+ response: {
+ status: 200,
+ body: [
+ {
+ output: {
+ version: '1',
+ type: 'REST',
+ method: 'POST',
+ endpoint: 'https://events.split.io/api/events',
+ headers: {
+ 'Content-Type': 'application/json',
+ Authorization: 'Bearer abcde',
+ },
+ params: {},
+ body: {
+ JSON: {
+ eventTypeId: 'Viewed_1pplication_accepted_page',
+ key: 'user 1',
+ timestamp: 1614639354771,
+ environmentName: 'production',
+ trafficTypeName: 'user',
+ properties: {
+ martin: 21.565,
+ 'vertical[0]': 'restaurant',
+ 'vertical[1]': 'mall',
+ GMV: true,
+ abc: 'new-val',
+ category: 'food',
+ },
+ },
+ JSON_ARRAY: {},
+ XML: {},
+ FORM: {},
+ },
+ files: {},
+ userId: '',
+ },
+ statusCode: 200,
+ },
+ ],
+ },
+ },
+ },
+ {
+ name: 'splitio',
+ description: 'Test 10',
+ feature: 'processor',
+ module: 'destination',
+ version: 'v0',
+ input: {
+ request: {
+ body: [
+ {
+ message: {
+ userId: 'user123',
+ messageId: 'c73198a8-41d8-4426-9fd9-de167194d5f3',
+ rudderId: 'bda76e3e-87eb-4153-9d1e-e9c2ed48b7a5',
+ context: {
+ ip: '14.5.67.21',
+ library: {
+ name: 'http',
+ },
+ },
+ type: 'identify',
+ timestamp: '2020-01-21T00:21:34.208Z',
+ writeKey: '1pe7u01A7rYOrvacE6WSgI6ESXh',
+ receivedAt: '2021-04-19T14:53:18.215+05:30',
+ requestIP: '[::1]',
+ },
+ destination: {
+ Config: {
+ apiKey: 'abcde',
+ environment: 'staging',
+ trafficType: 'user',
+ },
+ },
+ },
+ ],
+ },
+ },
+ output: {
+ response: {
+ status: 200,
+ body: [
+ {
+ output: {
+ version: '1',
+ type: 'REST',
+ method: 'POST',
+ endpoint: 'https://events.split.io/api/events',
+ headers: {
+ 'Content-Type': 'application/json',
+ Authorization: 'Bearer abcde',
+ },
+ params: {},
+ body: {
+ JSON: {
+ eventTypeId: 'identify',
+ key: 'user123',
+ timestamp: 1579566094208,
+ environmentName: 'staging',
+ trafficTypeName: 'user',
+ properties: {},
+ },
+ JSON_ARRAY: {},
+ XML: {},
+ FORM: {},
+ },
+ files: {},
+ userId: '',
+ },
+ statusCode: 200,
+ },
+ ],
+ },
+ },
+ },
+];
diff --git a/test/integrations/destinations/the_trade_desk/common.ts b/test/integrations/destinations/the_trade_desk/common.ts
index d792c7faae..8deaf60034 100644
--- a/test/integrations/destinations/the_trade_desk/common.ts
+++ b/test/integrations/destinations/the_trade_desk/common.ts
@@ -3,6 +3,7 @@ const destTypeInUpperCase = 'THE_TRADE_DESK';
const advertiserId = 'test-advertiser-id';
const dataProviderId = 'rudderstack';
const segmentName = 'test-segment';
+const trackerId = 'test-trackerId';
const sampleDestination = {
Config: {
advertiserId,
@@ -10,6 +11,7 @@ const sampleDestination = {
dataServer: 'apac',
ttlInDays: 30,
audienceId: segmentName,
+ trackerId,
},
DestinationDefinition: { Config: { cdkV2Enabled: true } },
};
@@ -33,12 +35,73 @@ const sampleContext = {
sources: sampleSource,
};
+const sampleContextForConversion = {
+ app: {
+ build: '1.0.0',
+ name: 'RudderLabs Android SDK',
+ namespace: 'com.rudderlabs.javascript',
+ version: '1.0.5',
+ },
+ device: {
+ adTrackingEnabled: true,
+ advertisingId: '3f034872-5e28-45a1-9eda-ce22a3e36d1a',
+ id: '3f034872-5e28-45a1-9eda-ce22a3e36d1a',
+ manufacturer: 'Google',
+ model: 'AOSP on IA Emulator',
+ name: 'generic_x86_arm',
+ type: 'ios',
+ attTrackingStatus: 3,
+ },
+ externalId: [
+ {
+ type: 'daid',
+ id: 'test-daid',
+ },
+ ],
+ ip: '0.0.0.0',
+ page: {
+ referrer: 'https://docs.rudderstack.com/destinations/trade_desk',
+ },
+ library: {
+ name: 'RudderLabs JavaScript SDK',
+ version: '1.0.5',
+ },
+ locale: 'en-GB',
+ os: {
+ name: '',
+ version: '',
+ },
+ screen: {
+ density: 2,
+ },
+ userAgent:
+ 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_2) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/79.0.3945.117 Safari/537.36',
+};
+
+const integrationObject = {
+ All: true,
+ THE_TRADE_DESK: {
+ policies: ['LDU'],
+ region: 'US-CA',
+ privacy_settings: [
+ {
+ privacy_type: 'GDPR',
+ is_applicable: 1,
+ consent_string: 'ok',
+ },
+ ],
+ },
+};
+
export {
destType,
destTypeInUpperCase,
advertiserId,
dataProviderId,
segmentName,
+ trackerId,
sampleDestination,
sampleContext,
+ sampleContextForConversion,
+ integrationObject,
};
diff --git a/test/integrations/destinations/the_trade_desk/delivery/data.ts b/test/integrations/destinations/the_trade_desk/delivery/data.ts
index 320eb6dcfe..da8f60972e 100644
--- a/test/integrations/destinations/the_trade_desk/delivery/data.ts
+++ b/test/integrations/destinations/the_trade_desk/delivery/data.ts
@@ -5,6 +5,7 @@ import {
dataProviderId,
segmentName,
sampleDestination,
+ trackerId,
} from '../common';
beforeAll(() => {
@@ -245,4 +246,169 @@ export const data = [
},
},
},
+ {
+ name: destType,
+ description: 'Successful delivery of realtime conversion event to Trade Desk',
+ feature: 'dataDelivery',
+ module: 'destination',
+ version: 'v0',
+ input: {
+ request: {
+ body: {
+ version: '1',
+ type: 'REST',
+ method: 'POST',
+ endpoint: 'https://insight.adsrvr.org/track/realtimeconversion',
+ headers: {},
+ params: {},
+ body: {
+ JSON: {
+ data: [
+ {
+ tracker_id: trackerId,
+ adv: advertiserId,
+ currency: 'USD',
+ event_name: 'viewitem',
+ value: 249.95000000000002,
+ items: [
+ {
+ item_code: '622c6f5d5cf86a4c77358033',
+ name: 'Cones of Dunshire',
+ qty: 5,
+ price: 49.99,
+ },
+ ],
+ category: 'Games',
+ brand: 'Wyatt Games',
+ variant: 'exapansion pack',
+ coupon: 'PREORDER15',
+ position: 1,
+ url: 'https://www.website.com/product/path',
+ image_url: 'https://www.website.com/product/path.webp',
+ },
+ ],
+ },
+ JSON_ARRAY: {},
+ XML: {},
+ FORM: {},
+ },
+ files: {},
+ },
+ method: 'POST',
+ },
+ },
+ output: {
+ response: {
+ status: 200,
+ body: {
+ output: {
+ destinationResponse: {
+ response: {
+ Message: null,
+ EventResponses: [],
+ },
+ status: 200,
+ },
+ message: 'Request Processed Successfully',
+ status: 200,
+ },
+ },
+ },
+ },
+ },
+ {
+ name: destType,
+ description:
+ 'Error response from the Trade Desk due to invalid real time conversion event payload',
+ feature: 'dataDelivery',
+ module: 'destination',
+ version: 'v0',
+ input: {
+ request: {
+ body: {
+ version: '1',
+ type: 'REST',
+ method: 'POST',
+ endpoint: 'https://insight.adsrvr.org/track/realtimeconversion',
+ headers: {},
+ params: {},
+ body: {
+ JSON: {
+ data: [
+ {
+ tracker_id: trackerId,
+ adv: advertiserId,
+ currency: 'USD',
+ event_name: 'viewitem',
+ value: 249.95000000000002,
+ items: [
+ {
+ item_code: '622c6f5d5cf86a4c77358033',
+ name: 'Cones of Dunshire',
+ qty: 5,
+ price: 49.99,
+ },
+ ],
+ category: 'Games',
+ brand: 'Wyatt Games',
+ variant: 'exapansion pack',
+ coupon: 'PREORDER15',
+ position: 1,
+ url: 'https://www.website.com/product/path',
+ image_url: 'https://www.website.com/product/path.webp',
+ privacy_settings: [{}],
+ },
+ ],
+ },
+ JSON_ARRAY: {},
+ XML: {},
+ FORM: {},
+ },
+ files: {},
+ },
+ method: 'POST',
+ },
+ },
+ output: {
+ response: {
+ status: 400,
+ body: {
+ output: {
+ destinationResponse: {
+ response: {
+ Message: null,
+ EventResponses: [
+ {
+ EventIndex: 0,
+ EventErrors: [
+ {
+ Error: 'InvalidPrivacySetting',
+ ErrorMessage: 'The request has an invalid privacy setting.',
+ },
+ ],
+ EventWarnings: [],
+ Successful: false,
+ },
+ ],
+ },
+ status: 400,
+ },
+ message:
+ 'Request failed with status: 400 due to {"Message":null,"EventResponses":[{"EventIndex":0,"EventErrors":[{"Error":"InvalidPrivacySetting","ErrorMessage":"The request has an invalid privacy setting."}],"EventWarnings":[],"Successful":false}]}',
+ statTags: {
+ destType: destTypeInUpperCase,
+ destinationId: 'Non-determininable',
+ errorCategory: 'network',
+ errorType: 'aborted',
+ feature: 'dataDelivery',
+ implementation: 'native',
+ module: 'destination',
+ workspaceId: 'Non-determininable',
+ },
+ status: 400,
+ },
+ },
+ },
+ },
+ },
];
diff --git a/test/integrations/destinations/the_trade_desk/network.ts b/test/integrations/destinations/the_trade_desk/network.ts
index ed6bdf4c7d..5908cbf8f5 100644
--- a/test/integrations/destinations/the_trade_desk/network.ts
+++ b/test/integrations/destinations/the_trade_desk/network.ts
@@ -1,4 +1,4 @@
-import { destType, advertiserId, dataProviderId, segmentName } from './common';
+import { destType, advertiserId, dataProviderId, segmentName, trackerId } from './common';
export const networkCallsData = [
{
@@ -103,4 +103,107 @@ export const networkCallsData = [
statusText: 'Ok',
},
},
+ {
+ httpReq: {
+ url: 'https://insight.adsrvr.org/track/realtimeconversion',
+ data: {
+ data: [
+ {
+ tracker_id: trackerId,
+ adv: advertiserId,
+ currency: 'USD',
+ event_name: 'viewitem',
+ value: 249.95000000000002,
+ items: [
+ {
+ item_code: '622c6f5d5cf86a4c77358033',
+ name: 'Cones of Dunshire',
+ qty: 5,
+ price: 49.99,
+ },
+ ],
+ category: 'Games',
+ brand: 'Wyatt Games',
+ variant: 'exapansion pack',
+ coupon: 'PREORDER15',
+ position: 1,
+ url: 'https://www.website.com/product/path',
+ image_url: 'https://www.website.com/product/path.webp',
+ },
+ ],
+ },
+ params: { destination: destType },
+ headers: {
+ 'Content-Type': 'application/json',
+ 'User-Agent': 'RudderLabs',
+ },
+ method: 'POST',
+ },
+ httpRes: {
+ data: {
+ Message: null,
+ EventResponses: [],
+ },
+ status: 200,
+ statusText: 'OK',
+ },
+ },
+ {
+ httpReq: {
+ url: 'https://insight.adsrvr.org/track/realtimeconversion',
+ data: {
+ data: [
+ {
+ tracker_id: trackerId,
+ adv: advertiserId,
+ currency: 'USD',
+ event_name: 'viewitem',
+ value: 249.95000000000002,
+ items: [
+ {
+ item_code: '622c6f5d5cf86a4c77358033',
+ name: 'Cones of Dunshire',
+ qty: 5,
+ price: 49.99,
+ },
+ ],
+ category: 'Games',
+ brand: 'Wyatt Games',
+ variant: 'exapansion pack',
+ coupon: 'PREORDER15',
+ position: 1,
+ url: 'https://www.website.com/product/path',
+ image_url: 'https://www.website.com/product/path.webp',
+ privacy_settings: [{}],
+ },
+ ],
+ },
+ params: { destination: destType },
+ headers: {
+ 'Content-Type': 'application/json',
+ 'User-Agent': 'RudderLabs',
+ },
+ method: 'POST',
+ },
+ httpRes: {
+ data: {
+ Message: null,
+ EventResponses: [
+ {
+ EventIndex: 0,
+ EventErrors: [
+ {
+ Error: 'InvalidPrivacySetting',
+ ErrorMessage: 'The request has an invalid privacy setting.',
+ },
+ ],
+ EventWarnings: [],
+ Successful: false,
+ },
+ ],
+ },
+ status: 400,
+ statusText: 'Bad Request',
+ },
+ },
];
diff --git a/test/integrations/destinations/the_trade_desk/router/data.ts b/test/integrations/destinations/the_trade_desk/router/data.ts
index b02a80f563..6f379195fa 100644
--- a/test/integrations/destinations/the_trade_desk/router/data.ts
+++ b/test/integrations/destinations/the_trade_desk/router/data.ts
@@ -6,8 +6,11 @@ import {
advertiserId,
dataProviderId,
segmentName,
+ trackerId,
sampleDestination,
sampleContext,
+ sampleContextForConversion,
+ integrationObject,
} from '../common';
export const data = [
@@ -360,7 +363,7 @@ export const data = [
{ jobId: 2, userId: 'u1' },
],
statusCode: 400,
- error: 'Segment name is not present. Aborting',
+ error: 'Segment name/Audience ID is not present. Aborting',
statTags: {
destType: destTypeInUpperCase,
implementation: 'cdkV2',
@@ -403,6 +406,24 @@ export const data = [
userId: 'u1',
},
},
+ {
+ message: {
+ type: 'record',
+ action: 'insert',
+ fields: {
+ DAID: 'test-daid-2',
+ UID2: 'test-uid2-2',
+ },
+ channel: 'sources',
+ context: sampleContext,
+ recordId: '1',
+ },
+ destination: overrideDestination(sampleDestination, { advertiserId: '' }),
+ metadata: {
+ jobId: 2,
+ userId: 'u1',
+ },
+ },
],
destType,
},
@@ -416,7 +437,10 @@ export const data = [
output: [
{
batched: false,
- metadata: [{ jobId: 1, userId: 'u1' }],
+ metadata: [
+ { jobId: 1, userId: 'u1' },
+ { jobId: 2, userId: 'u1' },
+ ],
statusCode: 400,
error: 'Advertiser ID is not present. Aborting',
statTags: {
@@ -658,7 +682,8 @@ export const data = [
batched: false,
metadata: [{ jobId: 2 }],
statusCode: 400,
- error: 'Invalid action type',
+ error:
+ 'Invalid action type. You can only add or remove IDs from the audience/segment',
statTags: {
destType: destTypeInUpperCase,
implementation: 'cdkV2',
@@ -771,7 +796,7 @@ export const data = [
batched: false,
metadata: [{ jobId: 1 }],
statusCode: 400,
- error: 'Fields cannot be empty',
+ error: '`fields` cannot be empty',
statTags: {
destType: destTypeInUpperCase,
implementation: 'cdkV2',
@@ -826,7 +851,7 @@ export const data = [
batched: false,
metadata: [{ jobId: 1 }],
statusCode: 400,
- error: 'Fields cannot be empty',
+ error: '`fields` cannot be empty',
statTags: {
destType: destTypeInUpperCase,
implementation: 'cdkV2',
@@ -843,4 +868,1068 @@ export const data = [
},
mockFns: defaultMockFns,
},
+ {
+ name: destType,
+ description:
+ 'Mapped Ecommerce events (product added, product viewed, product added to wishlist, cart viewed, checkout started, order completed)',
+ feature: 'router',
+ module: 'destination',
+ version: 'v0',
+ input: {
+ request: {
+ body: {
+ input: [
+ {
+ message: {
+ type: 'track',
+ event: 'Product Added',
+ messageId: 'messageId123',
+ context: sampleContextForConversion,
+ properties: {
+ product_id: '622c6f5d5cf86a4c77358033',
+ sku: '8472-998-0112',
+ category: 'Games',
+ name: 'Cones of Dunshire',
+ brand: 'Wyatt Games',
+ variant: 'exapansion pack',
+ price: 49.99,
+ quantity: 5,
+ coupon: 'PREORDER15',
+ position: 1,
+ url: 'https://www.website.com/product/path',
+ image_url: 'https://www.website.com/product/path.webp',
+ key1: 'value1',
+ },
+ integrations: integrationObject,
+ },
+ destination: overrideDestination(sampleDestination, {
+ customProperties: [
+ {
+ rudderProperty: 'properties.key1',
+ tradeDeskProperty: 'td1',
+ },
+ {
+ rudderProperty: 'properties.key2',
+ tradeDeskProperty: 'td2',
+ },
+ ],
+ }),
+ metadata: {
+ jobId: 1,
+ },
+ },
+ {
+ message: {
+ type: 'track',
+ event: 'Product Viewed',
+ properties: {
+ product_id: '622c6f5d5cf86a4c77358033',
+ sku: '8472-998-0112',
+ category: 'Games',
+ name: 'Cones of Dunshire',
+ brand: 'Wyatt Games',
+ variant: 'exapansion pack',
+ price: 49.99,
+ quantity: 5,
+ coupon: 'PREORDER15',
+ currency: 'USD',
+ position: 1,
+ url: 'https://www.website.com/product/path',
+ image_url: 'https://www.website.com/product/path.webp',
+ },
+ },
+ destination: sampleDestination,
+ metadata: {
+ jobId: 2,
+ },
+ },
+ {
+ message: {
+ type: 'track',
+ event: 'Product Added to Wishlist',
+ properties: {
+ wishlist_id: '74fkdjfl0jfdkdj29j030',
+ wishlist_name: 'New Games',
+ product_id: '622c6f5d5cf86a4c77358033',
+ sku: '8472-998-0112',
+ category: 'Games',
+ name: 'Cones of Dunshire',
+ brand: 'Wyatt Games',
+ variant: 'exapansion pack',
+ price: 49.99,
+ quantity: 1,
+ coupon: 'PREORDER15',
+ position: 1,
+ url: 'https://www.site.com/product/path',
+ image_url: 'https://www.site.com/product/path.jpg',
+ },
+ },
+ destination: sampleDestination,
+ metadata: {
+ jobId: 3,
+ },
+ },
+ {
+ message: {
+ type: 'track',
+ event: 'Cart Viewed',
+ properties: {
+ cart_id: '6b2c6f5aecf86a4ae77358ae3',
+ products: [
+ {
+ product_id: '622c6f5d5cf86a4c77358033',
+ sku: '8472-998-0112',
+ name: 'Cones of Dunshire',
+ price: 49.99,
+ position: 5,
+ category: 'Games',
+ url: 'https://www.website.com/product/path',
+ image_url: 'https://www.website.com/product/path.jpg',
+ },
+ {
+ product_id: '577c6f5d5cf86a4c7735ba03',
+ sku: '3309-483-2201',
+ name: 'Five Crowns',
+ price: 5.99,
+ position: 2,
+ category: 'Games',
+ },
+ ],
+ },
+ },
+ destination: sampleDestination,
+ metadata: {
+ jobId: 4,
+ },
+ },
+ {
+ message: {
+ type: 'track',
+ event: 'Checkout Started',
+ properties: {
+ order_id: '40684e8f0eaf000000000000',
+ affiliation: 'Vandelay Games',
+ value: 52,
+ revenue: 50.0,
+ shipping: 4,
+ tax: 3,
+ discount: 5,
+ coupon: 'NEWCUST5',
+ currency: 'USD',
+ products: [
+ {
+ product_id: '622c6f5d5cf86a4c77358033',
+ sku: '8472-998-0112',
+ name: 'Cones of Dunshire',
+ price: 40,
+ position: 1,
+ category: 'Games',
+ url: 'https://www.website.com/product/path',
+ image_url: 'https://www.website.com/product/path.jpg',
+ },
+ {
+ product_id: '577c6f5d5cf86a4c7735ba03',
+ sku: '3309-483-2201',
+ name: 'Five Crowns',
+ price: 5,
+ position: 2,
+ category: 'Games',
+ },
+ ],
+ },
+ },
+ destination: sampleDestination,
+ metadata: {
+ jobId: 5,
+ },
+ },
+ {
+ message: {
+ type: 'track',
+ event: 'Order Completed',
+ properties: {
+ checkout_id: '70324a1f0eaf000000000000',
+ order_id: '40684e8f0eaf000000000000',
+ affiliation: 'Vandelay Games',
+ total: 52.0,
+ subtotal: 45.0,
+ revenue: 50.0,
+ shipping: 4.0,
+ tax: 3.0,
+ discount: 5.0,
+ coupon: 'NEWCUST5',
+ currency: 'USD',
+ products: [
+ {
+ product_id: '622c6f5d5cf86a4c77358033',
+ sku: '8472-998-0112',
+ name: 'Cones of Dunshire',
+ price: 40,
+ position: 1,
+ category: 'Games',
+ url: 'https://www.website.com/product/path',
+ image_url: 'https://www.website.com/product/path.jpg',
+ },
+ {
+ product_id: '577c6f5d5cf86a4c7735ba03',
+ sku: '3309-483-2201',
+ name: 'Five Crowns',
+ price: 5,
+ position: 2,
+ category: 'Games',
+ },
+ ],
+ },
+ },
+ destination: sampleDestination,
+ metadata: {
+ jobId: 6,
+ },
+ },
+ ],
+ destType,
+ },
+ },
+ },
+ output: {
+ response: {
+ status: 200,
+ body: {
+ output: [
+ {
+ batchedRequest: {
+ version: '1',
+ type: 'REST',
+ method: 'POST',
+ endpoint: 'https://insight.adsrvr.org/track/realtimeconversion',
+ headers: {},
+ params: {},
+ body: {
+ JSON: {
+ data: [
+ {
+ tracker_id: trackerId,
+ adv: advertiserId,
+ event_name: 'addtocart',
+ value: 249.95000000000002,
+ adid: 'test-daid',
+ adid_type: 'DAID',
+ client_ip: '0.0.0.0',
+ referrer_url: 'https://docs.rudderstack.com/destinations/trade_desk',
+ imp: 'messageId123',
+ items: [
+ {
+ item_code: '622c6f5d5cf86a4c77358033',
+ name: 'Cones of Dunshire',
+ qty: 5,
+ price: 49.99,
+ },
+ ],
+ td1: 'value1',
+ category: 'Games',
+ brand: 'Wyatt Games',
+ variant: 'exapansion pack',
+ coupon: 'PREORDER15',
+ position: 1,
+ url: 'https://www.website.com/product/path',
+ image_url: 'https://www.website.com/product/path.webp',
+ data_processing_option: {
+ policies: ['LDU'],
+ region: 'US-CA',
+ },
+ privacy_settings: [
+ {
+ privacy_type: 'GDPR',
+ is_applicable: 1,
+ consent_string: 'ok',
+ },
+ ],
+ },
+ ],
+ },
+ JSON_ARRAY: {},
+ XML: {},
+ FORM: {},
+ },
+ files: {},
+ },
+ metadata: [
+ {
+ jobId: 1,
+ },
+ ],
+ batched: false,
+ statusCode: 200,
+ destination: overrideDestination(sampleDestination, {
+ customProperties: [
+ {
+ rudderProperty: 'properties.key1',
+ tradeDeskProperty: 'td1',
+ },
+ {
+ rudderProperty: 'properties.key2',
+ tradeDeskProperty: 'td2',
+ },
+ ],
+ }),
+ },
+ {
+ batchedRequest: {
+ version: '1',
+ type: 'REST',
+ method: 'POST',
+ endpoint: 'https://insight.adsrvr.org/track/realtimeconversion',
+ headers: {},
+ params: {},
+ body: {
+ JSON: {
+ data: [
+ {
+ tracker_id: trackerId,
+ adv: advertiserId,
+ currency: 'USD',
+ event_name: 'viewitem',
+ value: 249.95000000000002,
+ items: [
+ {
+ item_code: '622c6f5d5cf86a4c77358033',
+ name: 'Cones of Dunshire',
+ qty: 5,
+ price: 49.99,
+ },
+ ],
+ category: 'Games',
+ brand: 'Wyatt Games',
+ variant: 'exapansion pack',
+ coupon: 'PREORDER15',
+ position: 1,
+ url: 'https://www.website.com/product/path',
+ image_url: 'https://www.website.com/product/path.webp',
+ },
+ ],
+ },
+ JSON_ARRAY: {},
+ XML: {},
+ FORM: {},
+ },
+ files: {},
+ },
+ metadata: [
+ {
+ jobId: 2,
+ },
+ ],
+ batched: false,
+ statusCode: 200,
+ destination: sampleDestination,
+ },
+ {
+ batchedRequest: {
+ version: '1',
+ type: 'REST',
+ method: 'POST',
+ endpoint: 'https://insight.adsrvr.org/track/realtimeconversion',
+ headers: {},
+ params: {},
+ body: {
+ JSON: {
+ data: [
+ {
+ tracker_id: trackerId,
+ adv: advertiserId,
+ event_name: 'wishlistitem',
+ value: 49.99,
+ items: [
+ {
+ item_code: '622c6f5d5cf86a4c77358033',
+ name: 'Cones of Dunshire',
+ qty: 1,
+ price: 49.99,
+ },
+ ],
+ wishlist_id: '74fkdjfl0jfdkdj29j030',
+ wishlist_name: 'New Games',
+ category: 'Games',
+ brand: 'Wyatt Games',
+ variant: 'exapansion pack',
+ coupon: 'PREORDER15',
+ position: 1,
+ url: 'https://www.site.com/product/path',
+ image_url: 'https://www.site.com/product/path.jpg',
+ },
+ ],
+ },
+ JSON_ARRAY: {},
+ XML: {},
+ FORM: {},
+ },
+ files: {},
+ },
+ metadata: [
+ {
+ jobId: 3,
+ },
+ ],
+ batched: false,
+ statusCode: 200,
+ destination: sampleDestination,
+ },
+ {
+ batchedRequest: {
+ version: '1',
+ type: 'REST',
+ method: 'POST',
+ endpoint: 'https://insight.adsrvr.org/track/realtimeconversion',
+ headers: {},
+ params: {},
+ body: {
+ JSON: {
+ data: [
+ {
+ tracker_id: trackerId,
+ adv: advertiserId,
+ event_name: 'viewcart',
+ items: [
+ {
+ item_code: '622c6f5d5cf86a4c77358033',
+ name: 'Cones of Dunshire',
+ price: 49.99,
+ position: 5,
+ category: 'Games',
+ url: 'https://www.website.com/product/path',
+ image_url: 'https://www.website.com/product/path.jpg',
+ },
+ {
+ item_code: '577c6f5d5cf86a4c7735ba03',
+ name: 'Five Crowns',
+ price: 5.99,
+ position: 2,
+ category: 'Games',
+ },
+ ],
+ cart_id: '6b2c6f5aecf86a4ae77358ae3',
+ },
+ ],
+ },
+ JSON_ARRAY: {},
+ XML: {},
+ FORM: {},
+ },
+ files: {},
+ },
+ metadata: [
+ {
+ jobId: 4,
+ },
+ ],
+ batched: false,
+ statusCode: 200,
+ destination: sampleDestination,
+ },
+ {
+ batchedRequest: {
+ version: '1',
+ type: 'REST',
+ method: 'POST',
+ endpoint: 'https://insight.adsrvr.org/track/realtimeconversion',
+ headers: {},
+ params: {},
+ body: {
+ JSON: {
+ data: [
+ {
+ tracker_id: trackerId,
+ adv: advertiserId,
+ currency: 'USD',
+ order_id: '40684e8f0eaf000000000000',
+ event_name: 'startcheckout',
+ value: 50,
+ items: [
+ {
+ item_code: '622c6f5d5cf86a4c77358033',
+ name: 'Cones of Dunshire',
+ price: 40,
+ position: 1,
+ category: 'Games',
+ url: 'https://www.website.com/product/path',
+ image_url: 'https://www.website.com/product/path.jpg',
+ },
+ {
+ item_code: '577c6f5d5cf86a4c7735ba03',
+ name: 'Five Crowns',
+ price: 5,
+ position: 2,
+ category: 'Games',
+ },
+ ],
+ affiliation: 'Vandelay Games',
+ shipping: 4,
+ tax: 3,
+ discount: 5,
+ coupon: 'NEWCUST5',
+ },
+ ],
+ },
+ JSON_ARRAY: {},
+ XML: {},
+ FORM: {},
+ },
+ files: {},
+ },
+ metadata: [
+ {
+ jobId: 5,
+ },
+ ],
+ batched: false,
+ statusCode: 200,
+ destination: sampleDestination,
+ },
+ {
+ batchedRequest: {
+ version: '1',
+ type: 'REST',
+ method: 'POST',
+ endpoint: 'https://insight.adsrvr.org/track/realtimeconversion',
+ headers: {},
+ params: {},
+ body: {
+ JSON: {
+ data: [
+ {
+ tracker_id: trackerId,
+ adv: advertiserId,
+ currency: 'USD',
+ order_id: '40684e8f0eaf000000000000',
+ event_name: 'purchase',
+ value: 50,
+ items: [
+ {
+ item_code: '622c6f5d5cf86a4c77358033',
+ name: 'Cones of Dunshire',
+ price: 40,
+ position: 1,
+ category: 'Games',
+ url: 'https://www.website.com/product/path',
+ image_url: 'https://www.website.com/product/path.jpg',
+ },
+ {
+ item_code: '577c6f5d5cf86a4c7735ba03',
+ name: 'Five Crowns',
+ price: 5,
+ position: 2,
+ category: 'Games',
+ },
+ ],
+ checkout_id: '70324a1f0eaf000000000000',
+ affiliation: 'Vandelay Games',
+ total: 52.0,
+ subtotal: 45.0,
+ shipping: 4.0,
+ tax: 3.0,
+ discount: 5.0,
+ coupon: 'NEWCUST5',
+ },
+ ],
+ },
+ JSON_ARRAY: {},
+ XML: {},
+ FORM: {},
+ },
+ files: {},
+ },
+ metadata: [
+ {
+ jobId: 6,
+ },
+ ],
+ batched: false,
+ statusCode: 200,
+ destination: sampleDestination,
+ },
+ ],
+ },
+ },
+ },
+ },
+ {
+ name: destType,
+ description: 'Custom event',
+ feature: 'router',
+ module: 'destination',
+ version: 'v0',
+ input: {
+ request: {
+ body: {
+ input: [
+ {
+ message: {
+ type: 'track',
+ event: 'custom event abc',
+ properties: {
+ key1: 'value1',
+ value: 25,
+ product_id: 'prd123',
+ key2: true,
+ test: 'test123',
+ },
+ },
+ destination: overrideDestination(sampleDestination, {
+ customProperties: [
+ {
+ rudderProperty: 'properties.key1',
+ tradeDeskProperty: 'td1',
+ },
+ {
+ rudderProperty: 'properties.key2',
+ tradeDeskProperty: 'td2',
+ },
+ ],
+ }),
+ metadata: {
+ jobId: 1,
+ },
+ },
+ ],
+ destType,
+ },
+ },
+ },
+ output: {
+ response: {
+ status: 200,
+ body: {
+ output: [
+ {
+ batchedRequest: {
+ version: '1',
+ type: 'REST',
+ method: 'POST',
+ endpoint: 'https://insight.adsrvr.org/track/realtimeconversion',
+ headers: {},
+ params: {},
+ body: {
+ JSON: {
+ data: [
+ {
+ tracker_id: trackerId,
+ adv: advertiserId,
+ event_name: 'custom event abc',
+ value: 25,
+ product_id: 'prd123',
+ test: 'test123',
+ td1: 'value1',
+ td2: true,
+ },
+ ],
+ },
+ JSON_ARRAY: {},
+ XML: {},
+ FORM: {},
+ },
+ files: {},
+ },
+ metadata: [
+ {
+ jobId: 1,
+ },
+ ],
+ batched: false,
+ statusCode: 200,
+ destination: overrideDestination(sampleDestination, {
+ customProperties: [
+ {
+ rudderProperty: 'properties.key1',
+ tradeDeskProperty: 'td1',
+ },
+ {
+ rudderProperty: 'properties.key2',
+ tradeDeskProperty: 'td2',
+ },
+ ],
+ }),
+ },
+ ],
+ },
+ },
+ },
+ },
+ {
+ name: destType,
+ description: 'Mapped standard trade desk event',
+ feature: 'router',
+ module: 'destination',
+ version: 'v0',
+ input: {
+ request: {
+ body: {
+ input: [
+ {
+ message: {
+ type: 'track',
+ event: 'custom event abc',
+ properties: {
+ key1: 'value1',
+ value: 25,
+ product_id: 'prd123',
+ key2: true,
+ test: 'test123',
+ },
+ },
+ destination: overrideDestination(sampleDestination, {
+ eventsMapping: [
+ {
+ from: 'custom event abc',
+ to: 'direction',
+ },
+ ],
+ }),
+ metadata: {
+ jobId: 1,
+ },
+ },
+ ],
+ destType,
+ },
+ },
+ },
+ output: {
+ response: {
+ status: 200,
+ body: {
+ output: [
+ {
+ batchedRequest: {
+ version: '1',
+ type: 'REST',
+ method: 'POST',
+ endpoint: 'https://insight.adsrvr.org/track/realtimeconversion',
+ headers: {},
+ params: {},
+ body: {
+ JSON: {
+ data: [
+ {
+ tracker_id: trackerId,
+ adv: advertiserId,
+ event_name: 'direction',
+ value: 25,
+ product_id: 'prd123',
+ test: 'test123',
+ key1: 'value1',
+ key2: true,
+ },
+ ],
+ },
+ JSON_ARRAY: {},
+ XML: {},
+ FORM: {},
+ },
+ files: {},
+ },
+ metadata: [
+ {
+ jobId: 1,
+ },
+ ],
+ batched: false,
+ statusCode: 200,
+ destination: overrideDestination(sampleDestination, {
+ eventsMapping: [
+ {
+ from: 'custom event abc',
+ to: 'direction',
+ },
+ ],
+ }),
+ },
+ ],
+ },
+ },
+ },
+ },
+ {
+ name: destType,
+ description: 'Batch call with different event types',
+ feature: 'router',
+ module: 'destination',
+ version: 'v0',
+ input: {
+ request: {
+ body: {
+ input: [
+ {
+ message: {
+ type: 'record',
+ action: 'insert',
+ fields: {
+ DAID: 'test-daid-1',
+ },
+ channel: 'sources',
+ context: sampleContext,
+ recordId: '1',
+ },
+ destination: sampleDestination,
+ metadata: {
+ jobId: 1,
+ },
+ },
+ {
+ message: {
+ type: 'track',
+ event: 'custom event abc',
+ properties: {
+ key1: 'value1',
+ value: 25,
+ product_id: 'prd123',
+ key2: true,
+ test: 'test123',
+ },
+ },
+ destination: sampleDestination,
+ metadata: {
+ jobId: 2,
+ },
+ },
+ {
+ message: {
+ type: 'identify',
+ context: {
+ traits: {
+ name: 'John Doe',
+ email: 'johndoe@gmail.com',
+ age: 25,
+ },
+ },
+ },
+ destination: sampleDestination,
+ metadata: {
+ jobId: 3,
+ },
+ },
+ ],
+ destType,
+ },
+ method: 'POST',
+ },
+ },
+ output: {
+ response: {
+ status: 200,
+ body: {
+ output: [
+ {
+ batchedRequest: [
+ {
+ version: '1',
+ type: 'REST',
+ method: 'POST',
+ endpoint: 'https://sin-data.adsrvr.org/data/advertiser',
+ headers: {},
+ params: {},
+ body: {
+ JSON: {
+ DataProviderId: dataProviderId,
+ AdvertiserId: advertiserId,
+ Items: [
+ {
+ DAID: 'test-daid-1',
+ Data: [
+ {
+ Name: segmentName,
+ TTLInMinutes: 43200,
+ },
+ ],
+ },
+ ],
+ },
+ JSON_ARRAY: {},
+ XML: {},
+ FORM: {},
+ },
+ files: {},
+ },
+ ],
+ metadata: [
+ {
+ jobId: 1,
+ },
+ ],
+ batched: true,
+ statusCode: 200,
+ destination: sampleDestination,
+ },
+ {
+ batchedRequest: {
+ version: '1',
+ type: 'REST',
+ method: 'POST',
+ endpoint: 'https://insight.adsrvr.org/track/realtimeconversion',
+ headers: {},
+ params: {},
+ body: {
+ JSON: {
+ data: [
+ {
+ tracker_id: trackerId,
+ adv: advertiserId,
+ event_name: 'custom event abc',
+ value: 25,
+ product_id: 'prd123',
+ test: 'test123',
+ key1: 'value1',
+ key2: true,
+ },
+ ],
+ },
+ JSON_ARRAY: {},
+ XML: {},
+ FORM: {},
+ },
+ files: {},
+ },
+ metadata: [
+ {
+ jobId: 2,
+ },
+ ],
+ batched: false,
+ statusCode: 200,
+ destination: sampleDestination,
+ },
+ {
+ batched: false,
+ metadata: [{ jobId: 3 }],
+ statusCode: 400,
+ error: 'Event type identify is not supported',
+ statTags: {
+ errorCategory: 'dataValidation',
+ errorType: 'instrumentation',
+ destType: 'THE_TRADE_DESK',
+ module: 'destination',
+ implementation: 'cdkV2',
+ feature: 'router',
+ },
+ destination: sampleDestination,
+ },
+ ],
+ },
+ },
+ },
+ },
+ {
+ name: destType,
+ description: 'Tracker id is not present',
+ feature: 'router',
+ module: 'destination',
+ version: 'v0',
+ input: {
+ request: {
+ body: {
+ input: [
+ {
+ message: {
+ type: 'record',
+ action: 'insert',
+ fields: {
+ DAID: 'test-daid-1',
+ },
+ channel: 'sources',
+ context: sampleContext,
+ recordId: '1',
+ },
+ destination: overrideDestination(sampleDestination, { trackerId: '' }),
+ metadata: {
+ jobId: 1,
+ },
+ },
+ {
+ message: {
+ type: 'track',
+ event: 'custom event abc',
+ properties: {
+ key1: 'value1',
+ value: 25,
+ product_id: 'prd123',
+ key2: true,
+ test: 'test123',
+ },
+ },
+ destination: overrideDestination(sampleDestination, { trackerId: '' }),
+ metadata: {
+ jobId: 2,
+ },
+ },
+ ],
+ destType,
+ },
+ method: 'POST',
+ },
+ },
+ output: {
+ response: {
+ status: 200,
+ body: {
+ output: [
+ {
+ batchedRequest: [
+ {
+ version: '1',
+ type: 'REST',
+ method: 'POST',
+ endpoint: 'https://sin-data.adsrvr.org/data/advertiser',
+ headers: {},
+ params: {},
+ body: {
+ JSON: {
+ DataProviderId: dataProviderId,
+ AdvertiserId: advertiserId,
+ Items: [
+ {
+ DAID: 'test-daid-1',
+ Data: [
+ {
+ Name: segmentName,
+ TTLInMinutes: 43200,
+ },
+ ],
+ },
+ ],
+ },
+ JSON_ARRAY: {},
+ XML: {},
+ FORM: {},
+ },
+ files: {},
+ },
+ ],
+ metadata: [
+ {
+ jobId: 1,
+ },
+ ],
+ batched: true,
+ statusCode: 200,
+ destination: overrideDestination(sampleDestination, { trackerId: '' }),
+ },
+ {
+ batched: false,
+ metadata: [{ jobId: 2 }],
+ statusCode: 400,
+ error: 'Tracking Tag ID is not present. Aborting',
+ statTags: {
+ errorCategory: 'dataValidation',
+ errorType: 'configuration',
+ destType: 'THE_TRADE_DESK',
+ module: 'destination',
+ implementation: 'cdkV2',
+ feature: 'router',
+ },
+ destination: overrideDestination(sampleDestination, { trackerId: '' }),
+ },
+ ],
+ },
+ },
+ },
+ },
];
diff --git a/test/integrations/destinations/tiktok_audience/processor/data.ts b/test/integrations/destinations/tiktok_audience/processor/data.ts
index 42f235c1a4..0395ff48e0 100644
--- a/test/integrations/destinations/tiktok_audience/processor/data.ts
+++ b/test/integrations/destinations/tiktok_audience/processor/data.ts
@@ -1,854 +1,746 @@
export const data = [
{
- "name": "tiktok_audience",
- "description": "Test 1: Containing SHA256 traits only",
- "feature": "processor",
- "module": "destination",
- "version": "v0",
- "input": {
- "request": {
- "body": [
+ name: 'tiktok_audience',
+ description: 'Test 1: Containing SHA256 traits only',
+ feature: 'processor',
+ module: 'destination',
+ version: 'v0',
+ input: {
+ request: {
+ body: [
+ {
+ message: {
+ userId: 'user 1',
+ type: 'audiencelist',
+ properties: {
+ listData: {
+ add: [
+ {
+ EMAIL_SHA256: 'alex@email.com',
+ },
+ {
+ EMAIL_SHA256: 'amy@abc.com',
+ },
+ {
+ EMAIL_SHA256: 'van@abc.com',
+ },
+ ],
+ remove: [
+ {
+ EMAIL_SHA256: 'alex@email.com',
+ },
+ {
+ EMAIL_SHA256: 'amy@abc.com',
+ },
+ {
+ EMAIL_SHA256: 'van@abc.com',
+ },
+ ],
+ },
+ },
+ context: {
+ ip: '14.5.67.21',
+ library: {
+ name: 'http',
+ },
+ externalId: [
{
- "message": {
- "userId": "user 1",
- "type": "audiencelist",
- "properties": {
- "listData": {
- "add": [
- {
- "EMAIL_SHA256": "alex@email.com"
- },
- {
- "EMAIL_SHA256": "amy@abc.com"
- },
- {
- "EMAIL_SHA256": "van@abc.com"
- }
- ],
- "remove": [
- {
- "EMAIL_SHA256": "alex@email.com"
- },
- {
- "EMAIL_SHA256": "amy@abc.com"
- },
- {
- "EMAIL_SHA256": "van@abc.com"
- }
- ]
- }
- },
- "context": {
- "ip": "14.5.67.21",
- "library": {
- "name": "http"
- },
- "externalId": [
- {
- "type": "TIKTOK_AUDIENCE-23856594064540489",
- "identifierType": "EMAIL_SHA256"
- }
- ],
- "destinationFields": "EMAIL_SHA256"
- },
- "timestamp": "2020-02-02T00:23:09.544Z"
- },
- "metadata": {
- "jobId": 1,
- "secret": {
- "accessToken": "dummyAccessToken",
- "advertiserIds": [
- "dummyAdverTiserID"
- ]
- }
- },
- "destination": {
- "DestinationDefinition": {
- "Config": {
- "cdkV2Enabled": true
- }
- },
- "Config": {
- "isHashRequired": true,
- "registerDeviceOrBrowserApiKey": true,
- "apiKey": "intercomApiKey",
- "appId": "9e9cdea1-78fa-4829-a9b2-5d7f7e96d1a0",
- "collectContext": false
- }
- }
- }
- ]
- }
- },
- "output": {
- "response": {
- "status": 200,
- "body": [
- {
- "output": {
- "version": "1",
- "type": "REST",
- "method": "POST",
- "endpoint": "https://business-api.tiktok.com/open_api/v1.3/segment/mapping/",
- "headers": {
- "Access-Token": "dummyAccessToken",
- "Content-Type": "application/json"
- },
- "params": {},
- "body": {
- "JSON": {
- "batch_data": [
- [
- {
- "id": "ac0f1baec38a9ef3cfcb56db981df7d9bab2568c7f53ef3776d1c059ec58e72b",
- "audience_ids": [
- "23856594064540489"
- ]
- }
- ],
- [
- {
- "id": "49eaeca26c878f268ad33af8cfa8194ca5b8b8e448b1c775bf9153a2de734579",
- "audience_ids": [
- "23856594064540489"
- ]
- }
- ],
- [
- {
- "id": "2048acfa84a01121060ca2fc8a673a76d427176dc37224d4408c21973bd90e5c",
- "audience_ids": [
- "23856594064540489"
- ]
- }
- ]
- ],
- "id_schema": [
- "EMAIL_SHA256"
- ],
- "advertiser_ids": [
- "dummyAdverTiserID"
- ],
- "action": "add"
- },
- "JSON_ARRAY": {},
- "XML": {},
- "FORM": {}
- },
- "files": {},
- "userId": ""
- },
- "metadata": {
- "jobId": 1,
- "secret": {
- "accessToken": "dummyAccessToken",
- "advertiserIds": [
- "dummyAdverTiserID"
- ]
- }
- },
- "statusCode": 200
+ type: 'TIKTOK_AUDIENCE-23856594064540489',
+ identifierType: 'EMAIL_SHA256',
},
- {
- "output": {
- "version": "1",
- "type": "REST",
- "method": "POST",
- "endpoint": "https://business-api.tiktok.com/open_api/v1.3/segment/mapping/",
- "headers": {
- "Access-Token": "dummyAccessToken",
- "Content-Type": "application/json"
- },
- "params": {},
- "body": {
- "JSON": {
- "batch_data": [
- [
- {
- "id": "ac0f1baec38a9ef3cfcb56db981df7d9bab2568c7f53ef3776d1c059ec58e72b",
- "audience_ids": [
- "23856594064540489"
- ]
- }
- ],
- [
- {
- "id": "49eaeca26c878f268ad33af8cfa8194ca5b8b8e448b1c775bf9153a2de734579",
- "audience_ids": [
- "23856594064540489"
- ]
- }
- ],
- [
- {
- "id": "2048acfa84a01121060ca2fc8a673a76d427176dc37224d4408c21973bd90e5c",
- "audience_ids": [
- "23856594064540489"
- ]
- }
- ]
- ],
- "id_schema": [
- "EMAIL_SHA256"
- ],
- "advertiser_ids": [
- "dummyAdverTiserID"
- ],
- "action": "delete"
- },
- "JSON_ARRAY": {},
- "XML": {},
- "FORM": {}
- },
- "files": {},
- "userId": ""
- },
- "metadata": {
- "jobId": 1,
- "secret": {
- "accessToken": "dummyAccessToken",
- "advertiserIds": [
- "dummyAdverTiserID"
- ]
- }
- },
- "statusCode": 200
- }
- ]
- }
- }
+ ],
+ destinationFields: 'EMAIL_SHA256',
+ },
+ timestamp: '2020-02-02T00:23:09.544Z',
+ },
+ metadata: {
+ jobId: 1,
+ secret: {
+ accessToken: 'dummyAccessToken',
+ advertiserIds: ['dummyAdverTiserID'],
+ },
+ },
+ destination: {
+ DestinationDefinition: {
+ Config: {
+ cdkV2Enabled: true,
+ },
+ },
+ Config: {
+ isHashRequired: true,
+ registerDeviceOrBrowserApiKey: true,
+ apiKey: 'intercomApiKey',
+ appId: '9e9cdea1-78fa-4829-a9b2-5d7f7e96d1a0',
+ collectContext: false,
+ },
+ },
+ },
+ ],
+ },
+ },
+ output: {
+ response: {
+ status: 200,
+ body: [
+ {
+ output: {
+ version: '1',
+ type: 'REST',
+ method: 'POST',
+ endpoint: 'https://business-api.tiktok.com/open_api/v1.3/segment/mapping/',
+ headers: {
+ 'Access-Token': 'dummyAccessToken',
+ 'Content-Type': 'application/json',
+ },
+ params: {},
+ body: {
+ JSON: {
+ batch_data: [
+ [
+ {
+ id: 'ac0f1baec38a9ef3cfcb56db981df7d9bab2568c7f53ef3776d1c059ec58e72b',
+ audience_ids: ['23856594064540489'],
+ },
+ ],
+ [
+ {
+ id: '49eaeca26c878f268ad33af8cfa8194ca5b8b8e448b1c775bf9153a2de734579',
+ audience_ids: ['23856594064540489'],
+ },
+ ],
+ [
+ {
+ id: '2048acfa84a01121060ca2fc8a673a76d427176dc37224d4408c21973bd90e5c',
+ audience_ids: ['23856594064540489'],
+ },
+ ],
+ ],
+ id_schema: ['EMAIL_SHA256'],
+ advertiser_ids: ['dummyAdverTiserID'],
+ action: 'add',
+ },
+ JSON_ARRAY: {},
+ XML: {},
+ FORM: {},
+ },
+ files: {},
+ userId: '',
+ },
+ metadata: {
+ jobId: 1,
+ secret: {
+ accessToken: 'dummyAccessToken',
+ advertiserIds: ['dummyAdverTiserID'],
+ },
+ },
+ statusCode: 200,
+ },
+ {
+ output: {
+ version: '1',
+ type: 'REST',
+ method: 'POST',
+ endpoint: 'https://business-api.tiktok.com/open_api/v1.3/segment/mapping/',
+ headers: {
+ 'Access-Token': 'dummyAccessToken',
+ 'Content-Type': 'application/json',
+ },
+ params: {},
+ body: {
+ JSON: {
+ batch_data: [
+ [
+ {
+ id: 'ac0f1baec38a9ef3cfcb56db981df7d9bab2568c7f53ef3776d1c059ec58e72b',
+ audience_ids: ['23856594064540489'],
+ },
+ ],
+ [
+ {
+ id: '49eaeca26c878f268ad33af8cfa8194ca5b8b8e448b1c775bf9153a2de734579',
+ audience_ids: ['23856594064540489'],
+ },
+ ],
+ [
+ {
+ id: '2048acfa84a01121060ca2fc8a673a76d427176dc37224d4408c21973bd90e5c',
+ audience_ids: ['23856594064540489'],
+ },
+ ],
+ ],
+ id_schema: ['EMAIL_SHA256'],
+ advertiser_ids: ['dummyAdverTiserID'],
+ action: 'delete',
+ },
+ JSON_ARRAY: {},
+ XML: {},
+ FORM: {},
+ },
+ files: {},
+ userId: '',
+ },
+ metadata: {
+ jobId: 1,
+ secret: {
+ accessToken: 'dummyAccessToken',
+ advertiserIds: ['dummyAdverTiserID'],
+ },
+ },
+ statusCode: 200,
+ },
+ ],
+ },
+ },
},
{
- "name": "tiktok_audience",
- "description": "Test 2: Containing SHA256 and MD5 traits",
- "feature": "processor",
- "module": "destination",
- "version": "v0",
- "input": {
- "request": {
- "body": [
- {
- "message": {
- "userId": "user 1",
- "type": "audiencelist",
- "properties": {
- "listData": {
- "add": [
- {
- "EMAIL_SHA256": "alex@email.com",
- "AAID_MD5": "1234567"
- },
- {
- "EMAIL_SHA256": "amy@abc.com",
- "AAID_MD5": "1234568"
- },
- {
- "EMAIL_SHA256": "van@abc.com",
- "AAID_MD5": "1234569"
- }
- ],
- "remove": [
- {
- "EMAIL_SHA256": "alex@email.com",
- "AAID_MD5": "1234570"
- },
- {
- "EMAIL_SHA256": "amy@abc.com",
- "AAID_MD5": "1234571"
- },
- {
- "EMAIL_SHA256": "van@abc.com",
- "AAID_MD5": "1234572"
- }
- ]
- }
- },
- "context": {
- "ip": "14.5.67.21",
- "library": {
- "name": "http"
- },
- "externalId": [
- {
- "type": "TIKTOK_AUDIENCE-23856594064540489",
- "identifierType": "EMAIL_SHA256"
- }
- ],
- "destinationFields": "EMAIL_SHA256, AAID_MD5"
- },
- "timestamp": "2020-02-02T00:23:09.544Z"
- },
- "metadata": {
- "jobId": 1,
- "secret": {
- "accessToken": "dummyAccessToken",
- "advertiserIds": [
- "dummyAdverTiserID"
- ]
- }
- },
- "destination": {
- "DestinationDefinition": {
- "Config": {
- "cdkV2Enabled": true
- }
- },
- "Config": {
- "isHashRequired": true,
- "registerDeviceOrBrowserApiKey": true,
- "apiKey": "intercomApiKey",
- "appId": "9e9cdea1-78fa-4829-a9b2-5d7f7e96d1a0",
- "collectContext": false
- }
- }
- }
- ]
- }
- },
- "output": {
- "response": {
- "status": 200,
- "body": [
+ name: 'tiktok_audience',
+ description: 'Test 2: Containing SHA256 and MD5 traits',
+ feature: 'processor',
+ module: 'destination',
+ version: 'v0',
+ input: {
+ request: {
+ body: [
+ {
+ message: {
+ userId: 'user 1',
+ type: 'audiencelist',
+ properties: {
+ listData: {
+ add: [
+ {
+ EMAIL_SHA256: 'alex@email.com',
+ AAID_MD5: '1234567',
+ },
+ {
+ EMAIL_SHA256: 'amy@abc.com',
+ AAID_MD5: '1234568',
+ },
+ {
+ EMAIL_SHA256: 'van@abc.com',
+ AAID_MD5: '1234569',
+ },
+ ],
+ remove: [
+ {
+ EMAIL_SHA256: 'alex@email.com',
+ AAID_MD5: '1234570',
+ },
+ {
+ EMAIL_SHA256: 'amy@abc.com',
+ AAID_MD5: '1234571',
+ },
+ {
+ EMAIL_SHA256: 'van@abc.com',
+ AAID_MD5: '1234572',
+ },
+ ],
+ },
+ },
+ context: {
+ ip: '14.5.67.21',
+ library: {
+ name: 'http',
+ },
+ externalId: [
{
- "output": {
- "version": "1",
- "type": "REST",
- "method": "POST",
- "endpoint": "https://business-api.tiktok.com/open_api/v1.3/segment/mapping/",
- "headers": {
- "Access-Token": "dummyAccessToken",
- "Content-Type": "application/json"
- },
- "params": {},
- "body": {
- "JSON": {
- "batch_data": [
- [
- {
- "id": "ac0f1baec38a9ef3cfcb56db981df7d9bab2568c7f53ef3776d1c059ec58e72b",
- "audience_ids": [
- "23856594064540489"
- ]
- },
- {
- "id": "fcea920f7412b5da7be0cf42b8c93759",
- "audience_ids": [
- "23856594064540489"
- ]
- }
- ],
- [
- {
- "id": "49eaeca26c878f268ad33af8cfa8194ca5b8b8e448b1c775bf9153a2de734579",
- "audience_ids": [
- "23856594064540489"
- ]
- },
- {
- "id": "fe743d8d97aa7dfc6c93ccdc2e749513",
- "audience_ids": [
- "23856594064540489"
- ]
- }
- ],
- [
- {
- "id": "2048acfa84a01121060ca2fc8a673a76d427176dc37224d4408c21973bd90e5c",
- "audience_ids": [
- "23856594064540489"
- ]
- },
- {
- "id": "e36a2f90240e9e84483504fd4a704452",
- "audience_ids": [
- "23856594064540489"
- ]
- }
- ]
- ],
- "id_schema": [
- "EMAIL_SHA256",
- "AAID_MD5"
- ],
- "advertiser_ids": [
- "dummyAdverTiserID"
- ],
- "action": "add"
- },
- "JSON_ARRAY": {},
- "XML": {},
- "FORM": {}
- },
- "files": {},
- "userId": ""
- },
- "metadata": {
- "jobId": 1,
- "secret": {
- "accessToken": "dummyAccessToken",
- "advertiserIds": [
- "dummyAdverTiserID"
- ]
- }
- },
- "statusCode": 200
+ type: 'TIKTOK_AUDIENCE-23856594064540489',
+ identifierType: 'EMAIL_SHA256',
},
- {
- "output": {
- "version": "1",
- "type": "REST",
- "method": "POST",
- "endpoint": "https://business-api.tiktok.com/open_api/v1.3/segment/mapping/",
- "headers": {
- "Access-Token": "dummyAccessToken",
- "Content-Type": "application/json"
- },
- "params": {},
- "body": {
- "JSON": {
- "batch_data": [
- [
- {
- "id": "ac0f1baec38a9ef3cfcb56db981df7d9bab2568c7f53ef3776d1c059ec58e72b",
- "audience_ids": [
- "23856594064540489"
- ]
- },
- {
- "id": "c1abd65fea29d573ddef1bce925e3276",
- "audience_ids": [
- "23856594064540489"
- ]
- }
- ],
- [
- {
- "id": "49eaeca26c878f268ad33af8cfa8194ca5b8b8e448b1c775bf9153a2de734579",
- "audience_ids": [
- "23856594064540489"
- ]
- },
- {
- "id": "7298110702a080dfc6903f13333eb04a",
- "audience_ids": [
- "23856594064540489"
- ]
- }
- ],
- [
- {
- "id": "2048acfa84a01121060ca2fc8a673a76d427176dc37224d4408c21973bd90e5c",
- "audience_ids": [
- "23856594064540489"
- ]
- },
- {
- "id": "d9cb68b1fd3b9d32abc5f4cab8b42b68",
- "audience_ids": [
- "23856594064540489"
- ]
- }
- ]
- ],
- "id_schema": [
- "EMAIL_SHA256",
- "AAID_MD5"
- ],
- "advertiser_ids": [
- "dummyAdverTiserID"
- ],
- "action": "delete"
- },
- "JSON_ARRAY": {},
- "XML": {},
- "FORM": {}
- },
- "files": {},
- "userId": ""
- },
- "metadata": {
- "jobId": 1,
- "secret": {
- "accessToken": "dummyAccessToken",
- "advertiserIds": [
- "dummyAdverTiserID"
- ]
- }
- },
- "statusCode": 200
- }
- ]
- }
- }
+ ],
+ destinationFields: 'EMAIL_SHA256, AAID_MD5',
+ },
+ timestamp: '2020-02-02T00:23:09.544Z',
+ },
+ metadata: {
+ jobId: 1,
+ secret: {
+ accessToken: 'dummyAccessToken',
+ advertiserIds: ['dummyAdverTiserID'],
+ },
+ },
+ destination: {
+ DestinationDefinition: {
+ Config: {
+ cdkV2Enabled: true,
+ },
+ },
+ Config: {
+ isHashRequired: true,
+ registerDeviceOrBrowserApiKey: true,
+ apiKey: 'intercomApiKey',
+ appId: '9e9cdea1-78fa-4829-a9b2-5d7f7e96d1a0',
+ collectContext: false,
+ },
+ },
+ },
+ ],
+ },
+ },
+ output: {
+ response: {
+ status: 200,
+ body: [
+ {
+ output: {
+ version: '1',
+ type: 'REST',
+ method: 'POST',
+ endpoint: 'https://business-api.tiktok.com/open_api/v1.3/segment/mapping/',
+ headers: {
+ 'Access-Token': 'dummyAccessToken',
+ 'Content-Type': 'application/json',
+ },
+ params: {},
+ body: {
+ JSON: {
+ batch_data: [
+ [
+ {
+ id: 'ac0f1baec38a9ef3cfcb56db981df7d9bab2568c7f53ef3776d1c059ec58e72b',
+ audience_ids: ['23856594064540489'],
+ },
+ {
+ id: 'fcea920f7412b5da7be0cf42b8c93759',
+ audience_ids: ['23856594064540489'],
+ },
+ ],
+ [
+ {
+ id: '49eaeca26c878f268ad33af8cfa8194ca5b8b8e448b1c775bf9153a2de734579',
+ audience_ids: ['23856594064540489'],
+ },
+ {
+ id: 'fe743d8d97aa7dfc6c93ccdc2e749513',
+ audience_ids: ['23856594064540489'],
+ },
+ ],
+ [
+ {
+ id: '2048acfa84a01121060ca2fc8a673a76d427176dc37224d4408c21973bd90e5c',
+ audience_ids: ['23856594064540489'],
+ },
+ {
+ id: 'e36a2f90240e9e84483504fd4a704452',
+ audience_ids: ['23856594064540489'],
+ },
+ ],
+ ],
+ id_schema: ['EMAIL_SHA256', 'AAID_MD5'],
+ advertiser_ids: ['dummyAdverTiserID'],
+ action: 'add',
+ },
+ JSON_ARRAY: {},
+ XML: {},
+ FORM: {},
+ },
+ files: {},
+ userId: '',
+ },
+ metadata: {
+ jobId: 1,
+ secret: {
+ accessToken: 'dummyAccessToken',
+ advertiserIds: ['dummyAdverTiserID'],
+ },
+ },
+ statusCode: 200,
+ },
+ {
+ output: {
+ version: '1',
+ type: 'REST',
+ method: 'POST',
+ endpoint: 'https://business-api.tiktok.com/open_api/v1.3/segment/mapping/',
+ headers: {
+ 'Access-Token': 'dummyAccessToken',
+ 'Content-Type': 'application/json',
+ },
+ params: {},
+ body: {
+ JSON: {
+ batch_data: [
+ [
+ {
+ id: 'ac0f1baec38a9ef3cfcb56db981df7d9bab2568c7f53ef3776d1c059ec58e72b',
+ audience_ids: ['23856594064540489'],
+ },
+ {
+ id: 'c1abd65fea29d573ddef1bce925e3276',
+ audience_ids: ['23856594064540489'],
+ },
+ ],
+ [
+ {
+ id: '49eaeca26c878f268ad33af8cfa8194ca5b8b8e448b1c775bf9153a2de734579',
+ audience_ids: ['23856594064540489'],
+ },
+ {
+ id: '7298110702a080dfc6903f13333eb04a',
+ audience_ids: ['23856594064540489'],
+ },
+ ],
+ [
+ {
+ id: '2048acfa84a01121060ca2fc8a673a76d427176dc37224d4408c21973bd90e5c',
+ audience_ids: ['23856594064540489'],
+ },
+ {
+ id: 'd9cb68b1fd3b9d32abc5f4cab8b42b68',
+ audience_ids: ['23856594064540489'],
+ },
+ ],
+ ],
+ id_schema: ['EMAIL_SHA256', 'AAID_MD5'],
+ advertiser_ids: ['dummyAdverTiserID'],
+ action: 'delete',
+ },
+ JSON_ARRAY: {},
+ XML: {},
+ FORM: {},
+ },
+ files: {},
+ userId: '',
+ },
+ metadata: {
+ jobId: 1,
+ secret: {
+ accessToken: 'dummyAccessToken',
+ advertiserIds: ['dummyAdverTiserID'],
+ },
+ },
+ statusCode: 200,
+ },
+ ],
+ },
+ },
},
{
- "name": "tiktok_audience",
- "description": "Test 3: Containing all possible traits",
- "feature": "processor",
- "module": "destination",
- "version": "v0",
- "input": {
- "request": {
- "body": [
+ name: 'tiktok_audience',
+ description: 'Test 3: Containing all possible traits',
+ feature: 'processor',
+ module: 'destination',
+ version: 'v0',
+ input: {
+ request: {
+ body: [
+ {
+ message: {
+ userId: 'user 1',
+ type: 'audiencelist',
+ properties: {
+ listData: {
+ add: [
+ {
+ EMAIL_SHA256: 'alex@email.com',
+ PHONE_SHA256: '+129988776655',
+ IDFA_SHA256: '1234lkasfjdalj12321',
+ AAID_SHA256: '000999OOOQQQQ',
+ AAID_MD5: '000999OOOQQQQ',
+ IDFA_MD5: '1234lkasfjdalj12321',
+ },
+ {
+ EMAIL_SHA256: 'amy@abc.com',
+ PHONE_SHA256: '+129988776677',
+ IDFA_SHA256: '1234lkasfjdalj114455',
+ AAID_SHA256: '000999OOOPPPP',
+ AAID_MD5: '000999OOOPPPP',
+ IDFA_MD5: '1234lkasfjdalj114455',
+ },
+ ],
+ },
+ },
+ context: {
+ ip: '14.5.67.21',
+ library: {
+ name: 'http',
+ },
+ externalId: [
{
- "message": {
- "userId": "user 1",
- "type": "audiencelist",
- "properties": {
- "listData": {
- "add": [
- {
- "EMAIL_SHA256": "alex@email.com",
- "PHONE_SHA256": "+129988776655",
- "IDFA_SHA256": "1234lkasfjdalj12321",
- "AAID_SHA256": "000999OOOQQQQ",
- "AAID_MD5": "000999OOOQQQQ",
- "IDFA_MD5": "1234lkasfjdalj12321"
- },
- {
- "EMAIL_SHA256": "amy@abc.com",
- "PHONE_SHA256": "+129988776677",
- "IDFA_SHA256": "1234lkasfjdalj114455",
- "AAID_SHA256": "000999OOOPPPP",
- "AAID_MD5": "000999OOOPPPP",
- "IDFA_MD5": "1234lkasfjdalj114455"
- }
- ]
- }
- },
- "context": {
- "ip": "14.5.67.21",
- "library": {
- "name": "http"
- },
- "externalId": [
- {
- "type": "TIKTOK_AUDIENCE-23856594064540489",
- "identifierType": "EMAIL_SHA256"
- }
- ],
- "destinationFields": "EMAIL_SHA256, PHONE_SHA256, IDFA_SHA256, AAID_SHA256, AAID_MD, IDFA_MD5"
- },
- "timestamp": "2020-02-02T00:23:09.544Z"
- },
- "metadata": {
- "jobId": 1,
- "secret": {
- "accessToken": "dummyAccessToken",
- "advertiserIds": [
- "dummyAdverTiserID"
- ]
- }
- },
- "destination": {
- "DestinationDefinition": {
- "Config": {
- "cdkV2Enabled": true
- }
- },
- "Config": {
- "isHashRequired": true,
- "registerDeviceOrBrowserApiKey": true,
- "apiKey": "intercomApiKey",
- "appId": "9e9cdea1-78fa-4829-a9b2-5d7f7e96d1a0",
- "collectContext": false
- }
- }
- }
- ]
- }
+ type: 'TIKTOK_AUDIENCE-23856594064540489',
+ identifierType: 'EMAIL_SHA256',
+ },
+ ],
+ destinationFields:
+ 'EMAIL_SHA256, PHONE_SHA256, IDFA_SHA256, AAID_SHA256, AAID_MD, IDFA_MD5',
+ },
+ timestamp: '2020-02-02T00:23:09.544Z',
+ },
+ metadata: {
+ jobId: 1,
+ secret: {
+ accessToken: 'dummyAccessToken',
+ advertiserIds: ['dummyAdverTiserID'],
+ },
+ },
+ destination: {
+ DestinationDefinition: {
+ Config: {
+ cdkV2Enabled: true,
+ },
+ },
+ Config: {
+ isHashRequired: true,
+ registerDeviceOrBrowserApiKey: true,
+ apiKey: 'intercomApiKey',
+ appId: '9e9cdea1-78fa-4829-a9b2-5d7f7e96d1a0',
+ collectContext: false,
+ },
+ },
+ },
+ ],
},
- "output": {
- "response": {
- "status": 200,
- "body": [
- {
- "output": {
- "version": "1",
- "type": "REST",
- "method": "POST",
- "endpoint": "https://business-api.tiktok.com/open_api/v1.3/segment/mapping/",
- "headers": {
- "Access-Token": "dummyAccessToken",
- "Content-Type": "application/json"
- },
- "params": {},
- "body": {
- "JSON": {
- "batch_data": [
- [
- {
- "id": "ac0f1baec38a9ef3cfcb56db981df7d9bab2568c7f53ef3776d1c059ec58e72b",
- "audience_ids": [
- "23856594064540489"
- ]
- },
- {
- "id": "31e78a3bf9ce2b43316f64fe883a531d6266938091e94e2f2480272481163dee",
- "audience_ids": [
- "23856594064540489"
- ]
- },
- {
- "id": "0259f595f7172c8dd692a5c37b4d296939555f862aae8adb964391bdb65006ab",
- "audience_ids": [
- "23856594064540489"
- ]
- },
- {
- "id": "b06fbe7a29f33576a792ba3df3c9bf838cd26ea88cf574285fa60dc0234a8485",
- "audience_ids": [
- "23856594064540489"
- ]
- },
- {},
- {
- "id": "32ee3d063320815a13e0058c2498ff76",
- "audience_ids": [
- "23856594064540489"
- ]
- }
- ],
- [
- {
- "id": "49eaeca26c878f268ad33af8cfa8194ca5b8b8e448b1c775bf9153a2de734579",
- "audience_ids": [
- "23856594064540489"
- ]
- },
- {
- "id": "fb40adc7debbf40e7b45b0a4a91886785dff1a28809276f95f1c44f7045f9b4d",
- "audience_ids": [
- "23856594064540489"
- ]
- },
- {
- "id": "e6bbdf34c5f3472f31b2923a26811560a599233f3dea4c9971595c3bb7b1e8dc",
- "audience_ids": [
- "23856594064540489"
- ]
- },
- {
- "id": "661125f7d337811256c5b55996b22c89047804dcec494db72659e4be71e03091",
- "audience_ids": [
- "23856594064540489"
- ]
- },
- {},
- {
- "id": "94162773066d6ae88b2658dc58ca2317",
- "audience_ids": [
- "23856594064540489"
- ]
- }
- ]
- ],
- "id_schema": [
- "EMAIL_SHA256",
- "PHONE_SHA256",
- "IDFA_SHA256",
- "AAID_SHA256",
- "AAID_MD",
- "IDFA_MD5"
- ],
- "advertiser_ids": [
- "dummyAdverTiserID"
- ],
- "action": "add"
- },
- "JSON_ARRAY": {},
- "XML": {},
- "FORM": {}
- },
- "files": {},
- "userId": ""
- },
- "metadata": {
- "jobId": 1,
- "secret": {
- "accessToken": "dummyAccessToken",
- "advertiserIds": [
- "dummyAdverTiserID"
- ]
- }
- },
- "statusCode": 200
- }
- ]
- }
- }
+ },
+ output: {
+ response: {
+ status: 200,
+ body: [
+ {
+ output: {
+ version: '1',
+ type: 'REST',
+ method: 'POST',
+ endpoint: 'https://business-api.tiktok.com/open_api/v1.3/segment/mapping/',
+ headers: {
+ 'Access-Token': 'dummyAccessToken',
+ 'Content-Type': 'application/json',
+ },
+ params: {},
+ body: {
+ JSON: {
+ batch_data: [
+ [
+ {
+ id: 'ac0f1baec38a9ef3cfcb56db981df7d9bab2568c7f53ef3776d1c059ec58e72b',
+ audience_ids: ['23856594064540489'],
+ },
+ {
+ id: '31e78a3bf9ce2b43316f64fe883a531d6266938091e94e2f2480272481163dee',
+ audience_ids: ['23856594064540489'],
+ },
+ {
+ id: '0259f595f7172c8dd692a5c37b4d296939555f862aae8adb964391bdb65006ab',
+ audience_ids: ['23856594064540489'],
+ },
+ {
+ id: 'b06fbe7a29f33576a792ba3df3c9bf838cd26ea88cf574285fa60dc0234a8485',
+ audience_ids: ['23856594064540489'],
+ },
+ {},
+ {
+ id: '32ee3d063320815a13e0058c2498ff76',
+ audience_ids: ['23856594064540489'],
+ },
+ ],
+ [
+ {
+ id: '49eaeca26c878f268ad33af8cfa8194ca5b8b8e448b1c775bf9153a2de734579',
+ audience_ids: ['23856594064540489'],
+ },
+ {
+ id: 'fb40adc7debbf40e7b45b0a4a91886785dff1a28809276f95f1c44f7045f9b4d',
+ audience_ids: ['23856594064540489'],
+ },
+ {
+ id: 'e6bbdf34c5f3472f31b2923a26811560a599233f3dea4c9971595c3bb7b1e8dc',
+ audience_ids: ['23856594064540489'],
+ },
+ {
+ id: '661125f7d337811256c5b55996b22c89047804dcec494db72659e4be71e03091',
+ audience_ids: ['23856594064540489'],
+ },
+ {},
+ {
+ id: '94162773066d6ae88b2658dc58ca2317',
+ audience_ids: ['23856594064540489'],
+ },
+ ],
+ ],
+ id_schema: [
+ 'EMAIL_SHA256',
+ 'PHONE_SHA256',
+ 'IDFA_SHA256',
+ 'AAID_SHA256',
+ 'AAID_MD',
+ 'IDFA_MD5',
+ ],
+ advertiser_ids: ['dummyAdverTiserID'],
+ action: 'add',
+ },
+ JSON_ARRAY: {},
+ XML: {},
+ FORM: {},
+ },
+ files: {},
+ userId: '',
+ },
+ metadata: {
+ jobId: 1,
+ secret: {
+ accessToken: 'dummyAccessToken',
+ advertiserIds: ['dummyAdverTiserID'],
+ },
+ },
+ statusCode: 200,
+ },
+ ],
+ },
+ },
},
{
- "name": "tiktok_audience",
- "description": "Test 4: Considering some null values",
- "feature": "processor",
- "module": "destination",
- "version": "v0",
- "input": {
- "request": {
- "body": [
+ name: 'tiktok_audience',
+ description: 'Test 4: Considering some null values',
+ feature: 'processor',
+ module: 'destination',
+ version: 'v0',
+ input: {
+ request: {
+ body: [
+ {
+ message: {
+ userId: 'user 1',
+ type: 'audiencelist',
+ properties: {
+ listData: {
+ add: [
+ {
+ EMAIL_SHA256: 'alex@email.com',
+ PHONE_SHA256: '+129988776655',
+ AAID_MD5: '000999OOOQQQQ',
+ IDFA_MD5: '1234lkasfjdalj12321',
+ },
+ {
+ EMAIL_SHA256: 'amy@abc.com',
+ AAID_SHA256: '000999OOOPPPP',
+ AAID_MD5: '000999OOOPPPP',
+ IDFA_MD5: '1234lkasfjdalj114455',
+ },
+ ],
+ },
+ },
+ context: {
+ ip: '14.5.67.21',
+ library: {
+ name: 'http',
+ },
+ externalId: [
{
- "message": {
- "userId": "user 1",
- "type": "audiencelist",
- "properties": {
- "listData": {
- "add": [
- {
- "EMAIL_SHA256": "alex@email.com",
- "PHONE_SHA256": "+129988776655",
- "AAID_MD5": "000999OOOQQQQ",
- "IDFA_MD5": "1234lkasfjdalj12321"
- },
- {
- "EMAIL_SHA256": "amy@abc.com",
- "AAID_SHA256": "000999OOOPPPP",
- "AAID_MD5": "000999OOOPPPP",
- "IDFA_MD5": "1234lkasfjdalj114455"
- }
- ]
- }
- },
- "context": {
- "ip": "14.5.67.21",
- "library": {
- "name": "http"
- },
- "externalId": [
- {
- "type": "TIKTOK_AUDIENCE-23856594064540489",
- "identifierType": "EMAIL_SHA256"
- }
- ],
- "destinationFields": "EMAIL_SHA256, PHONE_SHA256, IDFA_SHA256, AAID_SHA256, AAID_MD, IDFA_MD5"
- },
- "timestamp": "2020-02-02T00:23:09.544Z"
- },
- "metadata": {
- "jobId": 1,
- "secret": {
- "accessToken": "dummyAccessToken",
- "advertiserIds": [
- "dummyAdverTiserID"
- ]
- }
- },
- "destination": {
- "DestinationDefinition": {
- "Config": {
- "cdkV2Enabled": true
- }
- },
- "Config": {
- "isHashRequired": true,
- "registerDeviceOrBrowserApiKey": true,
- "apiKey": "intercomApiKey",
- "appId": "9e9cdea1-78fa-4829-a9b2-5d7f7e96d1a0",
- "collectContext": false
- }
- }
- }
- ]
- }
+ type: 'TIKTOK_AUDIENCE-23856594064540489',
+ identifierType: 'EMAIL_SHA256',
+ },
+ ],
+ destinationFields:
+ 'EMAIL_SHA256, PHONE_SHA256, IDFA_SHA256, AAID_SHA256, AAID_MD, IDFA_MD5',
+ },
+ timestamp: '2020-02-02T00:23:09.544Z',
+ },
+ metadata: {
+ jobId: 1,
+ secret: {
+ accessToken: 'dummyAccessToken',
+ advertiserIds: ['dummyAdverTiserID'],
+ },
+ },
+ destination: {
+ DestinationDefinition: {
+ Config: {
+ cdkV2Enabled: true,
+ },
+ },
+ Config: {
+ isHashRequired: true,
+ registerDeviceOrBrowserApiKey: true,
+ apiKey: 'intercomApiKey',
+ appId: '9e9cdea1-78fa-4829-a9b2-5d7f7e96d1a0',
+ collectContext: false,
+ },
+ },
+ },
+ ],
},
- "output": {
- "response": {
- "status": 200,
- "body": [
- {
- "output": {
- "version": "1",
- "type": "REST",
- "method": "POST",
- "endpoint": "https://business-api.tiktok.com/open_api/v1.3/segment/mapping/",
- "headers": {
- "Access-Token": "dummyAccessToken",
- "Content-Type": "application/json"
- },
- "params": {},
- "body": {
- "JSON": {
- "batch_data": [
- [
- {
- "id": "ac0f1baec38a9ef3cfcb56db981df7d9bab2568c7f53ef3776d1c059ec58e72b",
- "audience_ids": [
- "23856594064540489"
- ]
- },
- {
- "id": "31e78a3bf9ce2b43316f64fe883a531d6266938091e94e2f2480272481163dee",
- "audience_ids": [
- "23856594064540489"
- ]
- },
- {},
- {},
- {},
- {
- "id": "32ee3d063320815a13e0058c2498ff76",
- "audience_ids": [
- "23856594064540489"
- ]
- }
- ],
- [
- {
- "id": "49eaeca26c878f268ad33af8cfa8194ca5b8b8e448b1c775bf9153a2de734579",
- "audience_ids": [
- "23856594064540489"
- ]
- },
- {},
- {},
- {
- "id": "661125f7d337811256c5b55996b22c89047804dcec494db72659e4be71e03091",
- "audience_ids": [
- "23856594064540489"
- ]
- },
- {},
- {
- "id": "94162773066d6ae88b2658dc58ca2317",
- "audience_ids": [
- "23856594064540489"
- ]
- }
- ]
- ],
- "id_schema": [
- "EMAIL_SHA256",
- "PHONE_SHA256",
- "IDFA_SHA256",
- "AAID_SHA256",
- "AAID_MD",
- "IDFA_MD5"
- ],
- "advertiser_ids": [
- "dummyAdverTiserID"
- ],
- "action": "add"
- },
- "JSON_ARRAY": {},
- "XML": {},
- "FORM": {}
- },
- "files": {},
- "userId": ""
- },
- "metadata": {
- "jobId": 1,
- "secret": {
- "accessToken": "dummyAccessToken",
- "advertiserIds": [
- "dummyAdverTiserID"
- ]
- }
- },
- "statusCode": 200
- }
- ]
- }
- }
- }
-]
+ },
+ output: {
+ response: {
+ status: 200,
+ body: [
+ {
+ output: {
+ version: '1',
+ type: 'REST',
+ method: 'POST',
+ endpoint: 'https://business-api.tiktok.com/open_api/v1.3/segment/mapping/',
+ headers: {
+ 'Access-Token': 'dummyAccessToken',
+ 'Content-Type': 'application/json',
+ },
+ params: {},
+ body: {
+ JSON: {
+ batch_data: [
+ [
+ {
+ id: 'ac0f1baec38a9ef3cfcb56db981df7d9bab2568c7f53ef3776d1c059ec58e72b',
+ audience_ids: ['23856594064540489'],
+ },
+ {
+ id: '31e78a3bf9ce2b43316f64fe883a531d6266938091e94e2f2480272481163dee',
+ audience_ids: ['23856594064540489'],
+ },
+ {},
+ {},
+ {},
+ {
+ id: '32ee3d063320815a13e0058c2498ff76',
+ audience_ids: ['23856594064540489'],
+ },
+ ],
+ [
+ {
+ id: '49eaeca26c878f268ad33af8cfa8194ca5b8b8e448b1c775bf9153a2de734579',
+ audience_ids: ['23856594064540489'],
+ },
+ {},
+ {},
+ {
+ id: '661125f7d337811256c5b55996b22c89047804dcec494db72659e4be71e03091',
+ audience_ids: ['23856594064540489'],
+ },
+ {},
+ {
+ id: '94162773066d6ae88b2658dc58ca2317',
+ audience_ids: ['23856594064540489'],
+ },
+ ],
+ ],
+ id_schema: [
+ 'EMAIL_SHA256',
+ 'PHONE_SHA256',
+ 'IDFA_SHA256',
+ 'AAID_SHA256',
+ 'AAID_MD',
+ 'IDFA_MD5',
+ ],
+ advertiser_ids: ['dummyAdverTiserID'],
+ action: 'add',
+ },
+ JSON_ARRAY: {},
+ XML: {},
+ FORM: {},
+ },
+ files: {},
+ userId: '',
+ },
+ metadata: {
+ jobId: 1,
+ secret: {
+ accessToken: 'dummyAccessToken',
+ advertiserIds: ['dummyAdverTiserID'],
+ },
+ },
+ statusCode: 200,
+ },
+ ],
+ },
+ },
+ },
+];
diff --git a/test/integrations/destinations/vero/processor/data.ts b/test/integrations/destinations/vero/processor/data.ts
index 3f8c750da6..cf210f38be 100644
--- a/test/integrations/destinations/vero/processor/data.ts
+++ b/test/integrations/destinations/vero/processor/data.ts
@@ -1,818 +1,808 @@
export const data = [
- {
- "name": "vero",
- "description": "Test 0",
- "feature": "processor",
- "module": "destination",
- "version": "v0",
- "input": {
- "request": {
- "body": [
- {
- "destination": {
- "Config": {
- "authToken": "testAuthToken"
- }
- },
- "message": {
- "context": {
- "traits": {
- "homwTown": "kanpur",
- "age": "24"
- }
- },
- "type": "Identify",
- "userId": "yash001",
- "originalTimestamp": "2019-10-14T09:03:17.562Z"
- }
- }
- ]
- }
- },
- "output": {
- "response": {
- "status": 200,
- "body": [
- {
- "output": {
- "version": "1",
- "type": "REST",
- "method": "POST",
- "endpoint": "https://api.getvero.com/api/v2/users/track",
- "headers": {},
- "params": {},
- "body": {
- "JSON": {
- "id": "yash001",
- "data": {
- "homwTown": "kanpur",
- "age": "24"
- },
- "auth_token": "testAuthToken"
- },
- "JSON_ARRAY": {},
- "XML": {},
- "FORM": {}
- },
- "files": {},
- "userId": ""
- },
- "statusCode": 200
- }
- ]
- }
- }
- },
- {
- "name": "vero",
- "description": "Test 1",
- "feature": "processor",
- "module": "destination",
- "version": "v0",
- "input": {
- "request": {
- "body": [
- {
- "destination": {
- "Config": {
- "authToken": "testAuthToken"
- }
- },
- "message": {
- "context": {
- "traits": {
- "email": "user1001@tech.com"
- }
- },
- "type": "Identify",
- "userId": "user1001"
- }
- }
- ]
- }
- },
- "output": {
- "response": {
- "status": 200,
- "body": [
- {
- "output": {
- "version": "1",
- "type": "REST",
- "method": "POST",
- "endpoint": "https://api.getvero.com/api/v2/users/track",
- "headers": {},
- "params": {},
- "body": {
- "JSON": {
- "id": "user1001",
- "email": "user1001@tech.com",
- "data": {},
- "auth_token": "testAuthToken"
- },
- "JSON_ARRAY": {},
- "XML": {},
- "FORM": {}
- },
- "files": {},
- "userId": ""
- },
- "statusCode": 200
- }
- ]
- }
- }
- },
- {
- "name": "vero",
- "description": "Test 2",
- "feature": "processor",
- "module": "destination",
- "version": "v0",
- "input": {
- "request": {
- "body": [
- {
- "destination": {
- "Config": {
- "authToken": "testAuthToken"
- }
- },
- "message": {
- "context": {
- "traits": {
- "email": "user1002@tech.com"
- }
- },
- "type": "Identify",
- "anonymousId": "b4ffheww8eisndbdjgdewifewfgerwibderv"
- }
- }
- ]
- }
- },
- "output": {
- "response": {
- "status": 200,
- "body": [
- {
- "output": {
- "version": "1",
- "type": "REST",
- "method": "POST",
- "endpoint": "https://api.getvero.com/api/v2/users/track",
- "headers": {},
- "params": {},
- "body": {
- "JSON": {
- "id": "b4ffheww8eisndbdjgdewifewfgerwibderv",
- "email": "user1002@tech.com",
- "data": {},
- "auth_token": "testAuthToken"
- },
- "JSON_ARRAY": {},
- "XML": {},
- "FORM": {}
- },
- "files": {},
- "userId": ""
- },
- "statusCode": 200
- }
- ]
- }
- }
- },
- {
- "name": "vero",
- "description": "Test 3",
- "feature": "processor",
- "module": "destination",
- "version": "v0",
- "input": {
- "request": {
- "body": [
- {
- "destination": {
- "Config": {
- "authToken": "testAuthToken"
- }
- },
- "message": {
- "context": {
- "traits": {
- "address": "Caravela Beach Goa",
- "homwTown": "Mawsynram",
- "email": "user1005@tech.com"
- }
- },
- "integrations": {
- "vero": {
- "tags": {
- "add": [
- "a",
- "b"
- ]
- }
- }
- },
- "type": "Identify",
- "userId": "fprediruser001"
- }
- }
- ]
- }
- },
- "output": {
- "response": {
- "status": 200,
- "body": [
- {
- "output": {
- "version": "1",
- "type": "REST",
- "method": "POST",
- "endpoint": "https://api.getvero.com/api/v2/users/track",
- "headers": {},
- "params": {},
- "body": {
- "JSON": {
- "id": "fprediruser001",
- "email": "user1005@tech.com",
- "data": {
- "address": "Caravela Beach Goa",
- "homwTown": "Mawsynram"
- },
- "auth_token": "testAuthToken"
- },
- "JSON_ARRAY": {},
- "XML": {},
- "FORM": {}
- },
- "files": {},
- "userId": ""
- },
- "statusCode": 200
- },
- {
- "output": {
- "version": "1",
- "type": "REST",
- "method": "PUT",
- "endpoint": "https://api.getvero.com/api/v2/users/tags/edit",
- "headers": {},
- "params": {},
- "body": {
- "JSON": {
- "id": "fprediruser001",
- "auth_token": "testAuthToken",
- "add": [
- "a",
- "b"
- ]
- },
- "JSON_ARRAY": {},
- "XML": {},
- "FORM": {}
- },
- "files": {},
- "userId": ""
- },
- "statusCode": 200
- }
- ]
- }
- }
- },
- {
- "name": "vero",
- "description": "Test 4",
- "feature": "processor",
- "module": "destination",
- "version": "v0",
- "input": {
- "request": {
- "body": [
- {
- "destination": {
- "Config": {
- "authToken": "testAuthToken"
- }
- },
- "message": {
- "event": "Random event with nonexisting userId and email",
- "properties": {
- "movieWatched": 3,
- "gamesPlayed": 4,
- "email": "eventIdn01@sample.com"
- },
- "type": "track",
- "userId": "eventIdn01"
- }
- }
- ]
- }
- },
- "output": {
- "response": {
- "status": 200,
- "body": [
- {
- "output": {
- "version": "1",
- "type": "REST",
- "method": "POST",
- "endpoint": "https://api.getvero.com/api/v2/events/track",
- "headers": {},
- "params": {},
- "body": {
- "JSON": {
- "identity": {
- "id": "eventIdn01",
- "email": "eventIdn01@sample.com"
- },
- "event_name": "Random event with nonexisting userId and email",
- "data": {
- "movieWatched": 3,
- "gamesPlayed": 4,
- "email": "eventIdn01@sample.com"
- },
- "auth_token": "testAuthToken"
- },
- "JSON_ARRAY": {},
- "XML": {},
- "FORM": {}
- },
- "files": {},
- "userId": ""
- },
- "statusCode": 200
- }
- ]
- }
- }
- },
- {
- "name": "vero",
- "description": "Test 5",
- "feature": "processor",
- "module": "destination",
- "version": "v0",
- "input": {
- "request": {
- "body": [
- {
- "destination": {
- "Config": {
- "authToken": "testAuthToken"
- }
- },
- "message": {
- "event": "Random event with existing userId and some tags removed",
- "properties": {
- "movieWatched": 3,
- "gamesPlayed": 4,
- "email": "eventIdn01@sample.com"
- },
- "integrations": {
- "Vero": {
- "tags": {
- "remove": [
- "a"
- ]
- }
- }
- },
- "type": "track",
- "userId": "fprediruser001"
- }
- }
- ]
- }
- },
- "output": {
- "response": {
- "status": 200,
- "body": [
- {
- "output": {
- "version": "1",
- "type": "REST",
- "method": "POST",
- "endpoint": "https://api.getvero.com/api/v2/events/track",
- "headers": {},
- "params": {},
- "body": {
- "JSON": {
- "identity": {
- "id": "fprediruser001",
- "email": "eventIdn01@sample.com"
- },
- "event_name": "Random event with existing userId and some tags removed",
- "data": {
- "movieWatched": 3,
- "gamesPlayed": 4,
- "email": "eventIdn01@sample.com"
- },
- "auth_token": "testAuthToken"
- },
- "JSON_ARRAY": {},
- "XML": {},
- "FORM": {}
- },
- "files": {},
- "userId": ""
- },
- "statusCode": 200
- },
- {
- "output": {
- "version": "1",
- "type": "REST",
- "method": "PUT",
- "endpoint": "https://api.getvero.com/api/v2/users/tags/edit",
- "headers": {},
- "params": {},
- "body": {
- "JSON": {
- "id": "fprediruser001",
- "auth_token": "testAuthToken",
- "remove": [
- "a"
- ]
- },
- "JSON_ARRAY": {},
- "XML": {},
- "FORM": {}
- },
- "files": {},
- "userId": ""
- },
- "statusCode": 200
- }
- ]
- }
- }
- },
- {
- "name": "vero",
- "description": "Test 6",
- "feature": "processor",
- "module": "destination",
- "version": "v0",
- "input": {
- "request": {
- "body": [
- {
- "destination": {
- "Config": {
- "authToken": "testAuthToken"
- }
- },
- "message": {
- "type": "alias",
- "userId": "sample101",
- "previousId": "newsamplel01"
- }
- }
- ]
- }
- },
- "output": {
- "response": {
- "status": 200,
- "body": [
- {
- "output": {
- "version": "1",
- "type": "REST",
- "method": "PUT",
- "endpoint": "https://api.getvero.com/api/v2/users/reidentify",
- "headers": {},
- "params": {},
- "body": {
- "JSON": {
- "new_id": "sample101",
- "id": "newsamplel01",
- "auth_token": "testAuthToken"
- },
- "JSON_ARRAY": {},
- "XML": {},
- "FORM": {}
- },
- "files": {},
- "userId": ""
- },
- "statusCode": 200
- }
- ]
- }
- }
- },
- {
- "name": "vero",
- "description": "Test 7",
- "feature": "processor",
- "module": "destination",
- "version": "v0",
- "input": {
- "request": {
- "body": [
- {
- "destination": {
- "Config": {
- "authToken": "testAuthToken"
- }
- },
- "message": {
- "context": {
- "traits": {
- "email": "user1001@tech.com"
- },
- "os": {
- "name": "android"
- },
- "device": {
- "token": "qwertyuioiuytrewwertyu",
- "name": "Mi"
- }
- },
- "type": "Identify",
- "userId": "user1001"
- }
- }
- ]
- }
- },
- "output": {
- "response": {
- "status": 200,
- "body": [
- {
- "output": {
- "version": "1",
- "type": "REST",
- "method": "POST",
- "endpoint": "https://api.getvero.com/api/v2/users/track",
- "headers": {},
- "params": {},
- "body": {
- "JSON": {
- "id": "user1001",
- "email": "user1001@tech.com",
- "data": {},
- "channels": {
- "platform": "android",
- "address": "qwertyuioiuytrewwertyu",
- "device": "Mi",
- "type": "push"
- },
- "auth_token": "testAuthToken"
- },
- "JSON_ARRAY": {},
- "XML": {},
- "FORM": {}
- },
- "files": {},
- "userId": ""
- },
- "statusCode": 200
- }
- ]
- }
- }
- },
- {
- "name": "vero",
- "description": "Test 8",
- "feature": "processor",
- "module": "destination",
- "version": "v0",
- "input": {
- "request": {
- "body": [
- {
- "destination": {
- "Config": {
- "authToken": "testAuthToken"
- }
- },
- "message": {
- "context": {
- "traits": {
- "email": "user1001@tech.com"
- },
- "device": {
- "token": "qwertyuioiuytrewwertyu",
- "name": "Mi"
- }
- },
- "type": "Identify",
- "userId": "user1001"
- }
- }
- ]
- }
- },
- "output": {
- "response": {
- "status": 200,
- "body": [
- {
- "output": {
- "version": "1",
- "type": "REST",
- "method": "POST",
- "endpoint": "https://api.getvero.com/api/v2/users/track",
- "headers": {},
- "params": {},
- "body": {
- "JSON": {
- "id": "user1001",
- "email": "user1001@tech.com",
- "data": {},
- "auth_token": "testAuthToken"
- },
- "JSON_ARRAY": {},
- "XML": {},
- "FORM": {}
- },
- "files": {},
- "userId": ""
- },
- "statusCode": 200
- }
- ]
- }
- }
- },
- {
- "name": "vero",
- "description": "Test 9",
- "feature": "processor",
- "module": "destination",
- "version": "v0",
- "input": {
- "request": {
- "body": [
- {
- "destination": {
- "Config": {
- "authToken": "testAuthToken"
- }
- },
- "message": {
- "event": "unsubscribe",
- "type": "track",
- "userId": "eventIdn01"
- }
- }
- ]
- }
- },
- "output": {
- "response": {
- "status": 200,
- "body": [
- {
- "output": {
- "version": "1",
- "type": "REST",
- "method": "POST",
- "endpoint": "https://api.getvero.com/api/v2/users/unsubscribe",
- "headers": {},
- "params": {},
- "body": {
- "JSON": {
- "id": "eventIdn01",
- "auth_token": "testAuthToken"
- },
- "JSON_ARRAY": {},
- "XML": {},
- "FORM": {}
- },
- "files": {},
- "userId": ""
- },
- "statusCode": 200
- }
- ]
- }
- }
- },
- {
- "name": "vero",
- "description": "Test 10",
- "feature": "processor",
- "module": "destination",
- "version": "v0",
- "input": {
- "request": {
- "body": [
- {
- "destination": {
- "Config": {
- "authToken": "testAuthToken"
- }
- },
- "message": {
- "name": "Rudderstack",
- "properties": {
- "title": "rudderstack",
- "path": "/"
- },
- "type": "page",
- "userId": "eventIdn01"
- }
- }
- ]
- }
- },
- "output": {
- "response": {
- "status": 200,
- "body": [
- {
- "output": {
- "version": "1",
- "type": "REST",
- "method": "POST",
- "endpoint": "https://api.getvero.com/api/v2/events/track",
- "headers": {},
- "params": {},
- "body": {
- "JSON": {
- "identity": {
- "id": "eventIdn01"
- },
- "event_name": "Viewed Rudderstack Page",
- "data": {
- "title": "rudderstack",
- "path": "/"
- },
- "auth_token": "testAuthToken"
- },
- "JSON_ARRAY": {},
- "XML": {},
- "FORM": {}
- },
- "files": {},
- "userId": ""
- },
- "statusCode": 200
- }
- ]
- }
- }
- },
- {
- "name": "vero",
- "description": "Test 11",
- "feature": "processor",
- "module": "destination",
- "version": "v0",
- "input": {
- "request": {
- "body": [
- {
- "destination": {
- "Config": {
- "authToken": "testAuthToken"
- }
- },
- "message": {
- "groupId": "1234",
- "traits": {
- "name": "MyGroup",
- "industry": "IT",
- "employees": 450,
- "plan": "basic"
- },
- "type": "group",
- "userId": "eventIdn01"
- }
- }
- ]
- }
- },
- "output": {
- "response": {
- "status": 200,
- "body": [
- {
- "statusCode": 400,
- "error": "Event type group is not supported",
- "statTags": {
- "errorCategory": "dataValidation",
- "errorType": "instrumentation",
- "destType": "VERO",
- "module": "destination",
- "implementation": "native",
- "feature": "processor"
- }
- }
- ]
- }
- }
- }
-]
+ {
+ name: 'vero',
+ description: 'Test 0',
+ feature: 'processor',
+ module: 'destination',
+ version: 'v0',
+ input: {
+ request: {
+ body: [
+ {
+ destination: {
+ Config: {
+ authToken: 'testAuthToken',
+ },
+ },
+ message: {
+ context: {
+ traits: {
+ homwTown: 'kanpur',
+ age: '24',
+ },
+ },
+ type: 'Identify',
+ userId: 'yash001',
+ originalTimestamp: '2019-10-14T09:03:17.562Z',
+ },
+ },
+ ],
+ },
+ },
+ output: {
+ response: {
+ status: 200,
+ body: [
+ {
+ output: {
+ version: '1',
+ type: 'REST',
+ method: 'POST',
+ endpoint: 'https://api.getvero.com/api/v2/users/track',
+ headers: {},
+ params: {},
+ body: {
+ JSON: {
+ id: 'yash001',
+ data: {
+ homwTown: 'kanpur',
+ age: '24',
+ },
+ auth_token: 'testAuthToken',
+ },
+ JSON_ARRAY: {},
+ XML: {},
+ FORM: {},
+ },
+ files: {},
+ userId: '',
+ },
+ statusCode: 200,
+ },
+ ],
+ },
+ },
+ },
+ {
+ name: 'vero',
+ description: 'Test 1',
+ feature: 'processor',
+ module: 'destination',
+ version: 'v0',
+ input: {
+ request: {
+ body: [
+ {
+ destination: {
+ Config: {
+ authToken: 'testAuthToken',
+ },
+ },
+ message: {
+ context: {
+ traits: {
+ email: 'user1001@tech.com',
+ },
+ },
+ type: 'Identify',
+ userId: 'user1001',
+ },
+ },
+ ],
+ },
+ },
+ output: {
+ response: {
+ status: 200,
+ body: [
+ {
+ output: {
+ version: '1',
+ type: 'REST',
+ method: 'POST',
+ endpoint: 'https://api.getvero.com/api/v2/users/track',
+ headers: {},
+ params: {},
+ body: {
+ JSON: {
+ id: 'user1001',
+ email: 'user1001@tech.com',
+ data: {},
+ auth_token: 'testAuthToken',
+ },
+ JSON_ARRAY: {},
+ XML: {},
+ FORM: {},
+ },
+ files: {},
+ userId: '',
+ },
+ statusCode: 200,
+ },
+ ],
+ },
+ },
+ },
+ {
+ name: 'vero',
+ description: 'Test 2',
+ feature: 'processor',
+ module: 'destination',
+ version: 'v0',
+ input: {
+ request: {
+ body: [
+ {
+ destination: {
+ Config: {
+ authToken: 'testAuthToken',
+ },
+ },
+ message: {
+ context: {
+ traits: {
+ email: 'user1002@tech.com',
+ },
+ },
+ type: 'Identify',
+ anonymousId: 'b4ffheww8eisndbdjgdewifewfgerwibderv',
+ },
+ },
+ ],
+ },
+ },
+ output: {
+ response: {
+ status: 200,
+ body: [
+ {
+ output: {
+ version: '1',
+ type: 'REST',
+ method: 'POST',
+ endpoint: 'https://api.getvero.com/api/v2/users/track',
+ headers: {},
+ params: {},
+ body: {
+ JSON: {
+ id: 'b4ffheww8eisndbdjgdewifewfgerwibderv',
+ email: 'user1002@tech.com',
+ data: {},
+ auth_token: 'testAuthToken',
+ },
+ JSON_ARRAY: {},
+ XML: {},
+ FORM: {},
+ },
+ files: {},
+ userId: '',
+ },
+ statusCode: 200,
+ },
+ ],
+ },
+ },
+ },
+ {
+ name: 'vero',
+ description: 'Test 3',
+ feature: 'processor',
+ module: 'destination',
+ version: 'v0',
+ input: {
+ request: {
+ body: [
+ {
+ destination: {
+ Config: {
+ authToken: 'testAuthToken',
+ },
+ },
+ message: {
+ context: {
+ traits: {
+ address: 'Caravela Beach Goa',
+ homwTown: 'Mawsynram',
+ email: 'user1005@tech.com',
+ },
+ },
+ integrations: {
+ vero: {
+ tags: {
+ add: ['a', 'b'],
+ },
+ },
+ },
+ type: 'Identify',
+ userId: 'fprediruser001',
+ },
+ },
+ ],
+ },
+ },
+ output: {
+ response: {
+ status: 200,
+ body: [
+ {
+ output: {
+ version: '1',
+ type: 'REST',
+ method: 'POST',
+ endpoint: 'https://api.getvero.com/api/v2/users/track',
+ headers: {},
+ params: {},
+ body: {
+ JSON: {
+ id: 'fprediruser001',
+ email: 'user1005@tech.com',
+ data: {
+ address: 'Caravela Beach Goa',
+ homwTown: 'Mawsynram',
+ },
+ auth_token: 'testAuthToken',
+ },
+ JSON_ARRAY: {},
+ XML: {},
+ FORM: {},
+ },
+ files: {},
+ userId: '',
+ },
+ statusCode: 200,
+ },
+ {
+ output: {
+ version: '1',
+ type: 'REST',
+ method: 'PUT',
+ endpoint: 'https://api.getvero.com/api/v2/users/tags/edit',
+ headers: {},
+ params: {},
+ body: {
+ JSON: {
+ id: 'fprediruser001',
+ auth_token: 'testAuthToken',
+ add: ['a', 'b'],
+ },
+ JSON_ARRAY: {},
+ XML: {},
+ FORM: {},
+ },
+ files: {},
+ userId: '',
+ },
+ statusCode: 200,
+ },
+ ],
+ },
+ },
+ },
+ {
+ name: 'vero',
+ description: 'Test 4',
+ feature: 'processor',
+ module: 'destination',
+ version: 'v0',
+ input: {
+ request: {
+ body: [
+ {
+ destination: {
+ Config: {
+ authToken: 'testAuthToken',
+ },
+ },
+ message: {
+ event: 'Random event with nonexisting userId and email',
+ properties: {
+ movieWatched: 3,
+ gamesPlayed: 4,
+ email: 'eventIdn01@sample.com',
+ },
+ type: 'track',
+ userId: 'eventIdn01',
+ },
+ },
+ ],
+ },
+ },
+ output: {
+ response: {
+ status: 200,
+ body: [
+ {
+ output: {
+ version: '1',
+ type: 'REST',
+ method: 'POST',
+ endpoint: 'https://api.getvero.com/api/v2/events/track',
+ headers: {},
+ params: {},
+ body: {
+ JSON: {
+ identity: {
+ id: 'eventIdn01',
+ email: 'eventIdn01@sample.com',
+ },
+ event_name: 'Random event with nonexisting userId and email',
+ data: {
+ movieWatched: 3,
+ gamesPlayed: 4,
+ email: 'eventIdn01@sample.com',
+ },
+ auth_token: 'testAuthToken',
+ },
+ JSON_ARRAY: {},
+ XML: {},
+ FORM: {},
+ },
+ files: {},
+ userId: '',
+ },
+ statusCode: 200,
+ },
+ ],
+ },
+ },
+ },
+ {
+ name: 'vero',
+ description: 'Test 5',
+ feature: 'processor',
+ module: 'destination',
+ version: 'v0',
+ input: {
+ request: {
+ body: [
+ {
+ destination: {
+ Config: {
+ authToken: 'testAuthToken',
+ },
+ },
+ message: {
+ event: 'Random event with existing userId and some tags removed',
+ properties: {
+ movieWatched: 3,
+ gamesPlayed: 4,
+ email: 'eventIdn01@sample.com',
+ },
+ integrations: {
+ Vero: {
+ tags: {
+ remove: ['a'],
+ },
+ },
+ },
+ type: 'track',
+ userId: 'fprediruser001',
+ },
+ },
+ ],
+ },
+ },
+ output: {
+ response: {
+ status: 200,
+ body: [
+ {
+ output: {
+ version: '1',
+ type: 'REST',
+ method: 'POST',
+ endpoint: 'https://api.getvero.com/api/v2/events/track',
+ headers: {},
+ params: {},
+ body: {
+ JSON: {
+ identity: {
+ id: 'fprediruser001',
+ email: 'eventIdn01@sample.com',
+ },
+ event_name: 'Random event with existing userId and some tags removed',
+ data: {
+ movieWatched: 3,
+ gamesPlayed: 4,
+ email: 'eventIdn01@sample.com',
+ },
+ auth_token: 'testAuthToken',
+ },
+ JSON_ARRAY: {},
+ XML: {},
+ FORM: {},
+ },
+ files: {},
+ userId: '',
+ },
+ statusCode: 200,
+ },
+ {
+ output: {
+ version: '1',
+ type: 'REST',
+ method: 'PUT',
+ endpoint: 'https://api.getvero.com/api/v2/users/tags/edit',
+ headers: {},
+ params: {},
+ body: {
+ JSON: {
+ id: 'fprediruser001',
+ auth_token: 'testAuthToken',
+ remove: ['a'],
+ },
+ JSON_ARRAY: {},
+ XML: {},
+ FORM: {},
+ },
+ files: {},
+ userId: '',
+ },
+ statusCode: 200,
+ },
+ ],
+ },
+ },
+ },
+ {
+ name: 'vero',
+ description: 'Test 6',
+ feature: 'processor',
+ module: 'destination',
+ version: 'v0',
+ input: {
+ request: {
+ body: [
+ {
+ destination: {
+ Config: {
+ authToken: 'testAuthToken',
+ },
+ },
+ message: {
+ type: 'alias',
+ userId: 'sample101',
+ previousId: 'newsamplel01',
+ },
+ },
+ ],
+ },
+ },
+ output: {
+ response: {
+ status: 200,
+ body: [
+ {
+ output: {
+ version: '1',
+ type: 'REST',
+ method: 'PUT',
+ endpoint: 'https://api.getvero.com/api/v2/users/reidentify',
+ headers: {},
+ params: {},
+ body: {
+ JSON: {
+ new_id: 'sample101',
+ id: 'newsamplel01',
+ auth_token: 'testAuthToken',
+ },
+ JSON_ARRAY: {},
+ XML: {},
+ FORM: {},
+ },
+ files: {},
+ userId: '',
+ },
+ statusCode: 200,
+ },
+ ],
+ },
+ },
+ },
+ {
+ name: 'vero',
+ description: 'Test 7',
+ feature: 'processor',
+ module: 'destination',
+ version: 'v0',
+ input: {
+ request: {
+ body: [
+ {
+ destination: {
+ Config: {
+ authToken: 'testAuthToken',
+ },
+ },
+ message: {
+ context: {
+ traits: {
+ email: 'user1001@tech.com',
+ },
+ os: {
+ name: 'android',
+ },
+ device: {
+ token: 'qwertyuioiuytrewwertyu',
+ name: 'Mi',
+ },
+ },
+ type: 'Identify',
+ userId: 'user1001',
+ },
+ },
+ ],
+ },
+ },
+ output: {
+ response: {
+ status: 200,
+ body: [
+ {
+ output: {
+ version: '1',
+ type: 'REST',
+ method: 'POST',
+ endpoint: 'https://api.getvero.com/api/v2/users/track',
+ headers: {},
+ params: {},
+ body: {
+ JSON: {
+ id: 'user1001',
+ email: 'user1001@tech.com',
+ data: {},
+ channels: {
+ platform: 'android',
+ address: 'qwertyuioiuytrewwertyu',
+ device: 'Mi',
+ type: 'push',
+ },
+ auth_token: 'testAuthToken',
+ },
+ JSON_ARRAY: {},
+ XML: {},
+ FORM: {},
+ },
+ files: {},
+ userId: '',
+ },
+ statusCode: 200,
+ },
+ ],
+ },
+ },
+ },
+ {
+ name: 'vero',
+ description: 'Test 8',
+ feature: 'processor',
+ module: 'destination',
+ version: 'v0',
+ input: {
+ request: {
+ body: [
+ {
+ destination: {
+ Config: {
+ authToken: 'testAuthToken',
+ },
+ },
+ message: {
+ context: {
+ traits: {
+ email: 'user1001@tech.com',
+ },
+ device: {
+ token: 'qwertyuioiuytrewwertyu',
+ name: 'Mi',
+ },
+ },
+ type: 'Identify',
+ userId: 'user1001',
+ },
+ },
+ ],
+ },
+ },
+ output: {
+ response: {
+ status: 200,
+ body: [
+ {
+ output: {
+ version: '1',
+ type: 'REST',
+ method: 'POST',
+ endpoint: 'https://api.getvero.com/api/v2/users/track',
+ headers: {},
+ params: {},
+ body: {
+ JSON: {
+ id: 'user1001',
+ email: 'user1001@tech.com',
+ data: {},
+ auth_token: 'testAuthToken',
+ },
+ JSON_ARRAY: {},
+ XML: {},
+ FORM: {},
+ },
+ files: {},
+ userId: '',
+ },
+ statusCode: 200,
+ },
+ ],
+ },
+ },
+ },
+ {
+ name: 'vero',
+ description: 'Test 9',
+ feature: 'processor',
+ module: 'destination',
+ version: 'v0',
+ input: {
+ request: {
+ body: [
+ {
+ destination: {
+ Config: {
+ authToken: 'testAuthToken',
+ },
+ },
+ message: {
+ event: 'unsubscribe',
+ type: 'track',
+ userId: 'eventIdn01',
+ },
+ },
+ ],
+ },
+ },
+ output: {
+ response: {
+ status: 200,
+ body: [
+ {
+ output: {
+ version: '1',
+ type: 'REST',
+ method: 'POST',
+ endpoint: 'https://api.getvero.com/api/v2/users/unsubscribe',
+ headers: {},
+ params: {},
+ body: {
+ JSON: {
+ id: 'eventIdn01',
+ auth_token: 'testAuthToken',
+ },
+ JSON_ARRAY: {},
+ XML: {},
+ FORM: {},
+ },
+ files: {},
+ userId: '',
+ },
+ statusCode: 200,
+ },
+ ],
+ },
+ },
+ },
+ {
+ name: 'vero',
+ description: 'Test 10',
+ feature: 'processor',
+ module: 'destination',
+ version: 'v0',
+ input: {
+ request: {
+ body: [
+ {
+ destination: {
+ Config: {
+ authToken: 'testAuthToken',
+ },
+ },
+ message: {
+ name: 'Rudderstack',
+ properties: {
+ title: 'rudderstack',
+ path: '/',
+ },
+ type: 'page',
+ userId: 'eventIdn01',
+ },
+ },
+ ],
+ },
+ },
+ output: {
+ response: {
+ status: 200,
+ body: [
+ {
+ output: {
+ version: '1',
+ type: 'REST',
+ method: 'POST',
+ endpoint: 'https://api.getvero.com/api/v2/events/track',
+ headers: {},
+ params: {},
+ body: {
+ JSON: {
+ identity: {
+ id: 'eventIdn01',
+ },
+ event_name: 'Viewed Rudderstack Page',
+ data: {
+ title: 'rudderstack',
+ path: '/',
+ },
+ auth_token: 'testAuthToken',
+ },
+ JSON_ARRAY: {},
+ XML: {},
+ FORM: {},
+ },
+ files: {},
+ userId: '',
+ },
+ statusCode: 200,
+ },
+ ],
+ },
+ },
+ },
+ {
+ name: 'vero',
+ description: 'Test 11',
+ feature: 'processor',
+ module: 'destination',
+ version: 'v0',
+ input: {
+ request: {
+ body: [
+ {
+ destination: {
+ Config: {
+ authToken: 'testAuthToken',
+ },
+ },
+ message: {
+ groupId: '1234',
+ traits: {
+ name: 'MyGroup',
+ industry: 'IT',
+ employees: 450,
+ plan: 'basic',
+ },
+ type: 'group',
+ userId: 'eventIdn01',
+ },
+ },
+ ],
+ },
+ },
+ output: {
+ response: {
+ status: 200,
+ body: [
+ {
+ statusCode: 400,
+ error: 'Event type group is not supported',
+ statTags: {
+ errorCategory: 'dataValidation',
+ errorType: 'instrumentation',
+ destType: 'VERO',
+ module: 'destination',
+ implementation: 'native',
+ feature: 'processor',
+ },
+ },
+ ],
+ },
+ },
+ },
+];
diff --git a/test/integrations/destinations/wootric/processor/data.ts b/test/integrations/destinations/wootric/processor/data.ts
index d94901fe80..ae747e982d 100644
--- a/test/integrations/destinations/wootric/processor/data.ts
+++ b/test/integrations/destinations/wootric/processor/data.ts
@@ -1,1825 +1,1852 @@
export const data = [
- {
- "name": "wootric",
- "description": "Wrong Account Token Passed",
- "feature": "processor",
- "module": "destination",
- "version": "v0",
- "input": {
- "request": {
- "body": [
- {
- "destination": {
- "Config": {
- "username": "wootricfakeuser@example.com",
- "password": "password@123",
- "accountToken": "NPS-dummyToken12"
- },
- "ID": "wootric-1234"
- },
- "message": {
- "type": "identify",
- "sentAt": "2022-01-20T13:39:21.033Z",
- "userId": "dummyId2",
- "channel": "web",
- "context": {},
- "rudderId": "553b5522-c575-40a7-8072-9741c5f9a647",
- "messageId": "831f1fa5-de84-4f22-880a-4c3f23fc3f04",
- "anonymousId": "bf412108-0357-4330-b119-7305e767823c",
- "integrations": {
- "All": true
- },
- "originalTimestamp": "2022-01-20T13:39:21.032Z"
- }
- }
- ]
- }
- },
- "output": {
- "response": {
- "status": 200,
- "body": [
- {
- "error": "{\"message\":\"Access token could not be generated due to {\\\"error\\\":\\\"Not found\\\",\\\"status\\\":404}\",\"destinationResponse\":{\"response\":{\"error\":\"Not found\",\"status\":404},\"status\":500}}",
- "statTags": {
- "destType": "WOOTRIC",
- "errorCategory": "network",
- "errorType": "retryable",
- "feature": "processor",
- "implementation": "native",
- "module": "destination"
- },
- "statusCode": 500
- }
- ]
- }
- }
- },
- {
- "name": "wootric",
- "description": "Identify call for creating user",
- "feature": "processor",
- "module": "destination",
- "version": "v0",
- "input": {
- "request": {
- "body": [
- {
- "destination": {
- "Config": {
- "username": "wootricfakeuser@example.com",
- "password": "password@123",
- "accountToken": "NPS-dummyToken"
- },
- "ID": "wootric-1234"
- },
- "message": {
- "type": "identify",
- "sentAt": "2022-01-20T13:39:21.033Z",
- "userId": "dummyId2",
- "channel": "web",
- "context": {
- "os": {
- "name": "",
- "version": ""
- },
- "app": {
- "name": "RudderLabs JavaScript SDK",
- "build": "1.0.0",
- "version": "1.2.20",
- "namespace": "com.rudderlabs.javascript"
- },
- "page": {
- "url": "http://127.0.0.1:7307/Testing/App_for_LaunchDarkly/ourSdk.html",
- "path": "/Testing/App_for_LaunchDarkly/ourSdk.html",
- "title": "Document",
- "search": "",
- "tab_url": "http://127.0.0.1:7307/Testing/App_for_LaunchDarkly/ourSdk.html",
- "referrer": "http://127.0.0.1:7307/Testing/App_for_LaunchDarkly/",
- "initial_referrer": "$direct",
- "referring_domain": "127.0.0.1:7307",
- "initial_referring_domain": ""
- },
- "locale": "en-US",
- "screen": {
- "width": 1440,
- "height": 900,
- "density": 2,
- "innerWidth": 536,
- "innerHeight": 689
- },
- "traits": {
- "city": "Bangalore",
- "name": "Dummy User 2",
- "email": "dummyUser2@gmail.com",
- "phone": "+19123456777",
- "title": "SDE",
- "gender": "Male",
- "company": "Rudderstack",
- "createdAt": "2021-01-20T13:39:21.032Z"
- },
- "library": {
- "name": "RudderLabs JavaScript SDK",
- "version": "1.2.20"
- },
- "campaign": {},
- "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/97.0.4692.71 Safari/537.36"
- },
- "rudderId": "553b5522-c575-40a7-8072-9741c5f9a647",
- "messageId": "831f1fa5-de84-4f22-880a-4c3f23fc3f04",
- "anonymousId": "bf412108-0357-4330-b119-7305e767823c",
- "integrations": {
- "All": true
- },
- "originalTimestamp": "2022-01-20T13:39:21.032Z"
- }
- }
- ]
- }
- },
- "output": {
- "response": {
- "status": 200,
- "body": [
- {
- "output": {
- "version": "1",
- "type": "REST",
- "method": "POST",
- "endpoint": "https://api.wootric.com/v1/end_users",
- "headers": {
- "Content-Type": "application/x-www-form-urlencoded",
- "Authorization": "Bearer 2fe581c1c72851e73d60f4191f720be93e5d3e8a6147e37c4e8e852b1a8f506c"
- },
- "params": {},
- "body": {
- "JSON": {},
- "JSON_ARRAY": {},
- "XML": {},
- "FORM": {
- "email": "dummyUser2@gmail.com",
- "phone_number": "+19123456777",
- "last_surveyed": "1642685961",
- "external_created_at": "1611149961",
- "external_id": "dummyId2",
- "properties[city]": "Bangalore",
- "properties[name]": "Dummy User 2",
- "properties[title]": "SDE",
- "properties[gender]": "Male",
- "properties[company]": "Rudderstack"
- }
- },
- "files": {},
- "userId": ""
- },
- "statusCode": 200
- }
- ]
- }
- }
- },
- {
- "name": "wootric",
- "description": "Identify call for creating user without-sending email and sending phone number",
- "feature": "processor",
- "module": "destination",
- "version": "v0",
- "input": {
- "request": {
- "body": [
- {
- "destination": {
- "Config": {
- "username": "wootricfakeuser@example.com",
- "password": "password@123",
- "accountToken": "NPS-dummyToken"
- },
- "ID": "wootric-1234"
- },
- "message": {
- "type": "identify",
- "sentAt": "2022-01-20T13:39:21.033Z",
- "userId": "dummyId2",
- "channel": "web",
- "context": {
- "os": {
- "name": "",
- "version": ""
- },
- "app": {
- "name": "RudderLabs JavaScript SDK",
- "build": "1.0.0",
- "version": "1.2.20",
- "namespace": "com.rudderlabs.javascript"
- },
- "page": {
- "url": "http://127.0.0.1:7307/Testing/App_for_LaunchDarkly/ourSdk.html",
- "path": "/Testing/App_for_LaunchDarkly/ourSdk.html",
- "title": "Document",
- "search": "",
- "tab_url": "http://127.0.0.1:7307/Testing/App_for_LaunchDarkly/ourSdk.html",
- "referrer": "http://127.0.0.1:7307/Testing/App_for_LaunchDarkly/",
- "initial_referrer": "$direct",
- "referring_domain": "127.0.0.1:7307",
- "initial_referring_domain": ""
- },
- "locale": "en-US",
- "screen": {
- "width": 1440,
- "height": 900,
- "density": 2,
- "innerWidth": 536,
- "innerHeight": 689
- },
- "traits": {
- "city": "Bangalore",
- "name": "Dummy User 2",
- "phone": "+19123456777",
- "title": "SDE",
- "gender": "Male",
- "company": "Rudderstack",
- "createdAt": "2021-01-20T13:39:21.032Z"
- },
- "library": {
- "name": "RudderLabs JavaScript SDK",
- "version": "1.2.20"
- },
- "campaign": {},
- "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/97.0.4692.71 Safari/537.36"
- },
- "rudderId": "553b5522-c575-40a7-8072-9741c5f9a647",
- "messageId": "831f1fa5-de84-4f22-880a-4c3f23fc3f04",
- "anonymousId": "bf412108-0357-4330-b119-7305e767823c",
- "integrations": {
- "All": true
- },
- "originalTimestamp": "2022-01-20T13:39:21.032Z"
- }
- }
- ]
- }
- },
- "output": {
- "response": {
- "status": 200,
- "body": [
- {
- "output": {
- "version": "1",
- "type": "REST",
- "method": "POST",
- "endpoint": "https://api.wootric.com/v1/end_users",
- "headers": {
- "Content-Type": "application/x-www-form-urlencoded",
- "Authorization": "Bearer 2fe581c1c72851e73d60f4191f720be93e5d3e8a6147e37c4e8e852b1a8f506c"
- },
- "params": {},
- "body": {
- "JSON": {},
- "JSON_ARRAY": {},
- "XML": {},
- "FORM": {
- "phone_number": "+19123456777",
- "last_surveyed": "1642685961",
- "external_created_at": "1611149961",
- "external_id": "dummyId2",
- "properties[city]": "Bangalore",
- "properties[name]": "Dummy User 2",
- "properties[title]": "SDE",
- "properties[gender]": "Male",
- "properties[company]": "Rudderstack"
- }
- },
- "files": {},
- "userId": ""
- },
- "statusCode": 200
- }
- ]
- }
- }
- },
- {
- "name": "wootric",
- "description": "Identify call for creating user without-sending phone number and sending email",
- "feature": "processor",
- "module": "destination",
- "version": "v0",
- "input": {
- "request": {
- "body": [
- {
- "destination": {
- "Config": {
- "username": "wootricfakeuser@example.com",
- "password": "password@123",
- "accountToken": "NPS-dummyToken"
- },
- "ID": "wootric-1234"
- },
- "message": {
- "type": "identify",
- "sentAt": "2022-01-20T13:39:21.033Z",
- "userId": "dummyId2",
- "channel": "web",
- "context": {
- "os": {
- "name": "",
- "version": ""
- },
- "app": {
- "name": "RudderLabs JavaScript SDK",
- "build": "1.0.0",
- "version": "1.2.20",
- "namespace": "com.rudderlabs.javascript"
- },
- "page": {
- "url": "http://127.0.0.1:7307/Testing/App_for_LaunchDarkly/ourSdk.html",
- "path": "/Testing/App_for_LaunchDarkly/ourSdk.html",
- "title": "Document",
- "search": "",
- "tab_url": "http://127.0.0.1:7307/Testing/App_for_LaunchDarkly/ourSdk.html",
- "referrer": "http://127.0.0.1:7307/Testing/App_for_LaunchDarkly/",
- "initial_referrer": "$direct",
- "referring_domain": "127.0.0.1:7307",
- "initial_referring_domain": ""
- },
- "locale": "en-US",
- "screen": {
- "width": 1440,
- "height": 900,
- "density": 2,
- "innerWidth": 536,
- "innerHeight": 689
- },
- "traits": {
- "email": "dummyUser2@gmail.com",
- "city": "Bangalore",
- "name": "Dummy User 2",
- "title": "SDE",
- "gender": "Male",
- "company": "Rudderstack",
- "createdAt": "2021-01-20T13:39:21.032Z"
- },
- "library": {
- "name": "RudderLabs JavaScript SDK",
- "version": "1.2.20"
- },
- "campaign": {},
- "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/97.0.4692.71 Safari/537.36"
- },
- "rudderId": "553b5522-c575-40a7-8072-9741c5f9a647",
- "messageId": "831f1fa5-de84-4f22-880a-4c3f23fc3f04",
- "anonymousId": "bf412108-0357-4330-b119-7305e767823c",
- "integrations": {
- "All": true
- },
- "originalTimestamp": "2022-01-20T13:39:21.032Z"
- }
- }
- ]
- }
- },
- "output": {
- "response": {
- "status": 200,
- "body": [
- {
- "output": {
- "version": "1",
- "type": "REST",
- "method": "POST",
- "endpoint": "https://api.wootric.com/v1/end_users",
- "headers": {
- "Content-Type": "application/x-www-form-urlencoded",
- "Authorization": "Bearer 2fe581c1c72851e73d60f4191f720be93e5d3e8a6147e37c4e8e852b1a8f506c"
- },
- "params": {},
- "body": {
- "JSON": {},
- "JSON_ARRAY": {},
- "XML": {},
- "FORM": {
- "email": "dummyUser2@gmail.com",
- "last_surveyed": "1642685961",
- "external_created_at": "1611149961",
- "external_id": "dummyId2",
- "properties[city]": "Bangalore",
- "properties[name]": "Dummy User 2",
- "properties[title]": "SDE",
- "properties[gender]": "Male",
- "properties[company]": "Rudderstack"
- }
- },
- "files": {},
- "userId": ""
- },
- "statusCode": 200
- }
- ]
- }
- }
- },
- {
- "name": "wootric",
- "description": "Identify call for creating user without sending traits",
- "feature": "processor",
- "module": "destination",
- "version": "v0",
- "input": {
- "request": {
- "body": [
- {
- "destination": {
- "Config": {
- "username": "wootricfakeuser@example.com",
- "password": "password@123",
- "accountToken": "NPS-dummyToken"
- },
- "ID": "wootric-1234"
- },
- "message": {
- "type": "identify",
- "sentAt": "2022-01-20T13:39:21.033Z",
- "userId": "dummyId2",
- "channel": "web",
- "context": {
- "os": {
- "name": "",
- "version": ""
- },
- "app": {
- "name": "RudderLabs JavaScript SDK",
- "build": "1.0.0",
- "version": "1.2.20",
- "namespace": "com.rudderlabs.javascript"
- },
- "page": {
- "url": "http://127.0.0.1:7307/Testing/App_for_LaunchDarkly/ourSdk.html",
- "path": "/Testing/App_for_LaunchDarkly/ourSdk.html",
- "title": "Document",
- "search": "",
- "tab_url": "http://127.0.0.1:7307/Testing/App_for_LaunchDarkly/ourSdk.html",
- "referrer": "http://127.0.0.1:7307/Testing/App_for_LaunchDarkly/",
- "initial_referrer": "$direct",
- "referring_domain": "127.0.0.1:7307",
- "initial_referring_domain": ""
- },
- "locale": "en-US",
- "screen": {
- "width": 1440,
- "height": 900,
- "density": 2,
- "innerWidth": 536,
- "innerHeight": 689
- },
- "library": {
- "name": "RudderLabs JavaScript SDK",
- "version": "1.2.20"
- },
- "campaign": {},
- "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/97.0.4692.71 Safari/537.36"
- },
- "rudderId": "553b5522-c575-40a7-8072-9741c5f9a647",
- "messageId": "831f1fa5-de84-4f22-880a-4c3f23fc3f04",
- "anonymousId": "bf412108-0357-4330-b119-7305e767823c",
- "integrations": {
- "All": true
- },
- "originalTimestamp": "2022-01-20T13:39:21.032Z"
- }
- }
- ]
- }
- },
- "output": {
- "response": {
- "status": 200,
- "body": [
- {
- "error": "email/phone number are missing. At least one parameter must be provided",
- "statTags": {
- "destType": "WOOTRIC",
- "errorCategory": "dataValidation",
- "errorType": "instrumentation",
- "feature": "processor",
- "implementation": "native",
- "module": "destination"
- },
- "statusCode": 400
- }
- ]
- }
- }
- },
- {
- "name": "wootric",
- "description": "Identify call for creating user without-sending (email and phone number)",
- "feature": "processor",
- "module": "destination",
- "version": "v0",
- "input": {
- "request": {
- "body": [
- {
- "destination": {
- "Config": {
- "username": "wootricfakeuser@example.com",
- "password": "password@123",
- "accountToken": "NPS-dummyToken"
- },
- "ID": "wootric-1234"
- },
- "message": {
- "type": "identify",
- "sentAt": "2022-01-20T13:39:21.033Z",
- "userId": "dummyId2",
- "channel": "web",
- "context": {
- "os": {
- "name": "",
- "version": ""
- },
- "app": {
- "name": "RudderLabs JavaScript SDK",
- "build": "1.0.0",
- "version": "1.2.20",
- "namespace": "com.rudderlabs.javascript"
- },
- "page": {
- "url": "http://127.0.0.1:7307/Testing/App_for_LaunchDarkly/ourSdk.html",
- "path": "/Testing/App_for_LaunchDarkly/ourSdk.html",
- "title": "Document",
- "search": "",
- "tab_url": "http://127.0.0.1:7307/Testing/App_for_LaunchDarkly/ourSdk.html",
- "referrer": "http://127.0.0.1:7307/Testing/App_for_LaunchDarkly/",
- "initial_referrer": "$direct",
- "referring_domain": "127.0.0.1:7307",
- "initial_referring_domain": ""
- },
- "locale": "en-US",
- "screen": {
- "width": 1440,
- "height": 900,
- "density": 2,
- "innerWidth": 536,
- "innerHeight": 689
- },
- "traits": {
- "city": "Mumbai",
- "name": "Dummy User 1",
- "title": "SDE",
- "gender": "Male",
- "company": "Rudderstack",
- "createdAt": "2021-01-20T13:39:21.032Z"
- },
- "library": {
- "name": "RudderLabs JavaScript SDK",
- "version": "1.2.20"
- },
- "campaign": {},
- "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/97.0.4692.71 Safari/537.36"
- },
- "rudderId": "553b5522-c575-40a7-8072-9741c5f9a647",
- "messageId": "831f1fa5-de84-4f22-880a-4c3f23fc3f04",
- "anonymousId": "bf412108-0357-4330-b119-7305e767823c",
- "integrations": {
- "All": true
- },
- "originalTimestamp": "2022-01-20T13:39:21.032Z"
- }
- }
- ]
- }
- },
- "output": {
- "response": {
- "status": 200,
- "body": [
- {
- "error": "email/phone number are missing. At least one parameter must be provided",
- "statTags": {
- "destType": "WOOTRIC",
- "errorCategory": "dataValidation",
- "errorType": "instrumentation",
- "feature": "processor",
- "implementation": "native",
- "module": "destination"
- },
- "statusCode": 400
- }
- ]
- }
- }
- },
- {
- "name": "wootric",
- "description": "Identify call for updating existing user with wootric end user id",
- "feature": "processor",
- "module": "destination",
- "version": "v0",
- "input": {
- "request": {
- "body": [
- {
- "destination": {
- "Config": {
- "username": "wootricfakeuser@example.com",
- "password": "password@123",
- "accountToken": "NPS-dummyToken"
- },
- "ID": "wootric-1234"
- },
- "message": {
- "type": "identify",
- "sentAt": "2022-01-20T13:39:21.033Z",
- "userId": "dummyId1",
- "channel": "web",
- "context": {
- "os": {
- "name": "",
- "version": ""
- },
- "app": {
- "name": "RudderLabs JavaScript SDK",
- "build": "1.0.0",
- "version": "1.2.20",
- "namespace": "com.rudderlabs.javascript"
- },
- "page": {
- "url": "http://127.0.0.1:7307/Testing/App_for_LaunchDarkly/ourSdk.html",
- "path": "/Testing/App_for_LaunchDarkly/ourSdk.html",
- "title": "Document",
- "search": "",
- "tab_url": "http://127.0.0.1:7307/Testing/App_for_LaunchDarkly/ourSdk.html",
- "referrer": "http://127.0.0.1:7307/Testing/App_for_LaunchDarkly/",
- "initial_referrer": "$direct",
- "referring_domain": "127.0.0.1:7307",
- "initial_referring_domain": ""
- },
- "locale": "en-US",
- "screen": {
- "width": 1440,
- "height": 900,
- "density": 2,
- "innerWidth": 536,
- "innerHeight": 689
- },
- "traits": {
- "title": "VP",
- "gender": "Male"
- },
- "externalId": [
- {
- "type": "wootricEndUserId",
- "id": "490635419"
- }
- ],
- "library": {
- "name": "RudderLabs JavaScript SDK",
- "version": "1.2.20"
- },
- "campaign": {},
- "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/97.0.4692.71 Safari/537.36"
- },
- "rudderId": "553b5522-c575-40a7-8072-9741c5f9a647",
- "messageId": "831f1fa5-de84-4f22-880a-4c3f23fc3f04",
- "anonymousId": "bf412108-0357-4330-b119-7305e767823c",
- "integrations": {
- "All": true
- },
- "originalTimestamp": "2022-01-20T13:39:21.032Z"
- }
- }
- ]
- }
- },
- "output": {
- "response": {
- "status": 200,
- "body": [
- {
- "output": {
- "version": "1",
- "type": "REST",
- "method": "PUT",
- "endpoint": "https://api.wootric.com/v1/end_users/490635419",
- "headers": {
- "Content-Type": "application/x-www-form-urlencoded",
- "Authorization": "Bearer 2fe581c1c72851e73d60f4191f720be93e5d3e8a6147e37c4e8e852b1a8f506c"
- },
- "params": {},
- "body": {
- "JSON": {},
- "JSON_ARRAY": {},
- "XML": {},
- "FORM": {
- "last_surveyed": "1642685961",
- "properties[Department]": "Marketing",
- "properties[product_plan]": "Web",
- "properties[revenue amount]": "5000",
- "properties[title]": "VP",
- "properties[gender]": "Male"
- }
- },
- "files": {},
- "userId": ""
- },
- "statusCode": 200
- }
- ]
- }
- }
- },
- {
- "name": "wootric",
- "description": "Identify call for updating existing user with (wootric externalId/ rudderstack userId)",
- "feature": "processor",
- "module": "destination",
- "version": "v0",
- "input": {
- "request": {
- "body": [
- {
- "destination": {
- "Config": {
- "username": "wootricfakeuser@example.com",
- "password": "password@123",
- "accountToken": "NPS-dummyToken"
- },
- "ID": "wootric-1234"
- },
- "message": {
- "type": "identify",
- "sentAt": "2022-01-20T13:39:21.033Z",
- "userId": "dummyId1",
- "channel": "web",
- "context": {
- "os": {
- "name": "",
- "version": ""
- },
- "app": {
- "name": "RudderLabs JavaScript SDK",
- "build": "1.0.0",
- "version": "1.2.20",
- "namespace": "com.rudderlabs.javascript"
- },
- "page": {
- "url": "http://127.0.0.1:7307/Testing/App_for_LaunchDarkly/ourSdk.html",
- "path": "/Testing/App_for_LaunchDarkly/ourSdk.html",
- "title": "Document",
- "search": "",
- "tab_url": "http://127.0.0.1:7307/Testing/App_for_LaunchDarkly/ourSdk.html",
- "referrer": "http://127.0.0.1:7307/Testing/App_for_LaunchDarkly/",
- "initial_referrer": "$direct",
- "referring_domain": "127.0.0.1:7307",
- "initial_referring_domain": ""
- },
- "locale": "en-US",
- "screen": {
- "width": 1440,
- "height": 900,
- "density": 2,
- "innerWidth": 536,
- "innerHeight": 689
- },
- "traits": {
- "title": "VP",
- "gender": "Male"
- },
- "library": {
- "name": "RudderLabs JavaScript SDK",
- "version": "1.2.20"
- },
- "campaign": {},
- "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/97.0.4692.71 Safari/537.36"
- },
- "rudderId": "553b5522-c575-40a7-8072-9741c5f9a647",
- "messageId": "831f1fa5-de84-4f22-880a-4c3f23fc3f04",
- "anonymousId": "bf412108-0357-4330-b119-7305e767823c",
- "integrations": {
- "All": true
- },
- "originalTimestamp": "2022-01-20T13:39:21.032Z"
- }
- }
- ]
- }
- },
- "output": {
- "response": {
- "status": 200,
- "body": [
- {
- "output": {
- "version": "1",
- "type": "REST",
- "method": "PUT",
- "endpoint": "https://api.wootric.com/v1/end_users/486438462",
- "headers": {
- "Content-Type": "application/x-www-form-urlencoded",
- "Authorization": "Bearer 2fe581c1c72851e73d60f4191f720be93e5d3e8a6147e37c4e8e852b1a8f506c"
- },
- "params": {},
- "body": {
- "JSON": {},
- "JSON_ARRAY": {},
- "XML": {},
- "FORM": {
- "last_surveyed": "1642685961",
- "properties[title]": "VP",
- "properties[gender]": "Male",
- "properties[city]": "Mumbai",
- "properties[name]": "Dummy User 1",
- "properties[company]": "Rudderstack"
- }
- },
- "files": {},
- "userId": ""
- },
- "statusCode": 200
- }
- ]
- }
- }
- },
- {
- "name": "wootric",
- "description": "Identify call for updating user traits/properties",
- "feature": "processor",
- "module": "destination",
- "version": "v0",
- "input": {
- "request": {
- "body": [
- {
- "destination": {
- "Config": {
- "username": "wootricfakeuser@example.com",
- "password": "password@123",
- "accountToken": "NPS-dummyToken"
- },
- "ID": "wootric-1234"
- },
- "message": {
- "type": "identify",
- "sentAt": "2022-01-20T13:39:21.033Z",
- "userId": "dummyId1",
- "channel": "web",
- "context": {
- "os": {
- "name": "",
- "version": ""
- },
- "app": {
- "name": "RudderLabs JavaScript SDK",
- "build": "1.0.0",
- "version": "1.2.20",
- "namespace": "com.rudderlabs.javascript"
- },
- "page": {
- "url": "http://127.0.0.1:7307/Testing/App_for_LaunchDarkly/ourSdk.html",
- "path": "/Testing/App_for_LaunchDarkly/ourSdk.html",
- "title": "Document",
- "search": "",
- "tab_url": "http://127.0.0.1:7307/Testing/App_for_LaunchDarkly/ourSdk.html",
- "referrer": "http://127.0.0.1:7307/Testing/App_for_LaunchDarkly/",
- "initial_referrer": "$direct",
- "referring_domain": "127.0.0.1:7307",
- "initial_referring_domain": ""
- },
- "locale": "en-US",
- "screen": {
- "width": 1440,
- "height": 900,
- "density": 2,
- "innerWidth": 536,
- "innerHeight": 689
- },
- "traits": {
- "city": "Udaipur",
- "name": "Dummy User 1 New",
- "title": "SDE-2",
- "gender": "Male",
- "company": "Rudderstack"
- },
- "library": {
- "name": "RudderLabs JavaScript SDK",
- "version": "1.2.20"
- },
- "campaign": {},
- "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/97.0.4692.71 Safari/537.36"
- },
- "rudderId": "553b5522-c575-40a7-8072-9741c5f9a647",
- "messageId": "831f1fa5-de84-4f22-880a-4c3f23fc3f04",
- "anonymousId": "bf412108-0357-4330-b119-7305e767823c",
- "integrations": {
- "All": true
- },
- "originalTimestamp": "2022-01-20T13:39:21.032Z"
- }
- }
- ]
- }
- },
- "output": {
- "response": {
- "status": 200,
- "body": [
- {
- "output": {
- "version": "1",
- "type": "REST",
- "method": "PUT",
- "endpoint": "https://api.wootric.com/v1/end_users/486438462",
- "headers": {
- "Content-Type": "application/x-www-form-urlencoded",
- "Authorization": "Bearer 2fe581c1c72851e73d60f4191f720be93e5d3e8a6147e37c4e8e852b1a8f506c"
- },
- "params": {},
- "body": {
- "JSON": {},
- "JSON_ARRAY": {},
- "XML": {},
- "FORM": {
- "last_surveyed": "1642685961",
- "properties[city]": "Udaipur",
- "properties[name]": "Dummy User 1 New",
- "properties[title]": "SDE-2",
- "properties[gender]": "Male",
- "properties[company]": "Rudderstack"
- }
- },
- "files": {},
- "userId": ""
- },
- "statusCode": 200
- }
- ]
- }
- }
- },
- {
- "name": "wootric",
- "description": "Track call with existing userId and event type as create response",
- "feature": "processor",
- "module": "destination",
- "version": "v0",
- "input": {
- "request": {
- "body": [
- {
- "destination": {
- "Config": {
- "username": "wootricfakeuser@example.com",
- "password": "password@123",
- "accountToken": "NPS-dummyToken"
- },
- "ID": "wootric-1234"
- },
- "message": {
- "type": "track",
- "sentAt": "2022-01-20T13:39:21.033Z",
- "userId": "dummyId1",
- "channel": "web",
- "properties": {
- "feedbackScore": 7,
- "feedbackText": "Simple, Easy to use, Reliable, Affordable Product"
- },
- "context": {
- "os": {
- "name": "",
- "version": ""
- },
- "app": {
- "name": "RudderLabs JavaScript SDK",
- "build": "1.0.0",
- "version": "1.2.20",
- "namespace": "com.rudderlabs.javascript"
- },
- "page": {
- "url": "http://127.0.0.1:7307/Testing/App_for_LaunchDarkly/ourSdk.html",
- "path": "/Testing/App_for_LaunchDarkly/ourSdk.html",
- "title": "Document",
- "search": "",
- "tab_url": "http://127.0.0.1:7307/Testing/App_for_LaunchDarkly/ourSdk.html",
- "referrer": "http://127.0.0.1:7307/Testing/App_for_LaunchDarkly/",
- "initial_referrer": "$direct",
- "referring_domain": "127.0.0.1:7307",
- "initial_referring_domain": ""
- },
- "locale": "en-US",
- "ip": "0.0.0.0",
- "screen": {
- "width": 1440,
- "height": 900,
- "density": 2,
- "innerWidth": 536,
- "innerHeight": 689
- },
- "traits": {
- "city": "Mumbai",
- "name": "Dummy User 1",
- "email": "dummyUser1@gmail.com",
- "title": "SDE",
- "gender": "Male",
- "company": "Rudderstack",
- "createdAt": "2021-01-20T13:39:21.032Z"
- },
- "library": {
- "name": "RudderLabs JavaScript SDK",
- "version": "1.2.20"
- },
- "campaign": {},
- "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/97.0.4692.71 Safari/537.36"
- },
- "rudderId": "553b5522-c575-40a7-8072-9741c5f9a647",
- "messageId": "831f1fa5-de84-4f22-880a-4c3f23fc3f04",
- "anonymousId": "bf412108-0357-4330-b119-7305e767823c",
- "integrations": {
- "All": true,
- "Wootric": {
- "eventType": "create response"
- }
- },
- "originalTimestamp": "2022-01-20T13:39:21.032Z"
- }
- }
- ]
- }
- },
- "output": {
- "response": {
- "status": 200,
- "body": [
- {
- "output": {
- "version": "1",
- "type": "REST",
- "method": "POST",
- "endpoint": "https://api.wootric.com/v1/end_users/486438462/responses",
- "headers": {
- "Content-Type": "application/x-www-form-urlencoded",
- "Authorization": "Bearer 2fe581c1c72851e73d60f4191f720be93e5d3e8a6147e37c4e8e852b1a8f506c"
- },
- "params": {},
- "body": {
- "JSON": {},
- "JSON_ARRAY": {},
- "XML": {},
- "FORM": {
- "score": 7,
- "ip_address": "0.0.0.0",
- "origin_url": "http://127.0.0.1:7307/Testing/App_for_LaunchDarkly/ourSdk.html",
- "text": "Simple, Easy to use, Reliable, Affordable Product",
- "created_at": "1611149961",
- "end_user[properties][city]": "Mumbai",
- "end_user[properties][name]": "Dummy User 1",
- "end_user[properties][title]": "SDE",
- "end_user[properties][gender]": "Male",
- "end_user[properties][company]": "Rudderstack"
- }
- },
- "files": {},
- "userId": ""
- },
- "statusCode": 200
- }
- ]
- }
- }
- },
- {
- "name": "wootric",
- "description": "Track call with non-existing userId",
- "feature": "processor",
- "module": "destination",
- "version": "v0",
- "input": {
- "request": {
- "body": [
- {
- "destination": {
- "Config": {
- "username": "wootricfakeuser@example.com",
- "password": "password@123",
- "accountToken": "NPS-dummyToken"
- },
- "ID": "wootric-1234"
- },
- "message": {
- "type": "track",
- "sentAt": "2022-01-20T13:39:21.033Z",
- "userId": "dummyId2",
- "channel": "web",
- "properties": {
- "feedbackScore": 7,
- "feedbackText": "Simple, Easy to use, Reliable, Affordable Product"
- },
- "context": {
- "os": {
- "name": "",
- "version": ""
- },
- "app": {
- "name": "RudderLabs JavaScript SDK",
- "build": "1.0.0",
- "version": "1.2.20",
- "namespace": "com.rudderlabs.javascript"
- },
- "page": {
- "url": "http://127.0.0.1:7307/Testing/App_for_LaunchDarkly/ourSdk.html",
- "path": "/Testing/App_for_LaunchDarkly/ourSdk.html",
- "title": "Document",
- "search": "",
- "tab_url": "http://127.0.0.1:7307/Testing/App_for_LaunchDarkly/ourSdk.html",
- "referrer": "http://127.0.0.1:7307/Testing/App_for_LaunchDarkly/",
- "initial_referrer": "$direct",
- "referring_domain": "127.0.0.1:7307",
- "initial_referring_domain": ""
- },
- "locale": "en-US",
- "ip": "0.0.0.0",
- "screen": {
- "width": 1440,
- "height": 900,
- "density": 2,
- "innerWidth": 536,
- "innerHeight": 689
- },
- "library": {
- "name": "RudderLabs JavaScript SDK",
- "version": "1.2.20"
- },
- "campaign": {},
- "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/97.0.4692.71 Safari/537.36"
- },
- "rudderId": "553b5522-c575-40a7-8072-9741c5f9a647",
- "messageId": "831f1fa5-de84-4f22-880a-4c3f23fc3f04",
- "anonymousId": "bf412108-0357-4330-b119-7305e767823c",
- "integrations": {
- "All": true,
- "Wootric": {
- "eventType": "create response"
- }
- },
- "originalTimestamp": "2022-01-20T13:39:21.032Z"
- }
- }
- ]
- }
- },
- "output": {
- "response": {
- "status": 200,
- "body": [
- {
- "error": "No user found with userId : dummyId2",
- "statTags": {
- "destType": "WOOTRIC",
- "errorCategory": "dataValidation",
- "errorType": "instrumentation",
- "feature": "processor",
- "implementation": "native",
- "module": "destination"
- },
- "statusCode": 400
- }
- ]
- }
- }
- },
- {
- "name": "wootric",
- "description": "Track call with non-existing wootricEndUserId",
- "feature": "processor",
- "module": "destination",
- "version": "v0",
- "input": {
- "request": {
- "body": [
- {
- "destination": {
- "Config": {
- "username": "wootricfakeuser@example.com",
- "password": "password@123",
- "accountToken": "NPS-dummyToken"
- },
- "ID": "wootric-1234"
- },
- "message": {
- "type": "track",
- "sentAt": "2022-01-20T13:39:21.033Z",
- "channel": "web",
- "properties": {
- "feedbackScore": 7,
- "feedbackText": "Simple, Easy to use, Reliable, Affordable Product"
- },
- "context": {
- "os": {
- "name": "",
- "version": ""
- },
- "app": {
- "name": "RudderLabs JavaScript SDK",
- "build": "1.0.0",
- "version": "1.2.20",
- "namespace": "com.rudderlabs.javascript"
- },
- "page": {
- "url": "http://127.0.0.1:7307/Testing/App_for_LaunchDarkly/ourSdk.html",
- "path": "/Testing/App_for_LaunchDarkly/ourSdk.html",
- "title": "Document",
- "search": "",
- "tab_url": "http://127.0.0.1:7307/Testing/App_for_LaunchDarkly/ourSdk.html",
- "referrer": "http://127.0.0.1:7307/Testing/App_for_LaunchDarkly/",
- "initial_referrer": "$direct",
- "referring_domain": "127.0.0.1:7307",
- "initial_referring_domain": ""
- },
- "locale": "en-US",
- "ip": "0.0.0.0",
- "screen": {
- "width": 1440,
- "height": 900,
- "density": 2,
- "innerWidth": 536,
- "innerHeight": 689
- },
- "library": {
- "name": "RudderLabs JavaScript SDK",
- "version": "1.2.20"
- },
- "externalId": [
- {
- "type": "wootricEndUserId",
- "id": "12345"
- }
- ],
- "campaign": {},
- "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/97.0.4692.71 Safari/537.36"
- },
- "rudderId": "553b5522-c575-40a7-8072-9741c5f9a647",
- "messageId": "831f1fa5-de84-4f22-880a-4c3f23fc3f04",
- "anonymousId": "bf412108-0357-4330-b119-7305e767823c",
- "integrations": {
- "All": true,
- "Wootric": {
- "eventType": "create response"
- }
- },
- "originalTimestamp": "2022-01-20T13:39:21.032Z"
- }
- }
- ]
- }
- },
- "output": {
- "response": {
- "status": 200,
- "body": [
- {
- "error": "No user found with wootric end user Id : 12345",
- "statTags": {
- "destType": "WOOTRIC",
- "errorCategory": "dataValidation",
- "errorType": "instrumentation",
- "feature": "processor",
- "implementation": "native",
- "module": "destination"
- },
- "statusCode": 400
- }
- ]
- }
- }
- },
- {
- "name": "wootric",
- "description": "Track call with existing userId and event type as create response and score out of bound",
- "feature": "processor",
- "module": "destination",
- "version": "v0",
- "input": {
- "request": {
- "body": [
- {
- "destination": {
- "Config": {
- "username": "wootricfakeuser@example.com",
- "password": "password@123",
- "accountToken": "NPS-dummyToken"
- },
- "ID": "wootric-1234"
- },
- "message": {
- "type": "track",
- "sentAt": "2022-01-20T13:39:21.033Z",
- "userId": "dummyId1",
- "channel": "web",
- "properties": {
- "feedbackScore": 12,
- "feedbackText": "Simple, Easy to use, Reliable, Affordable Product"
- },
- "context": {
- "os": {
- "name": "",
- "version": ""
- },
- "app": {
- "name": "RudderLabs JavaScript SDK",
- "build": "1.0.0",
- "version": "1.2.20",
- "namespace": "com.rudderlabs.javascript"
- },
- "page": {
- "url": "http://127.0.0.1:7307/Testing/App_for_LaunchDarkly/ourSdk.html",
- "path": "/Testing/App_for_LaunchDarkly/ourSdk.html",
- "title": "Document",
- "search": "",
- "tab_url": "http://127.0.0.1:7307/Testing/App_for_LaunchDarkly/ourSdk.html",
- "referrer": "http://127.0.0.1:7307/Testing/App_for_LaunchDarkly/",
- "initial_referrer": "$direct",
- "referring_domain": "127.0.0.1:7307",
- "initial_referring_domain": ""
- },
- "locale": "en-US",
- "ip": "0.0.0.0",
- "screen": {
- "width": 1440,
- "height": 900,
- "density": 2,
- "innerWidth": 536,
- "innerHeight": 689
- },
- "library": {
- "name": "RudderLabs JavaScript SDK",
- "version": "1.2.20"
- },
- "campaign": {},
- "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/97.0.4692.71 Safari/537.36"
- },
- "rudderId": "553b5522-c575-40a7-8072-9741c5f9a647",
- "messageId": "831f1fa5-de84-4f22-880a-4c3f23fc3f04",
- "anonymousId": "bf412108-0357-4330-b119-7305e767823c",
- "integrations": {
- "All": true,
- "Wootric": {
- "eventType": "create response"
- }
- },
- "originalTimestamp": "2022-01-20T13:39:21.032Z"
- }
- }
- ]
- }
- },
- "output": {
- "response": {
- "status": 200,
- "body": [
- {
- "error": "Invalid Score",
- "statTags": {
- "destType": "WOOTRIC",
- "errorCategory": "dataValidation",
- "errorType": "instrumentation",
- "feature": "processor",
- "implementation": "native",
- "module": "destination"
- },
- "statusCode": 400
- }
- ]
- }
- }
- },
- {
- "name": "wootric",
- "description": "Track call with existing userId and event type as create decline",
- "feature": "processor",
- "module": "destination",
- "version": "v0",
- "input": {
- "request": {
- "body": [
- {
- "destination": {
- "Config": {
- "username": "wootricfakeuser@example.com",
- "password": "password@123",
- "accountToken": "NPS-dummyToken"
- },
- "ID": "wootric-1234"
- },
- "message": {
- "type": "track",
- "sentAt": "2022-01-20T13:39:21.033Z",
- "userId": "dummyId1",
- "channel": "web",
- "properties": {
- "feedbackScore": 9,
- "feedbackText": "Simple, Easy to use, Reliable, Affordable Product"
- },
- "context": {
- "os": {
- "name": "",
- "version": ""
- },
- "app": {
- "name": "RudderLabs JavaScript SDK",
- "build": "1.0.0",
- "version": "1.2.20",
- "namespace": "com.rudderlabs.javascript"
- },
- "page": {
- "url": "http://127.0.0.1:7307/Testing/App_for_LaunchDarkly/ourSdk.html",
- "path": "/Testing/App_for_LaunchDarkly/ourSdk.html",
- "title": "Document",
- "search": "",
- "tab_url": "http://127.0.0.1:7307/Testing/App_for_LaunchDarkly/ourSdk.html",
- "referrer": "http://127.0.0.1:7307/Testing/App_for_LaunchDarkly/",
- "initial_referrer": "$direct",
- "referring_domain": "127.0.0.1:7307",
- "initial_referring_domain": ""
- },
- "locale": "en-US",
- "screen": {
- "width": 1440,
- "height": 900,
- "density": 2,
- "innerWidth": 536,
- "innerHeight": 689
- },
- "library": {
- "name": "RudderLabs JavaScript SDK",
- "version": "1.2.20"
- },
- "campaign": {},
- "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/97.0.4692.71 Safari/537.36"
- },
- "rudderId": "553b5522-c575-40a7-8072-9741c5f9a647",
- "messageId": "831f1fa5-de84-4f22-880a-4c3f23fc3f04",
- "anonymousId": "bf412108-0357-4330-b119-7305e767823c",
- "integrations": {
- "All": true,
- "Wootric": {
- "eventType": "create decline"
- }
- },
- "originalTimestamp": "2022-01-20T13:39:21.032Z"
- }
- }
- ]
- }
- },
- "output": {
- "response": {
- "status": 200,
- "body": [
- {
- "output": {
- "version": "1",
- "type": "REST",
- "method": "POST",
- "endpoint": "https://api.wootric.com/v1/end_users/486438462/declines",
- "headers": {
- "Content-Type": "application/x-www-form-urlencoded",
- "Authorization": "Bearer 2fe581c1c72851e73d60f4191f720be93e5d3e8a6147e37c4e8e852b1a8f506c"
- },
- "params": {},
- "body": {
- "JSON": {},
- "JSON_ARRAY": {},
- "XML": {},
- "FORM": {
- "origin_url": "http://127.0.0.1:7307/Testing/App_for_LaunchDarkly/ourSdk.html"
- }
- },
- "files": {},
- "userId": ""
- },
- "statusCode": 200
- }
- ]
- }
- }
- },
- {
- "name": "wootric",
- "description": "Track call with non-existing userId and event type as create decline",
- "feature": "processor",
- "module": "destination",
- "version": "v0",
- "input": {
- "request": {
- "body": [
- {
- "destination": {
- "Config": {
- "username": "wootricfakeuser@example.com",
- "password": "password@123",
- "accountToken": "NPS-dummyToken"
- },
- "ID": "wootric-1234"
- },
- "message": {
- "type": "track",
- "sentAt": "2022-01-20T13:39:21.033Z",
- "userId": "dummyId2",
- "channel": "web",
- "properties": {
- "feedbackScore": 9,
- "feedbackText": "Simple, Easy to use, Reliable, Affordable Product"
- },
- "context": {
- "os": {
- "name": "",
- "version": ""
- },
- "app": {
- "name": "RudderLabs JavaScript SDK",
- "build": "1.0.0",
- "version": "1.2.20",
- "namespace": "com.rudderlabs.javascript"
- },
- "page": {
- "url": "http://127.0.0.1:7307/Testing/App_for_LaunchDarkly/ourSdk.html",
- "path": "/Testing/App_for_LaunchDarkly/ourSdk.html",
- "title": "Document",
- "search": "",
- "tab_url": "http://127.0.0.1:7307/Testing/App_for_LaunchDarkly/ourSdk.html",
- "referrer": "http://127.0.0.1:7307/Testing/App_for_LaunchDarkly/",
- "initial_referrer": "$direct",
- "referring_domain": "127.0.0.1:7307",
- "initial_referring_domain": ""
- },
- "locale": "en-US",
- "screen": {
- "width": 1440,
- "height": 900,
- "density": 2,
- "innerWidth": 536,
- "innerHeight": 689
- },
- "library": {
- "name": "RudderLabs JavaScript SDK",
- "version": "1.2.20"
- },
- "campaign": {},
- "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/97.0.4692.71 Safari/537.36"
- },
- "rudderId": "553b5522-c575-40a7-8072-9741c5f9a647",
- "messageId": "831f1fa5-de84-4f22-880a-4c3f23fc3f04",
- "anonymousId": "bf412108-0357-4330-b119-7305e767823c",
- "integrations": {
- "All": true,
- "Wootric": {
- "eventType": "create decline"
- }
- },
- "originalTimestamp": "2022-01-20T13:39:21.032Z"
- }
- }
- ]
- }
- },
- "output": {
- "response": {
- "status": 200,
- "body": [
- {
- "error": "No user found with userId : dummyId2",
- "statTags": {
- "destType": "WOOTRIC",
- "errorCategory": "dataValidation",
- "errorType": "instrumentation",
- "feature": "processor",
- "implementation": "native",
- "module": "destination"
- },
- "statusCode": 400
- }
- ]
- }
- }
- },
- {
- "name": "wootric",
- "description": "Track call with event type other than create response or decline",
- "feature": "processor",
- "module": "destination",
- "version": "v0",
- "input": {
- "request": {
- "body": [
- {
- "destination": {
- "Config": {
- "username": "wootricfakeuser@example.com",
- "password": "password@123",
- "accountToken": "NPS-dummyToken"
- },
- "ID": "wootric-1234"
- },
- "message": {
- "type": "track",
- "sentAt": "2022-01-20T13:39:21.033Z",
- "userId": "dummyId1",
- "channel": "web",
- "properties": {
- "feedbackScore": 7,
- "feedbackText": "Simple, Easy to use, Reliable, Affordable Product"
- },
- "context": {
- "os": {
- "name": "",
- "version": ""
- },
- "app": {
- "name": "RudderLabs JavaScript SDK",
- "build": "1.0.0",
- "version": "1.2.20",
- "namespace": "com.rudderlabs.javascript"
- },
- "page": {
- "url": "http://127.0.0.1:7307/Testing/App_for_LaunchDarkly/ourSdk.html",
- "path": "/Testing/App_for_LaunchDarkly/ourSdk.html",
- "title": "Document",
- "search": "",
- "tab_url": "http://127.0.0.1:7307/Testing/App_for_LaunchDarkly/ourSdk.html",
- "referrer": "http://127.0.0.1:7307/Testing/App_for_LaunchDarkly/",
- "initial_referrer": "$direct",
- "referring_domain": "127.0.0.1:7307",
- "initial_referring_domain": ""
- },
- "locale": "en-US",
- "ip": "0.0.0.0",
- "screen": {
- "width": 1440,
- "height": 900,
- "density": 2,
- "innerWidth": 536,
- "innerHeight": 689
- },
- "traits": {
- "city": "Mumbai",
- "name": "Dummy User 1",
- "email": "dummyUser1@gmail.com",
- "phone": "+19123456789",
- "title": "SDE",
- "gender": "Male",
- "company": "Rudderstack",
- "createdAt": "2021-01-20T13:39:21.032Z"
- },
- "library": {
- "name": "RudderLabs JavaScript SDK",
- "version": "1.2.20"
- },
- "campaign": {},
- "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/97.0.4692.71 Safari/537.36"
- },
- "rudderId": "553b5522-c575-40a7-8072-9741c5f9a647",
- "messageId": "831f1fa5-de84-4f22-880a-4c3f23fc3f04",
- "anonymousId": "bf412108-0357-4330-b119-7305e767823c",
- "integrations": {
- "All": true,
- "Wootric": {
- "eventType": "random"
- }
- },
- "originalTimestamp": "2022-01-20T13:39:21.032Z"
- }
- }
- ]
- }
- },
- "output": {
- "response": {
- "status": 200,
- "body": [
- {
- "error": "Event Type not supported",
- "statTags": {
- "destType": "WOOTRIC",
- "errorCategory": "dataValidation",
- "errorType": "instrumentation",
- "feature": "processor",
- "implementation": "native",
- "module": "destination"
- },
- "statusCode": 400
- }
- ]
- }
- }
- },
- {
- "name": "wootric",
- "description": "Track call with missing event type in integration object",
- "feature": "processor",
- "module": "destination",
- "version": "v0",
- "input": {
- "request": {
- "body": [
- {
- "destination": {
- "Config": {
- "username": "wootricfakeuser@example.com",
- "password": "password@123",
- "accountToken": "NPS-dummyToken"
- },
- "ID": "wootric-1234"
- },
- "message": {
- "type": "track",
- "sentAt": "2022-01-20T13:39:21.033Z",
- "userId": "dummyId1",
- "channel": "web",
- "properties": {
- "feedbackScore": 3,
- "feedbackText": "Too Slow!!!"
- },
- "context": {
- "os": {
- "name": "",
- "version": ""
- },
- "app": {
- "name": "RudderLabs JavaScript SDK",
- "build": "1.0.0",
- "version": "1.2.20",
- "namespace": "com.rudderlabs.javascript"
- },
- "page": {
- "url": "http://127.0.0.1:7307/Testing/App_for_LaunchDarkly/ourSdk.html",
- "path": "/Testing/App_for_LaunchDarkly/ourSdk.html",
- "title": "Document",
- "search": "",
- "tab_url": "http://127.0.0.1:7307/Testing/App_for_LaunchDarkly/ourSdk.html",
- "referrer": "http://127.0.0.1:7307/Testing/App_for_LaunchDarkly/",
- "initial_referrer": "$direct",
- "referring_domain": "127.0.0.1:7307",
- "initial_referring_domain": ""
- },
- "locale": "en-US",
- "ip": "0.0.0.0",
- "screen": {
- "width": 1440,
- "height": 900,
- "density": 2,
- "innerWidth": 536,
- "innerHeight": 689
- },
- "traits": {
- "city": "Mumbai",
- "name": "Dummy User 1",
- "email": "dummyUser1@gmail.com",
- "phone": "+19123456789",
- "title": "SDE",
- "gender": "Male",
- "company": "Rudderstack",
- "createdAt": "2021-01-20T13:39:21.032Z"
- },
- "library": {
- "name": "RudderLabs JavaScript SDK",
- "version": "1.2.20"
- },
- "campaign": {},
- "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/97.0.4692.71 Safari/537.36"
- },
- "rudderId": "553b5522-c575-40a7-8072-9741c5f9a647",
- "messageId": "831f1fa5-de84-4f22-880a-4c3f23fc3f04",
- "anonymousId": "bf412108-0357-4330-b119-7305e767823c",
- "integrations": {
- "All": true
- },
- "originalTimestamp": "2022-01-20T13:39:21.032Z"
- }
- }
- ]
- }
- },
- "output": {
- "response": {
- "status": 200,
- "body": [
- {
- "error": "Event Type is missing from Integration object",
- "statTags": {
- "destType": "WOOTRIC",
- "errorCategory": "dataValidation",
- "errorType": "instrumentation",
- "feature": "processor",
- "implementation": "native",
- "module": "destination"
- },
- "statusCode": 400
- }
- ]
- }
- }
- }
-]
+ {
+ name: 'wootric',
+ description: 'Wrong Account Token Passed',
+ feature: 'processor',
+ module: 'destination',
+ version: 'v0',
+ input: {
+ request: {
+ body: [
+ {
+ destination: {
+ Config: {
+ username: 'wootricfakeuser@example.com',
+ password: 'password@123',
+ accountToken: 'NPS-dummyToken12',
+ },
+ ID: 'wootric-1234',
+ },
+ message: {
+ type: 'identify',
+ sentAt: '2022-01-20T13:39:21.033Z',
+ userId: 'dummyId2',
+ channel: 'web',
+ context: {},
+ rudderId: '553b5522-c575-40a7-8072-9741c5f9a647',
+ messageId: '831f1fa5-de84-4f22-880a-4c3f23fc3f04',
+ anonymousId: 'bf412108-0357-4330-b119-7305e767823c',
+ integrations: {
+ All: true,
+ },
+ originalTimestamp: '2022-01-20T13:39:21.032Z',
+ },
+ },
+ ],
+ },
+ },
+ output: {
+ response: {
+ status: 200,
+ body: [
+ {
+ error:
+ '{"message":"Access token could not be generated due to {\\"error\\":\\"Not found\\",\\"status\\":404}","destinationResponse":{"response":{"error":"Not found","status":404},"status":500}}',
+ statTags: {
+ destType: 'WOOTRIC',
+ errorCategory: 'network',
+ errorType: 'retryable',
+ feature: 'processor',
+ implementation: 'native',
+ module: 'destination',
+ },
+ statusCode: 500,
+ },
+ ],
+ },
+ },
+ },
+ {
+ name: 'wootric',
+ description: 'Identify call for creating user',
+ feature: 'processor',
+ module: 'destination',
+ version: 'v0',
+ input: {
+ request: {
+ body: [
+ {
+ destination: {
+ Config: {
+ username: 'wootricfakeuser@example.com',
+ password: 'password@123',
+ accountToken: 'NPS-dummyToken',
+ },
+ ID: 'wootric-1234',
+ },
+ message: {
+ type: 'identify',
+ sentAt: '2022-01-20T13:39:21.033Z',
+ userId: 'dummyId2',
+ channel: 'web',
+ context: {
+ os: {
+ name: '',
+ version: '',
+ },
+ app: {
+ name: 'RudderLabs JavaScript SDK',
+ build: '1.0.0',
+ version: '1.2.20',
+ namespace: 'com.rudderlabs.javascript',
+ },
+ page: {
+ url: 'http://127.0.0.1:7307/Testing/App_for_LaunchDarkly/ourSdk.html',
+ path: '/Testing/App_for_LaunchDarkly/ourSdk.html',
+ title: 'Document',
+ search: '',
+ tab_url: 'http://127.0.0.1:7307/Testing/App_for_LaunchDarkly/ourSdk.html',
+ referrer: 'http://127.0.0.1:7307/Testing/App_for_LaunchDarkly/',
+ initial_referrer: '$direct',
+ referring_domain: '127.0.0.1:7307',
+ initial_referring_domain: '',
+ },
+ locale: 'en-US',
+ screen: {
+ width: 1440,
+ height: 900,
+ density: 2,
+ innerWidth: 536,
+ innerHeight: 689,
+ },
+ traits: {
+ city: 'Bangalore',
+ name: 'Dummy User 2',
+ email: 'dummyUser2@gmail.com',
+ phone: '+19123456777',
+ title: 'SDE',
+ gender: 'Male',
+ company: 'Rudderstack',
+ createdAt: '2021-01-20T13:39:21.032Z',
+ },
+ library: {
+ name: 'RudderLabs JavaScript SDK',
+ version: '1.2.20',
+ },
+ campaign: {},
+ userAgent:
+ 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/97.0.4692.71 Safari/537.36',
+ },
+ rudderId: '553b5522-c575-40a7-8072-9741c5f9a647',
+ messageId: '831f1fa5-de84-4f22-880a-4c3f23fc3f04',
+ anonymousId: 'bf412108-0357-4330-b119-7305e767823c',
+ integrations: {
+ All: true,
+ },
+ originalTimestamp: '2022-01-20T13:39:21.032Z',
+ },
+ },
+ ],
+ },
+ },
+ output: {
+ response: {
+ status: 200,
+ body: [
+ {
+ output: {
+ version: '1',
+ type: 'REST',
+ method: 'POST',
+ endpoint: 'https://api.wootric.com/v1/end_users',
+ headers: {
+ 'Content-Type': 'application/x-www-form-urlencoded',
+ Authorization:
+ 'Bearer 2fe581c1c72851e73d60f4191f720be93e5d3e8a6147e37c4e8e852b1a8f506c',
+ },
+ params: {},
+ body: {
+ JSON: {},
+ JSON_ARRAY: {},
+ XML: {},
+ FORM: {
+ email: 'dummyUser2@gmail.com',
+ phone_number: '+19123456777',
+ last_surveyed: '1642685961',
+ external_created_at: '1611149961',
+ external_id: 'dummyId2',
+ 'properties[city]': 'Bangalore',
+ 'properties[name]': 'Dummy User 2',
+ 'properties[title]': 'SDE',
+ 'properties[gender]': 'Male',
+ 'properties[company]': 'Rudderstack',
+ },
+ },
+ files: {},
+ userId: '',
+ },
+ statusCode: 200,
+ },
+ ],
+ },
+ },
+ },
+ {
+ name: 'wootric',
+ description: 'Identify call for creating user without-sending email and sending phone number',
+ feature: 'processor',
+ module: 'destination',
+ version: 'v0',
+ input: {
+ request: {
+ body: [
+ {
+ destination: {
+ Config: {
+ username: 'wootricfakeuser@example.com',
+ password: 'password@123',
+ accountToken: 'NPS-dummyToken',
+ },
+ ID: 'wootric-1234',
+ },
+ message: {
+ type: 'identify',
+ sentAt: '2022-01-20T13:39:21.033Z',
+ userId: 'dummyId2',
+ channel: 'web',
+ context: {
+ os: {
+ name: '',
+ version: '',
+ },
+ app: {
+ name: 'RudderLabs JavaScript SDK',
+ build: '1.0.0',
+ version: '1.2.20',
+ namespace: 'com.rudderlabs.javascript',
+ },
+ page: {
+ url: 'http://127.0.0.1:7307/Testing/App_for_LaunchDarkly/ourSdk.html',
+ path: '/Testing/App_for_LaunchDarkly/ourSdk.html',
+ title: 'Document',
+ search: '',
+ tab_url: 'http://127.0.0.1:7307/Testing/App_for_LaunchDarkly/ourSdk.html',
+ referrer: 'http://127.0.0.1:7307/Testing/App_for_LaunchDarkly/',
+ initial_referrer: '$direct',
+ referring_domain: '127.0.0.1:7307',
+ initial_referring_domain: '',
+ },
+ locale: 'en-US',
+ screen: {
+ width: 1440,
+ height: 900,
+ density: 2,
+ innerWidth: 536,
+ innerHeight: 689,
+ },
+ traits: {
+ city: 'Bangalore',
+ name: 'Dummy User 2',
+ phone: '+19123456777',
+ title: 'SDE',
+ gender: 'Male',
+ company: 'Rudderstack',
+ createdAt: '2021-01-20T13:39:21.032Z',
+ },
+ library: {
+ name: 'RudderLabs JavaScript SDK',
+ version: '1.2.20',
+ },
+ campaign: {},
+ userAgent:
+ 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/97.0.4692.71 Safari/537.36',
+ },
+ rudderId: '553b5522-c575-40a7-8072-9741c5f9a647',
+ messageId: '831f1fa5-de84-4f22-880a-4c3f23fc3f04',
+ anonymousId: 'bf412108-0357-4330-b119-7305e767823c',
+ integrations: {
+ All: true,
+ },
+ originalTimestamp: '2022-01-20T13:39:21.032Z',
+ },
+ },
+ ],
+ },
+ },
+ output: {
+ response: {
+ status: 200,
+ body: [
+ {
+ output: {
+ version: '1',
+ type: 'REST',
+ method: 'POST',
+ endpoint: 'https://api.wootric.com/v1/end_users',
+ headers: {
+ 'Content-Type': 'application/x-www-form-urlencoded',
+ Authorization:
+ 'Bearer 2fe581c1c72851e73d60f4191f720be93e5d3e8a6147e37c4e8e852b1a8f506c',
+ },
+ params: {},
+ body: {
+ JSON: {},
+ JSON_ARRAY: {},
+ XML: {},
+ FORM: {
+ phone_number: '+19123456777',
+ last_surveyed: '1642685961',
+ external_created_at: '1611149961',
+ external_id: 'dummyId2',
+ 'properties[city]': 'Bangalore',
+ 'properties[name]': 'Dummy User 2',
+ 'properties[title]': 'SDE',
+ 'properties[gender]': 'Male',
+ 'properties[company]': 'Rudderstack',
+ },
+ },
+ files: {},
+ userId: '',
+ },
+ statusCode: 200,
+ },
+ ],
+ },
+ },
+ },
+ {
+ name: 'wootric',
+ description: 'Identify call for creating user without-sending phone number and sending email',
+ feature: 'processor',
+ module: 'destination',
+ version: 'v0',
+ input: {
+ request: {
+ body: [
+ {
+ destination: {
+ Config: {
+ username: 'wootricfakeuser@example.com',
+ password: 'password@123',
+ accountToken: 'NPS-dummyToken',
+ },
+ ID: 'wootric-1234',
+ },
+ message: {
+ type: 'identify',
+ sentAt: '2022-01-20T13:39:21.033Z',
+ userId: 'dummyId2',
+ channel: 'web',
+ context: {
+ os: {
+ name: '',
+ version: '',
+ },
+ app: {
+ name: 'RudderLabs JavaScript SDK',
+ build: '1.0.0',
+ version: '1.2.20',
+ namespace: 'com.rudderlabs.javascript',
+ },
+ page: {
+ url: 'http://127.0.0.1:7307/Testing/App_for_LaunchDarkly/ourSdk.html',
+ path: '/Testing/App_for_LaunchDarkly/ourSdk.html',
+ title: 'Document',
+ search: '',
+ tab_url: 'http://127.0.0.1:7307/Testing/App_for_LaunchDarkly/ourSdk.html',
+ referrer: 'http://127.0.0.1:7307/Testing/App_for_LaunchDarkly/',
+ initial_referrer: '$direct',
+ referring_domain: '127.0.0.1:7307',
+ initial_referring_domain: '',
+ },
+ locale: 'en-US',
+ screen: {
+ width: 1440,
+ height: 900,
+ density: 2,
+ innerWidth: 536,
+ innerHeight: 689,
+ },
+ traits: {
+ email: 'dummyUser2@gmail.com',
+ city: 'Bangalore',
+ name: 'Dummy User 2',
+ title: 'SDE',
+ gender: 'Male',
+ company: 'Rudderstack',
+ createdAt: '2021-01-20T13:39:21.032Z',
+ },
+ library: {
+ name: 'RudderLabs JavaScript SDK',
+ version: '1.2.20',
+ },
+ campaign: {},
+ userAgent:
+ 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/97.0.4692.71 Safari/537.36',
+ },
+ rudderId: '553b5522-c575-40a7-8072-9741c5f9a647',
+ messageId: '831f1fa5-de84-4f22-880a-4c3f23fc3f04',
+ anonymousId: 'bf412108-0357-4330-b119-7305e767823c',
+ integrations: {
+ All: true,
+ },
+ originalTimestamp: '2022-01-20T13:39:21.032Z',
+ },
+ },
+ ],
+ },
+ },
+ output: {
+ response: {
+ status: 200,
+ body: [
+ {
+ output: {
+ version: '1',
+ type: 'REST',
+ method: 'POST',
+ endpoint: 'https://api.wootric.com/v1/end_users',
+ headers: {
+ 'Content-Type': 'application/x-www-form-urlencoded',
+ Authorization:
+ 'Bearer 2fe581c1c72851e73d60f4191f720be93e5d3e8a6147e37c4e8e852b1a8f506c',
+ },
+ params: {},
+ body: {
+ JSON: {},
+ JSON_ARRAY: {},
+ XML: {},
+ FORM: {
+ email: 'dummyUser2@gmail.com',
+ last_surveyed: '1642685961',
+ external_created_at: '1611149961',
+ external_id: 'dummyId2',
+ 'properties[city]': 'Bangalore',
+ 'properties[name]': 'Dummy User 2',
+ 'properties[title]': 'SDE',
+ 'properties[gender]': 'Male',
+ 'properties[company]': 'Rudderstack',
+ },
+ },
+ files: {},
+ userId: '',
+ },
+ statusCode: 200,
+ },
+ ],
+ },
+ },
+ },
+ {
+ name: 'wootric',
+ description: 'Identify call for creating user without sending traits',
+ feature: 'processor',
+ module: 'destination',
+ version: 'v0',
+ input: {
+ request: {
+ body: [
+ {
+ destination: {
+ Config: {
+ username: 'wootricfakeuser@example.com',
+ password: 'password@123',
+ accountToken: 'NPS-dummyToken',
+ },
+ ID: 'wootric-1234',
+ },
+ message: {
+ type: 'identify',
+ sentAt: '2022-01-20T13:39:21.033Z',
+ userId: 'dummyId2',
+ channel: 'web',
+ context: {
+ os: {
+ name: '',
+ version: '',
+ },
+ app: {
+ name: 'RudderLabs JavaScript SDK',
+ build: '1.0.0',
+ version: '1.2.20',
+ namespace: 'com.rudderlabs.javascript',
+ },
+ page: {
+ url: 'http://127.0.0.1:7307/Testing/App_for_LaunchDarkly/ourSdk.html',
+ path: '/Testing/App_for_LaunchDarkly/ourSdk.html',
+ title: 'Document',
+ search: '',
+ tab_url: 'http://127.0.0.1:7307/Testing/App_for_LaunchDarkly/ourSdk.html',
+ referrer: 'http://127.0.0.1:7307/Testing/App_for_LaunchDarkly/',
+ initial_referrer: '$direct',
+ referring_domain: '127.0.0.1:7307',
+ initial_referring_domain: '',
+ },
+ locale: 'en-US',
+ screen: {
+ width: 1440,
+ height: 900,
+ density: 2,
+ innerWidth: 536,
+ innerHeight: 689,
+ },
+ library: {
+ name: 'RudderLabs JavaScript SDK',
+ version: '1.2.20',
+ },
+ campaign: {},
+ userAgent:
+ 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/97.0.4692.71 Safari/537.36',
+ },
+ rudderId: '553b5522-c575-40a7-8072-9741c5f9a647',
+ messageId: '831f1fa5-de84-4f22-880a-4c3f23fc3f04',
+ anonymousId: 'bf412108-0357-4330-b119-7305e767823c',
+ integrations: {
+ All: true,
+ },
+ originalTimestamp: '2022-01-20T13:39:21.032Z',
+ },
+ },
+ ],
+ },
+ },
+ output: {
+ response: {
+ status: 200,
+ body: [
+ {
+ error: 'email/phone number are missing. At least one parameter must be provided',
+ statTags: {
+ destType: 'WOOTRIC',
+ errorCategory: 'dataValidation',
+ errorType: 'instrumentation',
+ feature: 'processor',
+ implementation: 'native',
+ module: 'destination',
+ },
+ statusCode: 400,
+ },
+ ],
+ },
+ },
+ },
+ {
+ name: 'wootric',
+ description: 'Identify call for creating user without-sending (email and phone number)',
+ feature: 'processor',
+ module: 'destination',
+ version: 'v0',
+ input: {
+ request: {
+ body: [
+ {
+ destination: {
+ Config: {
+ username: 'wootricfakeuser@example.com',
+ password: 'password@123',
+ accountToken: 'NPS-dummyToken',
+ },
+ ID: 'wootric-1234',
+ },
+ message: {
+ type: 'identify',
+ sentAt: '2022-01-20T13:39:21.033Z',
+ userId: 'dummyId2',
+ channel: 'web',
+ context: {
+ os: {
+ name: '',
+ version: '',
+ },
+ app: {
+ name: 'RudderLabs JavaScript SDK',
+ build: '1.0.0',
+ version: '1.2.20',
+ namespace: 'com.rudderlabs.javascript',
+ },
+ page: {
+ url: 'http://127.0.0.1:7307/Testing/App_for_LaunchDarkly/ourSdk.html',
+ path: '/Testing/App_for_LaunchDarkly/ourSdk.html',
+ title: 'Document',
+ search: '',
+ tab_url: 'http://127.0.0.1:7307/Testing/App_for_LaunchDarkly/ourSdk.html',
+ referrer: 'http://127.0.0.1:7307/Testing/App_for_LaunchDarkly/',
+ initial_referrer: '$direct',
+ referring_domain: '127.0.0.1:7307',
+ initial_referring_domain: '',
+ },
+ locale: 'en-US',
+ screen: {
+ width: 1440,
+ height: 900,
+ density: 2,
+ innerWidth: 536,
+ innerHeight: 689,
+ },
+ traits: {
+ city: 'Mumbai',
+ name: 'Dummy User 1',
+ title: 'SDE',
+ gender: 'Male',
+ company: 'Rudderstack',
+ createdAt: '2021-01-20T13:39:21.032Z',
+ },
+ library: {
+ name: 'RudderLabs JavaScript SDK',
+ version: '1.2.20',
+ },
+ campaign: {},
+ userAgent:
+ 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/97.0.4692.71 Safari/537.36',
+ },
+ rudderId: '553b5522-c575-40a7-8072-9741c5f9a647',
+ messageId: '831f1fa5-de84-4f22-880a-4c3f23fc3f04',
+ anonymousId: 'bf412108-0357-4330-b119-7305e767823c',
+ integrations: {
+ All: true,
+ },
+ originalTimestamp: '2022-01-20T13:39:21.032Z',
+ },
+ },
+ ],
+ },
+ },
+ output: {
+ response: {
+ status: 200,
+ body: [
+ {
+ error: 'email/phone number are missing. At least one parameter must be provided',
+ statTags: {
+ destType: 'WOOTRIC',
+ errorCategory: 'dataValidation',
+ errorType: 'instrumentation',
+ feature: 'processor',
+ implementation: 'native',
+ module: 'destination',
+ },
+ statusCode: 400,
+ },
+ ],
+ },
+ },
+ },
+ {
+ name: 'wootric',
+ description: 'Identify call for updating existing user with wootric end user id',
+ feature: 'processor',
+ module: 'destination',
+ version: 'v0',
+ input: {
+ request: {
+ body: [
+ {
+ destination: {
+ Config: {
+ username: 'wootricfakeuser@example.com',
+ password: 'password@123',
+ accountToken: 'NPS-dummyToken',
+ },
+ ID: 'wootric-1234',
+ },
+ message: {
+ type: 'identify',
+ sentAt: '2022-01-20T13:39:21.033Z',
+ userId: 'dummyId1',
+ channel: 'web',
+ context: {
+ os: {
+ name: '',
+ version: '',
+ },
+ app: {
+ name: 'RudderLabs JavaScript SDK',
+ build: '1.0.0',
+ version: '1.2.20',
+ namespace: 'com.rudderlabs.javascript',
+ },
+ page: {
+ url: 'http://127.0.0.1:7307/Testing/App_for_LaunchDarkly/ourSdk.html',
+ path: '/Testing/App_for_LaunchDarkly/ourSdk.html',
+ title: 'Document',
+ search: '',
+ tab_url: 'http://127.0.0.1:7307/Testing/App_for_LaunchDarkly/ourSdk.html',
+ referrer: 'http://127.0.0.1:7307/Testing/App_for_LaunchDarkly/',
+ initial_referrer: '$direct',
+ referring_domain: '127.0.0.1:7307',
+ initial_referring_domain: '',
+ },
+ locale: 'en-US',
+ screen: {
+ width: 1440,
+ height: 900,
+ density: 2,
+ innerWidth: 536,
+ innerHeight: 689,
+ },
+ traits: {
+ title: 'VP',
+ gender: 'Male',
+ },
+ externalId: [
+ {
+ type: 'wootricEndUserId',
+ id: '490635419',
+ },
+ ],
+ library: {
+ name: 'RudderLabs JavaScript SDK',
+ version: '1.2.20',
+ },
+ campaign: {},
+ userAgent:
+ 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/97.0.4692.71 Safari/537.36',
+ },
+ rudderId: '553b5522-c575-40a7-8072-9741c5f9a647',
+ messageId: '831f1fa5-de84-4f22-880a-4c3f23fc3f04',
+ anonymousId: 'bf412108-0357-4330-b119-7305e767823c',
+ integrations: {
+ All: true,
+ },
+ originalTimestamp: '2022-01-20T13:39:21.032Z',
+ },
+ },
+ ],
+ },
+ },
+ output: {
+ response: {
+ status: 200,
+ body: [
+ {
+ output: {
+ version: '1',
+ type: 'REST',
+ method: 'PUT',
+ endpoint: 'https://api.wootric.com/v1/end_users/490635419',
+ headers: {
+ 'Content-Type': 'application/x-www-form-urlencoded',
+ Authorization:
+ 'Bearer 2fe581c1c72851e73d60f4191f720be93e5d3e8a6147e37c4e8e852b1a8f506c',
+ },
+ params: {},
+ body: {
+ JSON: {},
+ JSON_ARRAY: {},
+ XML: {},
+ FORM: {
+ last_surveyed: '1642685961',
+ 'properties[Department]': 'Marketing',
+ 'properties[product_plan]': 'Web',
+ 'properties[revenue amount]': '5000',
+ 'properties[title]': 'VP',
+ 'properties[gender]': 'Male',
+ },
+ },
+ files: {},
+ userId: '',
+ },
+ statusCode: 200,
+ },
+ ],
+ },
+ },
+ },
+ {
+ name: 'wootric',
+ description:
+ 'Identify call for updating existing user with (wootric externalId/ rudderstack userId)',
+ feature: 'processor',
+ module: 'destination',
+ version: 'v0',
+ input: {
+ request: {
+ body: [
+ {
+ destination: {
+ Config: {
+ username: 'wootricfakeuser@example.com',
+ password: 'password@123',
+ accountToken: 'NPS-dummyToken',
+ },
+ ID: 'wootric-1234',
+ },
+ message: {
+ type: 'identify',
+ sentAt: '2022-01-20T13:39:21.033Z',
+ userId: 'dummyId1',
+ channel: 'web',
+ context: {
+ os: {
+ name: '',
+ version: '',
+ },
+ app: {
+ name: 'RudderLabs JavaScript SDK',
+ build: '1.0.0',
+ version: '1.2.20',
+ namespace: 'com.rudderlabs.javascript',
+ },
+ page: {
+ url: 'http://127.0.0.1:7307/Testing/App_for_LaunchDarkly/ourSdk.html',
+ path: '/Testing/App_for_LaunchDarkly/ourSdk.html',
+ title: 'Document',
+ search: '',
+ tab_url: 'http://127.0.0.1:7307/Testing/App_for_LaunchDarkly/ourSdk.html',
+ referrer: 'http://127.0.0.1:7307/Testing/App_for_LaunchDarkly/',
+ initial_referrer: '$direct',
+ referring_domain: '127.0.0.1:7307',
+ initial_referring_domain: '',
+ },
+ locale: 'en-US',
+ screen: {
+ width: 1440,
+ height: 900,
+ density: 2,
+ innerWidth: 536,
+ innerHeight: 689,
+ },
+ traits: {
+ title: 'VP',
+ gender: 'Male',
+ },
+ library: {
+ name: 'RudderLabs JavaScript SDK',
+ version: '1.2.20',
+ },
+ campaign: {},
+ userAgent:
+ 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/97.0.4692.71 Safari/537.36',
+ },
+ rudderId: '553b5522-c575-40a7-8072-9741c5f9a647',
+ messageId: '831f1fa5-de84-4f22-880a-4c3f23fc3f04',
+ anonymousId: 'bf412108-0357-4330-b119-7305e767823c',
+ integrations: {
+ All: true,
+ },
+ originalTimestamp: '2022-01-20T13:39:21.032Z',
+ },
+ },
+ ],
+ },
+ },
+ output: {
+ response: {
+ status: 200,
+ body: [
+ {
+ output: {
+ version: '1',
+ type: 'REST',
+ method: 'PUT',
+ endpoint: 'https://api.wootric.com/v1/end_users/486438462',
+ headers: {
+ 'Content-Type': 'application/x-www-form-urlencoded',
+ Authorization:
+ 'Bearer 2fe581c1c72851e73d60f4191f720be93e5d3e8a6147e37c4e8e852b1a8f506c',
+ },
+ params: {},
+ body: {
+ JSON: {},
+ JSON_ARRAY: {},
+ XML: {},
+ FORM: {
+ last_surveyed: '1642685961',
+ 'properties[title]': 'VP',
+ 'properties[gender]': 'Male',
+ 'properties[city]': 'Mumbai',
+ 'properties[name]': 'Dummy User 1',
+ 'properties[company]': 'Rudderstack',
+ },
+ },
+ files: {},
+ userId: '',
+ },
+ statusCode: 200,
+ },
+ ],
+ },
+ },
+ },
+ {
+ name: 'wootric',
+ description: 'Identify call for updating user traits/properties',
+ feature: 'processor',
+ module: 'destination',
+ version: 'v0',
+ input: {
+ request: {
+ body: [
+ {
+ destination: {
+ Config: {
+ username: 'wootricfakeuser@example.com',
+ password: 'password@123',
+ accountToken: 'NPS-dummyToken',
+ },
+ ID: 'wootric-1234',
+ },
+ message: {
+ type: 'identify',
+ sentAt: '2022-01-20T13:39:21.033Z',
+ userId: 'dummyId1',
+ channel: 'web',
+ context: {
+ os: {
+ name: '',
+ version: '',
+ },
+ app: {
+ name: 'RudderLabs JavaScript SDK',
+ build: '1.0.0',
+ version: '1.2.20',
+ namespace: 'com.rudderlabs.javascript',
+ },
+ page: {
+ url: 'http://127.0.0.1:7307/Testing/App_for_LaunchDarkly/ourSdk.html',
+ path: '/Testing/App_for_LaunchDarkly/ourSdk.html',
+ title: 'Document',
+ search: '',
+ tab_url: 'http://127.0.0.1:7307/Testing/App_for_LaunchDarkly/ourSdk.html',
+ referrer: 'http://127.0.0.1:7307/Testing/App_for_LaunchDarkly/',
+ initial_referrer: '$direct',
+ referring_domain: '127.0.0.1:7307',
+ initial_referring_domain: '',
+ },
+ locale: 'en-US',
+ screen: {
+ width: 1440,
+ height: 900,
+ density: 2,
+ innerWidth: 536,
+ innerHeight: 689,
+ },
+ traits: {
+ city: 'Udaipur',
+ name: 'Dummy User 1 New',
+ title: 'SDE-2',
+ gender: 'Male',
+ company: 'Rudderstack',
+ },
+ library: {
+ name: 'RudderLabs JavaScript SDK',
+ version: '1.2.20',
+ },
+ campaign: {},
+ userAgent:
+ 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/97.0.4692.71 Safari/537.36',
+ },
+ rudderId: '553b5522-c575-40a7-8072-9741c5f9a647',
+ messageId: '831f1fa5-de84-4f22-880a-4c3f23fc3f04',
+ anonymousId: 'bf412108-0357-4330-b119-7305e767823c',
+ integrations: {
+ All: true,
+ },
+ originalTimestamp: '2022-01-20T13:39:21.032Z',
+ },
+ },
+ ],
+ },
+ },
+ output: {
+ response: {
+ status: 200,
+ body: [
+ {
+ output: {
+ version: '1',
+ type: 'REST',
+ method: 'PUT',
+ endpoint: 'https://api.wootric.com/v1/end_users/486438462',
+ headers: {
+ 'Content-Type': 'application/x-www-form-urlencoded',
+ Authorization:
+ 'Bearer 2fe581c1c72851e73d60f4191f720be93e5d3e8a6147e37c4e8e852b1a8f506c',
+ },
+ params: {},
+ body: {
+ JSON: {},
+ JSON_ARRAY: {},
+ XML: {},
+ FORM: {
+ last_surveyed: '1642685961',
+ 'properties[city]': 'Udaipur',
+ 'properties[name]': 'Dummy User 1 New',
+ 'properties[title]': 'SDE-2',
+ 'properties[gender]': 'Male',
+ 'properties[company]': 'Rudderstack',
+ },
+ },
+ files: {},
+ userId: '',
+ },
+ statusCode: 200,
+ },
+ ],
+ },
+ },
+ },
+ {
+ name: 'wootric',
+ description: 'Track call with existing userId and event type as create response',
+ feature: 'processor',
+ module: 'destination',
+ version: 'v0',
+ input: {
+ request: {
+ body: [
+ {
+ destination: {
+ Config: {
+ username: 'wootricfakeuser@example.com',
+ password: 'password@123',
+ accountToken: 'NPS-dummyToken',
+ },
+ ID: 'wootric-1234',
+ },
+ message: {
+ type: 'track',
+ sentAt: '2022-01-20T13:39:21.033Z',
+ userId: 'dummyId1',
+ channel: 'web',
+ properties: {
+ feedbackScore: 7,
+ feedbackText: 'Simple, Easy to use, Reliable, Affordable Product',
+ },
+ context: {
+ os: {
+ name: '',
+ version: '',
+ },
+ app: {
+ name: 'RudderLabs JavaScript SDK',
+ build: '1.0.0',
+ version: '1.2.20',
+ namespace: 'com.rudderlabs.javascript',
+ },
+ page: {
+ url: 'http://127.0.0.1:7307/Testing/App_for_LaunchDarkly/ourSdk.html',
+ path: '/Testing/App_for_LaunchDarkly/ourSdk.html',
+ title: 'Document',
+ search: '',
+ tab_url: 'http://127.0.0.1:7307/Testing/App_for_LaunchDarkly/ourSdk.html',
+ referrer: 'http://127.0.0.1:7307/Testing/App_for_LaunchDarkly/',
+ initial_referrer: '$direct',
+ referring_domain: '127.0.0.1:7307',
+ initial_referring_domain: '',
+ },
+ locale: 'en-US',
+ ip: '0.0.0.0',
+ screen: {
+ width: 1440,
+ height: 900,
+ density: 2,
+ innerWidth: 536,
+ innerHeight: 689,
+ },
+ traits: {
+ city: 'Mumbai',
+ name: 'Dummy User 1',
+ email: 'dummyUser1@gmail.com',
+ title: 'SDE',
+ gender: 'Male',
+ company: 'Rudderstack',
+ createdAt: '2021-01-20T13:39:21.032Z',
+ },
+ library: {
+ name: 'RudderLabs JavaScript SDK',
+ version: '1.2.20',
+ },
+ campaign: {},
+ userAgent:
+ 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/97.0.4692.71 Safari/537.36',
+ },
+ rudderId: '553b5522-c575-40a7-8072-9741c5f9a647',
+ messageId: '831f1fa5-de84-4f22-880a-4c3f23fc3f04',
+ anonymousId: 'bf412108-0357-4330-b119-7305e767823c',
+ integrations: {
+ All: true,
+ Wootric: {
+ eventType: 'create response',
+ },
+ },
+ originalTimestamp: '2022-01-20T13:39:21.032Z',
+ },
+ },
+ ],
+ },
+ },
+ output: {
+ response: {
+ status: 200,
+ body: [
+ {
+ output: {
+ version: '1',
+ type: 'REST',
+ method: 'POST',
+ endpoint: 'https://api.wootric.com/v1/end_users/486438462/responses',
+ headers: {
+ 'Content-Type': 'application/x-www-form-urlencoded',
+ Authorization:
+ 'Bearer 2fe581c1c72851e73d60f4191f720be93e5d3e8a6147e37c4e8e852b1a8f506c',
+ },
+ params: {},
+ body: {
+ JSON: {},
+ JSON_ARRAY: {},
+ XML: {},
+ FORM: {
+ score: 7,
+ ip_address: '0.0.0.0',
+ origin_url: 'http://127.0.0.1:7307/Testing/App_for_LaunchDarkly/ourSdk.html',
+ text: 'Simple, Easy to use, Reliable, Affordable Product',
+ created_at: '1611149961',
+ 'end_user[properties][city]': 'Mumbai',
+ 'end_user[properties][name]': 'Dummy User 1',
+ 'end_user[properties][title]': 'SDE',
+ 'end_user[properties][gender]': 'Male',
+ 'end_user[properties][company]': 'Rudderstack',
+ },
+ },
+ files: {},
+ userId: '',
+ },
+ statusCode: 200,
+ },
+ ],
+ },
+ },
+ },
+ {
+ name: 'wootric',
+ description: 'Track call with non-existing userId',
+ feature: 'processor',
+ module: 'destination',
+ version: 'v0',
+ input: {
+ request: {
+ body: [
+ {
+ destination: {
+ Config: {
+ username: 'wootricfakeuser@example.com',
+ password: 'password@123',
+ accountToken: 'NPS-dummyToken',
+ },
+ ID: 'wootric-1234',
+ },
+ message: {
+ type: 'track',
+ sentAt: '2022-01-20T13:39:21.033Z',
+ userId: 'dummyId2',
+ channel: 'web',
+ properties: {
+ feedbackScore: 7,
+ feedbackText: 'Simple, Easy to use, Reliable, Affordable Product',
+ },
+ context: {
+ os: {
+ name: '',
+ version: '',
+ },
+ app: {
+ name: 'RudderLabs JavaScript SDK',
+ build: '1.0.0',
+ version: '1.2.20',
+ namespace: 'com.rudderlabs.javascript',
+ },
+ page: {
+ url: 'http://127.0.0.1:7307/Testing/App_for_LaunchDarkly/ourSdk.html',
+ path: '/Testing/App_for_LaunchDarkly/ourSdk.html',
+ title: 'Document',
+ search: '',
+ tab_url: 'http://127.0.0.1:7307/Testing/App_for_LaunchDarkly/ourSdk.html',
+ referrer: 'http://127.0.0.1:7307/Testing/App_for_LaunchDarkly/',
+ initial_referrer: '$direct',
+ referring_domain: '127.0.0.1:7307',
+ initial_referring_domain: '',
+ },
+ locale: 'en-US',
+ ip: '0.0.0.0',
+ screen: {
+ width: 1440,
+ height: 900,
+ density: 2,
+ innerWidth: 536,
+ innerHeight: 689,
+ },
+ library: {
+ name: 'RudderLabs JavaScript SDK',
+ version: '1.2.20',
+ },
+ campaign: {},
+ userAgent:
+ 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/97.0.4692.71 Safari/537.36',
+ },
+ rudderId: '553b5522-c575-40a7-8072-9741c5f9a647',
+ messageId: '831f1fa5-de84-4f22-880a-4c3f23fc3f04',
+ anonymousId: 'bf412108-0357-4330-b119-7305e767823c',
+ integrations: {
+ All: true,
+ Wootric: {
+ eventType: 'create response',
+ },
+ },
+ originalTimestamp: '2022-01-20T13:39:21.032Z',
+ },
+ },
+ ],
+ },
+ },
+ output: {
+ response: {
+ status: 200,
+ body: [
+ {
+ error: 'No user found with userId : dummyId2',
+ statTags: {
+ destType: 'WOOTRIC',
+ errorCategory: 'dataValidation',
+ errorType: 'instrumentation',
+ feature: 'processor',
+ implementation: 'native',
+ module: 'destination',
+ },
+ statusCode: 400,
+ },
+ ],
+ },
+ },
+ },
+ {
+ name: 'wootric',
+ description: 'Track call with non-existing wootricEndUserId',
+ feature: 'processor',
+ module: 'destination',
+ version: 'v0',
+ input: {
+ request: {
+ body: [
+ {
+ destination: {
+ Config: {
+ username: 'wootricfakeuser@example.com',
+ password: 'password@123',
+ accountToken: 'NPS-dummyToken',
+ },
+ ID: 'wootric-1234',
+ },
+ message: {
+ type: 'track',
+ sentAt: '2022-01-20T13:39:21.033Z',
+ channel: 'web',
+ properties: {
+ feedbackScore: 7,
+ feedbackText: 'Simple, Easy to use, Reliable, Affordable Product',
+ },
+ context: {
+ os: {
+ name: '',
+ version: '',
+ },
+ app: {
+ name: 'RudderLabs JavaScript SDK',
+ build: '1.0.0',
+ version: '1.2.20',
+ namespace: 'com.rudderlabs.javascript',
+ },
+ page: {
+ url: 'http://127.0.0.1:7307/Testing/App_for_LaunchDarkly/ourSdk.html',
+ path: '/Testing/App_for_LaunchDarkly/ourSdk.html',
+ title: 'Document',
+ search: '',
+ tab_url: 'http://127.0.0.1:7307/Testing/App_for_LaunchDarkly/ourSdk.html',
+ referrer: 'http://127.0.0.1:7307/Testing/App_for_LaunchDarkly/',
+ initial_referrer: '$direct',
+ referring_domain: '127.0.0.1:7307',
+ initial_referring_domain: '',
+ },
+ locale: 'en-US',
+ ip: '0.0.0.0',
+ screen: {
+ width: 1440,
+ height: 900,
+ density: 2,
+ innerWidth: 536,
+ innerHeight: 689,
+ },
+ library: {
+ name: 'RudderLabs JavaScript SDK',
+ version: '1.2.20',
+ },
+ externalId: [
+ {
+ type: 'wootricEndUserId',
+ id: '12345',
+ },
+ ],
+ campaign: {},
+ userAgent:
+ 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/97.0.4692.71 Safari/537.36',
+ },
+ rudderId: '553b5522-c575-40a7-8072-9741c5f9a647',
+ messageId: '831f1fa5-de84-4f22-880a-4c3f23fc3f04',
+ anonymousId: 'bf412108-0357-4330-b119-7305e767823c',
+ integrations: {
+ All: true,
+ Wootric: {
+ eventType: 'create response',
+ },
+ },
+ originalTimestamp: '2022-01-20T13:39:21.032Z',
+ },
+ },
+ ],
+ },
+ },
+ output: {
+ response: {
+ status: 200,
+ body: [
+ {
+ error: 'No user found with wootric end user Id : 12345',
+ statTags: {
+ destType: 'WOOTRIC',
+ errorCategory: 'dataValidation',
+ errorType: 'instrumentation',
+ feature: 'processor',
+ implementation: 'native',
+ module: 'destination',
+ },
+ statusCode: 400,
+ },
+ ],
+ },
+ },
+ },
+ {
+ name: 'wootric',
+ description:
+ 'Track call with existing userId and event type as create response and score out of bound',
+ feature: 'processor',
+ module: 'destination',
+ version: 'v0',
+ input: {
+ request: {
+ body: [
+ {
+ destination: {
+ Config: {
+ username: 'wootricfakeuser@example.com',
+ password: 'password@123',
+ accountToken: 'NPS-dummyToken',
+ },
+ ID: 'wootric-1234',
+ },
+ message: {
+ type: 'track',
+ sentAt: '2022-01-20T13:39:21.033Z',
+ userId: 'dummyId1',
+ channel: 'web',
+ properties: {
+ feedbackScore: 12,
+ feedbackText: 'Simple, Easy to use, Reliable, Affordable Product',
+ },
+ context: {
+ os: {
+ name: '',
+ version: '',
+ },
+ app: {
+ name: 'RudderLabs JavaScript SDK',
+ build: '1.0.0',
+ version: '1.2.20',
+ namespace: 'com.rudderlabs.javascript',
+ },
+ page: {
+ url: 'http://127.0.0.1:7307/Testing/App_for_LaunchDarkly/ourSdk.html',
+ path: '/Testing/App_for_LaunchDarkly/ourSdk.html',
+ title: 'Document',
+ search: '',
+ tab_url: 'http://127.0.0.1:7307/Testing/App_for_LaunchDarkly/ourSdk.html',
+ referrer: 'http://127.0.0.1:7307/Testing/App_for_LaunchDarkly/',
+ initial_referrer: '$direct',
+ referring_domain: '127.0.0.1:7307',
+ initial_referring_domain: '',
+ },
+ locale: 'en-US',
+ ip: '0.0.0.0',
+ screen: {
+ width: 1440,
+ height: 900,
+ density: 2,
+ innerWidth: 536,
+ innerHeight: 689,
+ },
+ library: {
+ name: 'RudderLabs JavaScript SDK',
+ version: '1.2.20',
+ },
+ campaign: {},
+ userAgent:
+ 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/97.0.4692.71 Safari/537.36',
+ },
+ rudderId: '553b5522-c575-40a7-8072-9741c5f9a647',
+ messageId: '831f1fa5-de84-4f22-880a-4c3f23fc3f04',
+ anonymousId: 'bf412108-0357-4330-b119-7305e767823c',
+ integrations: {
+ All: true,
+ Wootric: {
+ eventType: 'create response',
+ },
+ },
+ originalTimestamp: '2022-01-20T13:39:21.032Z',
+ },
+ },
+ ],
+ },
+ },
+ output: {
+ response: {
+ status: 200,
+ body: [
+ {
+ error: 'Invalid Score',
+ statTags: {
+ destType: 'WOOTRIC',
+ errorCategory: 'dataValidation',
+ errorType: 'instrumentation',
+ feature: 'processor',
+ implementation: 'native',
+ module: 'destination',
+ },
+ statusCode: 400,
+ },
+ ],
+ },
+ },
+ },
+ {
+ name: 'wootric',
+ description: 'Track call with existing userId and event type as create decline',
+ feature: 'processor',
+ module: 'destination',
+ version: 'v0',
+ input: {
+ request: {
+ body: [
+ {
+ destination: {
+ Config: {
+ username: 'wootricfakeuser@example.com',
+ password: 'password@123',
+ accountToken: 'NPS-dummyToken',
+ },
+ ID: 'wootric-1234',
+ },
+ message: {
+ type: 'track',
+ sentAt: '2022-01-20T13:39:21.033Z',
+ userId: 'dummyId1',
+ channel: 'web',
+ properties: {
+ feedbackScore: 9,
+ feedbackText: 'Simple, Easy to use, Reliable, Affordable Product',
+ },
+ context: {
+ os: {
+ name: '',
+ version: '',
+ },
+ app: {
+ name: 'RudderLabs JavaScript SDK',
+ build: '1.0.0',
+ version: '1.2.20',
+ namespace: 'com.rudderlabs.javascript',
+ },
+ page: {
+ url: 'http://127.0.0.1:7307/Testing/App_for_LaunchDarkly/ourSdk.html',
+ path: '/Testing/App_for_LaunchDarkly/ourSdk.html',
+ title: 'Document',
+ search: '',
+ tab_url: 'http://127.0.0.1:7307/Testing/App_for_LaunchDarkly/ourSdk.html',
+ referrer: 'http://127.0.0.1:7307/Testing/App_for_LaunchDarkly/',
+ initial_referrer: '$direct',
+ referring_domain: '127.0.0.1:7307',
+ initial_referring_domain: '',
+ },
+ locale: 'en-US',
+ screen: {
+ width: 1440,
+ height: 900,
+ density: 2,
+ innerWidth: 536,
+ innerHeight: 689,
+ },
+ library: {
+ name: 'RudderLabs JavaScript SDK',
+ version: '1.2.20',
+ },
+ campaign: {},
+ userAgent:
+ 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/97.0.4692.71 Safari/537.36',
+ },
+ rudderId: '553b5522-c575-40a7-8072-9741c5f9a647',
+ messageId: '831f1fa5-de84-4f22-880a-4c3f23fc3f04',
+ anonymousId: 'bf412108-0357-4330-b119-7305e767823c',
+ integrations: {
+ All: true,
+ Wootric: {
+ eventType: 'create decline',
+ },
+ },
+ originalTimestamp: '2022-01-20T13:39:21.032Z',
+ },
+ },
+ ],
+ },
+ },
+ output: {
+ response: {
+ status: 200,
+ body: [
+ {
+ output: {
+ version: '1',
+ type: 'REST',
+ method: 'POST',
+ endpoint: 'https://api.wootric.com/v1/end_users/486438462/declines',
+ headers: {
+ 'Content-Type': 'application/x-www-form-urlencoded',
+ Authorization:
+ 'Bearer 2fe581c1c72851e73d60f4191f720be93e5d3e8a6147e37c4e8e852b1a8f506c',
+ },
+ params: {},
+ body: {
+ JSON: {},
+ JSON_ARRAY: {},
+ XML: {},
+ FORM: {
+ origin_url: 'http://127.0.0.1:7307/Testing/App_for_LaunchDarkly/ourSdk.html',
+ },
+ },
+ files: {},
+ userId: '',
+ },
+ statusCode: 200,
+ },
+ ],
+ },
+ },
+ },
+ {
+ name: 'wootric',
+ description: 'Track call with non-existing userId and event type as create decline',
+ feature: 'processor',
+ module: 'destination',
+ version: 'v0',
+ input: {
+ request: {
+ body: [
+ {
+ destination: {
+ Config: {
+ username: 'wootricfakeuser@example.com',
+ password: 'password@123',
+ accountToken: 'NPS-dummyToken',
+ },
+ ID: 'wootric-1234',
+ },
+ message: {
+ type: 'track',
+ sentAt: '2022-01-20T13:39:21.033Z',
+ userId: 'dummyId2',
+ channel: 'web',
+ properties: {
+ feedbackScore: 9,
+ feedbackText: 'Simple, Easy to use, Reliable, Affordable Product',
+ },
+ context: {
+ os: {
+ name: '',
+ version: '',
+ },
+ app: {
+ name: 'RudderLabs JavaScript SDK',
+ build: '1.0.0',
+ version: '1.2.20',
+ namespace: 'com.rudderlabs.javascript',
+ },
+ page: {
+ url: 'http://127.0.0.1:7307/Testing/App_for_LaunchDarkly/ourSdk.html',
+ path: '/Testing/App_for_LaunchDarkly/ourSdk.html',
+ title: 'Document',
+ search: '',
+ tab_url: 'http://127.0.0.1:7307/Testing/App_for_LaunchDarkly/ourSdk.html',
+ referrer: 'http://127.0.0.1:7307/Testing/App_for_LaunchDarkly/',
+ initial_referrer: '$direct',
+ referring_domain: '127.0.0.1:7307',
+ initial_referring_domain: '',
+ },
+ locale: 'en-US',
+ screen: {
+ width: 1440,
+ height: 900,
+ density: 2,
+ innerWidth: 536,
+ innerHeight: 689,
+ },
+ library: {
+ name: 'RudderLabs JavaScript SDK',
+ version: '1.2.20',
+ },
+ campaign: {},
+ userAgent:
+ 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/97.0.4692.71 Safari/537.36',
+ },
+ rudderId: '553b5522-c575-40a7-8072-9741c5f9a647',
+ messageId: '831f1fa5-de84-4f22-880a-4c3f23fc3f04',
+ anonymousId: 'bf412108-0357-4330-b119-7305e767823c',
+ integrations: {
+ All: true,
+ Wootric: {
+ eventType: 'create decline',
+ },
+ },
+ originalTimestamp: '2022-01-20T13:39:21.032Z',
+ },
+ },
+ ],
+ },
+ },
+ output: {
+ response: {
+ status: 200,
+ body: [
+ {
+ error: 'No user found with userId : dummyId2',
+ statTags: {
+ destType: 'WOOTRIC',
+ errorCategory: 'dataValidation',
+ errorType: 'instrumentation',
+ feature: 'processor',
+ implementation: 'native',
+ module: 'destination',
+ },
+ statusCode: 400,
+ },
+ ],
+ },
+ },
+ },
+ {
+ name: 'wootric',
+ description: 'Track call with event type other than create response or decline',
+ feature: 'processor',
+ module: 'destination',
+ version: 'v0',
+ input: {
+ request: {
+ body: [
+ {
+ destination: {
+ Config: {
+ username: 'wootricfakeuser@example.com',
+ password: 'password@123',
+ accountToken: 'NPS-dummyToken',
+ },
+ ID: 'wootric-1234',
+ },
+ message: {
+ type: 'track',
+ sentAt: '2022-01-20T13:39:21.033Z',
+ userId: 'dummyId1',
+ channel: 'web',
+ properties: {
+ feedbackScore: 7,
+ feedbackText: 'Simple, Easy to use, Reliable, Affordable Product',
+ },
+ context: {
+ os: {
+ name: '',
+ version: '',
+ },
+ app: {
+ name: 'RudderLabs JavaScript SDK',
+ build: '1.0.0',
+ version: '1.2.20',
+ namespace: 'com.rudderlabs.javascript',
+ },
+ page: {
+ url: 'http://127.0.0.1:7307/Testing/App_for_LaunchDarkly/ourSdk.html',
+ path: '/Testing/App_for_LaunchDarkly/ourSdk.html',
+ title: 'Document',
+ search: '',
+ tab_url: 'http://127.0.0.1:7307/Testing/App_for_LaunchDarkly/ourSdk.html',
+ referrer: 'http://127.0.0.1:7307/Testing/App_for_LaunchDarkly/',
+ initial_referrer: '$direct',
+ referring_domain: '127.0.0.1:7307',
+ initial_referring_domain: '',
+ },
+ locale: 'en-US',
+ ip: '0.0.0.0',
+ screen: {
+ width: 1440,
+ height: 900,
+ density: 2,
+ innerWidth: 536,
+ innerHeight: 689,
+ },
+ traits: {
+ city: 'Mumbai',
+ name: 'Dummy User 1',
+ email: 'dummyUser1@gmail.com',
+ phone: '+19123456789',
+ title: 'SDE',
+ gender: 'Male',
+ company: 'Rudderstack',
+ createdAt: '2021-01-20T13:39:21.032Z',
+ },
+ library: {
+ name: 'RudderLabs JavaScript SDK',
+ version: '1.2.20',
+ },
+ campaign: {},
+ userAgent:
+ 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/97.0.4692.71 Safari/537.36',
+ },
+ rudderId: '553b5522-c575-40a7-8072-9741c5f9a647',
+ messageId: '831f1fa5-de84-4f22-880a-4c3f23fc3f04',
+ anonymousId: 'bf412108-0357-4330-b119-7305e767823c',
+ integrations: {
+ All: true,
+ Wootric: {
+ eventType: 'random',
+ },
+ },
+ originalTimestamp: '2022-01-20T13:39:21.032Z',
+ },
+ },
+ ],
+ },
+ },
+ output: {
+ response: {
+ status: 200,
+ body: [
+ {
+ error: 'Event Type not supported',
+ statTags: {
+ destType: 'WOOTRIC',
+ errorCategory: 'dataValidation',
+ errorType: 'instrumentation',
+ feature: 'processor',
+ implementation: 'native',
+ module: 'destination',
+ },
+ statusCode: 400,
+ },
+ ],
+ },
+ },
+ },
+ {
+ name: 'wootric',
+ description: 'Track call with missing event type in integration object',
+ feature: 'processor',
+ module: 'destination',
+ version: 'v0',
+ input: {
+ request: {
+ body: [
+ {
+ destination: {
+ Config: {
+ username: 'wootricfakeuser@example.com',
+ password: 'password@123',
+ accountToken: 'NPS-dummyToken',
+ },
+ ID: 'wootric-1234',
+ },
+ message: {
+ type: 'track',
+ sentAt: '2022-01-20T13:39:21.033Z',
+ userId: 'dummyId1',
+ channel: 'web',
+ properties: {
+ feedbackScore: 3,
+ feedbackText: 'Too Slow!!!',
+ },
+ context: {
+ os: {
+ name: '',
+ version: '',
+ },
+ app: {
+ name: 'RudderLabs JavaScript SDK',
+ build: '1.0.0',
+ version: '1.2.20',
+ namespace: 'com.rudderlabs.javascript',
+ },
+ page: {
+ url: 'http://127.0.0.1:7307/Testing/App_for_LaunchDarkly/ourSdk.html',
+ path: '/Testing/App_for_LaunchDarkly/ourSdk.html',
+ title: 'Document',
+ search: '',
+ tab_url: 'http://127.0.0.1:7307/Testing/App_for_LaunchDarkly/ourSdk.html',
+ referrer: 'http://127.0.0.1:7307/Testing/App_for_LaunchDarkly/',
+ initial_referrer: '$direct',
+ referring_domain: '127.0.0.1:7307',
+ initial_referring_domain: '',
+ },
+ locale: 'en-US',
+ ip: '0.0.0.0',
+ screen: {
+ width: 1440,
+ height: 900,
+ density: 2,
+ innerWidth: 536,
+ innerHeight: 689,
+ },
+ traits: {
+ city: 'Mumbai',
+ name: 'Dummy User 1',
+ email: 'dummyUser1@gmail.com',
+ phone: '+19123456789',
+ title: 'SDE',
+ gender: 'Male',
+ company: 'Rudderstack',
+ createdAt: '2021-01-20T13:39:21.032Z',
+ },
+ library: {
+ name: 'RudderLabs JavaScript SDK',
+ version: '1.2.20',
+ },
+ campaign: {},
+ userAgent:
+ 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/97.0.4692.71 Safari/537.36',
+ },
+ rudderId: '553b5522-c575-40a7-8072-9741c5f9a647',
+ messageId: '831f1fa5-de84-4f22-880a-4c3f23fc3f04',
+ anonymousId: 'bf412108-0357-4330-b119-7305e767823c',
+ integrations: {
+ All: true,
+ },
+ originalTimestamp: '2022-01-20T13:39:21.032Z',
+ },
+ },
+ ],
+ },
+ },
+ output: {
+ response: {
+ status: 200,
+ body: [
+ {
+ error: 'Event Type is missing from Integration object',
+ statTags: {
+ destType: 'WOOTRIC',
+ errorCategory: 'dataValidation',
+ errorType: 'instrumentation',
+ feature: 'processor',
+ implementation: 'native',
+ module: 'destination',
+ },
+ statusCode: 400,
+ },
+ ],
+ },
+ },
+ },
+];
diff --git a/test/test_reporter/reporter.ts b/test/test_reporter/reporter.ts
index 135f980398..5741b1cdf0 100644
--- a/test/test_reporter/reporter.ts
+++ b/test/test_reporter/reporter.ts
@@ -125,9 +125,9 @@ export const generateTestReport = (testData, output, result) => {
export const initaliseReport = () => {
const htmlTemplate = generateHTMLTemplate();
- if (!fs.existsSync('test_reports')){
+ if (!fs.existsSync('test_reports')) {
fs.mkdirSync('test_reports');
-}
+ }
fs.writeFileSync('test_reports/test-report.html', htmlTemplate);
console.log('Report initialised');
};
From c7c3110a4526e31bc296abb33f3246fa8eee049a Mon Sep 17 00:00:00 2001
From: Anant Jain <62471433+anantjain45823@users.noreply.github.com>
Date: Mon, 5 Feb 2024 14:39:34 +0530
Subject: [PATCH 2/3] feat: onboard new destination rakuten (#3046)
* feat: onboard new destination rakuten_advertising
* chore: small fix
* chore: onboard rakuten proxy
* chore: onboard rakuten proxy on v1
* chore: address comments and minor fixes
* chore: small fix
* chore: small fix for sonar issues
* chore: small fix for sonar issues+1
* chore: small fix for sonar issues+3
* chore: making name as a required field for every product
* Update src/cdk/v2/destinations/rakuten/utils.js
Co-authored-by: Dilip Kola <33080863+koladilip@users.noreply.github.com>
* chore: address comments
---------
Co-authored-by: Dilip Kola <33080863+koladilip@users.noreply.github.com>
---
src/cdk/v2/destinations/rakuten/config.js | 34 ++
.../rakuten/data/propertiesMapping.json | 101 ++++
.../v2/destinations/rakuten/procWorkflow.yaml | 39 ++
src/cdk/v2/destinations/rakuten/utils.js | 70 +++
src/cdk/v2/destinations/rakuten/utils.test.js | 117 +++++
src/v0/destinations/rakuten/networkHandler.js | 103 ++++
.../rakuten/networkHandler.test.js | 64 +++
.../destinations/rakuten/dataDelivery/data.ts | 203 ++++++++
.../destinations/rakuten/network.ts | 98 ++++
.../rakuten/processor/commonConfig.ts | 65 +++
.../destinations/rakuten/processor/data.ts | 3 +
.../destinations/rakuten/processor/track.ts | 448 ++++++++++++++++++
.../processor/transformationFailure.ts | 335 +++++++++++++
test/integrations/testUtils.ts | 6 +-
14 files changed, 1684 insertions(+), 2 deletions(-)
create mode 100644 src/cdk/v2/destinations/rakuten/config.js
create mode 100644 src/cdk/v2/destinations/rakuten/data/propertiesMapping.json
create mode 100644 src/cdk/v2/destinations/rakuten/procWorkflow.yaml
create mode 100644 src/cdk/v2/destinations/rakuten/utils.js
create mode 100644 src/cdk/v2/destinations/rakuten/utils.test.js
create mode 100644 src/v0/destinations/rakuten/networkHandler.js
create mode 100644 src/v0/destinations/rakuten/networkHandler.test.js
create mode 100644 test/integrations/destinations/rakuten/dataDelivery/data.ts
create mode 100644 test/integrations/destinations/rakuten/network.ts
create mode 100644 test/integrations/destinations/rakuten/processor/commonConfig.ts
create mode 100644 test/integrations/destinations/rakuten/processor/data.ts
create mode 100644 test/integrations/destinations/rakuten/processor/track.ts
create mode 100644 test/integrations/destinations/rakuten/processor/transformationFailure.ts
diff --git a/src/cdk/v2/destinations/rakuten/config.js b/src/cdk/v2/destinations/rakuten/config.js
new file mode 100644
index 0000000000..6a4c93ea3a
--- /dev/null
+++ b/src/cdk/v2/destinations/rakuten/config.js
@@ -0,0 +1,34 @@
+const { getMappingConfig } = require('../../../../v0/util');
+
+const ConfigCategories = {
+ TRACK: {
+ type: 'track',
+ name: 'propertiesMapping',
+ },
+};
+const mappingConfig = getMappingConfig(ConfigCategories, __dirname);
+// Following contains the keys at item level mapping where key can be considered as destkey and value can be considered as sourcekey
+const productProperties = {
+ skulist: 'sku',
+ qlist: 'quantity',
+ namelist: 'name',
+ brandlist: 'brand',
+ couponlist: 'coupon',
+ catidlist: 'categoryId',
+ catlist: 'category',
+ disamtlist: 'discountAmount',
+ distypelist: 'discountType',
+ isclearancelist: 'isClearance',
+ ismarketplacelist: 'isMarketPlace',
+ issalelist: 'isSale',
+ itmstatuslist: 'itmStatus',
+ marginlist: 'margin',
+ markdownlist: 'markdown',
+ shipidlist: 'shipId',
+ shipbylist: 'shipBy',
+ taxexemptlist: 'taxExempt',
+ sequencelist: 'sequence',
+};
+// list of all properties that are required
+const requiredProductProperties = ['skulist', 'qlist', 'namelist'];
+module.exports = { ConfigCategories, mappingConfig, productProperties, requiredProductProperties };
diff --git a/src/cdk/v2/destinations/rakuten/data/propertiesMapping.json b/src/cdk/v2/destinations/rakuten/data/propertiesMapping.json
new file mode 100644
index 0000000000..e04765faed
--- /dev/null
+++ b/src/cdk/v2/destinations/rakuten/data/propertiesMapping.json
@@ -0,0 +1,101 @@
+[
+ {
+ "sourceKeys": "properties.orderId",
+ "required": true,
+ "destKey": "ord"
+ },
+ {
+ "sourceKeys": ["properties.tr", "properties.ranSiteID"],
+ "required": true,
+ "destKey": "tr"
+ },
+ {
+ "sourceKeys": ["properties.land", "properties.landTime"],
+ "required": true,
+ "destKey": "land"
+ },
+ {
+ "sourceKeys": ["properties.date", "properties.orderCompletedTime"],
+ "destKey": "date"
+ },
+ {
+ "sourceKeys": ["properties.altord", "properties.alterOrderId"],
+ "destKey": "altord"
+ },
+ {
+ "sourceKeys": "properties.currency",
+ "destKey": "cur"
+ },
+ {
+ "sourceKeys": "properties.creditCardType",
+ "destKey": "cc"
+ },
+ {
+ "sourceKeys": "properties.commReason",
+ "destKey": "commreason"
+ },
+ {
+ "sourceKeys": "properties.isComm",
+ "destKey": "iscomm"
+ },
+ {
+ "sourceKeys": "properties.consumed",
+ "destKey": "consumed"
+ },
+ {
+ "sourceKeys": "properties.coupon",
+ "destKey": "coupon"
+ },
+ {
+ "sourceKeys": ["properties.custId", "properties.customerId", "properties.userId"],
+ "destKey": "custid"
+ },
+ {
+ "sourceKeys": ["properties.custScore", "properties.customerScore"],
+ "destKey": "custscore"
+ },
+ {
+ "sourceKeys": ["properties.custStatus", "properties.customerStatus"],
+ "destKey": "custstatus"
+ },
+ {
+ "sourceKeys": ["properties.dId", "properties.advertisingId"],
+ "destKey": "did"
+ },
+ {
+ "sourceKeys": ["properties.disamt", "properties.discountAmout"],
+ "destKey": "disamt"
+ },
+ {
+ "sourceKeys": ["properties.ordStatus", "properties.orderStatus"],
+ "destKey": "ordstatus"
+ },
+ {
+ "sourceKeys": "properties.segment",
+ "destKey": "segment"
+ },
+ {
+ "sourceKeys": "properties.shipcountry",
+ "destKey": "shipcountry"
+ },
+ {
+ "sourceKeys": "properties.shipped",
+ "destKey": "shipped"
+ },
+ {
+ "sourceKeys": ["properties.sitename", "properties.url", "context.page.url"],
+ "destKey": "sitename"
+ },
+ {
+ "sourceKeys": "properties.storeId",
+ "destKey": "storeid"
+ },
+ {
+ "sourceKeys": ["properties.storecat", "properties.storeCategory"],
+ "destKey": "storecat"
+ },
+ {
+ "sourceKeys": "properties.currency",
+ "destKey": "cur"
+ }
+]
diff --git a/src/cdk/v2/destinations/rakuten/procWorkflow.yaml b/src/cdk/v2/destinations/rakuten/procWorkflow.yaml
new file mode 100644
index 0000000000..9ee9b5c03a
--- /dev/null
+++ b/src/cdk/v2/destinations/rakuten/procWorkflow.yaml
@@ -0,0 +1,39 @@
+bindings:
+ - name: EventType
+ path: ../../../../constants
+ - path: ../../bindings/jsontemplate
+ - name: defaultRequestConfig
+ path: ../../../../v0/util
+ - name: removeUndefinedAndNullValues
+ path: ../../../../v0/util
+ - path: ./utils
+
+steps:
+ - name: messageType
+ template: |
+ .message.type.toLowerCase();
+ - name: validateInput
+ template: |
+ let messageType = $.outputs.messageType;
+ $.assert(messageType, "message Type is not present. Aborting");
+ $.assert(messageType in {{$.EventType.([.TRACK])}}, "message type " + messageType + " is not supported");
+ $.assertConfig(.destination.Config.mid, "Merchant ID is not present. Aborting");
+ - name: prepareTrackPayload
+ condition: $.outputs.messageType === {{$.EventType.TRACK}}
+ template: |
+ const properties = $.constructProperties(.message);
+ const lineItems = $.constructLineItems(.message.properties)
+ $.context.payload = {...properties,...lineItems,xml:1, mid:.destination.Config.mid}
+ $.context.payload = $.removeUndefinedAndNullValues($.context.payload);
+
+ - name: buildResponse
+ template: |
+ const response = $.defaultRequestConfig();
+ response.params = $.context.payload;
+ response.method = "GET";
+ response.endpoint = "https://track.linksynergy.com/ep";
+ response.headers = {
+ "accept": "application/json",
+ "content-type": "application/json"
+ };
+ response
diff --git a/src/cdk/v2/destinations/rakuten/utils.js b/src/cdk/v2/destinations/rakuten/utils.js
new file mode 100644
index 0000000000..fe37455a57
--- /dev/null
+++ b/src/cdk/v2/destinations/rakuten/utils.js
@@ -0,0 +1,70 @@
+const { InstrumentationError } = require('@rudderstack/integrations-lib');
+const { isDefinedAndNotNull } = require('rudder-transformer-cdk/build/utils');
+const {
+ mappingConfig,
+ ConfigCategories,
+ productProperties,
+ requiredProductProperties,
+} = require('./config');
+const { constructPayload } = require('../../../../v0/util');
+
+/**
+ * This fucntion constructs payloads based upon mappingConfig for Track call type
+ * @param {*} message
+ * @returns
+ */
+const constructProperties = (message) => {
+ const payload = constructPayload(message, mappingConfig[ConfigCategories.TRACK.name]);
+ return payload;
+};
+
+/**
+ * This fucntion build the item level list
+ * @param {*} properties
+ * @returns
+ */
+const constructLineItems = (properties) => {
+ // Validate the existence and non-emptiness of the 'products' array in 'properties'
+ if (!Array.isArray(properties?.products) || properties.products.length === 0) {
+ throw new InstrumentationError('Either properties.product is not an array or is empty');
+ }
+
+ const { products } = properties;
+ const productList = {};
+
+ // Iterate over product properties to construct the payload
+ Object.keys(productProperties).forEach((property) => {
+ const propertyKey = productProperties[property];
+
+ // Extract values for the current property from the 'products' array
+ const values = products.map((product) =>
+ isDefinedAndNotNull(product?.[propertyKey]) ? product[propertyKey] : '',
+ );
+
+ // Validate if a required property is missing
+ if (requiredProductProperties.includes(property) && values.includes('')) {
+ throw new InstrumentationError(`${propertyKey} is a required field. Aborting`);
+ }
+
+ // Include property in the payload if values are non-empty
+ if (values.some((element) => element !== '')) {
+ productList[property] = values.join('|');
+ }
+ });
+
+ // Map 'amountList' by evaluating 'amount' or deriving it from 'price' and 'quantity'
+ const amountList = products.map((product) => {
+ if (!product?.amount && !product?.price) {
+ throw new InstrumentationError('Either amount or price is required for every product');
+ }
+
+ if (product.price) {
+ return product.quantity * product.price * 100;
+ }
+ return product.amount * 100;
+ });
+ productList.amtlist = amountList.join('|');
+ return productList;
+};
+
+module.exports = { constructProperties, constructLineItems };
diff --git a/src/cdk/v2/destinations/rakuten/utils.test.js b/src/cdk/v2/destinations/rakuten/utils.test.js
new file mode 100644
index 0000000000..9cc7f5fd4c
--- /dev/null
+++ b/src/cdk/v2/destinations/rakuten/utils.test.js
@@ -0,0 +1,117 @@
+const { constructLineItems } = require('./utils');
+describe('constructLineItems', () => {
+ it('should return a non-empty object when given a valid properties object with at least one product', () => {
+ const properties = {
+ products: [
+ {
+ name: 'Product 1',
+ sku: 'sku_1',
+ price: 10,
+ quantity: 2,
+ amount: 20,
+ },
+ ],
+ };
+ const result = constructLineItems(properties);
+ const expectedObj = {
+ namelist: 'Product 1',
+ skulist: 'sku_1',
+ qlist: '2',
+ amtlist: '2000',
+ };
+ expect(result).toEqual(expectedObj);
+ });
+
+ it('should include all mapped properties in the returned object when present in at least one product', () => {
+ const properties = {
+ products: [
+ {
+ name: 'Product 1',
+ category: 'Category 1',
+ sku: 'sku_1',
+ brand: 'Brand 1',
+ price: 10,
+ quantity: 2,
+ amount: 20,
+ },
+ ],
+ };
+
+ const result = constructLineItems(properties);
+
+ const expectedObj = {
+ namelist: 'Product 1',
+ catlist: 'Category 1',
+ skulist: 'sku_1',
+ brandlist: 'Brand 1',
+ qlist: '2',
+ amtlist: '2000',
+ };
+ expect(result).toEqual(expectedObj);
+ });
+
+ it('should include amtlist property in the returned object with calculated values', () => {
+ const properties = {
+ products: [
+ {
+ name: 'Product 1',
+ sku: 'sku_1',
+ price: 10,
+ quantity: 2,
+ },
+ {
+ name: 'Product 2',
+ sku: 'sku_2',
+ price: 5,
+ quantity: 3,
+ },
+ ],
+ };
+
+ const result = constructLineItems(properties);
+
+ expect(result).toHaveProperty('amtlist');
+ expect(result.amtlist).toBe('2000|1500');
+ });
+
+ it('should throw an InstrumentationError when properties object is missing or has an empty products array', () => {
+ const properties = {};
+
+ expect(() => constructLineItems(properties)).toThrow(
+ 'Either properties.product is not an array or is empty',
+ );
+
+ properties.products = [];
+
+ expect(() => constructLineItems(properties)).toThrow(
+ 'Either properties.product is not an array or is empty',
+ );
+ });
+ it('should throw an InstrumentationError when a product is missing quantity property', () => {
+ const properties = {
+ products: [
+ {
+ name: 'Product 1',
+ sku: 'sku_1',
+ amount: '1234',
+ },
+ ],
+ };
+ expect(() => constructLineItems(properties)).toThrow('quantity is a required field. Aborting');
+ });
+ it('should throw an InstrumentationError when a product is missing both amount and price properties', () => {
+ const properties = {
+ products: [
+ {
+ name: 'Product 1',
+ sku: 'sku_1',
+ quantity: 2,
+ },
+ ],
+ };
+
+ expect(() => constructLineItems(properties)).toThrow(
+ 'Either amount or price is required for every product',
+ );
+ });
+});
diff --git a/src/v0/destinations/rakuten/networkHandler.js b/src/v0/destinations/rakuten/networkHandler.js
new file mode 100644
index 0000000000..1b16bd5538
--- /dev/null
+++ b/src/v0/destinations/rakuten/networkHandler.js
@@ -0,0 +1,103 @@
+const { NetworkError } = require('@rudderstack/integrations-lib');
+const { httpSend } = require('../../../adapters/network');
+const {
+ processAxiosResponse,
+ getDynamicErrorType,
+} = require('../../../adapters/utils/networkUtils');
+const { TAG_NAMES } = require('../../util/tags');
+const { HTTP_STATUS_CODES } = require('../../util/constant');
+
+const DESTINATION = 'RAKUTEN';
+const prepareProxyRequest = (request) => request;
+const proxyRequest = async (request, destType) => {
+ const { endpoint, data, method, params, headers } = prepareProxyRequest(request);
+ const requestOptions = {
+ url: endpoint,
+ data,
+ params,
+ headers,
+ method,
+ };
+ const response = await httpSend(requestOptions, { feature: 'proxy', destType });
+ return response;
+};
+const extractContent = (xmlPayload, tagName) => {
+ const pattern = new RegExp(`<${tagName}>(.*?)${tagName}>`);
+ const match = xmlPayload.match(pattern);
+ return match ? match[1] : null;
+};
+
+const responseHandler = (destinationResponse) => {
+ const msg = `[${DESTINATION} Response Handler] - Request Processed Successfully`;
+ const { response, status } = destinationResponse;
+ if (status === 400) {
+ throw new NetworkError(
+ `Request failed with status: ${status} due to invalid Marketing Id`,
+ 400,
+ {
+ [TAG_NAMES.ERROR_TYPE]: getDynamicErrorType(status),
+ },
+ destinationResponse,
+ );
+ }
+ // Extract errors, good and bad between different tags
+ const badRecords = extractContent(response, 'bad');
+ const errors = extractContent(response, 'error');
+
+ // For access denied for a mid rakuten sends status code 200 with response as