Hello
Do you know a way to keep the same url parameter all along the vistor’s navigation ?
For example, my visitor arrives on www.example/form/?source=google. I want to get the source in the form via a hidden field. If the visitor navigates to the homepage, the url parameter is lost and if he fills in the form afterwards, I’ve lost the source.
Many thanks for your help
yannick
February 12, 2024, 2:01pm
2
I had to create a cookie just for that.
I hadn’t thought to ask. Let’s hope there’s a way.
aar0n
February 13, 2024, 5:55am
3
Following. I’d love to track visitors from different sources.
Flavien
February 13, 2024, 4:25pm
4
Hello. My 2 cents:
Use custom scripts to :
store the source parameter in a variable
rewrite all urls found in a page adding this variable at the end, so that it follows the user wherever it goes
Ideas :
GET → url - Get the values from the "GET" parameters (JavaScript) - Stack Overflow
url rewriting - append url parameters to all links - WordPress Development Stack Exchange
Ben
August 30, 2024, 4:11pm
6
I like where Artur is going here. Have you tried this and how does it work for you all @yannick , @aaron , @flavien , @JimGo ? Thanks!
For that you might need to write a custom code that takes the utm params from URL and adds into cookies.
I assume ChatGPT would be great at creating such code. Here is an example: ChatGPT
JimGo
September 17, 2024, 3:29pm
7
I haven’t taken a close look yet.
I took some time off from development but am back at it.
Thanks for thinking of me
1 Like