Running Merchandising Campaigns Dynamically in Embedcodes

Check how to trigger a Merchandising Campaign directly from the frontend. 

Merchandising Campaigns are handled from -> Merchandising.

The Campaigns use Triggers to decide where it should be used, like on a specific search or when viewing certain products.

However, Campaigns can also be triggered directly from any embedcode by adding data-merchandising=["INSERT_CAMPAIGN_ID"].

1. Start by creating a Campaign with no Triggers, and note the ID of the campaign from the URL:

2. Now you can trigger this campaign from any embedcode:

<span class="clerk"

Using this method, you can create logics in the frontend for when you want to apply a Campaign.