How to Add Google Analytics?

Hello,
I would like to add Google Analytics to my flash file. The flash file is contained in a HTML file, which I already added the script provided by Google Analytics. At the moment, when a user visits my site, regardless which page is visited, only the homepage is counted.
What as3 do I add to the flash file to keep track of each page that is being visited? I've tried a few codes provide on Google Analytics page and other tutorials, but none worked. The as3 for the menu buttons is displayed below.
var menu_label:Array = new Array("Home", "Policy",
                                 "Clothes", "How To Buy", "Contact Me");
var total:Number = menu_label.length;
var spacing:Number=1;
var i:Number = 0;
var page:Number;
var main_menu:MovieClip = new MovieClip();
stage.addChild(main_menu);
stage.addChild(envelope);
stage.addChild(fm_content);
for( i = 0; i < total; i++ )
    var btn = new button();
    btn.name = "btn" + i;
    btn.x = flashmo_button.x + (flashmo_button.width + spacing) * i;
    btn.y = flashmo_button.y;
    btn.item_no = i;
    btn.addEventListener( Event.ENTER_FRAME, btn_enter );
    var each_substring:Array = menu_label[i].split("|"); 
    btn.item_label.fm_label.text = each_substring[0]; 
    btn.item_url = each_substring[1];
    main_menu.addChild(btn);
function btn_over(e:MouseEvent):void
    e.target.over = true;
function btn_out(e:MouseEvent):void
    e.target.over = false;
function btn_click(e:MouseEvent):void
    var mc = e.target.parent;
    if( mc.item_url != undefined ) 
        navigateToURL( new URLRequest( mc.item_url ), "_parent" );
    else 
        change_page(mc.item_no);
function btn_enter(e:Event):void
    var mc = e.target;
    if( mc.over == true )
        mc.nextFrame();
    else
        mc.prevFrame();
Any advice is appreciated.

Nevermind. Figured it out.

