FitMetrix Developer Documentation

Quick start

User guides

Integration

First, install between <head> the FitMetrix Javascript library using your CustomerID :
<script src="http://fitmetrix.youarethemodel.com/js/CustomerID/FitMetrix.js"></script>
* Refer to FittingBox Team to know your CustomerID, otherwise you can use demo for your tests.
Place a <div> tag identified by a uniq id into the <body> :
<div id="myFitMetrix"></div>
Then, call Fb.FitMetrix.GetInstance method to set your FitMetrix into #myFitMetrix HTML element :
<script type="text/javascript">
    window.onload = function()
    {
        FitMetrix = Fb.FitMetrix.GetInstance(
            {
                FitMetrix:
                {
                    container: '#myFitMetrix',
                    customervalue: 'USERXXX',
                    finalizecallback: function()
                    {
                        alert('Function called');
                    },
                    withglasses: false
                }
            }
        );
    }
</script>

SSL

If you need to use FitMetrix with an SSL connection, you just have to change the protocol of your script call :
<script src="https://fitmetrix.youarethemodel.com/js/CustomerID/FitMetrix.js"></script>

Examples