Skip to content

Commit

Permalink
use cdnjs on instructions
Browse files Browse the repository at this point in the history
  • Loading branch information
eduardocereto committed Oct 12, 2012
1 parent 60a1bdd commit 7be8bca
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion README.md
Expand Up @@ -14,7 +14,10 @@ To install GAS download the script from [download page][download] and put it som
your website. Also install the basic snippet on every page of your website. Be your website. Also install the basic snippet on every page of your website. Be
sure to change the Account Number (UA) and the correct gas.js file location. sure to change the Account Number (UA) and the correct gas.js file location.


You can also use gas hosted on [cdnjs].

[download]: https://github.com/CardinalPath/gas/downloads [download]: https://github.com/CardinalPath/gas/downloads
[cdnjs]: http://cdnjs.com/index.html#gas


The basic snippet looks like this: The basic snippet looks like this:


Expand All @@ -36,7 +39,7 @@ _gas.push(['_gasTrackMailto']);
var ga = document.createElement('script'); var ga = document.createElement('script');
ga.type = 'text/javascript'; ga.type = 'text/javascript';
ga.async = true; ga.async = true;
ga.src = '/gas.js'; ga.src = '//cdnjs.cloudflare.com/ajax/libs/gas/1.10.1/gas.min.js';
var s = document.getElementsByTagName('script')[0]; var s = document.getElementsByTagName('script')[0];
s.parentNode.insertBefore(ga, s); s.parentNode.insertBefore(ga, s);
})(); })();
Expand Down

0 comments on commit 7be8bca

Please sign in to comment.