Your agency runs every tag through Google Tag Manager. They want the gallery in there too. This sets it up once.
Each gallery moment is pushed to the dataLayer as one event, idukki_ugc. The ugc_event field says which moment it was.
{
event: 'idukki_ugc',
ugc_event: 'add_to_cart',
event_id: 'idk-…',
content_ids: ['PRODUCT_ID'],
content_type: 'product',
value: 49,
currency: 'GBP',
widget_provider: '…'
}Set up the trigger and variables
- Create the trigger. In Tag Manager, click Triggers, then New. Choose the Custom Event type.
- Name the event. Enter idukki_ugc as the event name. Leave regex matching off.
- Create the variables. Under Variables, add Data Layer Variables for ugc_event, content_ids, value and currency.
- Filter one moment. For one moment only, choose Some Custom Events. Add the condition ugc_event equals add_to_cart.
- Attach a tag. Add the trigger to any tag. Preview, test on your store, then publish.
| Moment | ugc_event value |
|---|---|
| Gallery in view | gallery_view |
| Tile click | post_click |
| Post pop-up opens | post_open |
| Product link | product_click |
| First video play | video_play |
| Confirmed add to cart | add_to_cart |
Is there no Google tag on the page? Then GA4 events land in the dataLayer too. Send them on with a GA4 event tag.


