Skip to content

Commit

Permalink
update google tags
Browse files Browse the repository at this point in the history
  • Loading branch information
SuperKogito committed Feb 12, 2023
1 parent 0de55de commit 699af50
Showing 1 changed file with 13 additions and 2 deletions.
15 changes: 13 additions & 2 deletions src/_templates/layout.html
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,19 @@
{% endif %}
{% endfor %}

<!-- Google Analytics -->
{{ generate_google_analytics_script(id=theme_google_analytics_id) }}
<!-- Google tag (gtag.js) -->
<script async src="https://www.googletagmanager.com/gtag/js?id=G-GPWJJB9TRK"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());

gtag('config', 'G-GPWJJB9TRK');
</script>

<!-- Google Ads -->
<script async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-8554106698532684" crossorigin="anonymous"></script>

{%- endblock %}

{# Silence the sidebar's, relbar's #}
Expand Down

0 comments on commit 699af50

Please sign in to comment.