Remove ?m=1 From Blogger
So Guys ?m=1 Is Basically A Mobile View Parameter But In Google Webmaster It Show's Error Of Alternate page with proper canonical tag.
So Today I Will Show You How To Remove ?m=1 From Blogger. You Have To Follow Some Simple Steps.
➡️ Go To Blogger
➡️ Go To Theme
➡️ Click On Edit HTML
➡️ Press CTRL+F And Find </body>
➡️ Paste The Code Given Below
➡️Paste That Code Above </body>.
Code
<script type='text/javascript'>
//<![CDATA[
var uri = window.location.toString();
if (uri.indexOf("%3D","%3D") > 0) {
var clean_uri = uri.substring(0, uri.indexOf("%3D"));
window.history.replaceState({}, document.title, clean_uri);
}
var uri = window.location.toString();
if (uri.indexOf("%3D%3D","%3D%3D") > 0) {
var clean_uri = uri.substring(0, uri.indexOf("%3D%3D"));
window.history.replaceState({}, document.title, clean_uri);
}
var uri = window.location.toString();
if (uri.indexOf("&m=1","&m=1") > 0) {
var clean_uri = uri.substring(0, uri.indexOf("&m=1"));
window.history.replaceState({}, document.title, clean_uri);
}
var uri = window.location.toString();
if (uri.indexOf("?m=1","?m=1") > 0) {
var clean_uri = uri.substring(0, uri.indexOf("?m=1"));
window.history.replaceState({}, document.title, clean_uri);
}
//]]>
</script>