🔨Install via CDN
Last updated
Last updated
Personalized instructions for installing your app can be found in the 'How to install' tab of your App dashboard.
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:
Then, you must initialize and configure the Web3 Analytics tracker:
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.
Here is an example app for reference.