How to get UTM parameters and send them inside Webflow Form

This code not related to cookie conest (no connection related - you should add extra logic).

When you want the cookie to expire?

I will test this.

@Siton_Systems I now set the expiration date for 28 days.

The cookie consent script works already on blocking the Lead script until consent is not given and enables it if given, but even if I let the Lead script trigger since the beginning, so before even cookie consent from user, it behaves the same (2nd page on chrome/3rd page on safari is gone). Thanks a lot for helping me out on this!

For me, it is working (maybe clear cache).

Test this link:
https://www.bunq.com/jobs?utm_source=facebook&utm_medium=post&utm_campaign=webflow

Anyway, You have a lot of red console errors (not related to my code) - maybe it is related.

write me in private.

Thank you for this! Is there any way to set a field value as null if the utm param is empty? For example “?utm_source=&utm_content=Dummycontent”

I don’t know why/when it is useful - anyway i edit the code above (Copy - Paste again).

Change her (to “null” – “empty” or any string you want):

image

If you want even on page without any cockle + clean URL (without any parameter) to get null - set this her and that’s it (The code will override this on URL with params):

-or- remove this (Always run the code):

image

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.