Using Mux analytics with AMP

Implementation of Mux analytics into AMP. The plugin can be implemented by providing a mux object in the player config:

var config = {
  plugins: {
    mux: {
      resources: [
        {src: "#{paths.plugins}mux/Mux.js", type: "text/javascript", async: true},
        {src: "//src.litix.io/core/2/mux.js", type: "text/javascript", async: true}
      ],
      data: {
        property_key: "mcfkLwDZRaZ2Se_C_VXtyBgwE", // required
        page_type: "samplepage", // (see docs) "watchpage", "iframe", or leave empty
        viewer_user_id: "", // ex: "12345"
        experiment_name: "amp_mux_test" // ex: "player_test_A"
      }
    }
  }
};
akamai.amp.AMP.create("amp", config);