How to add [referer page url] to the contact form?

I want to add a refer url to the form so that I can know where the customer comes from.
Please anyone can help?

for example: WPForms

{echo:wp_get_referer}

This works!
How can echo the Referer Page Title instead of URL? :laughing:

Thanks!

Who does the page belong to, your site or someone else’s?

It is my site, not external link. For example:
My website has several course pages. Click the button to the Registration Form page. Then the Registration Form has a field to show Refer Page Title.

Thanks for help!

There are several solutions, but the simplest is probably to pass the title as a parameter in the link
_mysite.com/kurs?title=mytitle

Now you can get the value from the parameter as dynamic data

{url_parameter:title}