robots.txt example

User-Agent: *
Allow: /
User-agent: *
Disallow: /folder_example/index.php

Posted on 21 Dec 2009, 18:47 - Category: Google
Comments - Edit - Delete


iGoogle Gadget

<?xml version="1.0" encoding="UTF-8" ?>

<Module>
<ModulePrefs width="284" height="284" title="Mystery of 2012" scaling="true" author_email="you@email.com" title_url="http://www.yoursite.com/mysteryof2012" thumbnail="http://path/to/image.jpg" screenshot="http://path/to/image.jpg" description="Mystery of 2012" author="A1">
<Require feature="flash"/>
<Require feature="views" />
<Require feature="analytics"/>
</ModulePrefs>

<Content type="html" view="home">
<![CDATA[
<div style="background-color:#000000;text-align:center;width:320px;height:284px;">
<div id="container" style="width:284px;height:284px;"></div>
</div>
<script>_IG_EmbedCachedFlash('http://path/to/swf.swf','container', {swf_version: 9,width: 284,height: 251});</script>

<script type="text/javascript">
function goToView(dest)
{
var supported_views = gadgets.views.getSupportedViews();
gadgets.views.requestNavigateTo(supported_views[dest]);
};
</script>
<script>
_IG_Analytics("YOUR UA NUMBER", "/2012Gadget");
</script>
]]>
</Content>

<Content type="html" view="canvas">
<![CDATA[
<div style="background-color:#000000;text-align:center;height:750px;width:800px;">
<div id="container2" style="height:750px;width:800px;"></div>
</div>
<script>_IG_EmbedCachedFlash('http://www.path/to/swf.swf','container2', {swf_version: 9,width: 800,height: 730});</script>

<!--<a href="javascript:goToView('home')" >Go to tabs view</a>-->

<script type="text/javascript">
function goToView(dest)
{
var supported_views = gadgets.views.getSupportedViews();
gadgets.views.requestNavigateTo(supported_views[dest]);
};
</script>

<script>
_IG_Analytics("YOUR UA NUMBER", "/2012Gadget");
</script>
]]>
</Content>
</Module>

Posted on 28 Sep 2009, 13:06 - Category: Google
Comments - Edit - Delete


Google Analytics virtual page visit track function

/* GATC pageview */
function track_it(page_visited)
{
if(typeof(pageTracker) != 'undefined')
{
pageTracker._trackPageview(page_visited);
secondTracker._trackPageview(page_visited);
}
}

<!-- in HTML -->
<a onClick="track_it('/guide/energyhealing/send_to_a_friend/');">link</a>

<!-- GATC code example -->

<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("YOUR UA NUMBER");
pageTracker._setAllowHash(false);
pageTracker._setDomainName(".soundstrue.com");
pageTracker._setAllowLinker(true);
pageTracker._trackPageview();

var secondTracker = _gat._getTracker("YOUR UA NUMBER");
secondTracker._setAllowHash(false);
secondTracker._setDomainName(".soundstrue.com");
secondTracker._setAllowLinker(true);
secondTracker._trackPageview();

}
catch(err) {}
</script>

Posted on 28 Sep 2009, 12:30 - Category: Google
Comments - Edit - Delete


Pages: [1]
Loading