Skip to content
This repository has been archived by the owner on Aug 9, 2023. It is now read-only.

Commit

Permalink
Adds small adsense ad for referal traffic (trial)
Browse files Browse the repository at this point in the history
  • Loading branch information
sudorandom committed Jan 9, 2014
1 parent aa78792 commit 38f90bc
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 1 deletion.
1 change: 1 addition & 0 deletions evepraisal/templates/index.html
Expand Up @@ -84,6 +84,7 @@ <h4>{{_('paste box title')}}</h4>
</div>
</div>
</form>
<div class="span5">{{ adspace() }}</div>
</div>
<div class="span7" id="result_container">
{% block results %}
Expand Down
15 changes: 14 additions & 1 deletion evepraisal/templates/layout.sudorandom.html
@@ -1,5 +1,18 @@
{% extends "layout.default.html" %}

{% macro adspace() -%}
REFERRRER {{ request.referrer }}
{% if request.referrer and request.host not in request.referrer %}
<script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
<!-- Basic Text Medium -->
<ins class="adsbygoogle"
style="display:inline-block;width:468px;height:15px"
data-ad-client="ca-pub-9783525020998199"
data-ad-slot="1591156463"></ins>
<script>
(adsbygoogle = window.adsbygoogle || []).push({});
</script>
{% endif %}
{%- endmacro %}
{% block extra_javascript %}
{{ super() }}
<script type="text/javascript">
Expand Down

0 comments on commit 38f90bc

Please sign in to comment.