Skip to content

Commit

Permalink
feat: add DATA WAREHOUSE to intg object in shopify pixel
Browse files Browse the repository at this point in the history
  • Loading branch information
yashasvibajpai committed Jan 13, 2025
1 parent 0fbe91a commit c1cb497
Show file tree
Hide file tree
Showing 8 changed files with 110 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,11 @@ const processEvent = async (inputEvent, metricMetadata) => {
}
}
message.setProperty(`integrations.${INTEGERATION}`, true);
message.setProperty('integrations.DATA_WAREHOUSE', {
options: {
jsonPaths: ['context.shopifyDetails'],
},
});
message.setProperty('context.library', {
eventOrigin: 'server',
name: 'RudderStack Shopify Cloud',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,11 @@ function processPixelEvent(inputEvent) {
}
message.anonymousId = clientId;
message.setProperty(`integrations.${INTEGERATION}`, true);
message.setProperty('integrations.DATA_WAREHOUSE', {
options: {
jsonPaths: ['context.shopifyDetails'],
},
});
message.setProperty('context.library', {
name: 'RudderStack Shopify Cloud',
eventOrigin: 'client',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -336,6 +336,11 @@ export const pixelCheckoutEventsTestScenarios = [
},
integrations: {
SHOPIFY: true,
DATA_WAREHOUSE: {
options: {
jsonPaths: ['context.shopifyDetails'],
},
},
},
type: 'track',
event: 'Checkout Started',
Expand Down Expand Up @@ -775,6 +780,11 @@ export const pixelCheckoutEventsTestScenarios = [
},
integrations: {
SHOPIFY: true,
DATA_WAREHOUSE: {
options: {
jsonPaths: ['context.shopifyDetails'],
},
},
},
type: 'track',
event: 'Order Completed',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -387,6 +387,11 @@ export const pixelCheckoutStepsScenarios = [
},
integrations: {
SHOPIFY: true,
DATA_WAREHOUSE: {
options: {
jsonPaths: ['context.shopifyDetails'],
},
},
},
type: 'track',
event: 'Checkout Address Info Submitted',
Expand Down Expand Up @@ -921,6 +926,11 @@ export const pixelCheckoutStepsScenarios = [
},
integrations: {
SHOPIFY: true,
DATA_WAREHOUSE: {
options: {
jsonPaths: ['context.shopifyDetails'],
},
},
},
type: 'track',
event: 'Checkout Contact Info Submitted',
Expand Down Expand Up @@ -1470,6 +1480,11 @@ export const pixelCheckoutStepsScenarios = [
},
integrations: {
SHOPIFY: true,
DATA_WAREHOUSE: {
options: {
jsonPaths: ['context.shopifyDetails'],
},
},
},
type: 'track',
event: 'Checkout Shipping Info Submitted',
Expand Down Expand Up @@ -2035,6 +2050,11 @@ export const pixelCheckoutStepsScenarios = [
},
integrations: {
SHOPIFY: true,
DATA_WAREHOUSE: {
options: {
jsonPaths: ['context.shopifyDetails'],
},
},
},
type: 'track',
event: 'Payment Info Entered',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,11 @@ export const pixelEventsTestScenarios = [
},
integrations: {
SHOPIFY: true,
DATA_WAREHOUSE: {
options: {
jsonPaths: ['context.shopifyDetails'],
},
},
},
name: 'Page View',
type: 'page',
Expand Down Expand Up @@ -179,6 +184,11 @@ export const pixelEventsTestScenarios = [
},
integrations: {
SHOPIFY: true,
DATA_WAREHOUSE: {
options: {
jsonPaths: ['context.shopifyDetails'],
},
},
},
type: 'track',
event: 'Product Viewed',
Expand Down Expand Up @@ -343,6 +353,11 @@ export const pixelEventsTestScenarios = [
},
integrations: {
SHOPIFY: true,
DATA_WAREHOUSE: {
options: {
jsonPaths: ['context.shopifyDetails'],
},
},
},
type: 'track',
event: 'Cart Viewed',
Expand Down Expand Up @@ -568,6 +583,11 @@ export const pixelEventsTestScenarios = [
},
integrations: {
SHOPIFY: true,
DATA_WAREHOUSE: {
options: {
jsonPaths: ['context.shopifyDetails'],
},
},
},
type: 'track',
event: 'Product List Viewed',
Expand Down Expand Up @@ -738,6 +758,11 @@ export const pixelEventsTestScenarios = [
},
integrations: {
SHOPIFY: true,
DATA_WAREHOUSE: {
options: {
jsonPaths: ['context.shopifyDetails'],
},
},
},
type: 'track',
event: 'Product Added',
Expand Down Expand Up @@ -879,6 +904,11 @@ export const pixelEventsTestScenarios = [
},
integrations: {
SHOPIFY: true,
DATA_WAREHOUSE: {
options: {
jsonPaths: ['context.shopifyDetails'],
},
},
},
type: 'track',
event: 'Product Removed',
Expand Down Expand Up @@ -968,6 +998,11 @@ export const pixelEventsTestScenarios = [
},
integrations: {
SHOPIFY: true,
DATA_WAREHOUSE: {
options: {
jsonPaths: ['context.shopifyDetails'],
},
},
},
type: 'track',
event: 'Search Submitted',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -215,6 +215,11 @@ export const checkoutEventsTestScenarios = [
},
integrations: {
SHOPIFY: true,
DATA_WAREHOUSE: {
options: {
jsonPaths: ['context.shopifyDetails'],
},
},
},
type: 'track',
event: 'Checkout Started - Webhook',
Expand Down Expand Up @@ -530,6 +535,11 @@ export const checkoutEventsTestScenarios = [
event: 'Checkout Updated',
integrations: {
SHOPIFY: true,
DATA_WAREHOUSE: {
options: {
jsonPaths: ['context.shopifyDetails'],
},
},
},
properties: {
currency: 'USD',
Expand Down Expand Up @@ -1202,6 +1212,11 @@ export const checkoutEventsTestScenarios = [
},
integrations: {
SHOPIFY: true,
DATA_WAREHOUSE: {
options: {
jsonPaths: ['context.shopifyDetails'],
},
},
},
type: 'track',
event: 'Order Updated',
Expand Down Expand Up @@ -1592,6 +1607,11 @@ export const checkoutEventsTestScenarios = [
},
integrations: {
SHOPIFY: true,
DATA_WAREHOUSE: {
options: {
jsonPaths: ['context.shopifyDetails'],
},
},
},
type: 'track',
event: 'Order Created',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,11 @@ export const genericTrackTestScenarios = [
event: 'Cart Update',
integrations: {
SHOPIFY: true,
DATA_WAREHOUSE: {
options: {
jsonPaths: ['context.shopifyDetails'],
},
},
},
properties: {
products: [],
Expand Down Expand Up @@ -530,6 +535,11 @@ export const genericTrackTestScenarios = [
},
integrations: {
SHOPIFY: true,
DATA_WAREHOUSE: {
options: {
jsonPaths: ['context.shopifyDetails'],
},
},
},
type: 'track',
event: 'Order Paid',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -187,6 +187,11 @@ export const identityTestScenarios = [
},
integrations: {
SHOPIFY: true,
DATA_WAREHOUSE: {
options: {
jsonPaths: ['context.shopifyDetails'],
},
},
},
type: 'identify',
userId: '7358220173425',
Expand Down

0 comments on commit c1cb497

Please sign in to comment.