We have a wix landing page - which marketing team will be promoting and using query params to track perforamance and such.
We are redirecting a click from wix landing page into our site and we want to just carry over those query params into our site.
In order to do that I am simply getting the URL and extracting query params, however what I noticed is while doing that it removes some query params.
Example url :
https://www.register1.diet.mayoclinic.org?promo=5D506E4C-EA78-4252-84A1-FEAA6E8231A7&utm_campaign=WixPageControl&utm_content=Homepage&utm_medium=Google&utm_source=PaidSearch&utm_term=BMM
var url = wixLocation.url;
console.log(url);
This is what I get :
https://www.register1.diet.mayoclinic.org?promo=5D506E4C-EA78-4252-84A1-FEAA6E8231A7&utm_content=Homepage&utm_medium=Google&utm_source=PaidSearch&utm_term=BMM
If you notice it has removed : utm_campaign=WixPageControl
Is that something Wix is intentionally doing ? We have to pass the utm campaign into our site for further tracking.
1 Like
_or
2
Hi,
Please share your editor’s URL so we can inspect, only authorised wix employees can use the link .
Have you tried to use wixLocation.query ?
For the url : https://www.register2.diet.mayoclinic.org/?promo=52-qtr-1wktrial&utm_source=Search&utm_medium=Google&utm_campaign=TopBrandedExact_Wix2
When I do console.log :
console.log(wixLocation.query);
It gives me back :
{promo: “52-qtr-1wktrial”, utm_medium: “Google”, utm_source: “Search”}
It strips off : utm_campaign
Hello, the same is happening to me. Is there any solution?
We did not get a response and thus ended up not using some of the utm params