Summary

This document explains how to generate a .HAR file for support purposes.

Issue

Sometimes Marketo support may request that you capture a HAR file for troubleshooting purposes. This document will explain what this means, what a HAR file is, and how to create/capture one for support (or any other purpose you need them for!)

HAR means 'HTTP Archive Format'. It is a JSON file format which archives the response and request headers from network communications made to and from your browser. 

A HAR file (the extension is '.har') saves the information of all web requests which your browser tab makes. Think of it as 'hitting the record button' on your browser session. These files are very useful as they can identify errors, vulnerabilities, or network performance bottlenecks. For some cases with Marketo support it may be necessary to create such a file.


Solution

The steps for creating a HAR file vary depending on which browser you are using. Below are the steps for generating a .har file with some commonly used web browsers.

Google Chrome:

  1. Open your Chrome browser and navigate to the page where the issue needs to be captured.
  2. Open the developer tools (F12 or CTRL+Shift+i on Windows, CMD+alt+i for Mac).
  3. Select the Network tab of the developer tools.
  4. Go to the left of the developer tools UI to start the recording a HAR file. There is a small round 'record' button in this section. If it's gray, click it so that it turns red and begins recording.
  5. Click on 'Preserve Log' so the recording persists if you change browser page.
  6.  Click the to 'Clear' icon to delete any previous log records kept in the browser, so you have a clean slate for the reproduction.
  7. Reproduce the issue so the browser can record it.
  8. Once done, right click on the various network traffic and select 'Save as HAR with content', to save the HAR file you recorded.
Firefox:
  1. Open your Firefox browser and navigate to the page where the issue needs to be captured.
  2. Open the developer tools (F12 or CTRL+Shift+i on Windows, CMD+alt+i for Mac)
  3. Select the Network tab of the developer tools.
  4. Make sure to select 'Clear' (the garbage can icon) before you begin reproducing the issue.
  5. Look for a pause button in the tab, and click on it to Play and Record to start recording.
  6. Once done, right click on the various network traffic and select 'Save all as HAR', to save the HAR file you recorded.
Microsoft Edge:
  1. Open your Microsoft Edge browser and navigate to the page where the issue needs to be captured.
  2. Open the developer tools (F12 or CTRL+Shift+i on Windows).
  3. Select the Network tab of the developer tools.
  4. Make sure the small green 'Recording' square is red, or click it if not so you are capturing network traffic.
  5. Reproduce the issue so the browser can record it.
  6. Click the 'Export HAR' icon to save your recording, and select '.har' as the file extension.
Safari:
  1. Open your Safari browser and navigate to the page where the issue needs to be captured.
  2. Open the 'Develop' menu.
  3. Open the Network tab of the Develop menu.
  4. Recording is always on in Safari, go ahead and reproduce the issue.
  5. Click the 'Export' icon on the right side of the Develop menu UI to save the .har file.


Once you have the .har file, please upload it to the support ticket through the support console so we can take a look and help with your issue.