Why is there not a better resource for this? The things I would like to do are as follows. Ideally, this can be done by adding some simple lines of code to the site code tab, without having to add any code page-by-page.
What I need:
IF a url contains a parameter such as /page?ID=42
Then
Save the parameter value to cookies
If user clicks any other buttons or page links on the site, carryover or load the same parameter to the url on the new page (basically just keep the params in the url as a user navigates around our site)
If user leaves and returns within a defined period, reload the parameters from cookies and append to url for same behavior as above
Then be able to pass parameters into a jotform i-frame embed and/or wix contact form.
The easiest way to do this would be to use the wix-storage API to save the values - either by session or “permanently”. This would avoid the complication of having to keep track of the URL query parameters.
I guess my point is that the documentation around HOW to do this is extremely lacking. Please, using the wix-storate API, show me EXACTLY what code to use on the site to:
Get all of the parameters from the URL
Save them to wix-storage
Retrieve them on another page later on for use in a form or i-frame.