Visualizzazione del contenuto dell'aiuto per la versione :

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 tap or click 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 engagment and conversion on your web site.

The following is a shoppable banner with a quick view pop-up. A user activates the quick view by tapping the circle or "hotspot" on the model.

chlImage_1

See interactive images in action on the web page above by going to the following:

https://marketing.adobe.com/resources/help/en_US/dm/shoppable-banner/we-fashion-QVzoom/index2-shoppable.html

Watch how interactive image banners are created

Watch a 10 minute and 33 second walkthrough on how interactive image banners are created. You will also learn how to preview, edit, and deliver interactive image banners.

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 AEM Assets.

Look for the Example heading within some of the Quick Start tasks. It contains a brief tutorial, based on the following demo web page, to help illustrate the steps of integrating interactive images on your website:

https://marketing.adobe.com/resources/help/en_US/dm/shoppable-banner/we-fashion/landing-0.html

Interactive Images steps:

  1. (Optional) Identifying hotspot variables - If you use AEM Assets and Dynamic Media standalone, start by identifying dynamic variables used in your existing quick view implementation so that you can enter hotspot data when creating the interactive image. See (Optional) Identifying hotspot variables.
    However, if you use AEM Sites, or AEM eCommerce, or both, then this step is not necessary.
    See eCommerce concepts in AEM Assets.
  2. (Optional) Creating 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) Creating an Interactive Image viewer preset.
  3. Uploading an image banner -  Upload image banners that you want to make interactive.
    See Uploading an image banner.
  4. Adding hotspots to an image banner - Add one or more hotspots to an image banner and associate each one with an action such as a link or a Quick View. After you add hotspots, you will finish this task by publishing the interactive image.
    See Adding hotspots to an image banner.
    See Previewing interactive images - Optional. If desired, you can view a representation of your shoppable banner and test its interactivity.
  5. Adding an interactive image to your website or to your website in AEM
    If you use AEM Sites, or AEM eCommerce, or both, you can add the interactive image directly to a web page in AEM by dragging the Interactive Media component onto the page. See Adding Dynamic Media Assets to Pages.
    If you use AEM Assets and Dynamic Media standalone, you must copy the embed code on your website and then integrate it with your existing quick view. See Integrating 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 quick view implementation that is used on your website. See Integrating an interactive image with an existing quick view.

(Optional) Identifying hotspot variables

Nota:

This task is only required if the following are true:

  • You want to add interactivity to your image by triggering to Quick Views.
  • Your implementation of AEM does not use an eCommerce integration framework for pulling product data into AEM from any eCommerce solution such as IBM Websphere Commerce, Elastic Path, hybris, or Intershop. See eCommerce concepts in AEM Assets.

If your implementation of AEM uses eCommerce, you can skip this task and proceed to the next task.

Start by identifying dynamic variables used by your existing quick view implementation so that you can enter hotspot data to create the interactive image.

When you add hotspots to a banner image in AEM Assets you need to assign a SKU and optional additional variables to each hotspot. Such hotspot variables are used later to match hotspots with quick view 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 may be enough to consult with IT specialists responsible for the existing quick view implementation, as they are likely to know what is the minimum set of data needed to identify quick view in the system. However, in most cases it is also possible to simply analyze the existing behavior of the front-end code.

The majority of quick view implementations use the following paradigm:

  • User activates a user interface element on the website. For example, clicking a "Quick View" button.
  • The website sends an Ajax request to the backend to load the quick view data or content, if needed.
  • The quick view 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 quick view feature is implemented, trigger the quick view and capture the Ajax URL sent by web page for loading the quick view 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 click 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.

When network monitoring is turned on in the browser, trigger the quick view on the page.

Now find the quick view Ajax URL in the network log and copy the recorded URL for future analysis. In most cases when you trigger the quick view there are numerous requests that are sent out to the server. Typically, the quick view 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 quick view URLs may 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 quick view 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 quick view URL has different varying elements in addition to the SKU, such as category ID, color code, size code, and so forth. In such cases, every element is a separate variable in your hotspot data definition in the shoppable interactive image feature in AEM Assets.

Consider the following examples of quick view URLs and their resulting hotspot variables:

Single SKU, found in the query string.

The recorded quick view URLs include the following:

  • http://server/json?productId=866558&source=100

  • http://server/json?productId=1196184&source=100

  • http://server/json?productId=1081492&source=100

  • http://server/json?productId=1898294&source=100

The only variable part in the URL is the value of the productId= query string parameter, and it is clearly a SKU value. Therefore, our hotspots only need SKU fields populated with values like 866558, 1196184, 1081492, 1898294.

Single SKU, found in the URL path.

The recorded quick view URLs include the following:

  • http://server/product/6422350843

  • http://server/product/1607745002

  • http://server/product/0086724882

The variable part is in the last portion of the path, and it becomes the SKU value of the hotspots: 6422350843, 1607745002, 0086724882.

SKU and category ID in the query string.

The recorded quick view URLs include the following:

  • http://server/quickView/product/?category=1100004&prodId=305466

  • http://server/quickView/product/?category=1100004&prodId=310181

  • http://server/quickView/product/?category=1740148&prodId=308706

