Sha256: fdf881561db282b05b31ebc449edd62431650469b381b411845cddf33abb899c

Contents?: true

Size: 434 Bytes

Versions: 62

Compression:

Stored size: 434 Bytes

Contents

/**
 * @namespace WORKAREA.<%= adapter_name %>
 */

WORKAREA.analytics.registerAdapter('<%= adapter_name %>', function () {
    'use strict';

    var send = function (event, payload) {
            // Send data to 3rd party
        };

    return {
        'pageView': function () {
            send('pageView');
        },

        'categoryView': function (payload) {
            send('categoryView', payload);
        }
    };
});

Version data entries

62 entries across 62 versions & 1 rubygems

Version Path
workarea-core-3.5.27 lib/generators/workarea/js_adapter/templates/js_adapter.js.erb
workarea-core-3.5.26 lib/generators/workarea/js_adapter/templates/js_adapter.js.erb
workarea-core-3.4.45 lib/generators/workarea/js_adapter/templates/js_adapter.js.erb
workarea-core-3.5.25 lib/generators/workarea/js_adapter/templates/js_adapter.js.erb
workarea-core-3.5.23 lib/generators/workarea/js_adapter/templates/js_adapter.js.erb
workarea-core-3.4.44 lib/generators/workarea/js_adapter/templates/js_adapter.js.erb
workarea-core-3.5.22 lib/generators/workarea/js_adapter/templates/js_adapter.js.erb
workarea-core-3.4.43 lib/generators/workarea/js_adapter/templates/js_adapter.js.erb
workarea-core-3.5.21 lib/generators/workarea/js_adapter/templates/js_adapter.js.erb
workarea-core-3.4.42 lib/generators/workarea/js_adapter/templates/js_adapter.js.erb
workarea-core-3.5.20 lib/generators/workarea/js_adapter/templates/js_adapter.js.erb
workarea-core-3.4.41 lib/generators/workarea/js_adapter/templates/js_adapter.js.erb
workarea-core-3.5.19 lib/generators/workarea/js_adapter/templates/js_adapter.js.erb
workarea-core-3.4.40 lib/generators/workarea/js_adapter/templates/js_adapter.js.erb
workarea-core-3.5.18 lib/generators/workarea/js_adapter/templates/js_adapter.js.erb
workarea-core-3.4.39 lib/generators/workarea/js_adapter/templates/js_adapter.js.erb
workarea-core-3.5.17 lib/generators/workarea/js_adapter/templates/js_adapter.js.erb
workarea-core-3.4.38 lib/generators/workarea/js_adapter/templates/js_adapter.js.erb
workarea-core-3.5.16 lib/generators/workarea/js_adapter/templates/js_adapter.js.erb
workarea-core-3.4.37 lib/generators/workarea/js_adapter/templates/js_adapter.js.erb