Skip to main content
Contributor I
August 27, 2024
Solved

Adding Profile Property via button trigger

  • August 27, 2024
  • 4 replies
  • 406 views

Hi there!

I am looking to add a profile property and value via button trigger.

I am looking to segment via cat owner or dog owner as a pet wellness brand. When they receive the email, they will click ‘Dog’ ‘Cat’ or ‘Both’. When they click this, ideally, they would have a profile property value added like ‘Dog, Cat or Both’, the value will update to the preference selected ie. Dog. I have gone through a few Klayvio Community pages and FAQ pages, however, I am still having trouble.

Is it because we are not ‘updating’ rather ‘adding’?

This is the button link I have currently. I have created these profile properties and the values for each preference. I am unsure where I am going wrong ☺️

{% update_property_link 'dogorcat' 'dogowner' 'https://www.petdrs.com.au/pages/dog-or-cat-owner' %}

Thank you!

    This topic has been closed for replies.
    Best answer by ArpitBanjara

    Hey @petdrs 

    Yes that is correct, here is the syntax - 

    {% update_property_link 'profile_property' 'property_value' 'redirect_link' %}

    So your syntax looks correct. 

    Can you add all these custom properties to your own profile in klaviyo manually first? and try this again. That should work.

    Let me know

    Thanks

    Arpit Banjara

     

    4 replies

    ArpitBanjara
    Principal User II
    Principal User II
    August 27, 2024

    Hey @petdrs 

    Yes that is correct, here is the syntax - 

    {% update_property_link 'profile_property' 'property_value' 'redirect_link' %}

    So your syntax looks correct. 

    Can you add all these custom properties to your own profile in klaviyo manually first? and try this again. That should work.

    Let me know

    Thanks

    Arpit Banjara

     

    Arpit Banjara - Lead Email Marketing Specialist at Flowium
    Problem Solver III
    August 27, 2024

    @ArpitBanjara would it be possible to update the profile property with {% today '%Y-%m-%d' as today %}? So we know the last time someone clicked on this button?

    https://mail-marketing.gr/ - Klaviyo Partner / Master Silver
    petdrsAuthor
    Contributor I
    August 27, 2024

    Hi @ArpitBanjara 

    I have added the Custom Profile Properties manually first to my test account and have been testing the link in a test email, however, I am still having no luck ☹️

    I have attached screenshots of it updated in my profile, as well as what I see when I click the link and see no profile property change.

    Do you have any other suggestions?

    Thank you!
     

     

    ArpitBanjara
    Principal User II
    Principal User II
    August 28, 2024

    Hey @petdrs 

    that’s correct, here is how you should try testing it

    send yourself an actual email (not the preview you send)

    Go to your profile and then click on “view messages”

    then click on send email

    select that template that you are using to update that property

    and then schedule to send it immediately 

    once you receive this email from Klaviyo, this is the actual email you are sending yourself from Klaviyo (not the preview email that you usually send)

    Click on the links and the properties should now be updated.

    Try to use some another email, if your email already has those properties.

    I hope this helps

    Cheers

    Arpit

    Arpit Banjara - Lead Email Marketing Specialist at Flowium