Analyze image types via Snapshots

eCommerce companies often AB test their images. But how can you tell which type of photography converts best: a lifestyle action shot vs a standard product shot? This example captures the name of the image file when clicked. Assuming you have some semantic data in the title that denotes the shot type, you can use this data within a Defined Property to analyze the effectiveness of different image types.

Name: Image

JavaScript Snapshot:

$(event.target).attr('src').split('/').pop()

📘

This example requires jQuery to execute correctly.