1 of 1 people found this helpful
cr and kw will populate from the current URL (on your site). Does that not work for you?
Unfortunately, the line in MktoForms2::getPageFields to parse the referrer's query string is broken (it looks at the wrong part of the referrer URL), so you shouldn't expect q to work.
- Not every referrer will be available to your page in the first place. If your LP is http:// and the referrer is https://, JS can't see the referrer, so it can't parse it.
- Search engines don't want you to see the user's original q anymore.
For all the above reasons it's best practice to encode the source in the destination URL, that is, instead of expecting to see q=crazee in the referrer URL, put source=crazee in the destination URL.
Yeah even the cr kw don't populate from https to https pages even though document.referrer was giving expected result.
It was actually just to see referrer internally but that wasnt working so I was trying other referrers Im not sure why I expected to see anything from google as they basically give nothing nowadays.
Thanks for your helpful input.