The Clicked Campaign event must be pushed to the array when a user clicks on a banner link.

Important! The banner’s links must be marked with the ddl_campaign_link class and should also have the data-campaign-id data attribute. For more information, see the HTML page layout section.

From the site code / when using AJAX{
  name: 'Clicked Campaign',
  category: 'Promo',
  campaign: campaignId

From the SegmentStream interface

Trigger: click,

CSS selector: .ddl_campaign_link

Event handler:

var campaignId = element.getAttribute('data-campaign-id');
return {
  name: 'Clicked Campaign',
  category: 'Promo',
  campaign: campaignId

Please note! When the “Click” trigger is selected an additional “Follow link defined in “href” after event” option appears. Enabling it will add a 500ms delay between the click on the link and the redirect, so that the tracked event has enough time to be sent to all integrations.

Required by the following integrations:

  • Google Analytics (Enhanced Ecommerce)