www: a081f0ba: Adding Google website optimizer code.
caseyho at pidgin.im
caseyho at pidgin.im
Fri Dec 12 03:45:41 EST 2008
-----------------------------------------------------------------
Revision: a081f0ba9c8928e5ce55cf7e48011c9ef7d1219e
Ancestor: a31c1085fe901d4d2fb227b6da7960b0704dac90
Author: caseyho at pidgin.im
Date: 2008-12-12T08:39:17
Branch: im.pidgin.www
URL: http://d.pidgin.im/viewmtn/revision/info/a081f0ba9c8928e5ce55cf7e48011c9ef7d1219e
Modified files:
htdocs/index.php inc/blurb.download.inc
inc/blurb.download_new.inc inc/blurb.downloaddetect.inc
inc/footer.inc
ChangeLog:
Adding Google website optimizer code.
-------------- next part --------------
============================================================
--- htdocs/index.php 0878c568e77906c3771e4bf87bd52a4a3a9e1c0b
+++ htdocs/index.php 985f95ac4ab562f092b783e3fd9aae76cd3950b2
@@ -1,3 +1,18 @@
+<!-- Begin Google Website Optimizer tracking code -->
+<script>
+function utmx_section(){}function utmx(){}
+(function(){var k='1527532502',d=document,l=d.location,c=d.cookie;function f(n){
+if(c){var i=c.indexOf(n+'=');if(i>-1){var j=c.indexOf(';',i);return c.substring(i+n.
+length+1,j<0?c.length:j)}}}var x=f('__utmx'),xx=f('__utmxx'),h=l.hash;
+d.write('<sc'+'ript src="'+
+'http'+(l.protocol=='https:'?'s://ssl':'://www')+'.google-analytics.com'
++'/siteopt.js?v=1&utmxkey='+k+'&utmx='+(x?x:'')+'&utmxx='+(xx?xx:'')+'&utmxtime='
++new Date().valueOf()+(h?'&utmxhash='+escape(h.substr(1)):'')+
+'" type="text/javascript" charset="utf-8"></sc'+'ript>')})();
+</script><script>utmx("url",'A/B');</script>
+<!-- End Google Website Optimizer tracking code -->
+
+
<?
// Update these to match the current page.
$page['title'] = "Pidgin, the universal IM client";
============================================================
--- inc/blurb.download.inc 1914c0fe970f683e7e2a5bd4124eee3351050ab2
+++ inc/blurb.download.inc 7b98d96dcca477e99d9bc6d58f8e7cf11524510d
@@ -8,7 +8,7 @@ include($_SERVER['DOCUMENT_ROOT'] . "/..
<?php } ?>
<a id="download_link" href="<? echo $download_link; ?>"
<?php if (strlen($download_goal) > 0) { ?>
- onClick="javascript:pageTracker._trackPageview('<? echo $download_goal; ?>');"
+ onClick="javascript:pageTracker._trackPageview('<? echo $download_goal; ?>');ConversionCount();"
<?php } ?>
>
<img src="/shared/img/button.download.png" alt="[Down Arrow]" id="downbutton" width="48" height="48" />
============================================================
--- inc/blurb.download_new.inc e941db340f923b4483cce82da718572bb5037fdd
+++ inc/blurb.download_new.inc 52afbec8b5b4c77f81e50db3f81f746133b7dd7a
@@ -7,7 +7,7 @@ include($_SERVER['DOCUMENT_ROOT'] . "/..
<div>
<a id="download_link" href="<? echo $download_link; ?>"
<?php if (strlen($download_goal) > 0) { ?>
- onClick="javascript:pageTracker._trackPageview('<? echo $download_goal; ?>');"
+ onClick="javascript:pageTracker._trackPageview('<? echo $download_goal; ?>');ConversionCount();"
<?php } ?>
>
<strong>Download Pidgin <? echo $download_os; ?> </strong> <br />
============================================================
--- inc/blurb.downloaddetect.inc a32035c95247ec25ff466656daf874ccd1e60d4e
+++ inc/blurb.downloaddetect.inc a3a16897913491a5568ebab7b914225671f47245
@@ -32,3 +32,20 @@
$download_link = "/download/source/";
}
?>
+
+<!-- Begin google website optimizer tracking code -->
+
+<script type="text/javascript">
+<!--
+// run conversion tracking script
+function ConversionCount()
+{
+_uacct = 'UA-6596609-1';
+urchinTracker("/1527532502/goal");
+return true;
+}
+// -->
+</script>
+
+<!-- End google website optimizer tracking code -->
+
============================================================
--- inc/footer.inc 6b8d6c2deed57dadbdb34e24aec80cbddb64c173
+++ inc/footer.inc b4743866d2d9bdc2b6af2c44b0a9198bd72b6ac2
@@ -13,6 +13,10 @@ pageTracker._trackPageview();
var pageTracker = _gat._getTracker("UA-2814037-1");
pageTracker._setDomainName(".pidgin.im");
pageTracker._trackPageview();
+
+var secondTracker = _gat._getTracker("UA-6596609-1");
+secondTracker._initData();
+secondTracker._trackPageview("/1527532502/test");
</script>
<!-- End Google Analytics tracking code -->
More information about the Commits
mailing list