File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -10,29 +10,43 @@ The split gem and its dependencies.
1010
1111If you are using bundler add split to your Gemfile:
1212
13- gem 'split-analytics', :require => 'split/analytics'
13+ ``` ruby
14+ gem ' split-analytics' , :require => ' split/analytics'
15+ ```
1416
1517Then run:
1618
17- bundle install
19+ ``` bash
20+ bundle install
21+ ```
1822
1923Otherwise install the gem:
2024
21- gem install split-analytics
25+ ``` bash
26+ gem install split-analytics
27+ ```
2228
2329and require it in your project:
2430
25- require 'split/analytics'
31+ ``` ruby
32+ require ' split/analytics'
33+ ```
2634
2735## Usage
2836
2937Use in your application layout template
3038
31- # erb
32- <%= tracking_code(:account => 'UA-12345-6') %>
39+ erb example:
3340
34- # haml
35- = tracking_code(:account => 'UA-12345-6')
41+ ``` erb
42+ <%= tracking_code(:account => 'UA-12345-6') %>
43+ ```
44+
45+ haml example:
46+
47+ ``` haml
48+ = tracking_code(:account => 'UA-12345-6')
49+ ```
3650
3751## Development
3852
You can’t perform that action at this time.
0 commit comments