8000 Add analytics script · LluisRamon/document-api-python@8029b4f · GitHub
[go: up one dir, main page]

Skip to content

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 8029b4f

Browse files
committed
Add analytics script
1 parent 2f0ef77 commit 8029b4f

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

docs/_includes/analytics.html

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
<!-- Google Tag Manager -->
2+
<script>(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':
3+
new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],
4+
j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=
5+
'https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);
6+
})(window,document,'script','dataLayer','GTM-BVCN');</script>
7+
<!-- End Google Tag Manager -->

docs/_includes/head.html

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,3 +13,5 @@
1313

1414
<script src="https://code.jquery.com/jquery-2.2.4.min.js"></script>
1515
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/js/bootstrap.min.js"></script>
16+
17+
{% if jekyll.environment == "production" %}{% include analytics.html %}{% endif %}

0 commit comments

Comments
 (0)
0