Marketing Automation

Prev Next

Mapp's Marketing Automation creates effective personal recommendations using a plethora of data. You can use it to interact with your visitors by creating recommendations on your website or through e-mails and other external advertising. 

This is an optional feature. Please speak with your Customer Success or Account Manager for more information.

Functions

There are two types of functions that you can use to get your visitor's attention.

  • On-site recommendations are great for updates or special offers based on user behavior.

  • Exit-intent technology should be used to display a layer with discounts, shipping offers, or reminders when a user intends to exit a purchase process or page.

You can find more information on Marketing Automation here: Marketing Automation.

Methods and properties

name

Get the name of the extension.

/**
 * @type {string}
 */
wtSmart.extension.marketing_automation.name;

version

Get the version of the extension.

/**
 * @type {string}
 */
wtSmart.extension.marketing_automation.version;

config

Set and get the current configuration of the extension.

  • trackId: Mapp Intelligence uses the tracking ID to assign the server requests to an account. The tracking ID is also found in the system configuration of the Mapp Q3 tool under Configuration > System Configuration > Account. Please use the same tracking ID you stored in the Mapp Intelligence tracking code, regardless of the ID you used to configure Marketing Automation.

  • mediacode: This is where you enter all of the campaign tracking media code parameters that you use.

  • keyword: This is where you enter all of the campaign tracking keyword parameters that you use.

  • widgetDomain: Defines the domain used for all Mapp Marketing Automation service URLs, which includes the JavaScript library, the server configuration, campaign delivery, the audience stream and the local storage synchronization.

    Use your first-party Custom Track Domain (C-Name) here. Requests to a first-party domain are far less likely to be blocked by ad blockers or browser tracking protection, which means better data quality and quantity, and it avoids Content Security Policy issues. If you do not have a Custom Track Domain yet, please contact our Support or your responsible Customer Success Manager to have one set up.

    One value covers every service, so the individual service URLs no longer have to be set. If no domain is defined here, every service uses its own default. If baseUrl or widgetServiceUrl is set as well, that URL is used for its own service and the domain defined here does not apply to it.

  • baseUrl: Defines the location of the Mapp Marketing Automation functionality JavaScript file. Default value is "//cdn.mateti.net/mcp/onsite.min.js".
    Please contact our Support or your responsible Customer Success Manager for activation if you prefer to fetch this library using your first-party Custom Track Domain (C-Name) for better data quality and quantity and to avoid Content Security Policy issues. If widgetDomain is set, use this setting only to load the JavaScript file from a different location.

  • widgetServiceUrl: Defines the location of the Mapp Marketing Automation server configuration. If no value is set, Marketing Automation falls back to //[Trackdomain]/[TrackId]/rdfs.
    Please contact our Support or your responsible Customer Success Manager for activation if you prefer to fetch this configuration using your first-party Custom Track Domain (C-Name) for better data quality and quantity and to avoid Content Security Policy issues. If widgetDomain is set, use this setting only to load the server configuration from a different location.

/**
 * @param {{
 *      [trackId=current trackId]: string,
 *      [widgetDomain=""]: string,
 *      [mediacode=[wt_mc,wtmc,mc]]: string[],
 *      [keyword=[wt_kw,wtkw,kw]]: string[],
 *      [baseUrl="//cdn.mateti.net/mcp/onsite.min.js"]: string,
 *      [widgetServiceUrl=""]: string
 * }} [config]
 *
 * @returns {object}
 */
wtSmart.extension.marketing_automation.config(config);

isActivated

Get the status of whether the extension is enabled.

/**
 * @returns {boolean}
 */
wtSmart.extension.marketing_automation.isActivated();

activate

Activate the extension.

/**
 * @returns {boolean}
 */
wtSmart.extension.marketing_automation.activate();

deactivate

Deactivate the extension.

/**
 * @returns {boolean}
 */
wtSmart.extension.marketing_automation.deactivate();

Example

// is marketing automation activated
var isActivated = wtSmart.extension.marketing_automation.isActivated();

// set marketing automation config
wtSmart.extension.marketing_automation.config({
    trackId: '111111111111111',
    widgetDomain: 'data.mapp.com',
    mediacode: ['wt_mc', 'wtmc', 'mc'],
    keyword: ['wt_kw', 'wtkw', 'kw']
});

// activate marketing automation
wtSmart.extension.marketing_automation.activate();

// deactivate marketing automation
wtSmart.extension.marketing_automation.deactivate();

Code Generator

Use the code generator to create individual code that you can then integrate directly into the website.