Skip to content

Commit dbba388

Browse files
author
Irae Hueck Costa
committed
Revert "Reformat frontend files"
This reverts commit 366e983.
1 parent 366e983 commit dbba388

Some content is hidden

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

69 files changed

+2374
-745
lines changed

.github/workflows/deploy.yml

+1
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ jobs:
1111
runs-on: ubuntu-latest
1212

1313
steps:
14+
1415
- name: Set up WARP
1516
uses: fscarmen/warp-on-actions@v1.1
1617

README.md

+2-1
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@ You will need a redis server at localhost and default port.
5252

5353
If you want to self-host consult here: https://github.com/ihucos/counter.dev-selfhost
5454

55+
5556
## Developing the blog
5657

5758
The blog is based on [pelican](https://blog.getpelican.com/). The templates are in the `templates/blog` directory. Articles in the `posts` directory. To autogenerate the blog to the folder `static/blog` run `make blog`. The blog is autogenerated at every deploy.
@@ -62,7 +63,7 @@ The blog is based on [pelican](https://blog.getpelican.com/). The templates are
6263

6364
I don't know. See https://github.com/ihucos/counter.dev/issues/71
6465

65-
With the information that is possible for me to gather, it seems that due to the _ePrivacy Directive_ all SaaS Web Analytics - including counter.dev - needs consent. Even though most providers might claim the contrary. There is a proposal for a [new ePrivacy Regulation](https://digital-strategy.ec.europa.eu/en/policies/eprivacy-regulation) that could fix that.
66+
With the information that is possible for me to gather, it seems that due to the *ePrivacy Directive* all SaaS Web Analytics - including counter.dev - needs consent. Even though most providers might claim the contrary. There is a proposal for a [new ePrivacy Regulation](https://digital-strategy.ec.europa.eu/en/policies/eprivacy-regulation) that could fix that.
6667

6768
## Contributors
6869

content/help/index.md

+8-8
Original file line numberDiff line numberDiff line change
@@ -2,18 +2,18 @@
22

33
- Integration
44

5-
- General integration guide
5+
- General integration guide
66

7-
- {% filter helplink %}integration.md{% endfilter %}
7+
- {% filter helplink %}integration.md{% endfilter %}
88

9-
- Integrating counter.dev in different platforms
9+
- Integrating counter.dev in different platforms
1010

11-
- {% filter helplink %}wordpress.md{% endfilter %}
11+
- {% filter helplink %}wordpress.md{% endfilter %}
1212

13-
- {% filter helplink %}shopify.md{% endfilter %}
13+
- {% filter helplink %}shopify.md{% endfilter %}
1414

15-
- {% filter helplink %}squarespace.md{% endfilter %}
15+
- {% filter helplink %}squarespace.md{% endfilter %}
1616

17-
- {% filter helplink %}wix.md{% endfilter %}
17+
- {% filter helplink %}wix.md{% endfilter %}
1818

19-
- {% filter helplink %}weebly.md{% endfilter %}
19+
- {% filter helplink %}weebly.md{% endfilter %}

content/help/integration.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ To integrate the tracking script into your website, follow these steps:
2121

2222
1. Log in to your account and copy the tracking code.
2323
2. Paste the tracking code just before the closing `</head>` tag in the HTML
24-
code of your website.
24+
code of your website.
2525
3. Save the changes to your website.
2626

2727
Once you have completed the above steps, the tracking script will start

content/help/shopify.md

+8-8
Original file line numberDiff line numberDiff line change
@@ -5,30 +5,30 @@ track visitors and gain valuable insights into your store's performance. Follow
55
the steps below to integrate Counter.dev into your Shopify store:
66

77
1. Log in to your Shopify store and navigate to the Online Store > Themes
8-
section.
8+
section.
99

1010
2. Click on the Actions button for the theme you want to edit and select Edit
11-
code.
11+
code.
1212

1313
3. In the theme editor, click on the theme.liquid file from the left-hand side
14-
navigation menu to open it.
14+
navigation menu to open it.
1515

1616
4. Find the closing `</head>` tag in the theme.liquid file.
1717

1818
5. Copy the Counter.dev tracking script provided in your Counter.dev account
19-
and paste it just before the closing `</head>` tag.
19+
and paste it just before the closing `</head>` tag.
2020

2121
6. Save the changes to the theme.liquid file.
2222

2323
7. Clear any caching plugins you may have installed on your Shopify store.
2424

2525
8. Verify that the tracking code has been properly installed by visiting your
26-
store and opening the developer console (usually done by pressing F12). The
27-
console should not display any errors and the network tab should show that the
28-
Counter.dev script has been loaded.
26+
store and opening the developer console (usually done by pressing F12). The
27+
console should not display any errors and the network tab should show that the
28+
Counter.dev script has been loaded.
2929

3030
9. Log in to your Counter.dev account and check the analytics dashboard to see
31-
if your Shopify store is being tracked.
31+
if your Shopify store is being tracked.
3232

3333
Congratulations! You have successfully integrated the Counter.dev tracking
3434
script into your Shopify store and can now start tracking visitors and

content/help/squarespace.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,12 @@ started:
1717
6. Save the changes to the Header section.
1818

1919
7. Verify that the tracking code has been properly installed by visiting your
20-
website and opening the developer console (usually done by pressing F12). The
21-
console should not display any errors and the network tab should show that the
22-
Counter.dev script has been loaded.
20+
website and opening the developer console (usually done by pressing F12). The
21+
console should not display any errors and the network tab should show that the
22+
Counter.dev script has been loaded.
2323

2424
8. Log in to your Counter.dev account and check the analytics dashboard to see
25-
if your Squarespace website is being tracked.
25+
if your Squarespace website is being tracked.
2626

2727
Congratulations! You have successfully integrated the Counter.dev tracking
2828
script into your Squarespace website and can now start tracking visitors and

content/help/wordpress.md

+5-5
Original file line numberDiff line numberDiff line change
@@ -10,19 +10,19 @@ WordPress site:
1010
2. Open the header.php file and find the closing `</head>` tag.
1111

1212
3. Copy the Counter.dev tracking script provided in your Counter.dev account
13-
and paste it just before the closing `</head>` tag.
13+
and paste it just before the closing `</head>` tag.
1414

1515
4. Save the changes to the header.php file.
1616

1717
5. Clear any caching plugins you may have installed on your WordPress site.
1818

1919
6. Verify that the tracking code has been properly installed by visiting your
20-
website and opening the developer console (usually done by pressing F12). The
21-
console should not display any errors and the network tab should show that the
22-
Counter.dev script has been loaded.
20+
website and opening the developer console (usually done by pressing F12). The
21+
console should not display any errors and the network tab should show that the
22+
Counter.dev script has been loaded.
2323

2424
7. Log in to your Counter.dev account and check the analytics dashboard to see
25-
if your WordPress website is being tracked.
25+
if your WordPress website is being tracked.
2626

2727
Congratulations! You have successfully integrated the Counter.dev tracking
2828
script into your WordPress website and can now start tracking visitors and

content/pages/imprint.md

+6-1
Original file line numberDiff line numberDiff line change
@@ -7,15 +7,18 @@
77

88
# Imprint
99

10-
_Information in accordance with section 5 TMG:_
10+
*Information in accordance with section 5 TMG:*
1111

1212
Irae Hueck Costa<br/>
1313
10829 Berlin<br/>
1414
E-Mail: hey@counter.dev
1515

16+
17+
1618
Person responsible for content in accordance with 55 Abs. 2 RStV<br/>
1719
Irae Hueck Costa
1820

21+
1922
## Accountability for content
2023

2124
The contents of our pages have been created with the utmost care. However, we
@@ -28,6 +31,8 @@ obligations to remove or block the use of information under generally
2831
applicable laws remain unaffected by this as per §§ 8 to 10 of the Telemedia
2932
Act (TMG).
3033

34+
35+
3136
## Accountability for links
3237

3338
Responsibility for the content of external links (to web pages of third

content/pages/privacy.md

+27-32
Original file line numberDiff line numberDiff line change
@@ -14,26 +14,26 @@ you when you use our website.
1414

1515
Counter collects the following data
1616

17-
- Your username
18-
- An encrypted password
19-
- Domains which where used to access web pages containing your personalized
20-
tracking script.
21-
- Your browser's time zone, a preference that can be changed in the account
22-
settings.
17+
- Your username
18+
- An encrypted password
19+
- Domains which where used to access web pages containing your personalized
20+
tracking script.
21+
- Your browser's time zone, a preference that can be changed in the account
22+
settings.
2323

2424
Your personalized tracking script aggregates the following statistical information of your users.
2525

26-
- The day of the week (As in: _Monday_, _Tuesday_, ...)
27-
- Your users device (As in _Phone_, _Tablet_ or _Computer_)
28-
- The date of the visit
29-
- From which other website a visit originated.
30-
- The users browser (As in: _Firefox_, _Chrome_, _Microsoft Edge_, ...)
31-
- The hour compontent of the current time in a day
32-
- A country mapped to the users IP address.
33-
- The users operating system (As in: _Windows_ or _Mac_)
34-
- Information on the users screen size
35-
- The users preferred language
36-
- Pages visited
26+
- The day of the week (As in: *Monday*, *Tuesday*, ...)
27+
- Your users device (As in *Phone*, *Tablet* or *Computer*)
28+
- The date of the visit
29+
- From which other website a visit originated.
30+
- The users browser (As in: *Firefox*, *Chrome*, *Microsoft Edge*, ...)
31+
- The hour compontent of the current time in a day
32+
- A country mapped to the users IP address.
33+
- The users operating system (As in: *Windows* or *Mac*)
34+
- Information on the users screen size
35+
- The users preferred language
36+
- Pages visited
3737

3838
These data points are saved anonymously in our primary database aggregated on a hourly, daily,
3939
weekly, monthly, yearly and overall basis. Counter deletes hourly, daily,
@@ -49,11 +49,11 @@ As of the 19. Sept 2022 we introduced historical archives persisting daily data
4949
You directly provide Counter with most of the data we collect. We collect data
5050
and process data when you
5151

52-
- Register online.
53-
- Write us an email.
54-
- Change the account settings.
55-
- Include your personalized tracking script in a web page which is visited by
56-
other users.
52+
- Register online.
53+
- Write us an email.
54+
- Change the account settings.
55+
- Include your personalized tracking script in a web page which is visited by
56+
other users.
5757

5858
## How do we store your data?
5959

@@ -65,7 +65,6 @@ anymore, we recommend permanently deleting it in the account settings. We may
6565
delete your data automatically if you stop using the service for longer than one year.
6666

6767
## What are your data protection rights?
68-
6968
Counter would like to make sure you are fully aware of all of your data protection rights.
7069
Every user is entitled to the following:
7170

@@ -76,6 +75,7 @@ The right to rectification - You have the right to request that Counter correct
7675
you believe is inaccurate. You also have the right to request Counter to complete information
7776
you believe is incomplete.
7877

78+
7979
**The right to erasure** - You have the right to request that Counter erase your personal data,
8080
under certain conditions.
8181

@@ -92,43 +92,38 @@ If you make a request, we have one month to respond to you. If you would like to
9292
these rights, please contact us at our email: hey@counter.dev
9393

9494
## What are cookies?
95-
9695
Cookies are text files placed on your computer to collect standard Internet log information and
9796
visitor behavior information. When you visit our websites, we may collect information from you
9897
automatically through cookies or similar technology.
9998

100-
## How do we use cookies?
10199

100+
## How do we use cookies?
102101
Counter uses cookies for the following purpose:
102+
- Keeping you signed in.
103+
- Our content delivery network, Cloudflare, Inc. may set cookies for reasons unknown to Counter.
103104

104-
- Keeping you signed in.
105-
- Our content delivery network, Cloudflare, Inc. may set cookies for reasons unknown to Counter.
106105

107106
## How to manage cookies
108-
109107
You can set your browser not to accept cookies, and the above website tells you how to remove
110108
cookies from your browser. However some of our website features may not function
111109
as a result.
112110

113-
## Privacy policies of other websites
114111

112+
## Privacy policies of other websites
115113
The Counter website contains links to other websites. Our privacy policy applies only to our
116114
website, so if you click on a link to another website, you should read their privacy policy.
117115

118116
## Changes to our privacy policy
119-
120117
Counter keeps its privacy policy under regular review and places any updates on this web page.
121118
This privacy policy was last updated on 18 May 2023.
122119

123120
## How to contact us
124-
125121
If you have any questions about Counter's privacy policy, the data we hold on you, or you would
126122
like to exercise one of your data protection rights, please do not hesitate to contact us.
127123

128124
Email us at: hey@counter.dev
129125

130126
## How to contact the appropriate authority
131-
132127
Should you wish to report a complaint or if you feel that Counter has not addressed your
133128
concern in a satisfactory manner, you may contact the Information Commissioner's Office.
134129

docs/index.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<!doctype html>
1+
<!DOCTYPE html>
22
<html lang="en-US">
33
<head>
44
<meta charset="UTF-8" />

docs/script-testing.js

+11-6
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,17 @@
11
(function () {
2-
if (sessionStorage.getItem("doNotTrack") || localStorage.getItem("doNotTrack")) {
3-
return;
2+
if (sessionStorage.getItem('doNotTrack') || localStorage.getItem('doNotTrack')){
3+
return
44
}
55
var id = document.currentScript.getAttribute("data-id");
66
var utcoffset = document.currentScript.getAttribute("data-utcoffset");
7-
var server = document.currentScript.getAttribute("data-server") || "https://t.counter.dev";
7+
var server =
8+
document.currentScript.getAttribute("data-server") ||
9+
"https://t.counter.dev";
810

9-
if (!sessionStorage.getItem("_swa") && !document.referrer.startsWith(location.protocol + "//" + location.host)) {
11+
if (
12+
!sessionStorage.getItem("_swa") &&
13+
!document.referrer.startsWith(location.protocol + "//" + location.host)
14+
) {
1015
setTimeout(function () {
1116
sessionStorage.setItem("_swa", "1");
1217
fetch(
@@ -17,7 +22,7 @@
1722
screen: screen.width + "x" + screen.height,
1823
id: id,
1924
utcoffset: utcoffset,
20-
}),
25+
})
2126
);
2227
}, 4500);
2328
}
@@ -26,6 +31,6 @@
2631
new URLSearchParams({
2732
id: id,
2833
page: window.location.pathname,
29-
}),
34+
})
3035
);
3136
})();

