Skip to content

Commit

Permalink
Removing Hotjar (#9008)
Browse files Browse the repository at this point in the history
* Removing hotjar

* more removing of hotjar

* more removing hotjar
  • Loading branch information
Kweiss authored Jun 8, 2021
1 parent 0888e21 commit c8d4fbd
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 17 deletions.
1 change: 0 additions & 1 deletion app/app/context.py
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,6 @@ def preprocess(request):
'orgs': profile.organizations if profile else [],
'profile_id': profile.id if profile else '',
'is_pro': profile.is_pro if profile else False,
'hotjar': settings.HOTJAR_CONFIG,
'ipfs_config': {
'host': settings.JS_IPFS_HOST,
'port': settings.IPFS_API_PORT,
Expand Down
1 change: 0 additions & 1 deletion app/app/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -751,7 +751,6 @@ def callback(request):
env('GA_AUTH_PROVIDER_X509_CERT_URL', default='https://www.googleapis.com/oauth2/v1/certs'),
'client_x509_cert_url': env('GA_CLIENT_X509_CERT_URL', default='')
}
HOTJAR_CONFIG = {'hjid': env.int('HOTJAR_ID', default=0), 'hjsv': env.int('HOTJAR_SV', default=0), }

# List of github usernames to not count as comments on an issue
IGNORE_COMMENTS_FROM = ['gitcoinbot', ]
Expand Down
15 changes: 0 additions & 15 deletions app/retail/templates/shared/head.html
Original file line number Diff line number Diff line change
Expand Up @@ -80,19 +80,4 @@
{% if meta_description %}<meta name="description" content="{{meta_description}}" />{% endif %}
{% if env == 'prod' %}
<script>document.domain = 'gitcoin.co';</script>
<!-- Hotjar Tracking Code for gitcoin.co -->
<script>
(function(h,o,t,j,a,r){
h.hj=h.hj||function(){(h.hj.q=h.hj.q||[]).push(arguments)};
h._hjSettings={
{% for key, value in hotjar.items %}
{{ key }}:{{ value }},
{% endfor %}
};
a=o.getElementsByTagName('head')[0];
r=o.createElement('script');r.async=1;
r.src=t+h._hjSettings.hjid+j+h._hjSettings.hjsv;
a.appendChild(r);
})(window,document,'https://static.hotjar.com/c/hotjar-','.js?sv=');
</script>
{% endif %}

0 comments on commit c8d4fbd

Please sign in to comment.