Skip to content

Commit 8558899

Browse files
committed
Reorganize files
1 parent 9c9a10f commit 8558899

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

42 files changed

+32
-99
lines changed

Diff for: _docs/10_general/introduction.md renamed to _docs/10_general/01_introduction.md

-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
---
22
title: Introduction
33
category: general
4-
category_order: 1
5-
order: 1
64
permalink: /
75
---
86

Diff for: _docs/10_general/locations.md renamed to _docs/10_general/02_locations.md

-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
---
22
title: Locations of servers
33
category: general
4-
category_order: 1
5-
order: 2
64
permalink: /locations
75
---
86

Diff for: _docs/10_general/how-to-use-url-params.md renamed to _docs/10_general/03_how-to-use-url-params.md

-2
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@
22
title: How to use URL parameters
33
menu: How to use URL params
44
category: general
5-
category_order: 1
6-
order: 3
75
permalink: /how-to-use-url-parameters
86
---
97

Diff for: _docs/10_general/what-we-collect.md renamed to _docs/10_general/10_what-we-collect.md

-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
---
22
title: What we collect
33
category: general
4-
category_order: 1
54
order: 10
65
permalink: /what-we-collect
76
---

Diff for: _docs/20_script/cloudflare.md renamed to _docs/20_script/00_cloudflare.md

-2
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@
22
title: Install Simple Analytics on Cloudflare
33
menu: Install on Cloudflare
44
category: script
5-
category_order: 2
6-
order: 6
75
hidden: true
86
permalink: /install-simple-analytics-on-cloudflare
97
---

Diff for: _docs/20_script/ghost.md renamed to _docs/20_script/00_ghost.md

-2
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@
22
title: Install Simple Analytics on Ghost
33
menu: Install on Ghost
44
category: script
5-
category_order: 2
6-
order: 6
75
hidden: true
86
permalink: /install-simple-analytics-on-ghost
97
---

Diff for: _docs/20_script/jimdo.md renamed to _docs/20_script/00_jimdo.md

-2
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@
22
title: Install Simple Analytics on Jimdo Creator
33
menu: Install on Jimdo Creator
44
category: script
5-
category_order: 2
6-
order: 7
75
hidden: true
86
permalink: /install-simple-analytics-on-jimdo-creator
97
---

Diff for: _docs/20_script/squarespace.md renamed to _docs/20_script/00_squarespace.md

-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
title: Install Simple Analytics on Squarespace
33
menu: Install on Squarespace
44
category: script
5-
category_order: 2
65
order: 10
76
hidden: true
87
permalink: /install-simple-analytics-on-squarespace

Diff for: _docs/20_script/webflow.md renamed to _docs/20_script/00_webflow.md

-2
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@
22
title: Install Simple Analytics on Webflow
33
menu: Install on Webflow
44
category: script
5-
category_order: 2
6-
order: 6
75
hidden: true
86
permalink: /install-simple-analytics-on-webflow
97
---

Diff for: _docs/20_script/wix.md renamed to _docs/20_script/00_wix.md

-2
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@
22
title: Install Simple Analytics on WIX
33
menu: Install on WIX
44
category: script
5-
category_order: 2
6-
order: 9
75
hidden: true
86
permalink: /install-simple-analytics-on-wix
97
---

Diff for: _docs/20_script/wordpress.md renamed to _docs/20_script/00_wordpress.md

-2
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@
22
title: Install Simple Analytics on WordPress
33
menu: Install on WordPress
44
category: script
5-
category_order: 2
6-
order: 5
75
hidden: true
86
permalink: /install-simple-analytics-on-wordpress
97
---

Diff for: _docs/20_script/script.md renamed to _docs/20_script/01_script.md

-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
---
22
title: How to add our script
33
category: script
4-
category_order: 2
5-
order: 1
64
permalink: /script
75
---
86

Diff for: _docs/20_script/custom.md renamed to _docs/20_script/02_custom.md

+3-5
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
---
22
title: Trigger custom page views
33
category: script
4-
category_order: 2
5-
order: 2
64
permalink: /trigger-custom-page-views
75
---
86

