I recently started blogging through blogger. On my Google Search Console account, I got the error "Duplicate without user-selected canonical" error. When I inspected the affected pages I saw:
?m=1
at the end of the affected URLs. I saw a fix online and added the following line in the HTML of my Blogger account:
<link expr:href='data:blog.url' rel='canonical'/>
I also saw a similar line to the one above which is as follows:
<link expr:href='data:blog.url.canonical' rel= 'canonical'/>
I wanted to ask that is there a difference between these two lines of code. Which one is the correct line? Also if the original URL without ?m=1 is indexed and the URL with ?m=1 is not indexed should I leave it like this or do I need to enter one of the above line in the HTML code of my website?