We make key variables available to you once we have performed number replacement.
You can access these variables using a method within the defined variable _ictt.
NOTE This method will return false where no variable is defined.
Example
You can retrieve the current visitors unique ID using the below method, you will need to use this if you would like to do a CRM integration with Infinity.
_ictt.push(['_get', 'ictvid']);
If you want to use the returned variables to populate a hidden form input, please see Populating Inputs With Infinity Variables.
To populate an input field with a variable returned by Infinity during the tracking process, you can use the following method.
You need to tell it the ID of the input you want to target, and the name of the variable you want to have inserted into it.
The variable value will be inserted into the input as soon as it's available, this will be as soon as the page tracking has been performed (on page load).
Example
To populate an input with the id "visitor_id", with the value of the variable "ictvid", you would add the following to your infinity JavaScript, before the _track line.
_ictt.push(['_autoPopulateInput', {'id':'visitor_id', 'item':'ictvid'}]);
Post Page Load
If your form is added to the DOM dynamically after page load, you can also call this method in the same way at any point, it will run immediately if the Tracking process has completed, and you have access to the _ictt instance.