docs/script.js

+11-6
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,17 @@
11
(function () {
2-
if (sessionStorage.getItem("doNotTrack") || localStorage.getItem("doNotTrack")) {
3-
return;
2+
if (sessionStorage.getItem('doNotTrack') || localStorage.getItem('doNotTrack')){
3+
return
44
}
55
var id = document.currentScript.getAttribute("data-id");
66
var utcoffset = document.currentScript.getAttribute("data-utcoffset");
7-
var server = document.currentScript.getAttribute("data-server") || "https://t.counter.dev";
7+
var server =
8+
document.currentScript.getAttribute("data-server") ||
9+
"https://t.counter.dev";
810

9-
if (!sessionStorage.getItem("_swa") && !document.referrer.startsWith(location.protocol + "//" + location.host)) {
11+
if (
12+
!sessionStorage.getItem("_swa") &&
13+
!document.referrer.startsWith(location.protocol + "//" + location.host)
14+
) {
1015
setTimeout(function () {
1116
sessionStorage.setItem("_swa", "1");
1217
fetch(
@@ -17,7 +22,7 @@
1722
screen: screen.width + "x" + screen.height,
1823
id: id,
1924
utcoffset: utcoffset,
20-
}),
25+
})
2126
);
2227
}, 4500);
2328
}
@@ -26,6 +31,6 @@
2631
new URLSearchParams({
2732
id: id,
2833
page: window.location.pathname,
29-
}),
34+
})
3035
);
3136
})();

static/components/_base.js

+3-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
function tagName() {
2-
var tagName = new URL(document.currentScript.src).pathname.slice(1, -3).replace(/\//g, "-");
2+
var tagName = new URL(document.currentScript.src).pathname
3+
.slice(1, -3)
4+
.replace(/\//g, "-");
35
return tagName.slice(11);
46
}
57

0 commit comments

Comments
 (0)