Skip to main content
Solved

How can we synchronize Magento 2 customer profile IDs inside Klaviyo


Forum|alt.badge.img+1

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?

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! 😉

View original
Did this topic or the replies in the thread help you find an answer to your question?

3 replies

stephen.trumble
Community Manager
Forum|alt.badge.img+60

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!


Forum|alt.badge.img+1

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
Forum|alt.badge.img+31
  • Community Manager
  • 499 replies
  • Answer
  • 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! 😉