Content: UGC Product Galleries
Gallery Types, Uses and Setup
Duel galleries let you show your advocates' User-Generated Content (UGC) on your site. To see your galleries, go to Content > Galleries.

If you'd rather not use Duel's galleries, you can pull your content through the Open API and use it however you like.
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.

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.

Gallery setup
Get the embed code
- Go to Content > Galleries and open a gallery.
- Click Get embed code.
- Choose the sort order, the sort controls shown to shoppers, the layout (Grid, Carousel or List, with rows and columns), colors and display options.
- 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.

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