@mate-academy/sourcebuster 1.1.3 → 1.1.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/README.md +9 -6
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -4,6 +4,9 @@
4
4
 
5
5
  Read [upgrade guide](UPGRADING.md) for details.
6
6
 
7
+ ## Source
8
+ This package is a modified clone of [sourcebuster js functionality](https://github.com/alex35mil/sourcebuster-js).
9
+
7
10
  ## About
8
11
  * Sourcebuster tracks the sources of your site’s visitors and stores the data in the cookies for further analysis.
9
12
  * It handles sources-overriding just like Google Analytics does.
@@ -203,14 +206,14 @@ So by default the cookies are shared. However if you don't want to share them
203
206
 
204
207
  Let’s take a look at further examples.
205
208
 
206
- **No. 1**
209
+ **No. 1**
207
210
  The first scenario. You have a site: **wow.com**. Also you have a blog on this site: **blog.wow.com**. And you don’t want to separate traffic between them. It means that when the visitor come from **blog.wow.com** to **wow.com**, it won’t be a new visit for **wow.com** (with **blog.wow.com** as Referral source), it will be a common inner click without source change (to sourcebuster.js this scenario will be equal to inner page change: from *wow.com/about* to *wow.com/contacts* for example). To achive this you have to add this line on both sites: **wow.com & blog.wow.com**.
208
211
 
209
212
  ```javascript
210
213
  domain: 'wow.com'
211
214
  ```
212
215
 
213
- **No. 2**
216
+ **No. 2**
214
217
  That was simple. Now lets take a look at opposite scenario — you want to separate traffic between your subdomains and consider it as Referral. There is the main site — **wow.com**, and there is a blog on this site — **blog.wow.com**, which also has users subdomains — **alex.blog.wow.com** is one of them. You don’t want to separate traffic between **blog.wow.com** and **alex.blog.wow.com**, but you do want to separate it between all the blogs and the main site. Here’s how we can sort it out:
215
218
 
216
219
  ```javascript
@@ -220,7 +223,7 @@ domain: {
220
223
  isolate: true
221
224
  }
222
225
 
223
- // and this on the blogs subdomains (blog.wow.com & alex.blog.wow.com)
226
+ // and this on the blogs subdomains (blog.wow.com & alex.blog.wow.com)
224
227
  domain: 'blog.wow.com'
225
228
  ```
226
229
 
@@ -521,7 +524,7 @@ All data are stored in cookies. When the script is pushed to production, visitor
521
524
 
522
525
  #### sbjs_current & sbjs_first
523
526
 
524
- *Format*
527
+ *Format*
525
528
  `typ=organic|||src=google|||mdm=organic|||cmp=(none)|||cnt=(none)|||trm=(none)`
526
529
 
527
530
  *Examples*
@@ -546,7 +549,7 @@ typ=typein|||src=(direct)|||mdm=(none)|||cmp=(none)|||cnt=(none)|||trm=(none)
546
549
 
547
550
  #### sbjs_current_add & sbjs_first_add
548
551
 
549
- *Format*
552
+ *Format*
550
553
  `fd=2014-06-11 17:28:26|||ep=http://statica.alexfedoseev.com/sourcebuster-js/|||rf=https://www.google.com`
551
554
 
552
555
 
@@ -558,7 +561,7 @@ typ=typein|||src=(direct)|||mdm=(none)|||cmp=(none)|||cnt=(none)|||trm=(none)
558
561
 
559
562
  #### sbjs_udata
560
563
 
561
- *Format*
564
+ *Format*
562
565
  `vst=2|||uip=192.168.1.1|uag=Mozilla/5.0 (Macintosh; Intel Mac OS X 10_9_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/35.0.1916.114 Safari/537.36`
563
566
 
564
567
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mate-academy/sourcebuster",
3
- "version": "1.1.3",
3
+ "version": "1.1.4",
4
4
  "description": "Get sources of your site's visitors (utm / organic / referral / typein).",
5
5
  "license": "MIT",
6
6
  "keywords": [