mirror of
https://github.com/peter-tanner/peter-tanner.github.io.git
synced 2024-12-02 21:10:17 +08:00
14 lines
442 B
HTML
14 lines
442 B
HTML
|
<!-- Global site tag (gtag.js) - Google Analytics -->
|
||
|
<script defer src="https://www.googletagmanager.com/gtag/js?id={{ site.analytics.google.id }}"></script>
|
||
|
<script>
|
||
|
document.addEventListener('DOMContentLoaded', function (event) {
|
||
|
window.dataLayer = window.dataLayer || [];
|
||
|
function gtag() {
|
||
|
dataLayer.push(arguments);
|
||
|
}
|
||
|
|
||
|
gtag('js', new Date());
|
||
|
gtag('config', '{{ site.analytics.google.id }}');
|
||
|
});
|
||
|
</script>
|