Here's a solution that may work. Just tried it today. May see results tomorrow.
Get the Google analytics code.
Open TextEdit and set it to plaintext.
Paste the code
WITHOUT these opening and closing tags :
<script language="JavaScript" type="text/javascript">
<!--
// -->
</script>
Save the file as
analytics.js
Put the file on the server and determine the URL to it.
Create a blank page (for testing) and paste this code in a HTML Snippet.
<script language="JavaScript" type="text/javascript">
<!--
var headID = parent.document.getElementsByTagName("head")[0];
var newScript = parent.document.createElement('script');
newScript.type = 'text/javascript';
newScript.src = '../js/analytics.js';
headID.appendChild(newScript);
// -->
</script>
Where it says *newScript.src = '../js/analytics.js';* use your own URL.
Publish the page.
Visit your page and open the Activity window in Safari (Comand-Option-A)
Note the 2 URLs to Google. They look the same as with code that is pasted in a page.
Tomorrow check with Google to see if your page appears in the stats.
Call your friends and family and tell them to visit the page. More visitors may show more results.
If it works, fine.
If not, then I'm mistaken and will sob in a corner.