@unclepaul/allcountjs
Version:
The open source framework for rapid business application development with Node.js
20 lines (17 loc) • 544 B
JavaScript
module.exports = function () {
var service = {};
service.compile = function (objects, errors) {
objects.forEach(function (obj) {
var googleAnalyticsId = obj.stringPropertyValue('googleAnalyticsId');
if (googleAnalyticsId) {
service.googleAnalyticsId = googleAnalyticsId;
}
});
};
service.trackingTemplateVars = function () {
return {
googleAnalyticsId: service.googleAnalyticsId
}
};
return service;
};