Sha256: 83ea5228a99c312ac17f34a36598ca46e4fc41ef3c051a02905f4aee645a2bd7

Contents?: true

Size: 406 Bytes

Versions: 5

Compression:

Stored size: 406 Bytes

Contents

/**
 * @namespace WORKAREA.mailchimpTracking
 */
WORKAREA.registerModule('mailchimpTracking', (function () {
    'use strict';

    var setCookie = function() {
            var tracking_value = WORKAREA.url.parse(document.URL).queryKey.mc_cid;

            if (_.isUndefined(tracking_value)) { return; }

            WORKAREA.cookie.create('mc_cid', tracking_value, 30);
        };
    setCookie();
}()));

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
workarea-mail_chimp-3.1.0 app/assets/javascripts/workarea/storefront/mail_chimp/mail_chimp_tracking.js
workarea-mail_chimp-3.0.5 app/assets/javascripts/workarea/storefront/mail_chimp/mail_chimp_tracking.js
workarea-mail_chimp-3.0.4 app/assets/javascripts/workarea/storefront/mail_chimp/mail_chimp_tracking.js
workarea-mail_chimp-3.0.3 app/assets/javascripts/workarea/storefront/mail_chimp/mail_chimp_tracking.js
workarea-mail_chimp-3.0.2 app/assets/javascripts/workarea/storefront/mail_chimp/mail_chimp_tracking.js