[xiph-commits] r14954 - in branches/dir.xiph.org: . templates

balbinus at svn.xiph.org balbinus at svn.xiph.org
Sun May 25 14:33:28 PDT 2008


Author: balbinus
Date: 2008-05-25 14:33:28 -0700 (Sun, 25 May 2008)
New Revision: 14954

Modified:
   branches/dir.xiph.org/by_format.php
   branches/dir.xiph.org/by_genre.php
   branches/dir.xiph.org/index.php
   branches/dir.xiph.org/search.php
   branches/dir.xiph.org/templates/foot.tpl
Log:
We now use Google Analytics.

Modified: branches/dir.xiph.org/by_format.php
===================================================================
--- branches/dir.xiph.org/by_format.php	2008-05-25 21:32:18 UTC (rev 14953)
+++ branches/dir.xiph.org/by_format.php	2008-05-25 21:33:28 UTC (rev 14954)
@@ -129,6 +129,7 @@
 		$tpl->assign('mc_debug', $memcache->log);
 	}
 }
+$tpl->assign("/search/by_format");
 $tpl->display('foot.tpl');
 
 ?>

Modified: branches/dir.xiph.org/by_genre.php
===================================================================
--- branches/dir.xiph.org/by_genre.php	2008-05-25 21:32:18 UTC (rev 14953)
+++ branches/dir.xiph.org/by_genre.php	2008-05-25 21:33:28 UTC (rev 14954)
@@ -127,6 +127,7 @@
 		$tpl->assign('mc_debug', $memcache->log);
 	}
 }
+$tpl->assign("/search/by_genre");
 $tpl->display('foot.tpl');
 
 ?>

Modified: branches/dir.xiph.org/index.php
===================================================================
--- branches/dir.xiph.org/index.php	2008-05-25 21:32:18 UTC (rev 14953)
+++ branches/dir.xiph.org/index.php	2008-05-25 21:33:28 UTC (rev 14954)
@@ -32,6 +32,7 @@
 		$tpl->assign('mc_debug', $memcache->log);
 	}
 }
+$tpl->assign('google_tag', 'home');
 $tpl->display('foot.tpl');
 
 ?>

Modified: branches/dir.xiph.org/search.php
===================================================================
--- branches/dir.xiph.org/search.php	2008-05-25 21:32:18 UTC (rev 14953)
+++ branches/dir.xiph.org/search.php	2008-05-25 21:33:28 UTC (rev 14954)
@@ -165,6 +165,7 @@
 		$tpl->assign('mc_debug', $memcache->log);
 	}
 }
+$tpl->assign("google_tag", "/search/freeform");
 $tpl->display('foot.tpl');
 
 ?>

Modified: branches/dir.xiph.org/templates/foot.tpl
===================================================================
--- branches/dir.xiph.org/templates/foot.tpl	2008-05-25 21:32:18 UTC (rev 14953)
+++ branches/dir.xiph.org/templates/foot.tpl	2008-05-25 21:33:28 UTC (rev 14954)
@@ -22,5 +22,19 @@
 {/if}
 			</div>
 		</div>
+<!-- GAU -->
+<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">
+var pageTracker = _gat._getTracker("UA-4486419-1");
+pageTracker._initData();
+{if isset($google_tag)}
+pageTracker._setVar("{$google_tag}");
+{/if}
+pageTracker._trackPageview(); 
+</script>
+<!-- /GAU -->
 	</body>
 </html>



More information about the commits mailing list