Skip to main content

Sending UTMs to Heyflow using GTM

Step 1: Install UTMSimple V2 (or higher) template in GTM

Download our GTM template (must be the latest) from Basic UTM tracker setup in Google GTM. It is at the top called template.tpl. And follow the tutorial to install the template

Step 2: Create HeyFlow tag

Create Custom HTML tag in GTM and put the following content

<script>
    var params = window.handlj.param(HandL.getAll())
    handlj('heyflow').attr('url-parameters',params) 
</script>
Save it without adding any trigger!

Step 3: Go to UTMSimple Tag (from Template) and add Tag Sequence

Select Fire a tag after "UTM Simple From Template fires" and pick Heyflow tag that you just created from Step #2

Save it,

Testing: Check the source code in your page (where heyflow tag is added) and Test (Optional)

Make sure you have your heyflow tag placed on the page you are testing

like this

<heyflow flow-id="put-your-flow-id" height="600px" width="800px" pass-parameters dynamic-height></heyflow>

It should have utm-parameters tag decorated with parameters like shown in the image above.

and test heyflow :)

Let us know if you have any question