I am using WixLocation.url & wixLocation.query to parse out tracking and utm parameters to into hidden text inputs, for the purpose of sending the tracking parameters to zapier. The parsing of the parameters and posting to zapier is working correctly, however WixLocation.url & wixLocation.query is not picking up the tracking parameters when a user internally navigates to the page where the WixLocation.url & wixLocation.query code is placed.
Essentially, I send users my site's homepage, where the utm and tracking parameters are contained within the url. Then the user will click an on-page button and navigates to a new page to begin filling out a mulit-step form. When the user navigates to the new page, WixLocation.url & wixLocation.query is no longer picking up the tracking parameters from the referring homepage. When I set this code up in 9/2019 it was originally working, passing the parameters with internal navigation of the site. but it appears it is no longer working.
Do you have any suggestions on how to get tracking parameters to successfully pass when user navigate across pages , allowing WixLocation.url & wixLocation.query to pick up the tracking parameters?
In looking at Corvid resources, I see this link https://www.wix.com/corvid/reference/wix-location.html, which contains examples on how to utilize WixLocation.url & wixLocation.query code. Under the FAQ section it talks about passing the query when users are directed to a new page:
However this appears that the WixLocation.url & wixLocation.query need to be on page that the user lands on originally, where then it can pass the query to the next page. Which is doable for me to set up, however, I need text inputs in the second page as I am using text inputs to pass tracking parameters into a zapier webhook.
I am thinking another solution could be essentially placing WixLocation.url & wixLocation.query on the homepage to successfully parse of the tracking params as desired and placing them in text inputs, however, I have to figure how to then link the homepage text inputs to text inputs on the second page.
Do you have any suggestions on how I can go about this and resolve this issue?