@@ -22,9 +20,9 @@ We make this work by overwriting the native `pushState`-function of the browser.
2220
// We check if the browser supports pushState
2321
if (history.pushState && Event && dispatchEvent) {
2422
// We create a listener based on the original browser feature
25-
var stateListener = function(type) {
23+
var stateListener = function (type) {
2624
var orig = history[type];
27-
return function() {
25+
return function () {
2826
var rv = orig.apply(this, arguments);
2927
var event = new Event(type);
3028
event.arguments = arguments;
@@ -37,7 +35,7 @@ if (history.pushState && Event && dispatchEvent) {
3735
history.pushState = stateListener("pushState");
3836

3937
// Now we can listen for pushState events and keep the original feature of the browser working
40-
window.addEventListener("pushState", function() {
38+
window.addEventListener("pushState", function () {
4139
// Here we trigger the page view
4240
});
4341
}

Diff for: _docs/20_script/dnt.md renamed to _docs/20_script/03_dnt.md

-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
---
22
title: Do Not Track
33
category: script
4-
category_order: 2
5-
order: 3
64
permalink: /dnt
75
---
86

Diff for: _docs/20_script/hash.md renamed to _docs/20_script/03_hash.md

-2
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@
22
title: Hash mode
33
menu: Hash mode #
44
category: script
5-
category_order: 2
6-
order: 3
75
permalink: /hash-mode
86
---
97

Diff for: _docs/20_script/install.md renamed to _docs/20_script/04_install.md

-2
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@
22
title: Install Simple Analytics on other platforms
33
menu: Install on other platforms
44
category: script
5-
category_order: 2
6-
order: 4
75
permalink: /install-on-other-platforms
86
---
97

Diff for: _docs/20_script/analytics.md renamed to _docs/20_script/05_analytics.md

+2-4
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@
22
title: Install Simple Analytics with the Analytics library
33
menu: Install via `analytics`
44
category: script
5-
category_order: 2
6-
order: 5
75
hidden: true
86
permalink: /install-simple-analytics-via-analytics-package
97
---
@@ -38,8 +36,8 @@ const analytics = Analytics({
3836
app: "awesome-app",
3937
plugins: [
4038
// Load simple analytics! 🎉
41-
simpleAnalyticsPlugin()
42-
]
39+
simpleAnalyticsPlugin(),
40+
],
4341
});
4442

4543
/* All page views are now tracked by simple analytics */

Diff for: _docs/20_script/server-side.md renamed to _docs/20_script/20_server-side.md

+6-7
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
---
22
title: Server side tracking
33
category: script
4-
category_order: 2
54
order: 20
65
permalink: /server-side-tracking
76
---
@@ -59,7 +58,7 @@ const data = JSON.stringify({
5958
"Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:70.0) Gecko/20100101 Firefox/70.0",
6059
width: 1440,
6160
unique: true,
62-
timezone: "Europe/Amsterdam"
61+
timezone: "Europe/Amsterdam",
6362
});
6463

6564
const options = {
@@ -68,25 +67,25 @@ const options = {
6867
method: "POST",
6968
headers: {
7069
"Content-Type": "application/json",
71-
"Content-Length": data.length
72-
}
70+
"Content-Length": data.length,
71+
},
7372
};
7473

7574
const req = https
76-
.request(options, res => {
75+
.request(options, (res) => {
7776
let data = "";
7877

7978
console.log("Status Code:", res.statusCode);
8079

81-
res.on("data", chunk => {
80+
res.on("data", (chunk) => {
8281
data += chunk;
8382
});
8483

8584
res.on("end", () => {
8685
console.log("Body: ", JSON.parse(data));
8786
});
8887
})
89-
.on("error", err => {
88+
.on("error", (err) => {
9089
console.log("Error: ", err.message);
9190
});
9291

Diff for: _docs/30_features/05-uniques.md renamed to _docs/30_features/05_uniques.md

-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
---
22
title: Unique visits
33
category: features
4-
category_order: 3
5-
order: 1
64
permalink: /uniques
75
---
86

Diff for: _docs/30_features/10-mini-websites.md renamed to _docs/30_features/10_mini-websites.md

-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
---
22
title: Mini websites
33
category: features
4-
category_order: 3
5-
order: 1
64
permalink: /mini-websites
75
---
86

Diff for: _docs/30_features/15-email-reports.md renamed to _docs/30_features/15_email-reports.md

-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
---
22
title: Email reports
33
category: features
4-
category_order: 3
5-
order: 3
64
permalink: /email-reports
75
---
86

Diff for: _docs/30_features/20-bypass.md renamed to _docs/30_features/20_bypass.md

-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
---
22
title: Bypass ad-blockers
33
category: features
4-
category_order: 3
5-
order: 4
64
permalink: /bypass-ad-blockers
75
---
86

Diff for: _docs/30_features/25_remove-spam.md

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
---
2+
title: Remove SPAM
3+
category: features
4+
permalink: /remove-spam
5+
---
6+
7+
Simple Analytics has a feature where you can remove referral spam. Not by setting up complex filters, but just with a click on a button.

Diff for: _docs/30_features/30-embed-graph.md renamed to _docs/30_features/30_embed-graph.md

-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
---
22
title: Embed graph on your site
33
category: features
4-
category_order: 3
5-
order: 5
64
skip_pjax: true
75
permalink: /embed-graph-on-your-site
86
---

Diff for: _docs/30_features/40-extension.md renamed to _docs/30_features/40_extension.md

-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
---
22
title: Block your visits extension
33
category: features
4-
category_order: 3
5-
order: 6
64
permalink: /extension
75
---
86

Diff for: _docs/35_legal/your-privacy-policy.md renamed to _docs/35_legal/01_your-privacy-policy.md

-2
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@
22
title: Your privacy policy using Simple Analytics
33
menu: Your privacy policy
44
category: legal
5-
category_order: 1
6-
order: 1
75
permalink: /your-privacy-policy
86
---
97

Diff for: _docs/35_legal/gdpr.md renamed to _docs/35_legal/02_gdpr.md

-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
---
22
title: GDPR
33
category: legal
4-
category_order: 4
5-
order: 2
64
permalink: /gdpr
75
---
86

Diff for: _docs/35_legal/pecr.md renamed to _docs/35_legal/03_pecr.md

-3
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
---
22
title: PECR
33
category: legal
4-
category_order: 4
5-
order: 3
64
permalink: /pecr
75
---
86

@@ -31,7 +29,6 @@ All cookies that are used for analytics do require a consent. Simple Analytics d
3129

3230
Use [ICO's tool](https://ico.org.uk/for-organisations/where-does-consent-apply-for-cookies/) to determine where consent applies for your use of cookies.
3331

34-
3532
We advise you to include us in your privacy policy. [Read more on that here](your-privacy-policy).
3633

3734
<small>Sources used: [insideprivacy.com](https://www.insideprivacy.com/data-privacy/ico-updates-guidance-on-cookies-and-similar-technologies/).</small>

Diff for: _docs/35_legal/vat.md renamed to _docs/35_legal/90_vat.md

-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
---
22
title: VAT
33
category: legal
4-
category_order: 4
54
order: 100
65
permalink: /vat
76
---

Diff for: _docs/40_referral-program/1-how-it-works.md renamed to _docs/40_referral-program/01_how-it-works.md

+7-9
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,13 @@
22
title: How our referral program works
33
menu: How it works
44
category: referral program
5-
category_order: 3
6-
order: 1
75
permalink: /referral-program/how-it-works
86
---
97

108
On [your referrals page](https://simpleanalytics.com/account/referrals?ref={{ site.hostname }}) you can create a personal referral link which you can share with others.
119

1210
When people signup via your link:
11+
1312
- They get one month for free (one month extra free trial)
1413
- You get paid **in cash** the value of one month of their chosen plan
1514

@@ -25,12 +24,12 @@ Payment will only be paid into the credit card you have on file when the referre
2524

2625
Some examples:
2726

28-
| Subscription | New Customer Action | Your Outcome
29-
| --- | --- | --- |
30-
| Business plan (for $588 a year) | First invoice Paid | **You get $49** ($588 / 12) |
31-
| Starter plan (for $19 a month) | First invoice Paid | **You get $19** |
32-
| Starter plan (for $19 a month) | Cancel their plan within one month + 7 days | **You get nothing** |
33-
| Starter plan (for $19 a month) | Fail to pay us | **You get nothing** |
27+
| Subscription | New Customer Action | Your Outcome |
28+
| -------------------------------- | ------------------------------------------- | ----------------------------- |
29+
| Business plan (for \$588 a year) | First invoice Paid | **You get \$49** (\$588 / 12) |
30+
| Starter plan (for \$19 a month) | First invoice Paid | **You get \$19** |
31+
| Starter plan (for \$19 a month) | Cancel their plan within one month + 7 days | **You get nothing** |
32+
| Starter plan (for \$19 a month) | Fail to pay us | **You get nothing** |
3433

3534
> Go to [your referrals page](https://simpleanalytics.com/account/referrals?ref={{ site.hostname }}) to create your personal referral link
3635
@@ -44,5 +43,4 @@ When your first invoice has been paid, we will give the promoter of the referral
4443

4544
Note: We are privacy focused, so the promoter will not receive any indication of who you are (i.e. you will be totally anonymous).
4645

47-
4846
> Read our [referral program terms of service](/referral-program/terms-of-service) to get familiar with our rules.

Diff for: _docs/40_referral-program/3-terms-of-service.md renamed to _docs/40_referral-program/03_terms-of-service.md

-2
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@
22
title: Terms of service of our referral program
33
menu: Terms of service
44
category: referral program
5-
category_order: 3
6-
order: 3
75
permalink: /referral-program/terms-of-service
86
---
97

Diff for: _docs/50_api/01-introduction.md renamed to _docs/50_api/01_introduction.md

-2
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@
22
title: API Introduction
33
menu: Introduction
44
category: api
5-
category_order: 9
6-
order: 1
75
permalink: /api
86
---
97

0 commit comments

Comments
 (0)