Similar Messages

  • How to add Google Page Rank bar to Firefox

    How to add Google Page Rank bar to Firefox? With Chrome I can add an extension but how to do this with FireFox? Please give me the simplest and easiest solution.

    You can search the Add-ons site for Firefox extensions and see whether you find one with good reviews.
    https://addons.mozilla.org/firefox/

  • How to add google play to my ipad

    how to add google play to my ipad

    Amazon sent me an email saying I could do it but I can't figure it out
    .  They said I need to go to settings and  and open security or applications and hit allow unknown sources.  I know where settings is but there is no security or applications.....not to mention unknown sources

  • How to add Google Ads or similar in "AIR for Android" application?

    Hello,
    I have developed my android application (AIR for Android) in Flash Professional CS5.5. It's completed and fully tested on multiple android phones. Now I want to add Google Ads in my application to make some money.
    What I already know:
    I know that Adobe provides AdMob native extension API which allows you to add Google Ads in your app. But unfortunately, it's not free.
    What I want:
    I want a free resource through which I can add ads in my application.
    Please guide me how can I achieve this?
    Thanks in advance,
    momersaleem

    Yes, its for me broken, too.
    I found the link in this thread:
    http://forums.adobe.com/message/4036804
    Maybe try to contact the author or one of the thread participants for an unbroken version?

  • Trying to add Google Analytics to Dreamweaver site, not working

    I had Google Analytics set up on my dreamweaver site and all of a sudden it stopped reporting data.  A co-worker who no longer works here was working on the page to fix some non-relevant errors and as a result Google Analytics stopped working.  The strange thing is I had it pasted on every page of our site and nothing is reporting data.  It is reporting a syntax error on line x...but I am unaware what and how to fix that.  Help?

    You're not giving us much to go on.  Go to your Google WebMaster account & grab the GA tracking code.  Re-insert it into some test pages.    Analytics reporting may not show anything for several days.
    Nancy O.

  • How to add Google Search box on sharepoint master page

    SharePoint master page already has a form.  Google search box need to add another form. how to make it work.
    Google search box code
    <form action="http://..." method="GET" name="gs">
    <input maxlength="256" name="q" size="25" type="text"/>
    <input name="btnG" type="submit" value="Search"/>
    <input name="site" type="hidden" value="Education"/>
    <input name="output" type="hidden" value="xml_no_dtd"/>
    <input name="client" type="hidden" value="RESEARCH"/>
    <input name="proxystylesheet" type="hidden" value="Education"/>
    <input type="hidden" name="filter" value="0" />
    <input type="hidden" name="oe" value="UTF-8" />
             </form>

    Hi Icha, check out the following links. They include details for different methods depending on what you want:
    https://developers.google.com/search-appliance/documentation/connectors/260/connector_admin/searchbox_sharepoint
    http://kamalasekar.blogspot.com/2012/06/add-google-search-text-box-inside.html
    https://www.thorprojects.com/blog/archive/2012/10/05/adding-a-google-search-option-in-your-sharepoint-2010-search-scopes-without-code.aspx
    cameron rautmann

  • Add Google analytics to template (was: analytics and templates)

    how can I incorporate google analytics into my template based website. Can I directly paste the snippet into the template and it will work on all pages?

    Yes.  If you are using DW templates, I would recommend keeping it in an uneditable region of the template so that the code cannot be altered.

  • How to insert Google analytics in BC website

    Please can you assist with how we can insert our Google Analytics in our clients BC websites
    thank you
    Michelle

    Hi Michelle,
    log in to your Google Analytics account, click on a project and go to Admin > Tracking Code.
    Under Step 2 copy the javascript code and paste it into each of your BC templates BEFORE the closing body tag (</body>). Done
    A more advanced approach would be to create a content holder, paste your Google Analytics Code in there and insert the contentholder into each of the templates before the closing body tag. That way you have only one file, in case you need to edit it later.
    Nicole - BCGurus.com   |  http://bcgurus.com/Business-Catalyst-Templates for only $7

  • How to implement Google Analytics in iRecruitment version 11.5.10

    Hi
    We have a requirement to implment google analytics in iRecruitment. Cany you please let me know the steps to do so.
    thanks
    srimathi

    360 is one of the options for appraisals in Oracle HR. The Talement Management Implementation Guide (Supplement) is very useful.
    Search MetaLink for : "Talent Management Supplement Release 11i and 12" to get the guide.

  • How to add Google +1 button?

    That is the question. Help, please, anyone?

    Hello,
    You can add the Google +1 button by copying the code from google: https://developers.google.com/+/plugins/+1button/?hl=en
    Then insert the code in your Muse page:
    Go to Object > Insert HTML...
    Paste the +1 Button code you copied from Google in the HTML Code field
    Click OK
    Best regards,
    Corey

  • How to add google translate to website?

    I have tried adding the google translate service to my website. The code given on the google translate website does not work when I add it on dreamweaver. I dont know if I am doing something wrong.

    Paste the Google code in code view.  Save & upload to your remote server to test.  Some services do not work in DW or when previewed in local browsers.  If you still need help, post the URL to your test page.
    Nancy O.

  • How to incorporate Google Analytics

    How do I put the necessary javascript code into the header of the pages? Do I just add it to one of the other javascript files that are called or can I insert something into the header.uit?
    Thank you,
    Chris

    Nevermind. Figured it out.

  • How to add Google maps to articles?

    Does anyone know if there is possible? Please, enlight me!

    HTML PDF API - Export Google Map to PDF

  • How To Add Google Reader Button?

    Hi, I searched and didn't find any topics on this yet. Has anyone succesfully added a Google Reader feed button to an iWeb blog main page? I am finding the instructions on Google to be insufficient.
    thanks

    OK, well once you have it set up with your blog feed, read this to insert it into your iWeb page:
    http://www.varkgirl.com/Varkgirl/Basic%20HTML%20Additions.html

  • "SyntaxError: Parse error"  Installing Google Analytics-iWeb 09 w/MobileMe

    I have gone through many discussions on how to add Google Analytics - ran the Automator with my UA-xxxxxxxx-x number to my MobileMe Web>Sites folder, but the status on GA says that the tracking is not installed. I just noticed that in the resources tab under Develop>Web Inspector that there is a "SyntaxError: Parse error" under the UA#.
    Any thoughts? I am pretty new to this, so forgive me for my lack of intelligence when it comes to Google tracking. Should I start over? If so, how can I remove the current code?
    Thank you,
    Michael

    The freeware iWeb SEO Tool now has the facility to add analytics as well as SEO tags...
    http://www.iwebformusicians.com/SearchEngines/Tags.html
    There's a link on this page to an Apptorial tutorial.
    If you are interested in optimizing your files for faster download, the application Web SIte Maestro has a simplified way of adding analytics in the latest version.
    http://www.iwebformusicians.com/SearchEngines/Optimize.html
    Go to Finder/Go/iDisk/My iDisk/Web/Sites to delete the old code.
    "I may receive some form of compensation, financial or otherwise, from my recommendation or link."

Maybe you are looking for

  • Network manager takes lot of time during boot

    HOw to reduce my networkmanager boot time Below is my systemd-analyze time [root@gauranga simha]# systemd-analyze time Startup finished in 5449ms (kernel) + 82854ms (userspace) = 88303ms Below is my systemd-analyze blame [root@gauranga simha]# system

  • Check list field values using LINQ

    I have to check if the CURRENT USER is already in the list USERS by comparing his AccountName to the list field ACCOUNTNAME. If the USER is on the list I have to check if the field IsFollower is YES or NO and change it according to some conditions. I

  • Save renames filename to 8+3 characters on NetApp server

    We are using Illustrator version 12.0.0 (WINXP SP2), and it has been working fine until we switched our server to a NetApp Filer server. When opening an existing AI file (or create a new one), and press "Save" the saved files is shortend to 8+2 chara

  • Labor Management Functionalities

    Hi Experts , Can any one let me know if we can perform the Labor management functionalities in ECC 6.0 with or without RF Devices.Your comments will be appreciated. <b>Labor Management</b> 1 Engineered standards for tasks 2 Discrete standards for tas

  • Digital Signal Processing

    Hi all. Recently, I've been busy with a project on signal processing. I have no experience in this field so i am clueless about how to do it. I've been searching the internet about his topic and i keep getting the same results. So i would just like t