Using MOAT Analytics with AMP

Implementation of MOAT Analytics into AMP. The plugin can be implemented by providing a moat object to the player config:

var config = {
	var config = {
		plugins: {
			moat: {
				resources: [
					{src: "#{paths.plugins}moat/libs/moat_sdk.js", type: "text/javascript", async: true},
					{src: "#{paths.plugins}moat/Moat.min.js", debug: "#{paths.plugins}moat/Moat.js", type: "text/javascript", async: true}
				],
				partnerCode: "webmdjsvid25434523423",
				slicer1: "123",
				slicer2: "123"
			}
		}
	}
};
akamai.amp.AMP.create("amp", config);