# Install via CDN

Personalized instructions for installing your app can be found in the 'How to install' tab of your App dashboard.

<figure><img src="https://2470809873-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FMC3nnXBNr42atXRANYhr%2Fuploads%2FhhPms0LkFAQVcDuD7OUS%2Fimage.png?alt=media&#x26;token=3c6bf474-7b1a-49bb-966f-ac7369127e0a" alt=""><figcaption></figcaption></figure>

## How to install via CDN

Web3 Analytics can also be used in plain HTML using a CDN. This allows you to easily instrument any blog or web site.

First, you must include the libraries from the CDN in HTML script tags:

```javascript
<script defer src="https://unpkg.com/analytics/dist/analytics.min.js"></script>
<script defer src="https://unpkg.com/analytics-plugin-web3analytics/dist/web3analytics.min.js"></script>
```

Then, you must initialize and configure the Web3 Analytics tracker:

```javascript
<script type="text/javascript">
window.addEventListener('load', function() {
    /* Initialize analytics */
    var Analytics = _analytics.init({
        app: 'web3analytics-html-demo',
        plugins: [
            // attach web3analytics plugin
            web3analytics.default({
                appId: 'YOUR_APP_ID',
                jsonRpcUrl: 'https://eth-goerli.g.alchemy.com/v2/your_api_key'
            })
        ]
    })
    /* Fire page view */
    Analytics.page()            
});
</script>
```

You can use any app name you like. For appId, input your appId (it will be displayed in the instructions and is also visible on the details tab of the app dashboard. You will also need to use your own jsonRpcUrl for Goerli.

Note, in the example above, a page event is fired on every page load since this is normally what you would want if you're instrumenting this way.

```javascript
    Analytics.page()            
```

Here is an [example app](https://github.com/andyjagoe/web3analytics-test-html) for reference.

<figure><img src="https://2470809873-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FMC3nnXBNr42atXRANYhr%2Fuploads%2Fn5uDwB9xZJnWFM7PnrgV%2Fimage.png?alt=media&#x26;token=dd43dede-f682-4255-82be-600602408793" alt=""><figcaption></figcaption></figure>