In this case, there are two varying parts in the URL. The SKU is stored in the prodId parameter and the category ID is stored in the category= parameter.

As such, the hotspot definitions are pairs. That is, a SKU value and an additional variable called categoryId. The resulting pairs are the following:

  • SKU is 305466 and categoryId is 1100004.

  • SKU is 310181 and categoryId is 1100004.

  • SKU is 308706 and categoryId is 1740148.

 

Example

You can apply the same approach used in the three examples above to the demo web page:

https://marketing.adobe.com/resources/help/en_US/dm/shoppable-banner/we-fashion/landing-0.html

The demo web page has several product thumbnails, each having a quick view button labeled “See More”. With your web browser's debugging tool still activated, click each button and note the recorded quick view URLs. After you activate all four product quick views available on the page, you have the following list of quick view requests made to the backend:

  • /datafeed/Men-Windbreaker.json
  • /datafeed/Men-SimpleHenley.json
  • /datafeed/Men-CamoPullover.json
  • /datafeed/Women-QuiltedDownJacket.json

Looking at these 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 Men or Women. You can call this "product category".
  • The second type is product name, such as CamoPullover. You can assume this is the product SKU.

Given this information, the entire quick view 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 AEM Assets.

(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 AEM 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 AEM 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 is true for custom or out-of-box viewer presets). 

To create an Interactive Image viewer preset:

  1. In the left rail, tap Tools > Assets > Viewer Presets.

  2. Near the upper-right corner of the page, tap Create.

  3. In the New Viewer Preset dialog box, type a name to describe the interactive banner viewer preset.
    This is the title that will appear in the Viewer Preset list page after you save.

  4. In the Rich Media Type pull-down menu, select Interactive Image.

  5. Tap Create.

  6. On the Edit Viewer Preset page, tap the Appearance tab.

  7. Do one of the following:

    • To upload your own hotspot image that you want to use on images, tap the Asset Picker icon. In the Select Content page, navigate to the hotspot image you want to use, select it, and then tap the Check Mark icon in the upper-right corner.
    • To select a predefined hotspot image, tap the Hotspot Gallery icon. On the hotspot gallery pallette, tap the hotspot image you want to use.
  8. Near the upper-right corner of the page, tap 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.

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:

  1. 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.

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 quick view pop-up display or as a hyperlink.

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 will appear to customers.

See (Optional) Previewing shoppable interactive images.

Nota:

When you add hotspots to an image in an Interactive Image or a Carousel Banner, the hotspot information is stored in the same metadata location--relative to the image's location--regardless of whether it is an Interactive Image or a Carousel Banner. This functionality means that you can easily re-use the same image--along with its defined hotspot data--in either viewer.

Be aware, however, that Carousel Banners support image maps on images that can also contain hotspots; an Interactive Image does not. Keep this in mind if you intend to create an Interactive Image or Carousel Banner that uses the same image. You may want to create Interactive Images and Carousel Banners using separate copies of the same image instead.

Nota:

If you are editing interactive images with hotspots and crop the image, your hotspots are removed.

To add hotspots to an image banner:

  1. In the Assets view, navigate to the image banner that you want to make interactive.

  2. Do one of the following:

    • On the toolbar, tap Enter Selection, then select the image. On the toolbar, tap Edit.
    • Tap the image to open it in the Detail View page. On the toolbar, tap Edit.
    • Hover over the image, select the drop menu, and tap Edit.

     

  3. Near the upper-left corner of the page, tap Add Hotspot. (finger tap icon)

  4. Near the upper-left corner of the page, tap Hotspot.

  5. On the image, tap a location where you want the hotspot to appear.

    If necessary, drag the hotspot to a new location. Add additional hotspots as necessary.

    To delete a hotspot, in the Selected Hotspot drop-down list, select the name of the hotspot you want to remove, then tap Delete near the upper-left corner of the page.

  6. In the Name text field, type the name of the hotspot. This name also appears in the Selected Hotspot drop-down list.

  7. Do one of the following:

    • Tap Quick View.
      • If you are an AEM Sites or eCommerce customer, tap or click the Product Picker icon (magnifying glass) to open the Select Product page. Tap or click the product you want to use, then tap the check mark in the upper-right corner of the page to return to the Carousel Banner Editor.
      •  If you are not an AEM Sites or eCommerce customer
        • See Identifying hotspot variables; you will need to 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 quick view template so that the system knows to associate the tapped hotspot with a particular SKU's quick view.
        • (Optional) If there are other variables within the quick view that you need to use to further identify a product, tap Add Generic Variable. In the text field, specify an additional variable. For example, category=Mens is an added variable.
    • Tap Hyperlink.
      • If you are an AEM Sites customer, tap or click the Site Selector icon (folder) to navigate to a URL.
      • 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.

  8. Tap Save.

  9. Tap Close to return to the Assets page.

  10. Publish the interactive image. Publishing allows for the banner to be delivered through the cloud and also generates embed code if you need to integrate with a third party website.

    See Publishing assets.

    After you have added hotspots and published the interactive image, you are now ready to add it to your existing website.

    See Adding a shoppable interactive image to your website landing page

    Nota:

    If you are editing interactive images with hotspots and crop the image, your hotspots are deleted.

