Including my OWA Tracker

This commit is contained in:
Bruno F. Fontes 2020-08-22 11:44:03 -03:00
parent b335bcc613
commit 5e0637a1fd
3 changed files with 22 additions and 1 deletions

View File

@ -16,4 +16,5 @@
</div> </div>
<!-- Copyright --> <!-- Copyright -->
</div> </div>
</footer> </footer>
@include('layouts.tracker')

View File

@ -0,0 +1,19 @@
<!-- Start Open Web Analytics Tracker -->
<script type="text/javascript">
//<![CDATA[
var owa_baseUrl = 'https://brunofontes.net/owa/';
var owa_cmds = owa_cmds || [];
owa_cmds.push(['setSiteId', {{ config('tracking.id') }}]);
owa_cmds.push(['trackPageView']);
owa_cmds.push(['trackClicks']);
owa_cmds.push(['trackDomStream']);
(function() {
var _owa = document.createElement('script'); _owa.type = 'text/javascript'; _owa.async = true;
owa_baseUrl = ('https:' == document.location.protocol ? window.owa_baseSecUrl || owa_baseUrl.replace(/http:/, 'https:') : owa_baseUrl );
_owa.src = owa_baseUrl + 'modules/base/js/owa.tracker-combined-min.js';
var _owa_s = document.getElementsByTagName('script')[0]; _owa_s.parentNode.insertBefore(_owa, _owa_s);
}());
//]]>
</script>
<!-- End Open Web Analytics Code -->

View File

@ -114,5 +114,6 @@
</div> </div>
</div> </div>
</div> </div>
@include('layouts.tracker')
</body> </body>
</html> </html>