Skip to content
  • There are no suggestions because the search field is empty.

Content: UGC Product Galleries

Gallery Types, Uses and Setup

Gallery types
Gallery setup

Duel galleries let you show your advocates' User-Generated Content (UGC) on your site. To see your galleries, go to Content > Galleries.

Content > Galleries in the Duel Dashboard, showing a Catalog gallery and an Inspire gallery

If you'd rather not use Duel's galleries, you can pull your content through the Open API and use it however you like.

📚 Open API: Assets

Gallery types

There are two types of gallery, each with its own use.

Catalog galleries

A Catalog gallery is built automatically for a product, so you can add one to every product display page (PDP) with the same code. When advocates or operators tag UGC with a product, that content is linked to the product's SKU and appears in its gallery.

A Catalog gallery for one product, showing four pieces of UGC

Inspire galleries

An Inspire gallery is a collection of UGC you pick and arrange yourself in the Duel Dashboard. Use one when you want a hand-picked selection, for example a mix of products or a theme, anywhere on your site.

An Inspire gallery with four hand-picked pieces of UGC and a sort menu

Gallery setup

Get the embed code

  1. Go to Content > Galleries and open a gallery.
  2. Click Get embed code.
  3. Choose the sort order, the sort controls shown to shoppers, the layout (Grid, Carousel or List, with rows and columns), colors and display options.
  4. Click Generate Embed Code and copy the code into your site where you want the gallery to appear.

You can also use the Duel Gallery Config Tool to edit and preview a gallery's styling and setup.

Default settings

To set defaults for all your galleries, click your brand logo in the top right, choose Settings, then Galleries. Pick Catalog gallery default settings or Inspire gallery default settings to set the titles, entry call to action and which entry details (testimonial, caption, star review) show.

Settings > Galleries with Catalog gallery default settings selected

Catalog gallery code for product pages

Add this code to your PDP template so every product page gets its own gallery. product is the only part that changes: it's your Short ID, a slash, then the product's SKU, for example 043/BLK-DEW-001.

Where to find your Short ID

<script async src="https://vision.duel.me/loader.js"></script>
<script>
window.DuelVision = window.DuelVision||function(o){(DuelVision.s=DuelVision.s||[]).push(o)};
DuelVision({
  bgColor: '#ffffff',
  color: '#222222',
  columns: 4,
  displayMin: 4,
  hideDates: true,
  product: '[shortID]/[SKU]',
  layoutStyle: 'carousel',
  sort: 'rank',
  testimonialPreview: true,
  thumbBgColor: 'rgba(0,0,0,.9)',
  thumbColor: '#ffffff',
  layoutRules: {
    carousel: [{
      mediaQuery: '(max-width: 500px)',
      columns: 2
    }]
  }
});
</script>
<div id="duelvision-component"></div>

displayMin: 4 means the gallery only shows once a product has at least 4 pieces of content.

Inspire gallery code

You can add this code anywhere on your site. id is the gallery's ID. You'll find it in Get embed code, or at the end of the gallery's address in the Duel Dashboard.

<script async src="https://vision.duel.me/loader.js"></script>
<script>
window.DuelVision = window.DuelVision||function(o){(DuelVision.s=DuelVision.s||[]).push(o)};
DuelVision({
  id: '[gallery ID]',
  sortDisplay: 'rank',
  color: '#222222',
  bgColor: '#ffffff'
});
</script>
<div id="duelvision-component"></div>

Want to download your content instead? See Data Exports for exporting from Content > Assets.