Skip to content

Commit 9f269ab

Browse files
committed
Add fb and google analytics
1 parent 0cc3484 commit 9f269ab

File tree

1 file changed

+52
-6
lines changed

1 file changed

+52
-6
lines changed

presentation.html

Lines changed: 52 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@
4141
<meta property="fb:app_id" content="655968634437471">
4242
<meta property="og:title" content="Material Dashboard by Creative Tim">
4343
<meta property="og:type" content="article">
44-
<meta property="og:url" content="http://demos.creative-tim.com/material-dashboard/presentation.html">
44+
<meta property="og:url" content="https://demos.creative-tim.com/material-dashboard/presentation.html">
4545
<meta property="og:image" content="https://s3.amazonaws.com/creativetim_bucket/products/50/opt_md_thumbnail.jpg">
4646
<meta property="og:description" content="Prototype and Develop with a Badass Bootstrap 4 Admin Template inspired by Material Design.">
4747
<meta property="og:site_name" content="Creative Tim">
@@ -72,9 +72,20 @@
7272
}
7373
}
7474
</style>
75+
<!-- Google Tag Manager -->
76+
<script>(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':
77+
new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],
78+
j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=
79+
'https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);
80+
})(window,document,'script','dataLayer','GTM-NKDMSK6');</script>
81+
<!-- End Google Tag Manager -->
7582
</head>
7683

7784
<body>
85+
<!-- Google Tag Manager (noscript) -->
86+
<noscript><iframe src="https://www.googletagmanager.com/ns.html?id=GTM-NKDMSK6"
87+
height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript>
88+
<!-- End Google Tag Manager (noscript) -->
7889
<nav class="navbar navbar-color-on-scroll navbar-transparent fixed-top navbar-expand-lg " color-on-scroll="100" id="sectionsNav">
7990
<div class="container">
8091
<div class="navbar-translate">
@@ -100,7 +111,13 @@
100111
<li class="nav-item">
101112
<a href="https://github.com/creativetimofficial/material-dashboard" target="_blank" class="nav-link">
102113
<i class="fa fa-github mr-2"></i>
103-
Help with a star
114+
Github
115+
</a>
116+
</li>
117+
<li class="nav-item">
118+
<a href="https://demos.creative-tim.com/material-dashboard/examples/dashboard.html" target="_blank" class="nav-link">
119+
<i class="material-icons">view_carousel</i>
120+
Live Preview
104121
</a>
105122
</li>
106123
<li class="nav-item">
@@ -383,15 +400,15 @@ <h3>Thank you for supporting us!</h3>
383400
</div>
384401
<footer class="footer">
385402
<div class="container">
386-
<a class="footer-brand" href="http://www.creative-tim.com">Material Dashboard</a>
403+
<a class="footer-brand" href="https://www.creative-tim.com">Material Dashboard</a>
387404
<ul class="pull-center">
388405
<li>
389-
<a href="http://www.creative-tim.com/" target="_blank">
406+
<a href="https://www.creative-tim.com/" target="_blank">
390407
Creative Tim
391408
</a>
392409
</li>
393410
<li>
394-
<a href="http://presentation.creative-tim.com/" target="_blank">
411+
<a href="https://presentation.creative-tim.com/" target="_blank">
395412
About Us
396413
</a>
397414
</li>
@@ -401,7 +418,7 @@ <h3>Thank you for supporting us!</h3>
401418
</a>
402419
</li>
403420
<li>
404-
<a href="http://www.creative-tim.com/license" target="_blank">
421+
<a href="https://www.creative-tim.com/license" target="_blank">
405422
Licenses
406423
</a>
407424
</li>
@@ -472,6 +489,35 @@ <h3>Thank you for supporting us!</h3>
472489

473490

474491
});
492+
// Facebook Pixel Code Don't Delete
493+
!function(f,b,e,v,n,t,s){if(f.fbq)return;n=f.fbq=function(){n.callMethod?
494+
n.callMethod.apply(n,arguments):n.queue.push(arguments)};if(!f._fbq)f._fbq=n;
495+
n.push=n;n.loaded=!0;n.version='2.0';n.queue=[];t=b.createElement(e);t.async=!0;
496+
t.src=v;s=b.getElementsByTagName(e)[0];s.parentNode.insertBefore(t,s)}(window,
497+
document,'script','https://connect.facebook.net/en_US/fbevents.js');
498+
499+
try{
500+
fbq('init', '111649226022273');
501+
fbq('track', "PageView");
502+
503+
}catch(err) {
504+
console.log('Facebook Track Error:', err);
505+
}
506+
507+
508+
var _gaq = _gaq || [];
509+
_gaq.push(['_setAccount', 'UA-46172202-1']);
510+
_gaq.push(['_trackPageview']);
511+
512+
(function() {
513+
var ga = document.createElement('script');
514+
ga.type = 'text/javascript';
515+
ga.async = true;
516+
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
517+
var s = document.getElementsByTagName('script')[0];
518+
s.parentNode.insertBefore(ga, s);
519+
})();
520+
475521
</script>
476522

477523

0 commit comments

Comments
 (0)