Skip to content

Commit

Permalink
fix analytics code being optimized away
Browse files Browse the repository at this point in the history
  • Loading branch information
andrew committed Jun 7, 2016
1 parent fe8b587 commit d3fd197
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 2 additions & 2 deletions resources/public/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@

<!-- Google Analytics -->
<script>
console.log(ulysses.config.google_analytics_code);
console.log(ulysses.config.google_analytics_code_real);
window.ga=window.ga||function(){(ga.q=ga.q||[]).push(arguments)};ga.l=+new Date;
ga('create', ulysses.config.google_analytics_code, 'auto');
ga('create', ulysses.config.google_analytics_code_real, 'auto');
ga('require', 'autotrack');
ga('send', 'pageview');
</script>
Expand Down
2 changes: 2 additions & 0 deletions src/cljs/ulysses/config.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@
(env/def
google-analytics-code "UA-XXXXX-Y")

(def ^:export google-analytics-code-real google-analytics-code)

;; from closure defines ----

(def ^:export debug?
Expand Down

0 comments on commit d3fd197

Please sign in to comment.