Skip to main content
Problem Solver III
May 1, 2024
Solved

Image array in Event Data

  • May 1, 2024
  • 2 replies
  • 118 views

Hey All,

wondering if I can send multiple image URLS on the. view product event, and if so would it be an array?

 

Cheers

 

Chris 

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

    You could create a custom Viewed Product script snippet and send in an array in the JSON body, and then, say, iterate through that array in an email template, or access only certain indices of it.

    2 replies

    saulblumAnswer
    Klaviyo Employee
    May 1, 2024

    You could create a custom Viewed Product script snippet and send in an array in the JSON body, and then, say, iterate through that array in an email template, or access only certain indices of it.

    chrisBAuthor
    Problem Solver III
    May 1, 2024

    Hey Saulblum, 

     

    Thanks for your response. 

    I think its worth doing. I see no reason why I cant send an array and then just reference [0] on the main image, if I don’t set a featured_image in the payload. 

     

    Looks like arrays are supported in the payload natively. 

     

    I sometimes know things...