Skip to content

Commit 7487261

Browse files
Update url and remove img tag
1 parent 1d5550d commit 7487261

1 file changed

Lines changed: 3 additions & 19 deletions

File tree

README.md

Lines changed: 3 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
1-
<a href="https://simpleanalytics.com/?ref=github.com/simpleanalytics/django-plugin">
1+
<a href="https://www.simpleanalytics.com/?ref=github.com/simpleanalytics/django-plugin">
22
<img src="https://assets.simpleanalytics.com/images/logos/logo-github-readme.png" alt="Simple Analytics logo" align="right" height="62" />
33
</a>
44

55
# Django Plugin
66

77
Want privacy friendly analytics for Django? You're at the right place.
88

9-
> You need an account [on Simple Analytics](https://simpleanalytics.com) to see your stats collected by this plugin.
9+
> You need an account [on Simple Analytics](https://www.simpleanalytics.com) to see your stats collected by this plugin.
1010
1111
## Installing it
1212

@@ -38,9 +38,6 @@ Next use the `templatetag` in your template:
3838
{% simpleanalytics_sync %}
3939
...
4040
</head>
41-
<body>
42-
{% simpleanalytics_noscript_block %}
43-
</body>
4441
</html>
4542
```
4643

@@ -54,12 +51,9 @@ This will translate to roughly this:
5451
<title>brwnppr.com</title>
5552
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=no">
5653
...
57-
<script type="text/javascript" src="https://cdn.simpleanalytics.io/hello.js"></script>
54+
<script type="text/javascript" src="https://scripts.simpleanalyticscdn.com/latest.js"></script>
5855
...
5956
</head>
60-
<body>
61-
<noscript><img src="https://api.simpleanalytics.io/hello.gif" alt="hello"></noscript>
62-
</body>
6357
</html>
6458
```
6559

@@ -69,23 +63,13 @@ This app has four templatetags:
6963

7064
- simpleanalytics_sync
7165
- simpleanalytics_async
72-
- simpleanalytics_noscript_block
73-
- simpleanalytics_noscript_img
7466

7567
`simpleanalytics_sync` converts to a plain `<script>` tag without the `async`
7668
keyword.
7769

7870
`simpleanalytics_async` converts to a plain `<script>` tag with the `async`
7971
keyword.
8072

81-
`simpleanalytics_noscript_block` converts to an `<noscript>` block which
82-
includes an `img` element which is used to load the image. Use this when you
83-
don't have and don't need a `<noscript>` block on your page at all.
84-
85-
`simpleanalytics_noscript_img` converts to an `<img>` tag which src points to
86-
the hello.img. Use this when you're using a `<noscript>` block and you want to
87-
add privacy friendly stats to your page.
88-
8973
## Compatibility
9074

9175
Tested on Django 2.2, but we think this should run on any recent Django

0 commit comments

Comments
 (0)