Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  1. Go to the asset metadata

  2. Under the metadata field “External JS file (externalJs #1323850)” add the asset “mouseflow #1785436”mouseflow script current#1913605”. If there is an asset already in the External JS file metadata, put a request in for a developer to try and include mouseflow in the existing metadata.

  3. Commit, then preview and view page source and search for ‘mouseflow’ and you should see the following script:

    Code Block
    languagehtml
    <script type="text/javascript">
       // Enable mouseflow tracking on the page
    
       var _mfq = _mfq || [];
       (function() {
           var mf = document.createElement("script"); mf.type = "text/javascript"; mf.async = true;
           mf.src = "//cdn.mouseflow.com/projects/4a7ff1cf-f5b8-4dd8-95da-13bfe4f4e580.js";
           document.getElementsByTagName("head")[0].appendChild(mf);
       })();
     
    </script>

Otherwise, if using the metadata schema Common Migration #379620:

  1. Go to the asset metadata

  2. Under the metadata field “afterScripts (afterScripts #385570)

    (); </script>

    ” add the content following content. (If there is content already there, contact a developer to ensure this will not break anything)

    Code Block
    <!--@@ Mouseflow @@-->
    %globals_asset_contents_raw:1913605%

3. Commit, then preview and view page source and search for ‘mouseflow’ and you should see the mouseflow script

If using a customization of the old design (Common#387822) use the following steps:

...

Bookmarklet for detecting if mouseflow present

Drag this link MouseflowPresent to Put the following code in the url of your bookmark bark

Code Block
languagejs
javascript: (function () {
    let mouseflowObject, mouseflowScript = false;
    let mouseflowAsset = null;
    if (typeof (_mfq) === "object") mouseflowObject = true;
    document.querySelectorAll("script").forEach((elem) => { if (elem.src.indexOf("cdn.mouseflow.com") >= 0) mouseflowScript = true; });
    if (typeof (mouseflowAssetId) === "undefined") mouseflowAsset = 'missing';
    else mouseflowAsset = mouseflowAssetId;

    window.alert("Mouseflow object exists: " + mouseflowObject + "\nMouseflow Script injected: " + mouseflowScript + "\nMouseflow object used: " + mouseflowAsset);
})();

...