1
0
mirror of https://git.teknik.io/Teknikode/Teknik.git synced 2023-08-02 14:16:22 +02:00

Added prefix for dev systems to tracking

This commit is contained in:
Uncled1023 2016-02-26 16:17:53 -08:00
parent 090cf9f5b7
commit 6f43037f72

View File

@ -54,10 +54,16 @@
@if (Model.Config.PiwikConfig.Enabled)
{
string sub = Request.RequestContext.RouteData.Values["sub"].ToString();
if (Model.Config.DevEnvironment)
{
sub = "dev - " + sub;
}
<!-- Piwik -->
<script type="text/javascript">
var _paq = _paq || [];
_paq.push(["setDocumentTitle", document.domain + "/" + document.title]);
_paq.push(["setDocumentTitle", "@sub/" + document.title]);
_paq.push(["setCookieDomain", "*.teknik.io"]);
_paq.push(["setDomains", ["*.teknik.io"]]);
_paq.push(['trackPageView']);