Skip to content

Commit

Permalink
Setup Google Analytics from site config instead of theme config
Browse files Browse the repository at this point in the history
  • Loading branch information
danielres committed May 19, 2015
1 parent d70ff45 commit 9a7651e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions layout/_scripts/analytics/google-analytics.swig
Expand Up @@ -5,6 +5,6 @@
e=o.createElement(i);r=o.getElementsByTagName(i)[0];
e.src='//www.google-analytics.com/analytics.js';
r.parentNode.insertBefore(e,r)}(window,document,'script','ga'));
ga('create','{{ theme.google_analytics }}');ga('send','pageview');
ga('create','{{ config.google_analytics }}');ga('send','pageview');
</script>
{% endif %}
{% endif %}

0 comments on commit 9a7651e

Please sign in to comment.