Skip to content

chore: update pixel app specific transformations - #4173

Merged
krishna2020 merged 2 commits into
chore.shopify-v2-migrationfrom
chore.shopify.bugbash.transformations
Mar 18, 2025
Merged

krishna2020 merged 2 commits into
chore.shopify-v2-migrationfrom
chore.shopify.bugbash.transformations

Conversation

@yashasvibajpai

@yashasvibajpai yashasvibajpai commented Mar 18, 2025 •

Copy link
Copy Markdown
Contributor

What are the changes introduced in this PR?

This PR includes multiple fixes and improvements related to new Shopify Pixel source configuration, event ingestion, and data transformation in alignment with RudderStack standards.

Fixes & Updates:

  • Pixel Events: Removed context.traits to avoid unnecessary data inclusion.
  • Server-Side Events: Ensured that any profile details are always present in context.traits (traits object should not be included in identify payloads).
  • Page Viewed Event: Duplicated context.page data into properties, as it was previously empty.
  • Payment Events: Used token as checkout_id in payment_info_submitted and similar events while cleaning up unnecessary properties.
  • Attribute Naming: Standardized attributes to follow the JS SDK conventions.
  • Null Cleanup: Cleaned up null values post-transformation of payloads.
  • Customer Webhooks: Removed identify calls triggered by customer_create and customer_update webhooks.
  • Pixel Events Timestamp: Added originalTimestamp for pixel events.
  • Event Parity: Ensured parity with RudderStack's standard event fields.
  • Contextual Data Mapping: Parsed contextual data from Shopify to align with the RudderStack schema while maintaining a raw copy in shopifyDetails.context to reduce redundant columns in Webhooks.
  • UTM Parameters: Re-checked and stripped out utm_ keyword from UTM transformations.
  • Traits Standardization: Enforced usage of context.traits instead of traits.

What is the related Linear task?

Resolves INT-3333

Please explain the objectives of your changes below

Put down any required details on the broader aspect of your changes. If there are any dependent changes, mandatorily mention them here

Any changes to existing capabilities/behaviour, mention the reason & what are the changes ?

N/A

Any new dependencies introduced with this change?

N/A

Any new generic utility introduced or modified. Please explain the changes.

N/A

Any technical or performance related pointers to consider with the change?

N/A

@coderabbitai review


Developer checklist

  • My code follows the style guidelines of this project

  • No breaking changes are being introduced.

  • All related docs linked with the PR?

  • All changes manually tested?

  • Any documentation changes needed with this change?

  • Is the PR limited to 10 file changes?

  • Is the PR limited to one linear task?

  • Are relevant unit and component test-cases added in new readability format?

Reviewer checklist

  • Is the type of change in the PR title appropriate as per the changes?

  • Verified that there are no credentials or confidential data exposed with the changes.

@yashasvibajpai yashasvibajpai self-assigned this Mar 18, 2025
@yashasvibajpai
yashasvibajpai requested a review from a team March 18, 2025 09:51
@devops-github-rudderstack

Copy link
Copy Markdown
Contributor

Allure Test reports for this run are available at:

@krishna2020
krishna2020 merged this pull request into chore.shopify-v2-migration Mar 18, 2025
@krishna2020
krishna2020 deleted the chore.shopify.bugbash.transformations branch March 18, 2025 13:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants