Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

google analytics

  • Loading branch information...
commit 9c890b6f424b6164fad25ef38998bbeebb9f03fd 1 parent 3a470ce
@jaramir authored
View
7 houserule/view.py
@@ -49,10 +49,9 @@ def logout():
# db.create_all()
# return redirect( url_for( "index" ) )
-
@app.route( "/googleb17904b58da8b53a.html" )
-def google_verification( self ):
+def google_verification():
return send_from_directory(
app.static_folder,
- '/googleb17904b58da8b53a.html',
- mimetype='text/plain' )
+ 'googleb17904b58da8b53a.html',
+ mimetype='text/plain' )
View
2  run.py
@@ -5,6 +5,6 @@
import os
if __name__ == "__main__":
- port = int( os.environ.get( "PORT", 5000 ) )
+ port = int( os.environ.get( "PORT", "5000" ) )
app.run( "0.0.0.0", port )
View
13 templates/layout.html
@@ -19,5 +19,18 @@
{% endif %}
{% endwith %}
{% block body %}{% endblock %}
+ <!-- google analytics start -->
+ <script type="text/javascript">
+ var _gaq = _gaq || [];
+ _gaq.push(['_setAccount', 'UA-29493385-1']);
+ _gaq.push(['_setDomainName', 'houserule.it']);
+ _gaq.push(['_trackPageview']);
+ (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>
+ <!-- google analytics end -->
</body>
</html>
View
14 templates/splash.html
@@ -3,6 +3,7 @@
<head>
<title>HouseRule</title>
<link rel="shortcut icon" href="{{ url_for( 'static', filename='favicon.ico' ) }}" />
+ <meta name="description" content="HouseRule: Troviamoci a Giocare! Un sito per organizzare partite di BoardGame e cercare giocatori" />
<style type="text/css">
#banner {
background: url(/static/banner.jpg) no-repeat center center;
@@ -12,5 +13,18 @@
</head>
<body>
<div id="banner"></div>
+ <!-- google analytics start -->
+ <script type="text/javascript">
+ var _gaq = _gaq || [];
+ _gaq.push(['_setAccount', 'UA-29493385-1']);
+ _gaq.push(['_setDomainName', 'houserule.it']);
+ _gaq.push(['_trackPageview']);
+ (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>
+ <!-- google analytics end -->
</body>
</html>
Please sign in to comment.
Something went wrong with that request. Please try again.