Our support site has moved to https://support.intuiface.com

For IntuiFace Version 5.1 or Earlier: Using the Log Interaction action to write events to a log file

The Log Interaction action was replaced with the data tracking mechanism starting with IntuiFace Version 5.2.
This article is maintained only for those using IntuiFace Version 5.1 or earlier.

    Overview

    The Log Interaction action - found in the General category of actions - enables IntuiFace designers to record any event of their choosing in a text file.

    This is particularly useful if you want to keep track of how often a particular trigger is raised by users interacting with your experience.

    Using the Log Interaction Action

    Let's consider the following use case: an IntuiFace experience is designed to advertise 10 different products. Associate a different Log Interaction action with each item so that when each item is selected, custom text is written to a log file. At the end of the day you can analyse this log file to determine how often each item was selected and thus measure product popularity.

    The Log Interaction action has one parameter:

    • Text for log file   plain text you want to appear in the log file (you can click the screenshot below to zoom it)
      LogInteraction.jpg

    The log file, named Statistics.csv is created and stored in the same folder as the experience .ifx file. Each call of the Log Interaction action creates a new row in this file.

    NOTE:

    • Every time your experience is run, new calls to the Log Interaction action will append text to the bottom of preexisting rows in the Statistics.csv file. Be sure to delete this file if you want to log brand new events without history.
    • You could build your own logging mechanism using the interface asset concept. This would entail more work up front as you would have to build your own service but the benefit is a potentially much more flexible capability than the Log interaction action.

    Changes to "Log Interaction" action when upgrading to IntuiFace Version 5.2 or later

    If an experience containing the Log Interaction action is upgraded to Version 5.2 or later, this action is replaced with a Log Event action. The resulting data point will contain the following values:

    • Version 5.2.0 and 5.2.1
      • EventName: null
      • Value: [value specified in the original “Text for log file” parameter]
    • Version 5.2.2+
      • EventName: LogInteraction
      • Value: [value specified in the original “Text for log file” parameter]