Tracking UTMs in ActiveCampaign on Kajabi
Add the following script to your Kajabi page
This script assumes the form field name matches with UTMSimple's cookie name What can I track with UTMSimple?
<!-- Global site UTM Simple Tracking Start-->
<script>
var handl_custom_params=[]
var handl_js = document.createElement("script");
handl_js.setAttribute("src", "https://track.utmsimple.com/utm.js?license=<license_key>"), document.head.appendChild(handl_js),
handl_js.onload = function() {
let fields = HandL.getAll()
for (field of Object.keys(fields)) {
if (Cookies.get(field) != undefined) {
handlj('input[name=*"'+field+'"]').val(Cookies.get(field))
}
}
};
</script>
<!--Global site UTM Simple Tracking End -->