UGC widget for WooCommerce and WordPress: install, tag, measure
WordPress gives you three ways to place a UGC gallery. A theme footer script, a Custom HTML block, or a shortcode. Here is which to use and how product tagging works with WooCommerce. And what add-to-cart does on Woo today.

Your WooCommerce store runs a page builder, a caching plugin and a lazy-load plugin. Then there is the old "social feed" plugin, loading its own copy of jQuery. Removing it can be the biggest speed win of your quarter. The gallery that replaces it is one shortcode.
In this article
WordPress is the platform where the install question has the most possible answers. That is why merchants get stuck. There are three that work; pick by who will maintain the site.
How do I place a UGC gallery on WordPress?
Pick the method by who maintains the site
Start here
Who looks after your WordPress site?
- A marketing team
Header-and-footer plugin
Paste the loader once. Theme updates never touch it.
- A developer
functions.php
Add the hook in a child theme so it survives updates.
- Editors who place galleries in posts
A shortcode
Write it once. Editors drop it into any post or product description.
1. A header-and-footer plugin (most teams)
Plugins such as WPCode or Insert Headers and Footers add a script to every page. The theme stays untouched. Paste the loader into the footer slot. Then, on any page, add a Custom HTML block containing the placeholder div. Theme updates never touch it.
2. functions.php (developer-maintained sites)
add_action( 'wp_footer', function () {
echo '<script async src="https://widget.idukki.io/idukki.js"></script>';
} );Use a child theme so the hook survives updates. The placeholder div still goes in the page content or template where the gallery belongs.
3. A shortcode you write once
add_shortcode( 'idukki', function ( $atts ) {
$a = shortcode_atts( [ 'guid' => '', 'pid' => '' ], $atts );
$pid = $a['pid'] ? ' data-filter-pid="' . esc_attr( $a['pid'] ) . '"' : '';
return '<div data-ugc="idukki" data-guid="' . esc_attr( $a['guid'] ) . '"' . $pid . '></div>';
} );With the shortcode in place, editors drop [idukki guid="…"] into any post or product description. On a WooCommerce single product template, pass the product id. The gallery then filters to that product. Use [idukki guid="…" pid="{product id}"]. In a template file, use get_the_ID() to fill it.
How do I get WooCommerce products into the tagger?
WooCommerce ships a product exporter under Products, then Export. It writes a CSV with SKU, name, price, image and permalink. Import that file in the Idukki dashboard and map the columns once. Already run a Google Shopping feed plugin? Paste the feed URL instead and schedule a re-sync. That keeps prices honest when a sale starts.
Variable products are the one wrinkle. Tag the parent product only. If the shopper has not picked a variation in the gallery, the product page opens. WooCommerce handles the choice there as it always does.
Does add to cart work on WooCommerce?
The widget spots WooCommerce from the settings WooCommerce puts on the page. It then adds to cart through the WooCommerce Store API. If the Store API is off, it uses the classic AJAX add. If an add fails, the gallery opens the product page. Some optimisation plugins strip those page settings. Then the widget cannot tell it is on WooCommerce, and product buttons open the product page. The Idukki plugin names the platform on the gallery. Then detection needs none of them.
Measurement follows the same shape as the BigCommerce guide. Impressions, post clicks, product clicks and add-to-cart intent are tracked on every platform. Attributing an order to a post needs the platform's order webhook. WooCommerce has one, and each order is matched to posts on arrival. The Idukki plugin saves the gallery visitor id on each order for an exact match. Without it, a match comes from a salted ip and browser fingerprint. Those matches are marked estimated.
Which WordPress feed plugin should I remove?
Most WordPress stores that come to us already have a social-feed plugin. The typical one injects its own copy of jQuery and loads every image at full size. It also fetches the feed on the client on every page view. Swapping it for one deferred loader is usually the site's largest Largest Contentful Paint gain. That is before any UGC benefit is counted. Measure before and after with PageSpeed Insights. The widget speed programme post shows what to look for.
FAQs
Is there an Idukki WordPress plugin?
Not in the WordPress directory today. The script-and-div install works on every WordPress site, including page builders. It does not depend on plugin updates.
Does it work with Elementor, Divi or Bricks?
Yes. Each builder has an HTML or code widget; paste the placeholder div into it. The loader goes in the site footer as described above.
Why does add-to-cart open the product page on my store?
Three usual reasons. An optimisation plugin stripped the WooCommerce settings the widget reads. The product has several variations and none was picked. Or the store refused the add, for example when stock ran out.
Sources
Continue reading
2 pieces in this clusterThese long-form pieces on the Idukki blog link back to this article, go deeper on the cluster.
- Buyer's guides
The best shoppable video platforms in 2027: nine compared, on any store platform
Nine shoppable video platforms, from Videowise and Bambuser to Smartzer and Idukki. Compared on store platforms, cart, live, rights, price and page weight. We make Idukki.
- Shoppable video
How to Embed a TikTok Feed on WooCommerce (Step-by-Step)
How to add TikTok video to a WooCommerce store, from WordPress's built-in TikTok embed block for single videos to a shoppable, product-tagged feed on the Single Product template, plus the video-loading and optimisation-plugin checks that keep WordPress pages fast.
More from Rohin Aggarwal
- Industry playbook
How to add UGC and shoppable video to a BigCommerce store
A BigCommerce install is one script tag in the Stencil theme and a product feed. Here is what goes where and what works on day one. And what still needs the platform to catch up.
- Industry playbook
UGC & Shoppable Video on Magento / Adobe Commerce
A no-code embed or a thin API integration puts shoppable UGC and video on Magento or Adobe Commerce, handling multi-store, multi-locale, performance and rights.
- Shoppable video
How to Embed a TikTok Feed on WooCommerce (Step-by-Step)
How to add TikTok video to a WooCommerce store, from WordPress's built-in TikTok embed block for single videos to a shoppable, product-tagged feed on the Single Product template, plus the video-loading and optimisation-plugin checks that keep WordPress pages fast.