Sha256: e5b7c414c05dbdd37cbac28e9f4b002de54f813ac2fbbd53929e69114df0024a

Contents?: true

Size: 492 Bytes

Versions: 3

Compression:

Stored size: 492 Bytes

Contents

- if Workarea::Emarsys::Configuration.current.merchant_id.present?
  :javascript
    var ScarabQueue = ScarabQueue || [];
    (function(id) {
      if (document.getElementById(id)) return;
      var js = document.createElement('script'); js.id = id;
      js.src = '//cdn.scarabresearch.com/js/#{Workarea::Emarsys::Configuration.current.merchant_id}/scarab-v2.js';
      var fs = document.getElementsByTagName('script')[0];
      fs.parentNode.insertBefore(js, fs);
    })('scarab-js-api');

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
workarea-emarsys-1.0.4 app/views/workarea/storefront/_emarsys_tracking.html.haml
workarea-emarsys-1.0.3 app/views/workarea/storefront/_emarsys_tracking.html.haml
workarea-emarsys-1.0.2 app/views/workarea/storefront/_emarsys_tracking.html.haml