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:
parent
090cf9f5b7
commit
6f43037f72
@ -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']);
|
||||
|
Loading…
Reference in New Issue
Block a user