Options
The only option required for MHCT to run is the mhCampaignID - there is no need to define any other options or call any methods unless you are trying to use the advanced options and methods.
_mhct
var _mhct = _mhct || [];
Before calling our javascript, you must define a array variable called _mhct
that contains any setup options.
mhCampaignID
_mhct.push(['mhCampaignID','VA-00001']);
Before including our javascript file, you must push mhCampaignID to the _mhct
array with the value of your dynamic URL ID.
This option is required for MHCT to work.
enabled
_mhct.push(['enabled',false]);
If you wish to disable MHCT to not track your users, push a key of enabled
with a value of false
to _mhct
before including our javascript.
The state of this does not persist across pages and persistence must be handled outside MHCT.
By default, MHCT is enabled and there is no need to define this option.
mhAutoChange
_mhct.push(['mhAutoChange',false]);
If you want MHCT to track the user and collect the telphone numbers from our server but not change the numbers in the UI, push a key of mhAutoChange
with a value of false
to _mhct
before including our javascript.
By default, this option is true and there is no need to define this option.