Interactive images interactive-images
You can easily make static images rich, engaging experiences for customers by dragging and dropping “shoppable” hotspots onto an image. Shoppable hotspots combine additional information about a product or service with a direct, point-of-sale “Add to cart” or “Buy” capability. Customers can select these hotspots and be linked directly to the product or service, add it to a shopping cart, or be linked to a web page. Direct experiences such as these increase customer engagements and conversions on your web site.
The following is a shoppable banner with a Quickview pop-up. A user activates the Quickview by selecting the circle or “hotspot” on the model.
See interactive images in action on the web page above by going to the following:
Watch how interactive image banners are created watch-how-interactive-image-banners-are-created
Play a walkthrough on how interactive image banners are created (10 minutes and 33 seconds). You also learn how to preview, edit, and deliver interactive image banners.
Quick Start: Interactive Images quick-start-interactive-images
The following step-by-step workflow description is designed to help you get up and running quickly with interactive images in Adobe Experience Manager Assets.
Look for the Example heading within some of the Quick Start tasks. It contains a brief tutorial that is based on the following web page example that does not yet have Interactive Images added to it:
The tutorial helps to illustrate the steps of integrating interactive images on your own website.
Interactive Images steps:
-
(Optional) Identify hotspot variables – If you use Experience Manager Assets and Dynamic Media standalone, start by identifying dynamic variables used in your existing Quickview implementation. Then, you can enter hotspot data when creating the interactive image. See (Optional) Identify hotspot variables.
However, if you use Adobe Experience Manager Sites, or Adobe Experience Manager eCommerce, or both, then this step is not necessary.
See eCommerce concepts in Experience Manager Assets. -
(Optional) Create an Interactive Image viewer preset – Customize the graphic image that is used to represent hotspots. Creating your own Interactive Image viewer preset is not required if you intend to use the out-of-the-box Interactive Image viewer preset named
Shoppable_Banner
instead.
See (Optional) Create an Interactive Image viewer preset. -
Upload an image banner – Upload image banners that you want to make interactive.
See Upload an image banner. -
Add hotspots to an image banner – Add one or more hotspots to an image banner and associate each one with an action such as a hyperlink, a Quickview, or an Experience Fragment. After you add hotspots, you will finish this task by publishing the interactive image.
- See Add hotspots to an image banner.
- See Preview interactive images - Optional. If desired, you can view a representation of your shoppable banner and test its interactivity.
- See Publish Assets for details on how to publish interactive image assets.
-
Add an interactive image to your website – If you use Experience Manager Sites or eCommerce, or both, you can add the interactive image to a web page in Experience Manager. Drag the Interactive Media component onto the page. See Add Dynamic Media Assets to Pages.
If you use Experience Manager Assets and Dynamic Media standalone, you must copy the embed code on your website and then integrate it with your existing Quickview. See Integrate an interactive image with your website.
If you are using a third-party WCM (Web Content Manager), you must integrate the new interactive video with the existing Quickview implementation that is used on your website. See Integrate an interactive image with an existing Quickview.
(Optional) Identify hotspot variables optional-identifying-hotspot-variables
- You want to add interactivity to your image by triggering to Quickview.
- Your implementation of Experience Manager does not use an eCommerce integration framework for pulling product data into Experience Manager from any eCommerce solution such as IBM® WebSphere® Commerce, Elastic Path, hybris, or Intershop. See eCommerce concepts in Experience Manager Assets.
Start by identifying dynamic variables used by your existing Quickview implementation so that you can enter hotspot data to create the interactive image.
When you add hotspots to a banner image in Experience Manager Assets, you must assign a SKU (Stock Keeping Unit and optional extra variables to each hotspot. Such hotspot variables are used later to match hotspots with Quickview content.
It is important to properly identify the number and type of variables to associate with hotspot data. Each hotspot added to a banner image must carry enough information to unambiguously identify the product in the existing backend system.
There are different ways to identify a set of variables to use for hotspot data.
Sometimes it is enough to consult with IT specialists responsible for the existing Quickview implementation. IT specialists are likely to know what is the minimum set of data required for identification of Quickview in the system. However, it is also possible to simply analyze the existing behavior of the front-end code.
Most Quickview implementations use the following paradigm:
- User activates a user interface element on the website. For example, selecting a “Quickview” button.
- The website sends an Ajax request to the backend to load the Quickview data or content, if needed.
- The Quickview data is translated into the content in preparation for rendering on the web page.
- Finally, the front-end code visually renders such content on the screen.
The approach then is to visit different areas of the existing website where the Quickview feature is implemented. Then you trigger the Quickview and capture the Ajax URL sent by web page for loading the Quickview data or content.
Normally there is no need for you to use any specialized debugging tools. Modern web browsers feature web inspectors that do an adequate job. The following are a few examples of web browsers that include web inspectors:
-
To see all outgoing HTTP requests in Google Chrome, press F12 to open the Developer Tools panel, and then select the Network tab.
On a Mac, press Command+Option+I to open the Developer Tools panel, then select the Network tab. -
In Firefox, you can either activate the Firebug plug-in by pressing F12 and use its Net tab, or you can use the built-in Inspector tool and its Network tab.
On a Mac, press Command+Option+I to open the Developer Tools panel, then select the Inspector tab.
When network monitoring is turned on in the browser, trigger the Quickview on the page.
Now find the Quickview Ajax URL in the network log and copy the recorded URL for future analysis. Usually, when you trigger the Quickview there are numerous requests that are sent out to the server. Typically, the Quickview Ajax URL is one of the first in the list. It has either a complex query string portion or path, and its response MIME type is either text/html
, text/xml
, or text/javascript
.
During this process, it is important to visit different areas of your website, with different product categories and types. The reason is that Quickview URLs can have parts that are common for a given website category, but change only if you visit a different area of the website.
In the simplest case, the only variable part in the Quickview URL is the product SKU. In this case, the SKU value is the only data piece that you need for adding hotspots to the banner image.
However, in complex cases, the Quickview URL has varying elements that differ in addition to the SKU, such as category ID, color code, and size code. In such cases, every element is a separate variable in your hotspot data definition in the shoppable interactive image feature in Experience Manager Assets.
Consider the following examples of Quickview URLs and their resulting hotspot variables:
Example
You can apply the same approach used in the three examples above to the demo web page:
The demo web page has several product thumbnails, each having a Quickview button labeled “See More”. With your web browser’s debugging tool still activated, select each button and note the recorded Quickview URLs. After you activate all four product Quickview’s that are available on the page, you have the following list of Quickview requests made to the backend:
/datafeed/Male-Windbreaker.json
/datafeed/Male-SimpleHenley.json
/datafeed/Male-CamoPullover.json
/datafeed/Female-QuiltedDownJacket.json
Looking at the server calls, you see that product-specific information is only present in the request path. You also notice that the query string is not used at all and there are two distinct types of data pieces involved:
- The first type is Male or Female. You can call this “product category”.
- The second type is product name, such as CamoPullover. You can assume that this information is the product SKU.
Given this information, the entire Quickview URL has the following pattern:
/datafeed/$categoryId$-$SKU$.json
Based on such analysis, you would use categoryId
and SKU
for hotspots.
You are now ready to upload an image banner and add hotspots to it using the shoppable interactive image feature in Experience Manager Assets.
(Optional) Create an Interactive Image viewer preset optional-creating-an-interactive-image-viewer-preset
You can choose to use the default, out-of-the-box Interactive Image viewer preset called Shoppable_Banner
that comes with Experience Manager Assets. Or you can create your own custom viewer preset for use with interactive images.
When you create a custom Interactive Image viewer preset, you can determine the look of hotspots on the image banner. As part of the creation of the viewer preset, you can choose to use a hotspot graphic from a gallery of pre-defined images.
After you save the viewer preset, it is automatically activated (turned on) on the Viewer Preset list page in Experience Manager Assets. This functionality means that it is visible in the Interactive Media component and whenever you view an asset. However, to deliver an interactive banner with this viewer preset, you must publish your viewer preset as well. This rule is true for custom or out-of-box viewer presets.
To create an Interactive Image viewer preset:
-
In the left rail, navigator to Tools > Assets > Viewer Presets.
-
Near the upper-right corner of the page, select Create.
-
In the New Viewer Preset dialog box, type a name to describe the interactive banner viewer preset.
The title appears in the Viewer Preset list page after you save.
-
In the Rich Media Type pull-down menu, select Interactive Image.
-
Select Create.
-
On the Edit Viewer Preset page, select the Appearance tab.
-
Do one of the following:
- To upload your own hotspot image that you want to use on images, select the Asset Picker icon. In the Select Content page, navigate to the hotspot image you want to use, select it, and then select the Check Mark icon in the upper-right corner.
- To select a predefined hotspot image, select the Hotspot Gallery icon. On the hotspot gallery palette, select the hotspot image you want to use.
-
Near the upper-right corner of the page, select Save.
Be sure you publish the new viewer preset.
See Publishing Viewer Presets That You Have Added.
You are now ready to upload an image banner.
Upload an image banner uploading-an-image-banner
If you have already uploaded the images that you want to use, advance to the next step, Adding hotspots to an image banner.
To upload an image banner:
-
Upload image banners that you want to make interactive.
See Uploading assets.
You are now ready to add hotspots to the image banner; see the next task below.
Add hotspots to an image banner adding-hotspots-to-an-image-banner
You can add hotspots to an image banner using the editor on the Hotspot Management page.
When you add hotspots, you can define them as a Quickview pop-up display, as a hyperlink, or an Experience Fragment.
See Experience Fragments.
Undo and Redo options, near the upper-right corner of the page, are supported during your current creation/editing session.
When you finish creating your interactive image, you can use Preview to see a representation of how your interactive image appears to customers.
See (Optional) Preview interactive images.
To add hotspots to an image banner:
-
In the Assets view, navigate to the image banner that you want to make interactive.
-
Do one of the following:
-
Hover on the image, then select Select (checkmark icon). On the toolbar, select Edit.
-
Hover on the image, then select More actions (three dots icon) Edit.
-
Select the image so you can open it in the Detail View page. On the toolbar, select Edit.
-
-
Near the upper-left corner of the page, select Add Hotspot (finger select icon) to open the Hotspot management page.
-
Near the upper-left corner of the page, select Hotspot.
- Near the upper-left corner of the Hotspot Management page, select Hotspot.
- On the image, select a location where you want the hotspot to appear. If necessary, drag the hotspot to adjust its location.
- Add extra hotspots as necessary by repeating steps a and b.
- (Optional) To delete a hotspot, select it on the image, then select Delete (trashcan icon) under the Hotspots heading.
-
In the Name text field, type the name of the hotspot. This name also appears in the Selected Hotspot drop-down list.
-
Do one of the following:
-
Select Quickview.
-
If you are an Experience Manager Sites or eCommerce customer, select the Product Picker icon (magnifying glass) to open the Select Product page. Select the product that you want to use, then select Select in the upper-right corner of the page so you can return to the Hotspot management page.
-
If you are not an Experience Manager Sites or eCommerce customer
- See Identify hotspot variables; you must define these variables.
- Then, manually enter the SKU value. In the SKU Value text field, type the product’s SKU (Stock Keeping Unit), which is a unique identifier for each distinct product or service that you offer. The entered SKU value automatically populates the variable portion of the Quickview template so that the system knows to associate the selected hotspot with a particular SKU’s Quickview.
- (Optional) If there are other variables within the Quickview that you must use to further identify a product, select Add Generic Variable. In the text field, specify an extra variable. For example,
category=Males
is an added variable.
-
-
Select Hyperlink.
- If you are an Experience Manager Sites customer, select the Site Selector icon (folder) to navigate to a URL. The URL-based method of linking is not possible if your interactive content has links with relative URLs, particularly links to Experience Manager Sites pages.
- If you are a standalone customer, in the HREF text field, specify the full URL path to a linked web page.
Be sure you specify whether to open the link in a new browser tab (recommended default) or the same tab.
See Work with Selectors for more information.
-
Select Experience Fragment.
-
If you are an Experience Manager Sites customer, select the Search icon (magnifying glass) to open the Experience Fragment page. Select the Experience Fragment you want to use, then select Select in the upper-right corner of the page so you can return to the Hotspot management page.
See Experience Fragments. -
Specify the width and height of the Experience Fragment as you want it to appear on the banner.
note note NOTE The social media sharing tools in Interactive Image are not supported when you embed the viewer in an Experience Fragment. To work around this issue, you can use or create viewer presets that do not have social media sharing tools. Such viewer presets let you successfully embed it in Experience Fragments.
-
-
-
Select Save to save your work and return to the Browse page.
-
Publish the interactive image. Publishing allows for the banner to be delivered through the cloud and also generates embed code if you require to integrate with a third-party website.
See Publish assets.
After you have added hotspots and published the interactive image, you are now ready to add it to your existing website.
See Integrate an interactive image with your website.
note note NOTE If you are editing interactive images with hotspots and crop the image, your hotspots are deleted.
(Optional) Preview interactive images optional-previewing-interactive-images
You can use Preview to see a representation of how your interactive image appears to customers and to test the image’s hotspots to ensure they are behaving as expected.
When you are satisfied with the interactive image, you can publish it.
See Embed the Video or Image Viewer on a Web Page.
See Link URLs to your web application. The URL-based method of linking is not possible if your interactive content has links with relative URLs, particularly links to Experience Manager Sites pages.
See Add Dynamic Media Assets to Pages.
To preview interactive images:
- In the Assets view, navigate to an existing interactive image that you have created and select to open it in Preview.
- Near the upper-left corner of the Preview page, in the Content drop-down list, select Viewers.
- In the Viewers list, select Shoppable_Banner or the name of the interactive image viewer preset you have created.
- Select hotspots on the image if you want to test their associated actions.
Publish interactive image assets publishing-interactive-image-assets
See Publish assets for details on how to publish interactive image assets.
Integrate an interactive image with your website integrating-an-interactive-image-with-your-website
After you have uploaded a banner image, added hotspots to the image, and published the interactive image, you are now ready to add it to your website page.
If you are an Experience Manager Sites customer, you can add the interactive image by dragging the Interactive Media component onto your page. See Add Dynamic Media Assets to Pages.
If you are a standalone Experience Manager Assets customer, you can manually add the interactive image to your website as described in this section.
-
Copy the published interactive image’s embed code.
See Embed the Video or Image Viewer on a Web Page. -
Add the copied embed code on the desired location within the webpage.
The copied embed code is set for a responsive environment so it automatically fits the assigned area.
Example
Using the demo website as an example:
Notice that the picture of the three males is a static IMG
tag:
<img class="img-responsive" width="100%" title="Hero Image 2" alt="Hero Image 2" src="images/shoppable-banner.jpg">
Integration is as simple as removing the IMG
tag and replacing it with the copied embed code from Experience Manager Assets. You can see the result in the following URL which shows the shoppable interactive image on the page with three circle hotspots:
To apply a “crop” to a shoppable interactive image for a responsive environment, you can include the Interactive Image configuration attribute ZoomView.iscommand
to the path. The component ZoomView
is called and iscommand
is the “crop” image serving command that you apply.
See ZoomView.iscommand configuration attribute.
See crop image serving command.
You are now ready to integrate the interactive image with an existing Quickview on your website.
Integrate an interactive image with an existing Quickview integrating-an-interactive-image-with-an-existing-quickview
The last step in this process is integrating the interactive image with an existing Quickview implementation on your website. There is no solution to the integration that works for all cases. Every Quickview implementation is unique and a specific approach is needed. It likely involves the assistance of a front-end IT person.
The existing Quickview implementation normally represents a chain of inter-related actions that happen on the web page in the following order:
- A user triggers an element in the user interface of your website.
- The front-end code obtains a Quickview URL based on the user interface element that was triggered in step 1.
- The front-end code sends an Ajax request using the URL obtained in step 2.
- The backend logic returns the corresponding Quickview data or content back to the front-end code.
- The front-end code loads the Quickview data or content.
- Optionally, the front-end code converts the loaded Quickview data into an HTML representation.
- The front-end code displays a modal dialog box or panel and renders the HTML content on the screen for the end user.
These calls do not represent independent public API calls which can be called by the web page logic from an arbitrary step. Instead, it is a chained call where every next step is hidden in the last phase (callback) of the previous step.
At the same time that the shoppable interactive image is replacing step 1, and partially step 2, when a user selects a hotspot inside the shoppable image, such user interaction is handled by the viewer. The viewer returns an event to the web page that contains all the hotspot data previously added to Experience Manager Assets.
In such an event handler, the front-end code does the following:
- Listens to an event emitted by the shoppable interactive image.
- Constructs a Quickview URL based on the hotspot data.
- Triggers the process of loading the Quickview from the backend and rendering it on the screen for display.
The embed code returned by Experience Manager Assets already has a ready-to-use event handler in place that is commented out, as seen in the following highlighted code snippet:
var s7interactiveimageviewer = new s7viewers.InteractiveImage({
"containerId" : "s7interactiveimage_div",
"params" : {
"serverurl" : "https://aodmarketingna.assetsadobe.com/is/image",
"contenturl" : "https://aodmarketingna.assetsadobe.com/",
"config" : "/etc/dam/presets/viewer/Shoppable_Media",
"asset" : "/content/dam/mac/aodmarketingna/shoppable-banner/shoppable-banner.jpg" }
})
/* // Example of interactive image event for Quickview.
s7interactiveimageviewer.setHandlers({
"quickViewActivate": function(inData) {
var sku=inData.sku; //SKU for product ID
//To pass other parameter from the hotspot, you must add custom parameter during the hotspot setup as parameterName=value
loadQuickView(sku); //Replace this call with your Quickview plugin
//See your Quickviewer plugin for the Quickview call
},
});
*/
s7interactiveimageviewer.init();
So, it is only necessary to uncomment the code and replace the dummy handler body with the code that is specific to the particular web page.
The process of constructing the Quickview URL is opposite of the process used for identifying hotspot variables covered earlier.
See Identify hotspot variables.
Using the previous Quickview URL examples, you can see in the following examples, how the Quickview URL is constructed in each case:
The last step to trigger the Quickview URL and activate the Quickview panel most likely requires the assistance of a front-end IT person from your IT department. They have the knowledge to know best how to accurately trigger the Quickview implementation from the proper step, having a ready-to-use Quickview URL.
You can see how these steps are applied to the demo website to fully integrate a shoppable interactive image with the Quickview code. Earlier, the structure of the Quickview URL was identified as the following:
/datafeed/$categoryId$-$SKU$.json
To reconstruct this URL inside the quickViewActivate
handler, you can use the categoryId
and SKU
fields available in the inData
object that is passed to the handler by the viewer’s code:
var sku=inData.sku;
var categoryId=inData.categoryId;
var quickViewUrl = "datafeed/" + categoryId + "-" + sku + ".json";
The demo website is triggering the Quickview dialog box using a simple loadQuickView()
function call. This function takes only one argument, which is the Quickview data URL. As such, the last step to integrate the shoppable interactive image is to add the following line of code to the quickViewActivate
handler:
loadQuickView(quickViewUrl);
The following is the complete source code:
var s7interactiveimageviewer = new s7viewers.InteractiveImage({
"containerId" : "s7interactiveimage_div",
"params" : {
"serverurl" : "https://aodmarketingna.assetsadobe.com/is/image",
"contenturl" : "https://aodmarketingna.assetsadobe.com/",
"config" : "/etc/dam/presets/viewer/Shoppable_Media",
"asset" : "/content/dam/mac/aodmarketingna/shoppable-banner/shoppable-banner.jpg" }
})
s7interactiveimageviewer.setHandlers({
"quickViewActivate": function(inData) {
var sku=inData.sku;
var categoryId=inData.categoryId;
var quickViewUrl = "datafeed/" + categoryId + "-" + sku + ".json";
loadQuickView(quickViewUrl);
},
});
s7interactiveimageviewer.init();
The final demo website with the fully integrated interactive image looks like the following:
Use Quickview to create custom pop-ups using-quickviews-to-create-custom-pop-ups
See Create custom pop-ups using Quickview.