Home > Technical & Creative Skills > Programming, Servers & Scripts

Question about the content of href (5)


09-28-2020 12:38 AM #1 gobroke (Member)
Question about the content of href

I downloaded a landing page from Adplexity and the HTML script contains <a>href </a> with the same tracking link URL. The only exception is that there are different attributes/characters at the end of each URL. Below are the examples:
https://tracking.marketing.co/?_lp=1&amp;place=url1
https://tracking.marketing.co/?_lp=1&amp;place=url5
https://tracking.marketing.co/?_lp=1&amp;place=img5
https://tracking.marketing.co/?_lp=1&amp;place=order9
https://tracking.marketing.co/?_lp=1&amp;place=middle
https://tracking.marketing.co/?_lp=1&amp;place=buybutton

I created a campaign to test the flow between the landing page and the offer. When I clicked the "buy button" on the landing page, I was redirected to the tracking link. Unfortunately, the process was interrupted, and the warning page said "400 Bad Request." The URL of the warning page was https://tracking.marketing.co/?_lp=1&amp;place=buybutton. After I compared this landing page with other ones, I deleted the characters after ; sign so the URL, within <a></a>, was simply https://tracking.marketing.co/?_lp=1&amp. After I did that step, the landing page's flow to the offer page was not interrupted. Can anybody in here tell me why there are characters after ";" sign after the tracking link url and within the href attribute? Is this an attribute value?


09-28-2020 01:06 AM #2 jeremie (Moderator)

; is defined as a subdelim in RFC3986, the norm that defines URL. See paragraph 2.3 and an example in paragraph 3.3
https://tools.ietf.org/html/rfc3986

Have in mind that this norm governs all URL in any network, and not just internet. So, everything in it is not necessarily applicable to internet.

; is used to delimit parameters and values, a bit like &. I have never tried it so i can not tell if they are equivalent.

As far as why you get an error, i would have to see the page. Probably the page is adding some values after the ; to pass to the tracker.


09-29-2020 12:05 AM #3 gobroke (Member)

Thanks for the article and I will check it out. Btw, the page showed the exact value as the url tracking link within <a></a>. For example, if the value within <a></a> was https://tracking.marketing.co/?_lp=1&amp;place=bottom, then the complete url link on the "404 bad request" page was https://tracking.marketing.co/?_lp=1&amp;place=bottom. If I deleted ";place=bottom" from the html script of the landing page, then the viewer was redirected to the offer successfully.


09-29-2020 12:30 AM #4 jeremie (Moderator)

I know it shows it like that when you look at the code. Yet, when running, a link URL can be modified on the fly, or replaced... Without looking at the page, it is difficult to tell.


09-29-2020 10:02 AM #5 matuloo (Legendary Moderator)

The bad request code is usually happening when you directly load the LP and try to click on the CPA. You need to use the campaign link generated by the tracker and get to the LP that way, otherwise the click url doesn't know where to send you, so it gives this error.


Home > Technical & Creative Skills > Programming, Servers & Scripts