IWeb with Google Analytics

I spent all morning setting up Google Analytics. Looked at dozens of posts here with loads of misinformation. iWeb 09 does work with Google Analytics. Here's what worked for me. They key was to make sure my URL ended with a /. That is, it didn't work when I pointed to www.testsite.com but it did with www.testsite.com/
Go to Google Analytics to set up your site and get your code
(something like this:
<script type="text/javascript">
var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
</script>
<script type="text/javascript">
try {
var pageTracker = gat.getTracker("UA-xxxxx-1");
pageTracker._trackPageview();
} catch(err) {}</script>
Add an HTML snippet (Show Media, click on Widgets). I dragged the HTML widget to the footer (as you drag, the bottom inch illuminates so you know you're in the footer.) Paste in the code you got from Google. Re-size as desired and then post the same HTML snippet into each page in your web. Just click on each page and paste. It will go to the same place on each page.
Oh, one other odd thing: in the Google Analytics display, the current day is not shown. Click on the date range to choose today and you should see results fairly quickly.

Hello ruralart,
After saving the automator workflow as a Finder Plugin,
mount you iDisk in the finder (ex. click on the iDisk icon in the left pane of a Finder window),
goto the folder iDisk / Web / Sites , select this folder "sites",
control-click on the folder to run the “Add Google Analytics” workflow.
Note : when you have iDisk Sync = ON, you'll see that the folder "web" is an alias so Automator will not work in this situation. You'll have to turn iDisk Sync OFF.
Kind regards,
Leo

Similar Messages

  • Data tracking with Google Analytics

    Hi
    Can I use Google Analytics with iweb?

    Yes. You can add it to each page using iWeb SEO which requires it to be reapplied each time you edit a page.
    You can also add it an HTML snippet which is a one time application. However, the snippet requires a bit more effort up front. Wyodor posted detailed instructions on how: IWEB : ADDING GOOGLE ANALYTICS WITHOUT EDITING THE WEBPAGE.
    Have you looked at the information that you can get about visitors by using a counter from StatCounter.com. It's quite comprehensive and much easier to add to each page.
    Click to view full size
    Old Toad's Tutorial #13 - Adding a StatCounter as an HTML Snippet describes how to add the counter.
    I've used both and find the info from StatCounter more complete regarding visitors.
    OT

  • Iweb et google analytics

    Bonjour,
    J'ai créé mon site via iweb... jusque là la vie est belle
    impossible de trouver comment intégere les balises google analytics sur les pages de mon site... je ne comprends rien
    Il y a t-il une méthode simple et compréhensible
    je vous remercie par avance

    If you want to add title tags and meta descriptions for SEO as well as Google Analytics, youcould consider using the application iWeb SEO Tool...
    http://www.iwebformusicians.com/Search-Engine-Optimization/Tags.html
    This app will add the analytics code to all the pages of your site with one click.

  • Iweb and google analytics

    hi,
    i am new to iweb, i am trying to insert a google analytics script to my new site, how can that be done? can i edit my site in HTML mode?
    please advise, thanks, Meir

    Salut,
    I just tried 1000 combinations to implement that code and only had errorr... The solution proposed by Wyodor (thanks for the post btw) seems to be simple and easy but I definitely don't understand what I'm doing wrong...
    - I changed the google analytics code thanks to "Fraise" (HTML editor) by deleting :<script type="text/javascript"> and </script>
    - I uploaded the text file in a specific folder on my server (in the root)
    - I finally added the HTML snippet on iweb with the code given by Wyodor...
    - I publish
    = Result : no google analytics when I check my source code...
    Maybe my mistake comes from the code : newScript.src = 'http://url/of/the/file/named/analytics.js';
    Could you tell me exactly what URL (of the file named) I have to put in the HTML snippet ?
    I also read some articles where people say that iWebSEO is working well. Would you recommend to use it instead of that solution above ? Do you think that iWebSEO can be a good way implement meta tags in order to improve your visibility on search results ?
    Thanks for your help
    Merci !

  • Issue with Google Analytics Character Encoding (Contribute changes the code)

    I am wondering if there are any admin settings to work around this issue. This is an issue with Contribute CS3/CS4.
    Editing a page in Contribute turns encoded characters into unencoded characters. For example, turning "%3C" into "<". Encoded version has no errors.
    Un-encoded characters in Google Analytics code causes Scripting Errors on each page you open in Contribute, make loading slower, and make it difficult just to browse the site using Contribute.
    Specifically changing this:
    <script type="text/javascript">
    var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
    document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
    </script>
    to this:
    <script type="text/javascript">
    var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
    document.write(unescape("<script src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'></script>"));
    </script>
    (I believe it is the double </script></script> that might be causing the error to pop up.)

    Set the link encoding option as "Insert Links As Is", under Administer website dialog.

  • Tracking with google analytics

    We have a desktop app we have built with air, and the client
    has requested usage statistics to see how much people are using
    it... What I'm wondering is what is the best way to monitor the
    usage? We already use google analytics on their website... I'm
    wondering if we can use it from inside the AIR app as well. If so
    how would you go about doing that?
    I thought about loading an external web page off the web
    server that had the analytics tracking on it and displaying that on
    the app somewhere... What would that show up like in google
    analytics?

    Hi p-dog
    I am Paul Sanderson - the creator of Air Analytics: http://www.airanalytics.net/
    Air Analytics is a native Air Flex/Flash solution built from the ground up that gives you rich insights into your applications, use, installs, versions ect.
    I would love for you to try out and use Air Analytics.
    If you go over to Air Analytics and register I will activate you and you can start trying it out.
    This also goes for everyone else in this forum who would like to give it a go.
    Thanks Paul

  • Tracking captivate lesson hits with google analytics

    Has anyone tried using Google Analytics to track hits to Captivate-generated lessons?
    Thanks.

    Without hijacking the thread...
    Will the CP5 PHP program provided also allow the trackiing of assessment scores to the webserver?
    (I am asking because we do not have an LMS)
    Thanks
    Terry

  • IWeb with Google Chrome Opacity Problem

    Hi, I'm relatively new to iWeb and probabably do not know many features, so.. don't blame me if i do not know what you mean
    In iWeb, I created some text with shadows and line dividers, both with opacity on them:
    and with changing colors when cursor hovers over the links:
    However, after I published it, it appeared like this when using the latest version of Google Chrome on Mac OS X 10.6.8:
    with no opacity on the shadow and line dividers, and no change of color when hovering over the text.
    Also, only the opacity works on Safari, not the color change. Is it due to my browser? or did I just missed out options when publishing? o.O

    The more complex it gets, the less it can be done in iWeb.
    Create your own menus.
    http://www.wyodor.net/_Demo/duckmenu/HoverImages.html
    This is the image :
    Display the menu in a HTML Snippet with the  <iframe> html element.
    http://www.w3schools.com/tags/tag_iframe.asp
    Here's another sample of the duckmenu :
    http://www.wyodor.net/_Demo/tmf/Duckmenu.html
    It's added to the page with a JavaScript :
    http://www.wyodor.net/_Demo/duckmenu/duckmenu.js
    More menus here :
    http://www.wyodor.net/_Demo/tmf/TMF.html
    http://www.wyodor.net/_Demo/FloatingMenu/Fixed.html
    http://www.wyodor.net/_Demo/FloatingMenu/DynamicFloat.html
    and here :
    http://www.wyodor.net/mfi/roodhout/How_To_Do.html
    http://www.wyodor.net/mfi/Maaskant/How_To.html
    Lots of menus :
    http://www.wyodor.net/mfi/Maaskant/Some_Menus.html

  • Problems with Blog Comments after running Google Analytics Automator

    I upgraded to IWeb 09 today and was hoping that there would be not too many compatibility issues. Well, here is one.
    I noticed that the comment function on my blog page kept disappearing after I published the website to MobileMe. After some hours of trial and error I found out that the comment function is there right after publishing but disappears straight after running the Google Analytics Automator on the Idisk website folder.
    I don't think I had this problem with IWeb 08 (I only used it briefly), so that might be a compatibility issue with IWeb 09.
    Anybody else had this problem? Any suggestions?

    After some hours of trial and error I found out that the comment function is there right after publishing but disappears straight after running the Google Analytics Automator on the Idisk website folder.
    this is a known problem since from iweb1, any time you post edit your pages (with google analytics automator or what not) you potentially cripple MMe server side functions.
    search iweb1 and iweb2 forum for more details.

  • How to send datas properly to Google Analytics (ANE-Google-Analytics)

    Hello,
    I meet a problem when I'm using the native extension created by Alessandro Bianco : ANE-Google-Analytics. I tested this code many times, in the context of AIR mobile application, but I tested it without any success to add new datas to Google Analytic history. I'm really connected to internet properly.
    Moreover I think that I've made my functions as required by the author : Can you look at my code below to detect some errors to communicate with Google Analytics ?
    <s:TabbedViewNavigatorApplication
        xmlns:fx="http://ns.adobe.com/mxml/2009"
        xmlns:s="library://ns.adobe.com/flex/spark"
        creationComplete="creationCompleteHandler(event)"
    >
        import eu.alebianco.air.extensions.analytics.Analytics;
        import eu.alebianco.air.extensions.analytics.api.ITracker;
        import flash.utils.clearInterval;
        import flash.utils.setInterval;
        import flash.utils.setTimeout;
        public var ganalytics:Analytics;
        public var gtracker:ITracker;
        protected var i:int = 1; // Debug
        protected static const ANALYTICS_ID = "My UA code is here";
        protected function creationCompleteHandler(event:Event):void
            // I launch the tracker :
            ganalytics  = Analytics.getInstance();
            ganalytics.dispatchInterval = 5; // Interval for connecting : 5 seconds
            // I begin to use the tracker :
            GtrackerSessionUsing("RecordingView","HomeView",true);
         * GtrackerConnecting
         * @description : Open connection to Google Analytics, and create instance for a tracker
         * @argument : actionName = "RecordView" or "RecordEvent"
         * @argument : valueName = Name of the view or name of the event to record
        public function GtrackerSessionUsing(actionName:String, valueName:String, createConnection:Boolean=false):void
            gtracker = ganalytics.getTracker(ANALYTICS_ID);
            gtracker.startNewSession();
            if(etablirConnexion==true)
                // Tracking des views :
                var compteur:int = 0;
                var intervalGtrackerCnxOuvrir:uint = setInterval(function():void{
                    counter++;
                    trace("gtracker ="+gtracker);
                    if(counter==50){ // Try to connect - only - 50 times
                        trace("GoogleTracker fails to connect !");
                        clearInterval(intervalGtrackerCnxOuvrir);
                    else if(gtracker!=null){
                        trace("GoogleTracker success to connect !");
                        GTrackerRecordAction("EnregistrerView","HomeView");
                        clearInterval(intervalGtrackerCnxOuvrir);
                    else{
                        trace("Trying to connect to GoogleTracker... (itérate #"+counter+")");
                        gtracker = ganalytics.getTracker(ANALYTICS_ID);
                        gtracker.startNewSession();
                },5000); // All 10 seconds : iterate a new connection test
        protected function GTrackerRecordAction(actionName:String, valueName:String)
         * @description : Use the tracker of the Google Analytics connected account, all of Views can call this function with this model of code: parentApplication.GTrackerRecordAction(...)
         * @argument : actionName = "RecordView" or "RecordEvent"
         * @argument : valueName = Name of the view or name of the event to record
            if(gtracker!=null)
                switch(actionName){
                    case "RecordView":
                    trace("GoogleTracker : gtracker.buildView("+valueName+").track()");
                    gtracker.buildView(valueName).track();
                    break;
                    case "RecordEvent":
                    switch(valueName){
                        case "event1":
                            gtracker.buildEvent("click", "button").withLabel("play").withValue(10).track();
                        break;
                        case "event2":
                            gtracker.buildEvent("click", "button").withLabel("stop").track();
                        break;
                        case "event3":
                            gtracker.buildEvent("app", "quit").track();
                        break;
                    break;
    Best regards.

    Youtch,
         I'm not sure exactly what your issue is, but I was unable to connect and looked at your code, modifying it for my purposes and it fixed my code. Hopefully it can help fix yours.
         I did notice one thing as I went through, however:
    You use
       var compteur:int = 0;
                var intervalGtrackerCnxOuvrir:uint = setInterval(function():void{
                    counter++;
    The compteur does not match the counter variable. It appears a problem with Franglais is the issue here.
    In the event it may help, here is the code I used:
    In my creationComplete function:
    GoogleAnalytics.initialize("UA-47303719-1");
    Here is the code in my app.xml
    <extensions>
            <extensionID>eu.alebianco.air.extensions.analytics.NativeGATracker</extensionID>
        </extensions>
    And here is the class I created to use the ANE:
    package ANE.NativeGATracker{
         import flash.utils.clearInterval;
         import flash.utils.setInterval;
         import eu.alebianco.air.extensions.analytics.Analytics;
         import eu.alebianco.air.extensions.analytics.api.ITracker;
         public class GoogleAnalytics{
              static private var _analytics:Analytics;
              static private var _tracker:ITracker;
              static private var _supported:Boolean;
               * There is no need to instantiate this class
              public function GoogleAnalytics(){
              * Initialize the GoogleAnalytics object.. or return false, if Analytics isn't supported
              static public function initialize(ANALYTICS_ID:String):Boolean{
                   if(Analytics.isSupported()){
                        _analytics  = Analytics.getInstance();
                        _analytics.dispatchInterval  = 5;
                        establishTracker(ANALYTICS_ID);
                        _supported   = true;
                   }else{
                         _supported  = false;
                   return _supported;
              * Establish the tracker connection
              * @description: establishes the tracker connection... reattempt every 10 seconds, up to 50 times
              static private function establishTracker(ANALYTICS_ID:String):void{
                   _tracker  = _analytics.getTracker(ANALYTICS_ID);
                   _tracker.startNewSession();
                   var counter:int    = 0;
                   var establishInterval:uint  = setInterval(function():void{
                        counter++;
                        trace("Google Analytics tracker = " + _tracker);
                        if(_tracker != null){
                             trace("GoogleAnalytics tracker connected!");
                             _tracker.buildView("Launch").track();
                             _tracker.buildView("Home").track();
                             clearInterval(establishInterval);
                       }else if(counter == 50){
                             trace("GoogleAnalytics failed to connect.");
                             clearInterval(establishInterval);
                       }else{
                             trace("Trying to connect to Google Analytics... attempt #" + counter);
                             _tracker  = _analytics.getTracker(ANALYTICS_ID);
                             _tracker.startNewSession();
                   }, 5000);
             * Analytics object
              static public function get analytics():Analytics{
                   return GoogleAnalytics._analytics;
              * Tracker object
              static public function get tracker():ITracker{
                   return GoogleAnalytics._tracker;
              * Returns true if analytics are supported, but false if they are not. Check this before any use of the tracker or analytics objects
              static public function get supported():Boolean{
                   return GoogleAnalytics._supported;

  • Proper setup for Google Analytics within BC?

    I've done a good bit of research and searching, and so far I've found:
    Kiyuco: http://kiyuco.com/tutorials/tracking-cross-domain-traffic-with-google-analytics-on-busines s-catalyst
    Adobe Forums: http://forums.adobe.com/message/4737785#4737785
    and: http://www.itbusiness.com.au/_blog/Blog/post/Business_Catalyst_vs_Google_Analytics_Cross_D omain_Tracking/
    These resources are fairly dated, so it's difficult to know if you're following along correctly. I've even read a good bit of Google's documentation on how Analytics works, but I'm still unsure as to whether or not my setup is working properly.
    Everything seems to be tracking, but under "Real-Time" view in Google Analytics, one user will become two as soon as they click the checkout button... Is that normal? I guess I'm asking for others to share their "base" setup is for Analytics on BC e-commerce sites. Or even just tips and resources... Anything! Thanks.
    -Addison

    Hi again Angela
    This is RoboHelp HTML, no?
    If so, you should be able to do the following:
    * Click View > Pods > Project Setup
    * Right-click the Templates pseudo-folder and choose "New
    Topic Template"
    * Name the Template and click OK
    * Click View > Footer (Or View > Header - But Footer is
    probably more clean for this)
    * Click Insert > HTML > Advanced > Script
    * Paste your snippet of code and click OK (You should see red
    boxes in your footer)
    * Click Window > Close all
    * Click View > Pods > Topic List
    * Press Ctrl+A to select all topics
    * Right-click the selection and choose Properties
    * Click the General tab
    * Click the drop-down and choose your template, then click
    OK. It should then apply the footer to all the topics in your
    project.
    That should get you pretty near to what you are seeking.
    Cheers... Rick

  • Adobe Muse site and Google Analytics/Webmaster Tools

    Ok, so this is my first time attempting to utilize Google Analytics/Webmaster Tools, etc. onto a Muse website. It gives me an html code that I am supposed to add to my website. Without using the Edit > Insert Custom HTML, I need to actually go into the site Code and add it manually. For example, the Google Webmaster basically wants me to add a "google1234567890.html" page to my site, so I need to actually be able to upload a .html to act as a page on my muse site so that it can verify the "www.domain.google1234567890.html if one were to visit it like a page. Additionally, with Google Analytics, it requests you add a custom html code to each page you want to "track". The Edit > Insert HTML does not work with these tools. So ultimately, how can I access my actual HTML code in order to add these manually to each web page, AND have it Publish?

    http://www.j-26.com/google-webmaster.html
    http://www.j-26.com/google-analytics.html
    those are updated version of Dr Juan's links.

  • Google Analytics and DPS Enterprise

    Hello!
    I would like to track my custom storefront with Google Analytics. HTML assets are built into the app. How can i do it?

    It need Internet access so that's a must, it's the AIR apps work 
    hopefully in the next release will be more choices to secure AIR apps
    Sincerely,
    Michael
    El 22/04/2009, a las 15:48, mike3290 <[email protected]> escribió:
    arghh... i'd like to install this but I just cancelled out after I 
    saw this screen :
    >
    System Access : Unrestricted
    The application may access your file system and internet, which may 
    put your system at risk.[/QUOTE]
    >
    why does he need unrestricted acces..
    >

  • Google Analytics for SUP Hybrid mobile application

    Hi All,
    Detailed information of my application
    SUP Hybrid mobile application
    Developed using HTML5
    Kendo UI mobile
    I need to track all the information of user actions like Add, delete, copy records, page visit, device information etc. Is there any way to use Google analytics for SUP hybrid mobile application.
    Anybody have implemented this before with google analytics or any other analytics tools. Please suggest on this, your help is highly appreciated.
    Thanks

    In the Page properties ....

  • Using Google Analytics with iWeb site

    Is it possible to use Google Analytics with an iWeb site? They have code they want me to put before the </body> tag.... and I can't find that tag. How do I get the code to show in iWeb? Can I insert this with an HTML snippet?
    Thanks!

    Hello ruralart,
    After saving the automator workflow as a Finder Plugin,
    mount you iDisk in the finder (ex. click on the iDisk icon in the left pane of a Finder window),
    goto the folder iDisk / Web / Sites , select this folder "sites",
    control-click on the folder to run the “Add Google Analytics” workflow.
    Note : when you have iDisk Sync = ON, you'll see that the folder "web" is an alias so Automator will not work in this situation. You'll have to turn iDisk Sync OFF.
    Kind regards,
    Leo

Maybe you are looking for