Idea behind NoAds parameter is that you can test, debug and/or measure page speed test of your site without being disrupted by ads which load on your site. They can causes JS errors and/or page load slowness.
You need to apply this parameter in code manually. When done you can use like this:
- http://example.com/?NoAds=1
- http://example.com/an-article-54362.html?NoAds=1
- http://example.com/section-page/?NoAds=1
- http://example.com/tag/example-tag/?NoAds=1
- http://example.com/search/?q=search+query&NoAds=1
Processing parameter on back-end
Parameter NoAds=1, when set, should hide ads on a page.
Usage examples:
XML
<if test="NoAds==1"></if> OR <if test="NoAds==False"></if>
Mustache
{{#NoAds}} {{NoAds}} <!-- this will return the param value, e.g. 1 -->{{/NoAds}}<!-- OR -->{{^NoAds}} <!-- execute code when the parameter is not set -->{{/NoAds}}
Jinja2
{% if NoAds == 1 %} OR {% if NoAds == False %}
Processing parameter with JavaScript
We don't enforce any specific way on doing this so you can code your own function to handle parameters with either vanilla JS or jQuery. For this, you can lookup window.location.search.
Note: If you need to parse general parameters, you can check it topic URL Params in Code.
Note: We recommend that you use anchors instead of parameters if working extensively with parameters on the front-end side (E.g. example.com#hashParam). For more details on this, lookup window.location.hash.