Browse Source

analytics and adsense

pull/1/head
Ivan 7 years ago
parent
commit
f6c67bc79a
2 changed files with 11 additions and 1 deletions
  1. +1
    -1
      pelican/publishconf.py
  2. +10
    -0
      pelican/theme/templates/base.html

+ 1
- 1
pelican/publishconf.py View File

@@ -22,6 +22,6 @@ DELETE_OUTPUT_DIRECTORY = True
# Following items are often useful when publishing

#DISQUS_SITENAME = ""
#GOOGLE_ANALYTICS = ""
GOOGLE_ANALYTICS = "UA-3773114-1"

OUTPUT_PATH = '..'

+ 10
- 0
pelican/theme/templates/base.html View File

@@ -124,6 +124,16 @@
{% endfor %}
</ul>
{% endif %}
<script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
<!-- ogs -->
<ins class="adsbygoogle"
style="display:inline-block;width:120px;height:240px"
data-ad-client="ca-pub-4473792248813084"
data-ad-slot="4132845695"></ins>
<script>
(adsbygoogle = window.adsbygoogle || []).push({});
</script>
</aside> <!-- End Sidebar -->


Loading…
Cancel
Save