If I post a profile of a user from my website on Facebook, Facebook always adds a query parameter.

That is OK, but AdSense thinks every new query parameter is a new page and needs to crawl it before it can show ads. It is really still the same site just with a different query parameter.

2 Answers 2

<link rel=”canonical” href=”https://example.com/”>

Query parameters do make different URLs. When Facebook is adding parameters, it is creating new URLs. AdSense has no way of knowing whether or not the content is going to be different or not without crawling the URL.

To get around this problem, you can redirect to remove the unwanted query parameters. See this question on StackOverflow: .htaccess - Remove one query parameter from URL.

When you redirect visitors to your canonical URL without the query paramater, the ads will get served from that canonical URL and AdSense will be able to show the ads without extra crawling.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.