ifp_initUseCase
When your customer starts a new Use Case that needs profiling (login, money transfer etc…), a new visitId is required. To do so, the ifp_initUseCase needs to be called:
...
ifp_initUseCase(callback);
...
Method Parameters
| Parameter | Value | Description | Data Type |
|---|---|---|---|
| callback | Optional | A javascript function that will be called at the end of the initUseCase function. This callback function will be called with a string parameter that contains the visitId. | function |
Response
This method returns void
The visitId is then available either: - As a parameter of the callback function (type: string) - As a global variable available in the page, called “ifp_visitId”
Note
This method shall be called as soon as possible (when the loading of the 1st view for this use case starts).