Identifying users and triggering events using WebFlow

Requirements before proceeding.

In general, to understand how to identify visitors and to trigger events, please visit: How to set journey properties in JS

We'll further assume the following:
www website is supported!
Advanced URL is
https is supported!

Adding the snippet to the page to record the page view

Paste this in Page Settings > Custom Code > Header Code:

<script src="" async></script>
journy("init", { trackerId: "your-journy-ID", domain: "" });
journy("pageview"); /*record the page view! */

You'll need to change your-journy-ID to your... actual journy-ID...but you can simply copy-paste the whole code from your business setting menu.

Identifying visitors when submitting WebFlow forms.

Paste this in Page Settings > Custom Code > Footer Code:

function getParam(name) { name = name.replace(/[\[]/, "\\[").replace(/[\]]/, "\\]"); var regex = new RegExp("[\\?&]" + name + "=([^&#]*)"), results = regex.exec(; return results === null ? "" : decodeURIComponent(results[1].replace(/\+/g, " ")); }
Webflow.push(function() {

$("#RequestDemoButton").click(() => {
const inputEmail = $("input[type=email]").val()
if(inputEmail) {
console.log("Submitted " + inputEmail);
journy("identify", { email: inputEmail, score: 25 }); /*identifying the user! */
journy("event", { tag: "WebFlow Form Submit" }); /*trigger an event! */

You need to set the page recording snippet before being able to identify a visitor or trigger an event!
Was this article helpful?
Thank you!