Skip to main content

Capture IDs

On your website you may have multiple contact methods such as forms in additional to phone numbers. You are able to tie form submissions to Mediahawk visits easily, using MHCT.

Capture the visit and visitor ID

By adding hidden fields to your form, Mediahawk can automatically populate these with the Visit ID and visitor ID so when they are submitted they can be stored or emailed so you can get back to the source information and visitor journey that submitted the form.

To capture the visitor ID:

<input type="hidden" name="visitor_id" class="visitorMHRI" />

To capture the visit ID:

<input type="hidden" name="visit_id" class="visitMHRI" />
note

You can set the name attribute to anything, MHCT only looks for the class name

tip

Make sure that whatever receives the form submission handles the new inputs