Skip to content

Commit

Permalink
$Adding Tag Manager
Browse files Browse the repository at this point in the history
  • Loading branch information
wesleyhenriques33 committed Aug 5, 2024
1 parent 3e3ecca commit 00936bb
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 3 deletions.
5 changes: 2 additions & 3 deletions mkdocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ plugins:
- blog:
pagination_per_page: 5
pagination_url_format: "{page}"
archive_name: Postagens
archive_name: Arquivo
archive_date_format: yyyy
archive_url_format: "archive/{date}"
archive_toc: true
Expand All @@ -84,8 +84,7 @@ hooks:

extra:
analytics:
provider: google
property: G-451199504
provider: custom
feedback:
title: Esta informação foi útil?
ratings:
Expand Down
7 changes: 7 additions & 0 deletions overrides/partials/integrations/custom.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
<!-- Google Tag Manager -->
<script>(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':
new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],
j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=
'https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);
})(window,document,'script','dataLayer','GTM-WKB9V3MQ');</script>
<!-- End Google Tag Manager -->
11 changes: 11 additions & 0 deletions overrides/partials/main.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{% extends "base.html" %}

{% block scripts %}
{{ super() }}

<!-- Google Tag Manager (noscript) -->
<noscript><iframe src="https://www.googletagmanager.com/ns.html?id=GTM-WKB9V3MQ"
height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript>
<!-- End Google Tag Manager (noscript) -->

{% endblock %}

0 comments on commit 00936bb

Please sign in to comment.