Solved

Using variables for images in In-app messages

  • 11 December 2023
  • 2 replies
  • 32 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!

icon

Best answer by Byron 11 December 2023, 18:42

View original

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?

Userlevel 2

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