Skip to main content
Contributor I
January 31, 2024
Solved

How can we synchronize Magento 2 customer profile IDs inside Klaviyo

  • January 31, 2024
  • 3 replies
  • 285 views

We already have an integration set up with Magento 2, and it's functioning well. However, I'm interested in whether the customer profile ID within Magento for customers is synchronized with Klaviyo. If not, is there a method to achieve this synchronization for all existing customers and the new ones?

    This topic has been closed for replies.
    Best answer by kaila.lawrence

    Hey @SushantTrimukhe, I’m stepping in for Stephen here. 

     

    Unfortunately, Magneto does not sync Customer ID as part of the payload when syncing customer profiles, only the Customer Groups mentioned above. The only way for you to get the the Customer ID would be to use the API and create a custom event to pass that data.

     

    I’ve moved this thread to the Developer Group where way more tech-savvy people than I can advise you further! 😉

    3 replies

    stephen.trumble
    Klaviyo Alum
    February 1, 2024

    Hey @SushantTrimukhe 

    Thanks for reaching out for help!

    As explained here, Klaviyo adds the MagentoCustomerGroup (customer id) to a profile from the creation of an existing order, an existing customer record, or when a checkout is started. 
    If customer profiles already exist in Klaviyo, the MagentoCustomerGroup property will not be updated until the customer starts a checkout or places an order.

    Hope this helps!

    -Stephen
    Contributor I
    February 1, 2024

    Thank you, @stephen.trumble , for your prompt response!

    Upon reviewing the information in the MagentoCustomerGroup field, it appears to contain descriptive data such as "Wholesale," "SoftCustomers," etc. However, what I specifically require is the Magento Customer ID, a unique identifier assigned to each customer in Magento.

    If you have any documentation or guidance on extracting this ID within Klaviyo, your assistance would be greatly appreciated.

     

    kaila.lawrence
    Community Manager
    Community Manager
    February 2, 2024

    Hey @SushantTrimukhe, I’m stepping in for Stephen here. 

     

    Unfortunately, Magneto does not sync Customer ID as part of the payload when syncing customer profiles, only the Customer Groups mentioned above. The only way for you to get the the Customer ID would be to use the API and create a custom event to pass that data.

     

    I’ve moved this thread to the Developer Group where way more tech-savvy people than I can advise you further! 😉