Adding Statcounter code with HTML Snippet

On an earlier thread, someone posted a message that they could add the Statcounter code using an HTML Snippet. Does anyone know how to do that (and make sure it gets put in the right location)?
Thanks,

You can add statcounter using HTML Snippet.
but if you need statcounter to track different pages then HTML Snippet will give you bad results.
Because when you add statcounter code or any code for that matter, iweb adds the code to another page aka widget(#)_markup.html and links these pages to you target pages by way of iframe element. (unless iweb'09 does thing differently, but I doubt it)
example: let say you have twenty pages and add statcounter to each of them, you will see the results point to widget(#)_markup pages and not your page URL.
You came get away with all that if you know javascript (statcounter code is javascript).
I've been doing this for years, here is my example: http://home.cyclosaurus.com/Welcome.html
scroll all the way to the bottom, see that iweb look-a-like hit counter? it's a statcounter!
So, how are you with javascript?

Similar Messages

  • Zoomify embedding with HTML Snippet?

    Can you use Zoomify with HTML Snippet in iWeb '08? I can't seem to make it work.

    I have placed a Zoomify an my site and there i explaned how to do this
    1.If you are ready in Photoshop and have exported the file you’ll find a web-page with the name filename.html and a map that’s called filename_img. Open the HTML page with software like Taco HTML Edit. (Freeware)
    2.Select al the code and copy it.
    3.Go to the web-page in iWeb where you want Zoomify, choose webwidget and paste in the HTML.
    4.Publish your site.
    5.If finished, open your iDisk and open the map with your page name (path iDisk(your name)/web/your site name/your page name)
    6.Copy the map filename_img to the map called as the page name. This can take some time
    Take a look on this page: http://web.mac.com/guy.beckers1/mediainbelgium/Home.html

  • Having trouble with html snippets and movies in iweb 09

    Hi I have built a site iweb2.0.4 and recently moved it onto my new machine with iweb 09 on. Basically I have been putting in videos that I have exported for web out of Quicktime. In the past I have simply added an html snippet code like this in <iframe src="http://evileducation.org/stammuraifinalcomp/ReadMe.html" style="width: 340px; height: 285px"; scrolling="no" controller="true" frameborder="0"></iframe>
    I edit the ReadMe.html based on a tutorial I saw and it loads the movie after pressing the "Click to play" button. Now in 09 when I put the code in to the snippet it just shows a Quicktime symbol with a question mark. if you check the link below you can see the videos with the best I have managed to do so far which is get the new movies on but they both autoplay (I have linked in this instance to the 4kb .mov in each folder rather than the readme.html.). I don't want to just drag a video in I would like the options to view on phone or on computer etc and not for them to autoplay. Is there a new/ different way to do this now. Surely it shouldn't be this hard to get the export for web in Quicktime and iWeb to work together? The frustrating thing is if you check the link below the old movies work fine still it's just the 2 new ones. Soz for the long one!
    http://evileducation.org/eviltwin_education_2010/movies_made_by_youngpeople.html

    Less cryptic :
    MAKE THE TWO MOVIES THE SAME AS THE OTHER EIGHT.
    Here are some pages for your convenience you can study and nim :
    http://www.wyodor.net/iFrame/
    http://www.wyodor.net/MoreEmbed/
    [Using the iWeb HTML Snippet|http://www.wyodor.net/blog/archives/2009/07/entry_213.html]
    http://www.apple.com/quicktime/pro/tutorials.html
    You may have to learn HTML/CSS/JavaScript.
    for the young people with disabilities that made
    Keep the emotions out of the equation.

  • Statcounter code in a snippet on a page

    Hi all
    I copied the code that statcounter provided -- see below. Can I insert the code on a page as a snippet or do I have to open the file in text edit and apply the code to a placeholder? Also if the website has multiple pages and I want to track usage do I insert the code on each page or put a snippet on each?
    <!-- Start of StatCounter Code -->
    <script type="text/javascript">
    sc_project=3688292;
    sc_invisible=0;
    sc_partition=44;
    sc_security="0eb48cde";
    </script>
    <script type="text/javascript" src="http://www.statcounter.com/counter/counter_xhtml.js"></script><noscript></noscript>
    <!-- End of StatCounter Code -->
    Thanks, in advance.
    Carl

    Hi,
    Putting the code on the page in an html snippet works fine.
    You need to add the code to each page that you want to track statistics for; There are some options to generate code for a visible counter for your home page and invisible ones for the others, etc.
    Or check out iTweak, a free app that will add stats counter code (& other stuff) to all your pages after publishing to your idisk. You'll have to run it each time you edit your pages: http://guimkie.com/projects/itweak/

  • Can i enter php code into html snippets?

    I am an sql/php newbie ... and have my site hosted by a company which offers me sql and php hosting (unlike dotmac I understand) ...
    I have created an sql database on their server and have written a page in html/php to display the results of a simple search ... can I insert this into iweb page using snippet - as I have tried and get a page cannot be displayed message where the snippet box would be on the webpage. (you can see this by clicking on the guestbook link on www.antandcleopuss.com)
    I am wondering if iweb can insert php or if it is only html?
    If iweb doesn't like php inserts then I will have to export my pages to a folder, then open them in a text editor to insert the php there?? (seems like an awfully long way round)
    Any help gratefully received
    ant

    You can add PHP code AFTER publishing the webpage.
    Then change the extension to .php.
    Here's a page the explains how to do it. It's not PHP specific but the routine is the same.
    http://web.mac.com/wyodor/Ajax/
    Of course you can add a PHP page to the HTML Snippet with an iframe.

  • Problem with html snippet

    I have been using iWeb for a long time now, it's been fine up until recently. Everytime I try to add HTML Snippet to my site, it inserts the box on to my webpage, but fails to load in the edit box where you can paste your HTML in.
    How would I rectify this?

    Try the troubleshooting steps under "Fix iWeb" here...
    http://www.iwebformusicians.com/iWeb/iWeb-Tips.html

  • Trouble with HTML snippet

    An HTML snippet does not work once published to a website although it does work in the "view published site" option. Error message "Not Found URL requested". I use iWeb for my website and Firezilla to publish to www. Any solutions please?

    This could be caused by the file in question not being uploaded to the server or an error in the URL.
    You need to use your FTP app to have a look at the files on the server to see if the appropriate one is actually there and in the correct place.

  • Html snippets and unknown error when publishing - the mystery deepens

    Can anyone make sense of this?
    I have been using iWeb for a year or so. Personal site with added extra goodies like widgets using iweb more.
    Upgraded to iWeb 08 with a few formatting problems (which I chose to ignore for now) - after version 2.01 I replaced my iweb more extras with the new html snippet thingy and everything was fine - although I still didn't get around to sorting the formatting issues.
    Now we are at 2.02 I decided to use one of the new themes and so I created a new page using golden rod and merrily cut and paste from the existing page. I was loathe to delete the old page until I knew the new one was fine - my plan was then to do a bit of page renaming and voila a newly themed home page. Anyway what I got was;
    Unknown error - when the new page was being created.
    Ok - deleted the offending page - site now publishes fine -so we know this isn't .mac.
    Now I decided to build the new page a bit at a time to see what was causing the problem.
    It turns out to be a html snippet (which works fine on my home page still);
    div style="text-align:center"
    a href="http://outcampaign.org/"
    img border="0" alt="image" width="143" src="http://pharyngula.org/images/scarlet_A.png" height="122"/
    /a
    (I have broken the tags by removing the 's so you can see the text itself)
    When I added this to an HTML snippet the unknown error returned.
    Now I have deleted it and I still get the unknown error for that page.
    So this is definitely an iWeb problem and not a .mac problem.
    Any ideas?
    Home page;
    http://web.mac.com/theedonfamily/Site/Home.html

    why do you use the snippet to actually add the thing? you can just place the image directly into iweb and then activate it as a link. (there are some errors in the script as well!)
    if you want to use the snippet way, then id just change the code a bit:
    +⊗p style="text-align: center;"⊗+
    +⊗a href="http://outcampaign.org/"⊗+
    +⊗img style="border: none;" alt="Image" width="143" src="http://pharyngula.org/images/scarlet_A.png" height="122" /⊗+
    ⊗/a⊗
    ⊗/p⊗
    replace every ⊗ with either < or >.
    max

  • CODE ADDED using HTML Snippet Widget does not work

    I am trying to add some code to a web page using the HTML Snippet widget and it does not work on my page. the code is as follows:
    <script src='http://adn.ebay.com/files/js/min/ebay_activeContent-min.js'></script>
    <script src='http://adn.ebay.com/cb?programId=1&campId=5336536214&toolId=10026&keyword= coinset+nationaruba&catId=11116&width=728&height=90&font=1&textColor=333366&linkColor=333333&a rrowColor=8BBC01&color1=B5B5B5&color2=FFFFFF'></script>
    Can anyone help me to get this to work?
    Thanks!
    Gregg

    I got this code from Ebay. It is an Ebay partner link.
    Gregg

  • StatCounter with html widget questions

    Hi - I have statcounter on my home page. I used the html widget to paste the code i got from Statcounter. I just placed the widget randomly on the page -- it's invisible. works great for that page.
    Can someone help me with how to get the stats on where on my sire people are going?
    do i have to create a different project for each page in statcounter and paste that on each page of my site??
    also am i going to have to paste up new html widgets each time i publish/.
    thanks for help with these "newbie" questions
    : )

    Hi Atomic,
    Having the Statcounter code on one page only is quite useless...
    You could place a snippet with Statcounter on each page but personally I don't like html snippets that much (in general)... I prefer to have the page coming up in Statcounter instead of the snippet and I also don't like to add a snippet to each page (I have something like 260 pages or more)
    Basically there are two applications which will add the code to your page automatically (you would have to run them each time you (re)publish).
    iComment (not freeware)
    iWebExpander (guimkie.com, freeware)
    iWebExpander works... It does it's job...
    The only problem, at least for the moment is that iWebExpander is “Crashing” my Finder... But that’s a minor problem...
    About the crashing:
    You maybe will get a popup "AppleScript Error" bla bla bla. It's only a popup doesn't mean anything. When the popup appears the process of adding the Favicon is finished.
    You maybe will have the spinning circle when in Finder. When the popup appears go to your dock select the finder icon click(and hold click) it and do "Relaunch finder".
    You don't have to restart or something. You don't have loss of data. It will not shut down unexpectedly. And so on...
    Nevertheless the job gets done...
    *I was told by Max that there will be an update soon*
    You don't have to make a new project for each page... => you use the same project through your whole website
    And if you want to track a page in particular then you could add an html snippet to the page with a new project code for that particular page
    Regards,
    Cédric

  • Html Snippet Code from BandsInTown not working...

    I have just installed a list of tour dates using BandsInTown App  linked with my
    facebook page here
    https://www.facebook.com/pages/Anna-Corcoran-Music/173909359323639
    And i have selected the box offering the code to embed the dates onto my
    website here at www.annacorcoran.com which is:
    <script type='text/javascript' src='
    http://www.bandsintown.com/javascripts/bit_widget.js'></script>
    <script type='text/javascript'>var widget = new BIT.Widget({"artist":"Anna
    Corcoran Music","prefix":"fbjs"});widget.insert_events();</script>
    But when I paste the code into the html snippet box in iweb just
    an empty box with a faint outline appears. Is this to do with needing to adjust the code for
    iweb?
    HELP!! Why isn't it working?!
    Anna

    Okay - last question where in the code below Can I change the colour of the text?
    <script type='text/javascript' src='http://www.bandsintown.com/javascripts/bit_widget.js'></script>
    <script type='text/javascript'>var widget = new BIT.Widget({"artist":"Anna Corcoran Music","prefix":"fbjs"});widget.insert_events();</script>
    Thanks

  • Problems with drop down menu in html snippet

    Hi all,
    I am trying to use a form with a drop down menu so the user can jump directly to the corresponding page. I am using the code generated by http://javascript.internet.com/generators/drop-down-menu.html, and it works correctly when I test it in the "Show me the drop down menu" option on their page.
    This is the html code:
    <!-- ONE STEP TO INSTALL PULLDOWN MENU:
    1. Paste the code into the BODY of your HTML document -->
    <!-- STEP ONE: Copy this code into the BODY of your HTML document -->
    <BODY>
    <!-- Original: Ricocheting ([email protected]) -->
    <!-- Web Site: <a class="jive-link-external-small" href="http://free.prohosting.com/~ric">http://free.prohosting.com/~ric</a> -->
    <!-- This script and many more are available free online at -->
    <!-- The JavaScript Source!! <a class="jive-link-external-small" href="http://javascript.internet.com">http://javascript.internet.com</a> -->
    <form name="jump">
    <select name="menu" onChange="location=document.jump.menu.options[document.jump.menu.selectedIndex] .value;" value="GO">
    <option value="">select genre</option>
    <option value="http://www.mygaragebandstudio.com/blues_rock.html">blues/rock</option>
    <option value="http://www.mygaragebandstudio.com/cinematic.html">cinematic</option>
    <option value="http://www.mygaragebandstudio.com/country.html">country</option>
    <option value="http://www.mygaragebandstudio.com/electronic.html">electronic</option>
    <option value="http://www.mygaragebandstudio.com/experimental.html">experimental/new age</option>
    <option value="http://www.mygaragebandstudio.com/jazz.html">jazz</option>
    <option value="http://www.mygaragebandstudio.com/latin.html">latin</option>
    <option value="http://www.mygaragebandstudio.com/orchestral.html">orchestral</option>
    <option value="http://www.mygaragebandstudio.com/urban.html">urban</option>
    <option value="http://www.mygaragebandstudio.com/world.html">world</option>
    </select>
    </form>
    When I paste this code into an html snippet in iWeb, my page does not work correctly after publishing to a folder. The jump to location doesn't open its corresponding page. Instead, it defaults to the same page that has the drop down menu, only the menu doesn't appear any more. Instead, I get a "hole" where the drop down menu used to be.
    This is my URL: http://www.mygaragebandstudio.com/jingles.html
    I examined the code of the page with the html snippet generated by iWeb, and to my surprise I couldn't even find the html code of the form with the drop down menu. Where is it?
    Please help!
    null

    Manuel wrote:
    Green Star for you!
    JSYK,
    You didn't actually give PressWeb the green star by marking his post as the post that solved your question. You merely marked the question as answered but never actually marked PressWeb's post as being the post that answered your question, which will in effect reward PressWeb with the green star as seen by a green star appearing in the header for his post. I only mention this because you have incorrectly mentioned rewarding PressWeb with a green star.
    Hope that helps.

  • Html snippets with style

    I'm trying to do a (for now) simple form in iweb using the html snippets tool.  The text in the non-form parts of my page use white Calibri of various sizes ("I'm using the "Darkroom" page template).  The static text in my form looks like Times and is black.  So my question:  How do I get the static text in my form to assume the same style(s) as in the rest of the page?
    I'd like to avoid having to redo the form every time that page gets updated so that's why I'm not hand hacking the html, although this may turn out to be the better way to go.
    TIA,
    eric

    What's the code you're using in the HTML snippet. Post it here using the Quote button. Then we can see if font attributes can be added to it.
    Is this a Form Action type of form? See this demo page for examples: Embedding Forms
    OT

  • IWeb routing back from html snippet code

    I have created my site in my local folder (sites/site). In the site I use a HTML snippet in which I pasted HTML code from JotForm in order to have a contact form. This worked fine. Then I published to web.me.com... and now every time I hit the submit button (HTML code) the routine runs perfect and an email is submitted to me but I don't come back to the site but get an error code: The requested URL /users/maartenlamers/sites/site/startpage.html was not found on this server. It seems that the routing pointer is set wrong... and I found no way of correcting this... Any suggestions are welcome...

    I believe that JotForm allows you to get your visitors to return to a page of your site do they not? If so, then to correct this you need to go back to JotForm and alter the settings there. You created the form there, so you need to make alterations there. It's not an iWeb issue - all you did was enter the code into an html snippet.
    Also, your url is not a correct url so of course it won't be found. Any url needs to start with http://web.me.com/users/maartenlamers/sites/site/startpage.html. If you leave out the web.me.com, then it won't find anything that is published because you have in fact missed out where the site is published, being web.me.com.
    Go back to JotForm and alter it there and then re-enter the code into an html snippet and you should find that it will work.

  • Using policy with html code

    I have created policy for permissions for the applet to comunicate over sockets...how to get it to access that policy file from inside the html code
    example html
    <center><applet code="CBJGUI.class" width="675" height="510"></center>
    </applet>
    example cmnd line to load with policy thru applet viewer
    appletviewer -J-Djava.security.policy=CBJper CBJv.1.0.htm
    please help....so close I can smell it

    I have exactly the same doubt.
    I read somewhere that you might need to change the java.security file in the {java installation}/jre/lib/ file. I added the grant permission lines to it too. Still it doesnt work.
    If i run the same application by passing the security policy thru the command line and run the applet thru appletviewer then the same application works.
    How to get it to work through the browser though?
    Please reply soon.

Maybe you are looking for

  • File systems and fragmentation

    I'm a converted ubuntu user, and I love arch to death now... but here's my question. When I was using ubuntu I read a post on lifehacker.com that said Defrag – Nope. Linux file systems do not have a need to be defragmented. Original link: http://life

  • Arrow problem in CS5

    My black arrow used to allow me to scale and rotate an object after selecting.  I must have hit something, because it no longer works.  I tried drawing a square and the black arrow will now only move the object around the workspace.  Can someone plea

  • CTRL + F for folders doen't work in CS5

    Hi, When I used my CS 3 Dreamweaver, I could click in the folder list on a folder an pressd CTRL + F so I could search a word in this folder and all subfolder. But since I upgraded to CS 5 it doen's work anymore. I alway have to set the folder manual

  • Mac problems after I load Flash Player

    After I download the latest version of Adobe Flash Player, so I can play my games on Pogo, Pogo still tells me that I need to update.  WTH?

  • Object references.

    Lets say I have an application dealing with cards, and it uses Card beans. In my application I am going to instantiate 20,000 separate card instances. Is the total memory consumed by this 20,000 x 4 = 80,000 bytes (for the object references to the ca