How to extract UTM in n8n

Hello, guys!

I using n8n, with Wordpress elementor to catch leads a send to pipedrive CRM by Webhook.
I need do extract from url tht UTM’s like source, campaing and content to put it on pipedrive.

But i don’t know how to extract de utm in javascript.

I know my questions is piece of cake for most of you, but my coding skill are mokey level atm, sorry.

Hey @Silvon_Tavares,

I am working on a new node for which has UTM extraction as an option but until then a manual approach would be to use regex or split the string on ‘&’

This thread below shows how to remove the options but in theory you can adapt the same idea to get what you are after.

1 Like