Mux

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}amp-mux/Mux.js", type: "text/javascript", async: true},
        {src: "//src.litix.io/pages/4/amp-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);
Last modified: 16/03/2023, AMP Support.