Skip to main content
Contributor I
December 18, 2025
Solved

How to use Code (Node.js) to enrich profile custom properties?

  • December 18, 2025
  • 3 replies
  • 121 views

I set up a Code, triggered by a custom event.
The idea was that when that event was triggered, a new attribute is calculated and added to the profile custom properties.
The problem is that the Code is never triggered, I set it live and I tested it and it works as expected within the test, but despite several events, I see the logs tab empty.
I also tried to use the “webhook success” trigger (with some filtering to only use the right webhook), but doesn’t work as well.

Best answer by tonydev

@whereisjad https://help.klaviyo.com/hc/en-us/articles/18620644491035

3 replies

whereisjad
Expert Problem Solver IV
Expert Problem Solver IV
December 18, 2025

@tonydev could you shed more light on what Code is specifically? Show us what it is and the flow it is setup to trigger or flow it is within

— Jad A | Klaviyo + Shopify + API Integrations Specialist • 7+ Years' Experience Helping with new setups, seamless integrations, and API connections—happy to connect. http://ja-technical-consulting.xyz/
tonydevAuthorAnswer
Contributor I
December 19, 2025
whereisjad
Expert Problem Solver IV
Expert Problem Solver IV
December 19, 2025

@tonydev thats not what I asked for.  I know about the feature, I am asking about what you specifically set up for it

— Jad A | Klaviyo + Shopify + API Integrations Specialist • 7+ Years' Experience Helping with new setups, seamless integrations, and API connections—happy to connect. http://ja-technical-consulting.xyz/