Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adds external_catalog_id and integration_key to M2 events. #320

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

cykolln
Copy link
Contributor

@cykolln cykolln commented Mar 4, 2025

Description

Adds external_catalog_id and integration_key to the two events that are shipped from the magento 2 extension: Viewed Product, and Added to Cart.

Manual Testing Steps

  1. Tested locally on a multi-storefront account, making sure the correct catalog ids were used.
  2. Going to run through the playwright tests

Pre-Submission Checklist:

  • You've updated the CHANGELOG following the steps here
  • Internal Only - If this is a release, please confirm the following:
    • The links in the changelog have been updated to point towards the new versions
    • The version has been incremented in the following places: module.xml and composer.json

NOTE: Please use the Changelogger cli tool to manage versioned file upgrades.

@cykolln cykolln force-pushed the 202503_poc_external_catalog_id branch from 3f69d61 to d6203c8 Compare March 26, 2025 18:59
@cykolln cykolln changed the title POC Adds external_catalog_id and integration_key to M2 events. Mar 26, 2025
@cykolln cykolln marked this pull request as ready for review March 26, 2025 19:11
@cykolln cykolln requested a review from a team as a code owner March 26, 2025 19:11
@@ -396,8 +394,7 @@ public function buildEventProperties($eventProperties, $time, $metric)
self::DATA_KEY_PAYLOAD => array(
self::TYPE_KEY_PAYLOAD => self::METRIC_KEY_PAYLOAD,
self::ATTRIBUTE_KEY_PAYLOAD => array(
self::NAME_KEY_PAYLOAD => $metric,
self::SERVICE_PAYLOAD_KEY => self::MAGENTO_TWO_INTEGRATION_SERVICE_KEY
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

removed this, its wrong!

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

a) we don't want this branded, which is what service does
b) the integration key is incorrect anyways - magento_two not magentotwo

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.

1 participant