Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Merge pull request #41 from johnpaulashenfelter/patch-1

Only add setDomainName if the :domain key is set, just like allowLinker....
  • Loading branch information...
commit bf835497014a8f3c8fc21800cf1925974f0817a4 2 parents 58aa38d + 7ce0de1
Joshua Krall authored

Showing 1 changed file with 1 addition and 1 deletion. Show diff stats Hide diff stats

  1. +1 1  lib/analytical/modules/google.rb
2  lib/analytical/modules/google.rb
@@ -15,7 +15,7 @@ def init_javascript(location)
15 15 <script type="text/javascript">
16 16 var _gaq = _gaq || [];
17 17 _gaq.push(['_setAccount', '#{options[:key]}']);
18   - _gaq.push(['_setDomainName', '#{options[:domain]}']);
  18 + #{"_gaq.push(['_setDomainName', '#{options[:domain]}']);" if options[:domain]}
19 19 #{"_gaq.push(['_setAllowLinker', true]);" if options[:allow_linker]}
20 20 _gaq.push(['_trackPageview']);
21 21 (function() {

0 comments on commit bf83549

Please sign in to comment.
Something went wrong with that request. Please try again.