Skip to content
This repository was archived by the owner on Mar 21, 2025. It is now read-only.

Commit 042cc47

Browse files
Merge branch 'master' into develop
# Conflicts: # docs/debug.md
2 parents 4c3a42f + ba66014 commit 042cc47

File tree

5 files changed

+33
-17
lines changed

5 files changed

+33
-17
lines changed

README.md

Lines changed: 18 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,28 @@
1313
<a href="https://travis-ci.org/MatteoGabriele/vue-analytics">
1414
<img src="https://travis-ci.org/MatteoGabriele/vue-analytics.svg?branch=master" />
1515
</a>
16+
17+
<img src="https://img.shields.io/badge/size-3.07kB-brightgreen.svg" />
1618
</p>
1719

1820
# vue-analytics
1921

2022
Vue plugin for Google Analytics
2123

24+
## Why should I use it?
25+
26+
The plugin isn't just a wrapper of the Google Analytics API, but provides a solution to issues that most of the time you don't want to deal with or you not even know you have to deal with.
27+
28+
For example:
29+
30+
* Automatic Google Analytics script loading
31+
* Automatic page tracking
32+
* Collects and tracks back all missing events fired during script loading
33+
* Multiple domain ID tracking system
34+
* E-commerce API
35+
* Vue error exception tracking system
36+
* Debugging API
37+
2238
## Requirements
2339

2440
Vue ^2.0.0
@@ -43,9 +59,9 @@ npm install vue-analytics
4359
* [Set](/docs/set.md)
4460
* [Social interactions](/docs/social-interactions.md)
4561
* [User explorer report](/docs/user-explorer.md)
46-
* [On Analaytics script ready](/docs/when-google-analytics-is-loaded.md)
62+
* [On Analytics script ready](/docs/when-google-analytics-is-loaded.md)
4763
* [Custom methods](/docs/custom-methods.md)
48-
* [Ecommerce](/docs/ecommerce.md)
64+
* [E-commerce](/docs/ecommerce.md)
4965
* [Untracked hits](/docs/untracked-hits.md)
5066
* [Vuex](/docs/vuex.md)
5167
* [Debug](/docs/debug.md)

SUMMARY.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,9 @@
1313
* [Set](/docs/set.md)
1414
* [Social interactions](/docs/social-interactions.md)
1515
* [User explorer report](/docs/user-explorer.md)
16-
* [On Analaytics script ready](/docs/when-google-analytics-is-loaded.md)
16+
* [On Analytics script ready](/docs/when-google-analytics-is-loaded.md)
1717
* [Custom methods](/docs/custom-methods.md)
18-
* [Ecommerce](/docs/ecommerce.md)
18+
* [E-commerce](/docs/ecommerce.md)
1919
* [Untracked hits](/docs/untracked-hits.md)
2020
* [Vuex](/docs/vuex.md)
2121
* [Debug](/docs/debug.md)

docs/ecommerce.md

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
## Ecommerce
1+
## E-commerce
22

3-
All ecommerce features are built-in in the plugin, so there's no need to require any ecommerce libraries: just enable the ecommerce features from the plugin configuration
3+
All e-commerce features are built-in in the plugin, so there's no need to require any e-commerce libraries: just enable the e-commerce features from the plugin configuration
44

55
```js
66
import Vue from 'vue'
@@ -14,7 +14,7 @@ Vue.use(VueAnalytics, {
1414
})
1515
```
1616

17-
It is also possible to use the Enhanced Ecommerce library just by changing the configuration like so
17+
It is also possible to use the Enhanced E-commerce library just by changing the configuration like so
1818

1919
```js
2020
Vue.use(VueAnalytics, {
@@ -39,20 +39,20 @@ Vue.use(VueAnalytics, {
3939
```
4040

4141
### Usage
42-
All ecommerce features are accessable via the `ecommerce` object
42+
All e-commerce features are accessable via the `ecommerce` object
4343

4444
- addItem
45-
- addTransaction
45+
- addTransaction
4646
- addProduct
47-
- addImpression
47+
- addImpression
4848
- setAction
4949
- addPromo
5050
- send
5151

52-
Remember that not all methods are included in the Ecommerce or the Enhanced Ecommerce, so please check the relative documentation in the Google Analytics dev guide.
52+
Remember that not all methods are included in the E-commerce or the Enhanced E-commerce, so please check the relative documentation in the Google Analytics dev guide.
5353

54-
- [Ecommerce](https://developers.google.com/analytics/devguides/collection/analyticsjs/ecommerce)
55-
- [Enhanced Ecommerce](https://developers.google.com/analytics/devguides/collection/analyticsjs/enhanced-ecommerce)
54+
- [E-commerce](https://developers.google.com/analytics/devguides/collection/analyticsjs/ecommerce)
55+
- [Enhanced E-commerce](https://developers.google.com/analytics/devguides/collection/analyticsjs/enhanced-ecommerce)
5656

5757

5858
```html

docs/set.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ this.$ga.set(fieldName, fieldValue)
99
also possible to pass an object literal
1010

1111
```js
12-
this.$ga.set({ fieldName, fieldName })
12+
this.$ga.set({ fieldName, fieldValue })
1313
```
1414

1515
### Set multiple fields before first hit

docs/when-google-analytics-is-loaded.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ Vue.use(VueAnalytics, {
1212
// this is right after the tracker and before every other hit to Google Analytics
1313
},
1414
ready () {
15-
// here Google Analaytics is ready to track!
15+
// here Google Analytics is ready to track!
1616
}
1717
})
1818
```
@@ -26,7 +26,7 @@ Vue.use(VueAnalytics, { ... })
2626

2727
const App = new Vue({ ... })
2828

29-
onAnalyticsReady.then(() => {
29+
onAnalyticsReady().then(() => {
3030
App.$mount('#app')
3131
})
32-
```
32+
```

0 commit comments

Comments
 (0)