Skip to content

Commit 557d35b

Browse files
committed
docs(README.md): add newline for markdown-extended
1 parent 7c2f1d8 commit 557d35b

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

README.md

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ Usage
1818
Include the **new** universal analytics script in your html as usual, but remove `ga('send', 'pageview');`
1919

2020
## Enable the ga module
21+
2122
```js
2223
angular.module('yourModule', ['ga'])
2324
```
@@ -42,22 +43,26 @@ You can skip the enclosing array '[]' if you start with the single-quote charact
4243
Of course, you can use angular expressions, as this is evaluated.
4344

4445
Both samples are equivalent to calling `ga('send', 'event', 'player', 'play', video.id)` on the `click` event:
46+
4547
```html
4648
<a href="#" ga="'send', 'event', 'player', 'play', video.id"></a>
4749
<a href="#" ga="['send', 'event', 'player', 'play', video.id]"></a>
4850
```
4951

5052
You can call `ga` several times by passing an array of arrays:
53+
5154
```html
5255
<a href="#" ga="[['set', 'metric1', 10], ['send', 'event', 'player', 'play', video.id]]"></a>
5356
```
5457

55-
You can change the event by providing `ga-on` attribute
58+
You can change the event by providing `ga-on` attribute:
59+
5660
```html
5761
<input type="text" ga="'send', 'event', 'focus'" ga-on="focus" />
5862
```
5963

60-
By using `ga-on="init"` you can call `ga` as soon as the html is parsed
64+
By using `ga-on="init"` you can call `ga` as soon as the html is parsed:
65+
6166
```html
6267
<div ga="'send', 'pageview', {title: 'Hello world!'}" ga-on="init" />
6368
```
@@ -66,6 +71,7 @@ By using `ga-on="init"` you can call `ga` as soon as the html is parsed
6671

6772
If `ga` attribute is empty, the event is guesses from the context. Following examples
6873
are equivalent:
74+
6975
```html
7076
<div ga>LABEL</div>
7177
<div ga="'send', 'event', 'button', 'click', 'LABEL'">LABEL</div>

0 commit comments

Comments
 (0)