If you do not have permissions set properly, you can not edit, upload, scratch your backside unless you have permission set properly.
What are you talking about
smursalin another way to copy the Analytics code would be fine, as well
isn't fine if you do not have permission to copy it...
Get permission, authority to do so.
What this is now sounding like is you are wanting to scrape a site for its content and the site has data that is essential to its successful rendering and you can't get it because your on a different domain...
That in essence constitutes a hacking request, so not a permitted question.