Klaviyo native functions | vendrux Docs

Written by

in

,

Vendrux’s Klaviyo integration includes several native functions that allow you to manage user profiles and attributes with ease. In this guide you will find a list of available functions with examples and more details on how to use them.

klaviyoSetExternalUserId

This function sets a new external ID for a user profile and deactivates any old profiles associated with the previous external ID.

Example:

	nativeFunctions.klaviyoSetExternalUserId('12345')

klaviyoSetEmail

This function sets the email address for a user profile.

Example:

	nativeFunctions.klaviyoSetEmail('john@gmail.com')

klaviyoSetPhoneNumber

This function sets the phone number for a user profile.

Example:

	nativeFunctions.klaviyoSetPhoneNumber('+3059999999')

klaviyoSendAttributes

This function sets the specified attributes as true for a user profile.

Example:

	nativeFunctions.klaviyoSendAttributes(['tag_name'])

klaviyolDeleteAttributes

This function sets the specified attributes as false for a user profile.

Example:

	nativeFunctions.klaviyolDeleteAttributes(['tag_name'])

klaviyoSetAttributes

This function sets attributes with custom values for a user profile. Ensure you use JSON.stringify() to format the values correctly.

Example:

	nativeFunctions.klaviyoSetAttributes(JSON.stringify({'tag_name_1': false, 'tag_name_2': true}))

Comments

Leave a Reply

Your email address will not be published. Required fields are marked *