Using on multiple websites
You can use single ImageKit.io account for multiple websites. This is very useful for a web development agency that handles multiple clients from the same account.
ImageKit.io's custom pricing plans start at the usage of over 1TB per month. Combining websites in this way under a single ImageKit.io account also allows you to get a volume discount on pricing if the total bandwidth consumption exceeds 1TB. Every time you want to integrate ImageKit.io on a website or an app, do the following:
- 3.Change the image URL on your website and app, and test different pages.
- 4.Go live on production.
Check the usage analytics for this new website in the Analytics section of the ImageKit.io dashboard. You will get a break up of the entire usage on the basis of the URL endpoint as shown in the screenshot below.
Analytics section in ImageKit.io dashboard
We will add both the origins and give them a proper name so that we can recall them later by looking at the list. It should look like below:
It should look like this:
You can also configure a single URL endpoint to fetch images from these two origins. For example, we can change the origin preference of the default URL endpoint in this example
https://ik.imagekit.io/docsdemo/so that it can fetch images from both the origins, first from Website 1, and if not found there, then from Website 2.
Image origin preference in URL-endpoint
You have successfully configured two websites in a single ImageKit.io account. The same approach is useful in testing different environments, like staging or production.