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

Commit

Permalink
Merge pull request #41 from johnpaulashenfelter/patch-1
Browse files Browse the repository at this point in the history
Only add setDomainName if the :domain key is set, just like allowLinker....
  • Loading branch information
jkrall committed Jul 31, 2012
2 parents 58aa38d + 7ce0de1 commit bf83549
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/analytical/modules/google.rb
Expand Up @@ -15,7 +15,7 @@ def init_javascript(location)
<script type="text/javascript"> <script type="text/javascript">
var _gaq = _gaq || []; var _gaq = _gaq || [];
_gaq.push(['_setAccount', '#{options[:key]}']); _gaq.push(['_setAccount', '#{options[:key]}']);
_gaq.push(['_setDomainName', '#{options[:domain]}']); #{"_gaq.push(['_setDomainName', '#{options[:domain]}']);" if options[:domain]}
#{"_gaq.push(['_setAllowLinker', true]);" if options[:allow_linker]} #{"_gaq.push(['_setAllowLinker', true]);" if options[:allow_linker]}
_gaq.push(['_trackPageview']); _gaq.push(['_trackPageview']);
(function() { (function() {
Expand Down

0 comments on commit bf83549

Please sign in to comment.