Skip to content

Commit

Permalink
Added Google Analytics and a favicon static route
Browse files Browse the repository at this point in the history
  • Loading branch information
Henrik Berggren committed Dec 2, 2008
1 parent 2767f6b commit 4fe2d02
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
4 changes: 4 additions & 0 deletions app.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,7 @@ handlers:

- url: .*
script: the-cloud-player.py

- url: /favicon.ico
static_files: images/favicon.ico
upload: images/favicon.ico
10 changes: 10 additions & 0 deletions player.html
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,16 @@
<script src="/scripts/utils.js{% if in_development_enviroment %}?v= {{rando}} {% endif %}" type="text/javascript"></script>
<script src="/scripts/player.js{% if in_development_enviroment %}?v= {{rando}} {% endif %}" type="text/javascript"></script>
<script src="/scripts/playlist.js{% if in_development_enviroment %}?v= {{rando}} {% endif %}" type="text/javascript"></script>

<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-168866-8");
pageTracker._trackPageview();
</script>

<link href="/images/favicon.ico" rel="shortcut icon" />
</head>
<body unselectable="on" class="{% if user %}logged-in{% endif %}">
Expand Down

0 comments on commit 4fe2d02

Please sign in to comment.