> For the complete documentation index, see [llms.txt](https://letodev.gitbook.io/getting-started/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://letodev.gitbook.io/getting-started/documentation/leto-proxy-gateway.md).

# Leto Proxy Gateway

## Connect your IPFS gateway to Leto

{% embed url="<https://youtu.be/9xxcHy4ExmM?si=Yx8lSVGTAUxCbDdV>" %}
Video walkthrough of setting up a Leto proxy gateway
{% endembed %}

Developers use dedicated IPFS gateways from a variety of hosting providers to serve IPFS content. In order to collect analytics on a dedicated gateway (e.g. lighthouse.storage), use the [Leto Proxy Gateway](https://leto.gg/).&#x20;

[Login](https://leto.gg) to the Leto dashboard and navigate to "Proxy Gateway"&#x20;

* Select the hosting provider for your gateway. Leto supports:
  * Spheron, Lighthouse.storage, Numbers Protocol, Fleek, Pinata, 4everland, and Quicknode

<figure><img src="/files/r5o6y3xd8iZ2AyvA2523" alt=""><figcaption></figcaption></figure>

* Name your new Leto proxy IPFS gateway and input your existing dedicated gateway address/URL.&#x20;
* Click "Create"

<figure><img src="/files/w3vqj2PKf1Iig6UqqvYx" alt=""><figcaption></figcaption></figure>

* This will generate a proxy gateway link. Use this new gateway link in your application to serve content to end users.
* Here you can rename or delete your gateway if needed.
* The proxy gateway sends requests to the original dedicated gateway while collecting anonymized analytics!

<figure><img src="/files/4LOMbwjBE3fDcKMwYDmX" alt=""><figcaption></figcaption></figure>

An example will appear below your link showing the syntax needed to retrieve IPFS CIDs with the newly created proxy gateway address.

{% hint style="info" %}
Use /ipfs/{cid} at the end of the proxy gateway address to retrieve a CID.
{% endhint %}

Collect analytics on webpages, NFTs and more without changing your dedicated IPFS gateway provider!&#x20;

## Interact with your analytics&#x20;

Input the IPFS CIDs you would like to track in the [Leto dashboard](https://leto.auth.us-east-1.amazoncognito.com/login?client_id=7rnajbnph8l91gaba84l3pltep\&response_type=code\&scope=email+openid+phone\&redirect_uri=https%3A%2F%2Fapi.leto.gg%2Fauth%2Fcallback) "CIDs" setting.&#x20;

{% hint style="info" %}
Once a Proxy Gateway is created, input CIDs retrieved through the Proxy Gateway into "CIDs" and the analytics for each CID will be displayed. Analytics for CIDs retrieved through the standard Leto Gateway will not display when a Proxy Gateway is live.&#x20;
{% endhint %}

Analytics can also be displayed within any frontend using the [Leto Analytics API](/getting-started/documentation/analytics-rest-api.md).

<figure><img src="/files/MioRrvPax7wnVwe35rGf" alt=""><figcaption></figcaption></figure>