(Optional) Previewing interactive images

You can use Preview to see a representation of what your interactive image will look like 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 Embedding the Video or Image Viewer on a Web Page.
See Linking URLs to your web application.
See Adding Dynamic Media Assets to Pages.

To preview interactive images:

  1. In the Assets view, navigate to an existing interactive image that you have created and tap to open it in Preview.

  2. Near the upper-left corner of the Preview page, in the Content drop-down list, tap Viewers.

  3. In the Viewers list, tap Shoppable_Banner or the name of the interactive image viewer preset you have created.

  4. Tap hotspots on the image to test their associated actions.

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 AEM Sites customer, you can add the interactive image by dragging the Interactive Media component onto your page. See Adding Dynamic Media Assets to Pages.

If you are a standalone AEM Assets customer, you can manually add the interactive image to your website as described in this section.

  1. Copy the published interactive image's embed code.
    See Embedding the Video or Image Viewer on a Web Page.
  2. Add the copied embed code on the desired location within the webpage. 
    The copied embed code is set for a responsive environment so it should automatically fit the assigned area.

Example

Using the demo website as an example:

https://marketing.adobe.com/resources/help/en_US/dm/shoppable-banner/we-fashion/landing-0.html

Notice that the picture of the three men 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 AEM Assets. You can see the result in the following URL which shows the shoppable interactive image on the page with three circle hotspots:

https://marketing.adobe.com/resources/help/en_US/dm/shoppable-banner/we-fashion/landing-1.html

Nota:

As this point, the hotspots on the shoppable interactive image of the demo website are for display purposes only; they are not yet integrated with the existing quick views.

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--where ZoomView is the component to call 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 quick view on your website.

Integrating an interactive image with an existing quick view

Nota:

This task only applies if you are a standalone AEM Assets customer.

The last step in this process is integrating the interactive image with an existing quick view implementation on your website. There is no solution to the integration that works for all cases. Every quick view implementation is unique and a specific approach is needed that most likely involves the assistance of a front-end IT person.

The existing quick view implementation normally represents a chain of inter-related actions that happen on the web page in the following order:

  1. A user triggers an element in the user interface of your website.
  2. The front-end code obtains a quick view URL based on the user interface element that was triggered in step 1.
  3. The front-end code sends an Ajax request using the URL obtained in step 2.
  4. The backend logic returns the corresponding quick view data or content back to the front-end code.
  5. The front-end code loads the quick view data or content.
  6. Optionally, the front-end code converts the loaded quick view data into an HTML representation.
  7. 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 may 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 clicks 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 AEM 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 quick view URL based on the hotspot data.
  • Triggers the process of loading the quick view from the backend and rendering it on the screen for display.

The embed code returned by AEM 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 quick view.
             s7interactiveimageviewer.setHandlers({ 
                "quickViewActivate": function(inData) {
                    var sku=inData.sku; //SKU for product ID
                    //To pass other parameter from the hotspot, you will need to add custom parameter during the hotspot setup as parameterName=value
                    loadQuickView(sku); //Replace this call with your quickview plugin
                    //Please refer to 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 quick view URL is basically opposite of the process used for identifying hotspot variables covered earlier.

See Identifying hotspot variables.

Using our previous quick view URL examples, you can see, in the following examples, how the quick view URL is constructed in each case:

Single SKU, found in the query string

s7interactiveimageviewer.setHandlers({
    "quickViewActivate": function(inData) {
        var quickViewUrl = "http://server/json?productId=" + inData.sku + "&amp;source=100";
     },
 });

Single SKU, found in the URL path

s7interactiveimageviewer.setHandlers({
    "quickViewActivate": function(inData) {
        var quickViewUrl = "http://server/product/" + inData.sku;
     },
 });

SKU and category ID in the query string

s7interactiveimageviewer.setHandlers({
    "quickViewActivate": function(inData) {
        var quickViewUrl = "http://server/quickView/product/?category=" + inData.categoryId + "&amp;prodId=" + inData.sku;
     },
 });

The last step to trigger the quick view URL and activate the quick view 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 quick view implementation from the proper step, having a ready-to-use quick view URL.

You can see how these steps are applied to the demo website to fully integrate a shoppable interactive image with the quick view code. Earlier, the structure of the quick view 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 quick view dialog box using a simple loadQuickView() function call. This function takes only one argument, which is the quick view data URL. As such, the last step needed 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:

https://marketing.adobe.com/resources/help/en_US/dm/shoppable-banner/we-fashion/landing-3.html

Questo prodotto è concesso in licenza in base alla licenza di Attribuzione-Non commerciale-Condividi allo stesso modo 3.0 Unported di Creative Commons.  I post su Twitter™ e Facebook non sono coperti dai termini di Creative Commons.

Note legali   |   Informativa sulla privacy online