Skip to main content
Contributor I
January 4, 2023
Solved

How to use "new" Klaviyo Client APIs

  • January 4, 2023
  • 1 reply
  • 90 views

Is there any changes we would need to make to start using the new client side apis, we still  use _learnq , should we use the new Klaviyo Object or make our own API calls?

    This topic has been closed for replies.
    Best answer by Brian Turcotte

    Hi @ghosh and welcome to the Community!

     

    Here is the Comparison chart for the New vs. Legacy APIs if you haven’t already seen it:

    As far as using _learnq vs. the new klaviyo object, we do recommend using klaviyo because of its expanded features and broad support for callbacks, promises, and functions. However, we will continue to support the functionality of legacy objects such as _learnq and klOnsite for some time, so that sites using them will not break and you will have time to adopt the new klaviyo object.

     

    Here are the Developer docs explaining this in more detail:

     

    I hope this helps to clarify, and thanks for using the Community!

     

    Best,

    Brian

    1 reply

    Brian Turcotte
    Klaviyo Alum
    January 5, 2023

    Hi @ghosh and welcome to the Community!

     

    Here is the Comparison chart for the New vs. Legacy APIs if you haven’t already seen it:

    As far as using _learnq vs. the new klaviyo object, we do recommend using klaviyo because of its expanded features and broad support for callbacks, promises, and functions. However, we will continue to support the functionality of legacy objects such as _learnq and klOnsite for some time, so that sites using them will not break and you will have time to adopt the new klaviyo object.

     

    Here are the Developer docs explaining this in more detail:

     

    I hope this helps to clarify, and thanks for using the Community!

     

    Best,

    Brian