add tracking
This commit is contained in:
parent
0e268c3be9
commit
1b69f0318c
@ -39,6 +39,7 @@ INSTALLED_APPS = [
|
||||
'apps.events',
|
||||
'apps.donar',
|
||||
'rest_framework',
|
||||
'analytical',
|
||||
]
|
||||
|
||||
REST_FRAMEWORK = {
|
||||
@ -160,3 +161,6 @@ SECURE_PROXY_SSL_HEADER = ('HTTP_X_FORWARDED_PROTO', 'https')
|
||||
# Media files should be stored here
|
||||
MEDIA_ROOT = os.path.join(BASE_DIR, "media")
|
||||
MEDIA_URL = '/media/'
|
||||
|
||||
PIWIK_DOMAIN_PATH = 'mg-server.ddns.net/piwik'
|
||||
PIWIK_SITE_ID = '1'
|
||||
|
||||
@ -15,6 +15,25 @@
|
||||
<link rel="stylesheet" href="{{ static('libs/bootstrap-4.0.0-beta-dist/css/bootstrap.css') }}">
|
||||
<link rel="stylesheet" href="{{ static('css/nav.css') }}">
|
||||
{% block css_extra %}{% endblock %}
|
||||
<!-- Piwik -->
|
||||
<script type="text/javascript">
|
||||
var _paq = _paq || [];
|
||||
/* tracker methods like "setCustomDimension" should be called before "trackPageView" */
|
||||
_paq.push(['trackPageView']);
|
||||
_paq.push(['enableLinkTracking']);
|
||||
(function () {
|
||||
var u = "//mg-server.ddns.net/piwik/";
|
||||
_paq.push(['setTrackerUrl', u + 'piwik.php']);
|
||||
_paq.push(['setSiteId', '1']);
|
||||
var d = document, g = d.createElement('script'), s = d.getElementsByTagName('script')[0];
|
||||
g.type = 'text/javascript';
|
||||
g.async = true;
|
||||
g.defer = true;
|
||||
g.src = u + 'piwik.js';
|
||||
s.parentNode.insertBefore(g, s);
|
||||
})();
|
||||
</script>
|
||||
<!-- End Piwik Code -->
|
||||
</head>
|
||||
|
||||
{# ===== Body ===== #}
|
||||
|
||||
@ -46,21 +46,22 @@
|
||||
{% if single_food.price_student %}
|
||||
<div class="col-4"><span class="float-right">{{ single_food.price_student }}</span></div>
|
||||
{% endif %}
|
||||
{# <div class="image-wrapper col-4"><img src="" class="img-rounded img" alt="" width="1024"
|
||||
height="800"><i class="img-placeholder fa fa-cutlery text-right"></i></div> #}
|
||||
{#<div class="image-wrapper col-4"><img src="" class="img-rounded img" alt="" width="1024"
|
||||
height="800"><i
|
||||
class="img-placeholder fa fa-cutlery text-right"></i></div>#}
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="rating-wrapper col-6 text-left"></div>
|
||||
<div class="col-6 text-right">
|
||||
{# <label for="pic-upload-{{ single_food.id }}" class="custom-pic-upload">
|
||||
{# <div class="col-6 text-right">
|
||||
<label for="pic-upload-{{ single_food.id }}" class="custom-pic-upload">
|
||||
<i class="fa fa-camera" aria-hidden="true"></i>
|
||||
</label>
|
||||
<div class="pic-input-wrapper">
|
||||
TODO: extract style to external css file
|
||||
#}{# TODO: extract style to external css file#}{#
|
||||
<input id="pic-upload-{{ single_food.id }}" class="pic-upload" type="file" name="photo"
|
||||
id="upload-photo" style="display: none !important;"/>
|
||||
</div> #}
|
||||
</div>
|
||||
</div>
|
||||
</div>#}
|
||||
</div>
|
||||
</li>
|
||||
{% endfor %}
|
||||
|
||||
Reference in New Issue
Block a user