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, how product tagging works with WooCommerce, and what add-to-cart does on Woo today.
The WooCommerce store ran a page builder, a caching plugin, a lazy-load plugin and a "social feed" plugin that had not been updated since 2023 and loaded jQuery twice. Removing that last one was the biggest speed win of the quarter. The gallery that replaced it was one shortcode.
In this article
WordPress is the platform where the install question has the most possible answers, which is why merchants get stuck. There are three that work; pick by who will maintain the site.
Three ways to place the gallery
1. A header-and-footer plugin (most teams)
Plugins such as WPCode or Insert Headers and Footers let you add a script to every page without touching the theme. 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 so the gallery filters to that product: [idukki guid="…" pid="{product id}"], or in a template file use get_the_ID() to fill it.
Getting WooCommerce products into the tagger
WooCommerce ships a product exporter (Products, then Export) that writes a CSV with SKU, name, price, image and permalink. Import that file in the Idukki dashboard and map the columns once. Stores that already run a Google Shopping feed plugin can paste the feed URL instead and schedule a re-sync, which 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.
Add to cart and measurement on Woo, honestly
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 early-access 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 early-access 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.
The plugin you should remove
Most WordPress stores that come to us already have a social-feed plugin. The typical one injects its own copy of jQuery, loads every image at full size, and fetches the feed on the client on every page view. Replacing it with a single deferred loader is usually the largest Largest Contentful Paint improvement available on the site, 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, and 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 2026: 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.
- Strategy
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
The Pet Care UGC playbook: pet parents, before-and-after, and the eight-month story
Pet parents are emotionally invested and breed-aware: same breed, same weight, same coat. The full playbook: use cases, examples, tips and where Idukki fits.
- Industry playbook
The B2B + SaaS UGC playbook: why peer proof is the only signal a buying committee trusts
B2B SaaS deals get signed by committees, not individuals, and the stack that closes them is logos, verified case studies and peer reviews.
- Industry playbook
The Automobiles + EV UGC playbook: why ownership tenure is the conversion accelerator
Cars are bought over months, not minutes, and the proof that closes the deal lives on owner forums, YouTube and Reddit. Ownership-tenure UGC does the work.