Skip to content

Commit 9e72430

Browse files
committed
Update proxy introduction.md
1 parent d2e35e8 commit 9e72430

File tree

1 file changed

+8
-15
lines changed

1 file changed

+8
-15
lines changed

docs/proxy/introduction.md

Lines changed: 8 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -28,11 +28,7 @@ This section has been introduced after hearing from so many site owners who expe
2828

2929
### Not concerned about missing data?
3030

31-
Simply run our default script. The easiest way to get started with Plausible Analytics is to install the script from our main domain as follows:
32-
33-
```html
34-
<script defer data-domain="yourdomain.com" src="https://plausible.io/js/script.js"></script>
35-
```
31+
Simply run our default script. The easiest way to get started with Plausible Analytics is to [install the script](/docs/plausible-script.md) from our main domain.
3632

3733
This is the simplest way to install Plausible Analytics but it will also be blocked by a portion of your visitors. In [our testing](https://markosaric.com/google-analytics-blocking/), between 6% and 26% of people block scripts all depending on the type of the site and the audience. In more extreme cases, with very tech-savvy referral sources these numbers can get [up to 60%](https://plausible.io/blog/google-analytics-adblockers-missing-data).
3834

@@ -41,19 +37,22 @@ This is the simplest way to install Plausible Analytics but it will also be bloc
4137
Proxy our script. This is the option for those who want to get more accurate stats. A proxy basically maps certain URLs from your domain to the Plausible domain:
4238

4339
```
44-
https://<yourdomain.com>/js/script.js -> https://plausible.io/js/script.js
40+
https://<yourdomain.com>/js/script.js -> https://plausible.io/js/pa-XXXX.js
4541
https://<yourdomain.com>/api/event -> https://plausible.io/api/event
4642
```
4743

48-
When the browser requests a file at `https://yourdomain.com/js/script.js` it will actually be fetched from `https://plausible.io/js/script.js`. The analytics will work exactly the same but the script will be served without being flagged.
44+
When the browser requests a file at `https://yourdomain.com/js/script.js` it will actually be fetched from `https://plausible.io/js/pa-XXXXX.js`. The analytics will work exactly the same but the script will be served without being flagged.
45+
46+
In this case, `/js/pa-XXXXX.js` is the script location specific for your site. You can find it it in the "**Site Installation**" area of the "**General**" section in your [site settings](website-settings.md).
47+
4948

5049
## How to proxy requests to Plausible
5150

5251
You can proxy requests to Plausible in several ways depending on your setup. If you'd rather not handle it yourself, we also offer a managed proxy option.
5352

54-
### Managed proxy
53+
### Managed proxy
5554

56-
Don't want to manage your own proxy? We can handle it for you. Our managed proxy lets you send analytics through your own domain name as a first-party connection. This helps bypass adblockers and count more traffic without any setup or maintenance on your end.
55+
Don't want to manage your own proxy? We can handle it for you. Our managed proxy lets you send analytics through your own domain name as a first-party connection. This helps bypass adblockers and count more traffic without any setup or maintenance on your end.
5756

5857
All you need to do is set up a CNAME record using the instructions we'll send you and update the snippet on your site. We'll take care of everything else.
5958

@@ -63,23 +62,17 @@ Managed proxy is available on our Enterprise plans. [Contact us for details](htt
6362

6463
A standalone proxy works with any tech stack or hosting provider. You're responsible for setting it up and keeping it running. You can use one of these options:
6564

66-
* [Akamai](/docs/proxy/guides/akamai)
6765
* [Cloudflare Workers](/docs/proxy/guides/cloudflare)
6866
* [Fastly](/docs/proxy/guides/fastly)
69-
* [CloudFront](/docs/proxy/guides/cloudfront)
70-
* [Google Cloud Platform](https://github.com/mtlynch/plausible-proxy)
7167
* [How to send events directly to our API](/docs/events-api)
7268

7369
### Integrated proxy
7470

7571
These setups depend on how your app is deployed. You'll need to handle the proxy setup and maintenance yourself. Here are the available options:
7672

7773
* [WordPress](/docs/proxy/guides/wordpress)
78-
* [Netlify](/docs/proxy/guides/netlify)
7974
* [Vercel](/docs/proxy/guides/vercel)
80-
* [Vercel with Next.JS](/docs/proxy/guides/nextjs)
8175
* [Fresh](/docs/proxy/guides/fresh)
8276
* [Nginx](/docs/proxy/guides/nginx)
8377
* [Apache](/docs/proxy/guides/apache)
8478
* [Caddy](/docs/proxy/guides/caddy)
85-
* [Django](https://github.com/imankulov/django-plausible-proxy)

0 commit comments

Comments
 (0)