Skip to main content
Solved

Adding Profile Property via button trigger

  • August 27, 2024
  • 4 replies
  • 99 views

Forum|alt.badge.img

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!

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

 

View original
Did this topic or the replies in the thread help you find an answer to your question?

4 replies

ArpitBanjara
Principal User I
Forum|alt.badge.img+36
  • Principal User I
  • 371 replies
  • Answer
  • 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

 


Forum|alt.badge.img+8
  • Problem Solver III
  • 25 replies
  • 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?


Forum|alt.badge.img
  • Author
  • Contributor I
  • 1 reply
  • 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 I
Forum|alt.badge.img+36
  • Principal User I
  • 371 replies
  • 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