Capture URL subdirectory in event properties

Hi, I want to track events on a page based on a section of the URL. The page URL is product.com/returns/[returnID]. I'd like to capture the return ID using JS, but I can't find a way. Is this possible?

0

Comments

1 comment
  • We're trying to do this too. Our URL contains a project ID that we want to pass through. It looks like this might be possible with Click Event Properties. But it would be ideal if there were a way to control this setting globally, instead of editing each Feature individually.

    1

Please sign in to leave a comment.

Didn't find what you were looking for?

New post