Troubleshooting the video heartbeat library integration revolves around the extensive tracing/logging mechanism that is in place throughout the entire video-tracking stack. Both the video heartbeat library and the underlying data-collection code inside the AppMeasurement library are equipped with this tracing/logging infrastructure.
var ConfigData = ADB.heartbeat.ConfigData; // Instantiate the configuration object. var heartbeatConfig = new ConfigData(); // Set this to true to activate the debug tracing heartbeatConfig.debugLogging = true; videoHeartbeat.config(heartbeatConfig);
INFO [media-fork::TimerManager] > #_onTick() > ------------------- (3)
(This info is actually marked as a small icon on the left of the trace message, rather than the text shown in the sample above.)
One of the configuration options exposed by the AppMeasurement public API is a boolean flag called debugTracking. This flag causes the Heartbeat code to display on the console the actual URL that represents the outbound network call. If your browser of choice allows filtering, you can filter for the __job_id string. The result is a very nice view of all the network calls issued by the Heartbeat core engine. Below is a code snippet that demonstrates the activation of the debugTracking configuration flag:
appMeasurementObject.debugTracking = true;