How can we check if the Content Optimizer data is sent properly?

Prev Next

To verify whether the Content Optimizer data is sent correctly, follow these steps:

1. Ensure that the test device is added

Before checking the logs, make sure your device is registered as a test device. You can add a test device using QR code or Email via the test device settings.

2. Check the session stop request

Content Optimizer data is included in the session stop request. You should see an object similar to the one shown below inside the stop request.

You should see an object similar to the following inside the stop request:
"content_variables": {
    "variableName": {
        "data_class": 0,
        "data_type": 1,
        "default_value": "defaultValue",
        "variable_name": "variableName"
    }
}

If you do not see the "content_variables" key or the expected data inside it, this may indicate that:

  • The variable is not set correctly.
  • The related content method has not been triggered.

3. Check logs for verification

For iOS:

  • Use Xcode Console to monitor logs. Connect your test device. Open XcodeDevices & Simulators → Select your device. Run the app and filter logs related to session stop request.
  • Alternatively, use a Console application on Mac to capture logs. Open the Console app and connect your device. Search for the related logs by filtering session stop request events.

For Android:

  • Use Android Studio Logcat.
  • Connect your test device and launch the app.
  • Open Android Studio → Logcat.
  • Filter logs using keywords like "content_variables" or "session stop request".

By following these steps, you can confirm whether the Content Optimizer data is sent properly and troubleshoot any missing data.