So I need to extract UTM from a url however in my case it is essential that when there is no UTM a default value is returned, the first part was answered below, but the second wasn’t and I can’t run it without the default value. Can anyone help me?
So I need to extract UTM from a url however in my case it is essential that when there is no UTM a default value is returned, the first part was answered below, but the second wasn’t and I can’t run it without the default value. Can anyone help me?
Thank you so much looking forward to putting this to the test
To add to Troy’s answer. You can add || after the variable declarations and javascript will use the default value if the url param doesn’t exist
Enter your username or e-mail address. We'll send you an e-mail with instructions to reset your password.