Skip to content

Commit 2338260

Browse files
Move noscript to its own section
1 parent 34d22b9 commit 2338260

File tree

1 file changed

+11
-2
lines changed

1 file changed

+11
-2
lines changed

_docs/20_script-settings/03_overwrite-domain.md

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,17 +14,26 @@ Make sure to include the our `simpleanalyticscdn.com` script (note the **cdn** p
1414
<!-- prettier-ignore -->
1515
```html
1616
<script async data-hostname="" src="https://scripts.simpleanalyticscdn.com/latest.js"></script>
17-
<noscript><img src="https://queue.simpleanalyticscdn.com/noscript.gif?hostname=" alt="" referrerpolicy="no-referrer-when-downgrade" /></noscript>
1817
```
1918

2019
You see that we added an attribute (`data-hostname=""`) to the script tag and `hostname` param to the `img` tag. If you add your domain to it (eg `example.com`) it will look like this:
2120

2221
<!-- prettier-ignore -->
2322
```html
2423
<script async data-hostname="example.com" src="https://scripts.simpleanalyticscdn.com/latest.js"></script>
25-
<noscript><img src="https://queue.simpleanalyticscdn.com/noscript.gif?hostname=example.com" alt="" referrerpolicy="no-referrer-when-downgrade" /></noscript>
2624
```
2725

2826
## Add overwriting domain to your dashboard
2927

3028
Now all the visits you collect with this script are collected under the name `example.com`. Make sure you [add the new used domain name](https://simpleanalytics.com/websites/add) (`example.com`) to your dashboard.
29+
30+
## Noscript
31+
32+
If you want to use our <noscript>-feature, you can add it like this:
33+
34+
<!-- prettier-ignore -->
35+
```html
36+
<noscript><img src="https://queue.simpleanalyticscdn.com/noscript.gif?hostname=example.com" alt="" referrerpolicy="no-referrer-when-downgrade" /></noscript>
37+
```
38+
39+
We not recommend adding it, because it's mostly collecting data from robots.

0 commit comments

Comments
 (0)