[Piwik-svn] r362 - in trunk/misc: . testJavascriptTracker
svnmaster at piwik.org
svnmaster at piwik.org
Wed Mar 12 01:03:16 CET 2008
Author: julien
Date: 2008-03-12 01:03:15 +0100 (Wed, 12 Mar 2008)
New Revision: 362
Added:
trunk/misc/testJavascriptTracker/
trunk/misc/testJavascriptTracker/index.php
trunk/misc/testJavascriptTracker/page2.php
trunk/misc/testJavascriptTracker/test.jpg
trunk/misc/testJavascriptTracker/test.pdf
trunk/misc/testJavascriptTracker/test.rar
trunk/misc/testJavascriptTracker/test.zip
Log:
-Code for javascript tracker testing
Added: trunk/misc/testJavascriptTracker/index.php
===================================================================
--- trunk/misc/testJavascriptTracker/index.php (rev 0)
+++ trunk/misc/testJavascriptTracker/index.php 2008-03-12 00:03:15 UTC (rev 362)
@@ -0,0 +1,46 @@
+<?php
+
+require_once '../../modules/Url.php';
+$url = Piwik_Url::getCurrentUrlWithoutFileName();
+$urlPiwik = join("/", array_slice(split("/", $url), 0, -3));
+?>
+
+<div>
+You should update the piwik javascript code at the bottom of this page if needed.<br />
+And test the tracker by clicking all the links below, with several browsers...<br />
+<br />
+</div>
+
+<a href="http://www.google.fr"> Site web de google france </a> <br />
+<a href="http://www.yahoo.fr"> Site web de yahoo france </a> <br />
+<a href="http://www.google.com"> Site web de google monde </a> <br />
+<a href="http://maps.google.fr"> Site web de google maps </a> <br />
+<a href="http://piwik.org"> Site web de piwik </a> <br />
+<a href="http://piwik.org/blog"> Site web de piwik </a> <br />
+<br />
+<a href="./test.pdf"> download pdf (rel) </a> <br />
+<a href="./test.jpg"> download jpg (rel) </a> <br />
+<a href="./test.zip"> download zip (rel) </a> <br />
+<a href="
+<?php echo $url; ?>
+test.rar"> download rar (abs) </a> <br />
+<br />
+<a href="./page2.php"> Next (rel)</a> <br />
+<a href="<?php echo $url; ?>page2.php"> Next (abs)</a> <br />
+
+
+
+<!-- Piwik -->
+<a href="http://piwik.org" title="Web analytics" onclick="window.open(this.href);return(false);">
+<script language="javascript" src="<?php echo $urlPiwik; ?>/piwik.js" type="text/javascript"></script>
+<script type="text/javascript">
+<!--
+piwik_action_name = '';
+piwik_idsite = 3;
+piwik_url = '<?php echo $urlPiwik; ?>/piwik.php';
+piwik_log(piwik_action_name, piwik_idsite,piwik_url);
+//-->
+</script><object>
+<noscript><p>Web analytics <img src="<?php echo $urlPiwik; ?>/piwik.php" style="border:0" alt="piwik"/></p>
+</noscript></object></a>
+<!-- /Piwik -->
\ No newline at end of file
Added: trunk/misc/testJavascriptTracker/page2.php
===================================================================
--- trunk/misc/testJavascriptTracker/page2.php (rev 0)
+++ trunk/misc/testJavascriptTracker/page2.php 2008-03-12 00:03:15 UTC (rev 362)
@@ -0,0 +1,45 @@
+<?php
+
+require_once '../../modules/Url.php';
+$url = Piwik_Url::getCurrentUrlWithoutFileName();
+$urlPiwik = join("/", array_slice(split("/", $url), 0, -3));
+?>
+
+<div>
+You should update the piwik javascript code at the bottom of this page if needed.<br />
+And test the tracker by clicking all the links below, with several browsers...<br />
+<br />
+</div>
+
+<a href="http://www.google.fr"> Site web de google france </a> <br />
+<a href="http://www.yahoo.fr"> Site web de yahoo france </a> <br />
+<a href="http://www.google.com"> Site web de google monde </a> <br />
+<a href="http://maps.google.fr"> Site web de google maps </a> <br />
+<a href="http://piwik.org"> Site web de piwik </a> <br />
+<a href="http://piwik.org/blog"> Site web de piwik </a> <br />
+<br />
+<a href="./test.pdf"> download pdf (rel) </a> <br />
+<a href="./test.jpg"> download jpg (rel) </a> <br />
+<a href="./test.zip"> download zip (rel) </a> <br />
+<a href="
+<?php echo $url; ?>
+test.rar"> download rar (abs) </a> <br />
+<br />
+<a href="./index.php"> Prev (rel)</a> <br />
+<a href="<?php echo $url; ?>index.php"> Prev (abs)</a> <br />
+
+
+<!-- Piwik -->
+<a href="http://piwik.org" title="Web analytics" onclick="window.open(this.href);return(false);">
+<script language="javascript" src="<?php echo $urlPiwik; ?>/piwik.js" type="text/javascript"></script>
+<script type="text/javascript">
+<!--
+piwik_action_name = '';
+piwik_idsite = 3;
+piwik_url = '<?php echo $urlPiwik; ?>/piwik.php';
+piwik_log(piwik_action_name, piwik_idsite,piwik_url);
+//-->
+</script><object>
+<noscript><p>Web analytics <img src="<?php echo $urlPiwik; ?>/piwik.php" style="border:0" alt="piwik"/></p>
+</noscript></object></a>
+<!-- /Piwik -->
\ No newline at end of file
Added: trunk/misc/testJavascriptTracker/test.jpg
===================================================================
Added: trunk/misc/testJavascriptTracker/test.pdf
===================================================================
Added: trunk/misc/testJavascriptTracker/test.rar
===================================================================
Added: trunk/misc/testJavascriptTracker/test.zip
===================================================================
More information about the Piwik-svn
mailing list