Script Injection

Connect and setup your storefront to display mason powered apps

We need the ability to inject scripts into the store. The script takes care of loading our Apps on the store.

This is a one-time activity and can be injected into the store theme by your developers.

Sample Script

<script type="application/javascript" async id="mm-fe-script">
    (function (m, a, s, o, n) {
            m.modeMagicSettings = { store: "{{store}}" };
            n = a.createElement(s); n.defer = 1; n.src = o; n.crossorigin = "anonymous"; n.setAttribute("fetchPriority", "high");
            a.getElementsByTagName(s)[0].parentNode.insertBefore(n, null);
    }(window, document, 'script', '{{scriptUrl}}'))

What’s Next