Overview
The Product Page Gallery Widget displays product-linked media in a carousel on your product pages. It matches the product’s URL on the page with the URL in your Dash Social library to pull relevant media. Clicking on a post opens a popup with product details and tagged products. You can disable the popup using thedata-links-disabled parameter.
Before you start
- Get your brand ID .
- Make sure your products in the library have URLs that match your product page URLs.
Embed the widget
To add the Product Page Gallery Widget, place the script inside any product page template. For e-commerce platforms with a shared PDP template, you only need to add the script once.Displaying localized products
To display localized product data, use the data-override parameter. This value must match the override in your localized product feed. When using localized feeds, you must also include the data-product-id parameter, matching the product’s unique identifier (e.g., SKU) from the feed.Widget parameters
These parameters control the behavior and appearance of the Product Page Gallery widget. If you are interested in more advanced styling and customization, refer to the Widget Customization Guide:Widget Customization
Customize Dash Social widgets with CSS for fonts, colors, and layout tweaks.
Content Security Policy
If your site uses a Content Security Policy (CSP), you’ll need to allow the domains and MIME types used by the Product Page Gallery Widget. This ensures scripts, images, and network calls load correctly.Why this matters
- Ensures the widget script can load safely.
- Allows image and video assets from approved Dash Social domains.
- Prevents CSP errors that block network calls or media loading.
Required CSP directives
Approved domains and MIME types
- https://cdn.dashsocial.com
application/javascriptimage/jpegvideo/mp4
- https://likeshop.me
text/htmlimage/pngimage/gifapplication/json
- data:
application/font-woffimage/png
- https://dashsocial-static.s3.amazonaws.com
image/jpegvideo/mp4
- https://d1cka1o15bmsqv.cloudfront.net
image/jpegvideo/mp4
- https://dashsocial.com
text/html
- https://www.dashsocial.com
text/plain