Skip to main content
Solved

Using variables for images in In-app messages

  • December 11, 2023
  • 2 replies
  • 148 views

I can’t seem to figure this out - and would be a shame if this isn’t supported yet because it seems like such an integral part of creating re-usable in-app messages. 

Is is possible to use variables for images within in-app messages? This way you could build a re-usable in-app message for product announcements and more

 

If not, this would be such a great feature request, and I’d be surprised if it’s not already possible!

Best answer by Byron

Hi Addison,

That’s correct, you could use $properties.image_url in the in-app message, which adds a field named image_url to in-app messages using that template in campaigns or broadcasts. The image_url field can either use a liquid variable to render an image URL from a profile attribute, or you can insert an image URL directly into the field to render the same image for everyone.

 

You can use the CIO asset library to host and display the images! You’ll want to use the sidebar to navigate to Content > Assets and upload your images there. Then, copy the image URL and paste it into the image_url field that is created by the $properties.image_url variable.

 

https://customer.io/docs/journeys/in-app-messages/#template-variables

 

View original
Did this topic help you find an answer to your question?

2 replies

It seems like you could use $properties.image_url - but that would mean all of the images would be need to be self hosted? It would be great if there was a way to use the built in image/asset library, where the images are hosted on Customer.IO’s side?


Byron
  • 69 replies
  • Answer
  • December 11, 2023

Hi Addison,

That’s correct, you could use $properties.image_url in the in-app message, which adds a field named image_url to in-app messages using that template in campaigns or broadcasts. The image_url field can either use a liquid variable to render an image URL from a profile attribute, or you can insert an image URL directly into the field to render the same image for everyone.

 

You can use the CIO asset library to host and display the images! You’ll want to use the sidebar to navigate to Content > Assets and upload your images there. Then, copy the image URL and paste it into the image_url field that is created by the $properties.image_url variable.

 

https://customer.io/docs/journeys/in-app-messages/#template-variables

 


Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings