mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-09 03:14:30 -04:00
Hide portal links from analytics
This commit is contained in:
parent
b6e676b513
commit
83ee802fa4
@ -212,30 +212,6 @@
|
|||||||
<body class="body">
|
<body class="body">
|
||||||
|
|
||||||
@if (request()->phantomjs)
|
@if (request()->phantomjs)
|
||||||
<script>
|
|
||||||
function trackEvent(category, action) {
|
|
||||||
}
|
|
||||||
</script>
|
|
||||||
@elseif (Utils::isNinjaProd() && isset($_ENV['TAG_MANAGER_KEY']) && $_ENV['TAG_MANAGER_KEY'])
|
|
||||||
<!-- Google Tag Manager -->
|
|
||||||
<noscript>
|
|
||||||
<iframe src="//www.googletagmanager.com/ns.html?id={{ $_ENV['TAG_MANAGER_KEY'] }}"
|
|
||||||
height="0" width="0" style="display:none;visibility:hidden"></iframe>
|
|
||||||
</noscript>
|
|
||||||
<script>(function (w, d, s, l, i) {
|
|
||||||
w[l] = w[l] || [];
|
|
||||||
w[l].push({
|
|
||||||
'gtm.start': new Date().getTime(), event: 'gtm.js'
|
|
||||||
});
|
|
||||||
var f = d.getElementsByTagName(s)[0],
|
|
||||||
j = d.createElement(s), dl = l != 'dataLayer' ? '&l=' + l : '';
|
|
||||||
j.async = true;
|
|
||||||
j.src =
|
|
||||||
'//www.googletagmanager.com/gtm.js?id=' + i + dl;
|
|
||||||
f.parentNode.insertBefore(j, f);
|
|
||||||
})(window, document, 'script', 'dataLayer', '{{ $_ENV['TAG_MANAGER_KEY'] }}');</script>
|
|
||||||
<!-- End Google Tag Manager -->
|
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
function trackEvent(category, action) {
|
function trackEvent(category, action) {
|
||||||
}
|
}
|
||||||
@ -255,7 +231,11 @@
|
|||||||
})(window, document, 'script', '//www.google-analytics.com/analytics.js', 'ga');
|
})(window, document, 'script', '//www.google-analytics.com/analytics.js', 'ga');
|
||||||
|
|
||||||
ga('create', '{{ $_ENV['ANALYTICS_KEY'] }}', 'auto');
|
ga('create', '{{ $_ENV['ANALYTICS_KEY'] }}', 'auto');
|
||||||
|
@if (request()->invitation_key || request()->proposal_invitation_key || request()->contact_key)
|
||||||
|
ga('send', 'pageview', { 'page': '/client/portal' });
|
||||||
|
@else
|
||||||
ga('send', 'pageview');
|
ga('send', 'pageview');
|
||||||
|
@endif
|
||||||
|
|
||||||
function trackEvent(category, action) {
|
function trackEvent(category, action) {
|
||||||
ga('send', 'event', category, action, this.src);
|
ga('send', 'event', category, action, this.src);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user