google analytics test

This commit is contained in:
Frank John Begornia
2019-06-19 21:53:01 +08:00
parent 2e79d9b38d
commit c8309e7d3f
12 changed files with 183 additions and 58 deletions

View File

@@ -60,6 +60,15 @@
margin: auto;
}
</style>
<!-- Global site tag (gtag.js) - Google Analytics -->
<script async src="https://www.googletagmanager.com/gtag/js?id=UA-136108155-1"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'UA-136108155-1');
</script>
</head>
<body>

View File

@@ -47,12 +47,13 @@
@else
@if(Auth::user()->role == "admin")
<!-- <li class="dropdown-header"><i class="fa fa-user"></i> {{ Auth::user()->username }} </li> -->
<li class="dropdown-header"><i class="fa fa-user"></i> {{ Auth::user()->username }} </li>
<li><a href="{{ url('admin') }}">Dashboard</a></li>
@elseif(Auth::user()->role == "store_owner")
<li class="dropdown-header"><i class="fa fa-user"></i> {{ Auth::user()->username }} </li>
<li><a href="{{ url('user') }}">Dashboard</a></li>
@else
<!-- <li class="dropdown-header"><i class="fa fa-user"></i> {{ Auth::user()->username }} </li> -->
<li class="dropdown-header"><i class="fa fa-user"></i> {{ Auth::user()->username }} </li>
<li><a href="{{ url('user') }}">Dashboard</a></li>
@endif
<li role="separator" class="divider"></li>