Created
August 2, 2011 09:21
-
-
Save caefer/1119878 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/> | |
| <meta name="robots" content="noindex,nofollow" /> | |
| <script type="text/javascript"> | |
| var _gaq = _gaq || []; | |
| _gaq.push(['first._setAccount', 'UA-XXXXXX-X']); | |
| _gaq.push(['first._setDomainName', '.mydomain.com']); | |
| _gaq.push(['first._trackPageview']); | |
| _gaq.push(['first._trackPageLoadTime']); | |
| _gaq.push(['first._setAllowHash', 'false']); | |
| (function() { | |
| var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true; | |
| ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js'; | |
| var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s); | |
| })(); | |
| </script> | |
| <title>Just a little Google Analytics experiment</title> | |
| </head> | |
| <body> | |
| <?php | |
| require_once __DIR__.'/silex.phar'; | |
| $app = new Silex\Application(); | |
| $app->get('/some/path;with;some;weird;parameters', function () use ($app) { | |
| return $app->redirect('/some/other/path;with;some;other;weird;parameters?and=even&more=parameters'); | |
| }); | |
| $app->get('/some/other/path;with;some;other;weird;parameters', function () use ($app) { | |
| return 'and counted!'; | |
| }); | |
| $app->run(); | |
| ?> | |
| </body> | |
| </html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment