How to set journey properties in JS

You can set journy.io journey properties by a fix set of JS calls, right from within your website or application.

Here's a list of available calls at your disposal:

You can use the following script to identify a journy by email.

journy("identify", { email: "[email protected]" });
email: the email identifying the contact.

You can use the following script to trigger an event by tag string.

journy("event", { name: "download ebook 15" });

You can use the following script to set user properties.

journy("properties", { first_name: "john", last_name: "Doe", age: 27, phone: "+1 606 404040" })

Note that all parameter are non-case-sensitive.
Was this article helpful?
Cancel
Thank you!