Mac: iWeb and Google Analytics
With iWeb 1.1.2 and publishing to a folder I faced the problem that I would not have any reasonable statistics on the webspace I would be publishing to apart from the standard Webalizer ones, which I do not really like for seeing who visits my site.
I made up a little solution with the help of BBedit (should work with any other decent Text-editor as well) which I found quite reasonable:Using the Search function I made a multi-file search through all .html files, searching for
</body>
and telling BBedit to replace it with
<script src="http://www.google-analytics.com/urchin.js" type="text/javascript">
</script>
<script type="text/javascript">
_uacct = "##-######-#";
urchinTracker();
</script>
</body>
where ##-######-# is your site’s tracking ID of course. :)
Now just save this as a search pattern and every time after publishing your site to a folder (~/Sites in my case) just apply it on the location of your Website.
Using Applescript at the right place it should even be possible to make this a more or less automatic task. It’s not very sophisticated, but for my case does the job well.
It even works if you are publishing to your .mac account - simply apply the rules on your specific iDisk’s iWeb Folders. Be careful though, because iWeb publishes differently to the iDisk, so you could end up with multiple code insertions.
For iWeb 2.0 and Google Analytics you might check my newer blog entry out:
Google Analytics and Apple iWeb 2


These kind of post are always
These kind of post are always inspiring and I prefer to read quality content so I happy to find many good point here in the post.
There are some really good
There are some really good products like iphone 5c tasche at efox-shop.com, I bought one last week, the service is excellent! You can find them here http://www.efox-shop.com/popular/iphone-5c-tasche.html
I've been wanting to try iWeb
I've been wanting to try iWeb with my newly bought MAC computer but I need a web hosting first. They say, it's best to use PHP, CSS and advanced HTML cause you can really completely customize your page. But the good thing about the iWeb is that everything you want is within reach.
Lena A. Lepage
visit us @ http://SolarPowerCompanies.net
@ Charle Totally agree with
@ Charle
Totally agree with you. It's confusing and I hope it will be made clear. Thanks.
Marc Strub
Hey, man! nice post. But i
Hey, man! nice post. But i dont think you are using the right code for it.
_uacct = "##-######-#";
urchinTracker();
I dont know exactly which but I am pretty sure this is not the right code for it.
"Are you sure you are using
"Are you sure you are using the right code?
How do you determine if it gets loaded or not?"
I agree, I'm really confused about this.
I hope it will work out.
:-)
-Charle Villamil
Visit us @: http://www.HowToSpeedUpYourComputer.net
Are you sure you are using
Are you sure you are using the right code?
How do you determine if it gets loaded or not?
We tried using te HTML
We tried using te HTML snippet feature of iWeb 2.0.2 but it does not work. For some resaon the snippet of code is not being loaded from the external widget file that iweb puts it in. Sigh.