AdWords
3.1K members online now
3.1K members online now
Use AdWords conversion tracking and reporting to measure your results. Have a question about Google Analytics? Post it here, on the Google Analytics Community!
Guide Me
star_border
Reply

invalid "=" in landing page URL

Visitor ✭ ✭ ✭
# 1
Visitor ✭ ✭ ✭

I can't seem to find any answers for this:

 

My landing page domain is the same as my homepage domain, but I get the error "Invalid landing page URL" every time I change the landing page domain to something with an equal sign (=) in it it. 

 

Here's an example:

 

This works just fine:

http://www.mywebsite.com/sales-page

 

This doesn't:

 

http://www.mywebsite.com/sales-page-code=XYZ

 

If I take out the "=", it will accept it, but if I do that, it won't point to the correct page.

 

1 Expert replyverified_user

Re: invalid "=" in landing page URL

Top Contributor Alumni
# 2
Top Contributor Alumni
Hi Andrew,
You could always try encoding your = sign with %3D. For example, using above, it'd be:
http://www.mywebsite.com/sales-page-code%3DXYZ

With encoding, the %3D takes the place of the = sign.

If that doesn't work, I suggest you talk to your webmaster and make sure that your website is configured to accept = signs and to make sure that the page you're trying to drive traffic to results in a valid page.

Re: invalid "=" in landing page URL

Top Contributor
# 3
Top Contributor
Hi Andrew,

That's a malformed URL. An equals sign in the path is not allowed. Normally, that would be part of the query string, not the path itself. Seems to me it should be more like this:

http://www.mywebsite.com/sales-page?code=XYZ

Your server-side scripts would look in the query string for the value of code.

Another way to do this could be:
http://www.mywebsite.com/sales-page-code/XYZ

It depends on how your site navigation is setup.

Best of Luck,

Pete
petebardo -- Deadhead doing AdWords

Re: invalid "=" in landing page URL

Visitor ✭ ✭ ✭
# 4
Visitor ✭ ✭ ✭
Yes, my apologies, it is part of a query string.

It works now, for whatever reason, and encoding it with the "%3D" works as well.

Thanks

invalid "=" in landing page URL

Visitor ✭ ✭ ✭
# 5
Visitor ✭ ✭ ✭

> That's a malformed URL. An equals sign in the path is not allowed.

 

No it's not. Equals signs are explicitly allowed in the path:

 

> path-absolute = "/" [ segment-nz *( "/" segment ) ]

> segment = *pchar

> segment-nz = 1*pchar

> segment-nz-nc = 1*( unreserved / pct-encoded / sub-delims / "@" )

> pchar = unreserved / pct-encoded / sub-delims / ":" / "@"

https://tools.ietf.org/html/rfc3986#section-3.3

 

> sub-delims = "!" / "$" / "&" / "'" / "(" / ")" / "*" / "+" / "," / ";" / "="

https://tools.ietf.org/html/rfc3986#section-2.2

 

Note how a path segment may contain all sub-delims (and how sub-delims contains all these funky characters, including equals `=`, but excluding slash `/`)

 

Other funky allowed characters include commas, semicolons, braces etc. A good example of a big system using this in the wild is Javadoc, which generates URLs with paths with braces and commas in it.