mirror of
https://github.com/neosubhamoy/neosubhamoy-portfolio.git
synced 2025-12-19 18:13:01 +05:30
(feat): enabled google analytics tracking
This commit is contained in:
@@ -10,4 +10,13 @@
|
|||||||
<script src="https://cdn.lordicon.com/lordicon-1.2.0.js"></script>
|
<script src="https://cdn.lordicon.com/lordicon-1.2.0.js"></script>
|
||||||
<script src="https://www.google.com/recaptcha/api.js" async defer></script>
|
<script src="https://www.google.com/recaptcha/api.js" async defer></script>
|
||||||
<script src="https://unpkg.com/@popperjs/core@2"></script>
|
<script src="https://unpkg.com/@popperjs/core@2"></script>
|
||||||
<script src="https://unpkg.com/tippy.js@6"></script>
|
<script src="https://unpkg.com/tippy.js@6"></script>
|
||||||
|
<!-- Google tag (gtag.js) -->
|
||||||
|
<script async src="https://www.googletagmanager.com/gtag/js?id=<?php echo $_ENV['ANALYTICS_ID'] ?>"></script>
|
||||||
|
<script>
|
||||||
|
window.dataLayer = window.dataLayer || [];
|
||||||
|
function gtag(){dataLayer.push(arguments);}
|
||||||
|
gtag('js', new Date());
|
||||||
|
|
||||||
|
gtag('config', '<?php echo $_ENV['ANALYTICS_ID'] ?>');
|
||||||
|
</script>
|
||||||
Reference in New Issue
Block a user