Skip to main content

Hello there to anyone please I need some help:

I have this URL:
https://www.okcars.com/?utm_source=mybusiness&utm_medium=referral&utm_campaign=okcars_mybusines

I want to extract the 3 UTMs and send them to the next step:

  • utm_source
  • utm_medium
  • utm_campaign

¿What utility, format or webhook should i use to get this 3 UTMs and send them separetly to the next step?

Thank you in advance

Hi @Eduardo Barga 

Best would be to use a Code step, but that’s an advanced approach: https://zapier.com/apps/code/help

 

 

Output

 


It worked perfectly :thumbsup:

Thank you so much !!!

 


The javascript code worked perfectly, but in the cases the URL comes without UTMs, the value the field returns is “null” or empty

Example of an URL without UTM campaign, source or medium

¿It is posible to replace this empty value for a default text (for example, “organic”?
 

¿using Javasript to select and replace de empty value?

¡¡¡Thank you so much in advance community!!!