Form tracking: Hubspot (auto-identify script)

Updated by Rune Juul-Stokholm

Adding Hubspot form tracking with auto-identify script

For customers using Hubspot Forms, add the following auto-Identify script at the end of the <head /> section.

<script async id="dreamdata-form-identify" src="" data-hubspot-forms="true"></script>

If you are using Google Tag Manager, then you have to use this script instead because Google Tag Manager strips data parameters:

var script = document.createElement('script');
script.async = 'true'; = 'dreamdata-form-identify';
script.src = "";
script.setAttribute('data-hubspot-forms', 'true');

How did we do?