Build custom functions with Code
About this course
This course introduces Code, an Integrated Development Environment (IDE) directly in Klaviyo's Advanced KDP. Code allows you to run functions directly in Klaviyo in response to Klaviyo events. Writing Code functions allows you to build unique customer experiences, simplify your tech stack, and save you time and money, all while increasing your functions' security. Get creative and start coding in Klaviyo today.
By the end of this course, you should be able to:
- Communicate the business benefits of using Code.
- Determine when to use Code vs webhooks.
- Use all components of the Code editor.
- Implement a custom function in the Code editor that triggers based on desired events logged in Klaviyo.
- Troubleshoot function errors.
- Create functions for your business needs.
Take this course if:
You want to create unique customer experiences by running custom code directly in Klaviyo.
Prerequisites:
In order to write and edit functions in Code, you will need to have prior knowledge of Python or JavaScript.
However, you can still take this course if you do not know how to write code. This course will provide an overview of what Code is and how it can benefit your business, and it will also introduce a library of pre-written Code recipes that can typically be run with minimal configuration.
Course outline
Lessons
- What is Code?
- Choose when to use Code over webhooks
- Knowledge check
- Navigate the Code editor
- Create and test a function
- Monitor your functions with logs
- Knowledge check
- Restructure event data for use in segmentation
- Use Code to consolidate your tech stack
- Import modules to expand the power of your functions
- Start building with Code
- Final exam
- Resources
- Feedback