Hi,
I have implemented canonical tag using a javascript. This file also contains the google analytics code. Is there any drawbacks in using javascript for implementing canonical tag? Also if the canonical tag generated is having a # ie, www.example.com# will that be a problem?