Static file and media storage using Amazon S3¶
If you’re using containers for deployment (including Docker and Heroku) you’ll want to avoid storing files in the container’s volatile filesystem. This integration allows you to delegate storing such files to Amazon’s S3 service.
Set the following environment variables to use S3 to store and serve media files:
- Your AWS access key.
- Your AWS secret access key.
- The S3 bucket name to use for media files.
By default static files (such as CSS and JS files required to display your pages) will be served by the application server.
If you intend to use S3 for your static files as well, set an additional environment variable:
- The S3 bucket name to use for static files.
Converting prices to local currencies using Open Exchange Rates¶
This integration will allow your customers to see product prices in their local currencies. Local prices are only provided as an estimate, customers are still charged in your store’s default currency.
Before you begin you will need an Open Exchange Rates account. Unless you need to update the exchange rates multiple times a day the free Subscription Plan should be enough but do consider paying for the wonderful service that Open Exchange Rates provides. Start by signing up and creating an “App ID”.
Export the following environment variable:
- Your store’s Open Exchange Rates “App ID.”
To update the exchange rates run the following command at least once per day:
$ python manage.py update_exchange_rates --all
Heroku users can use the Scheduler add-on to automatically call the command daily at a predefined time.
Reporting with Google Analytics¶
Because of EU law regulations, Saleor will not use any tracking cookies by default.
We do however support server-side Google Analytics out of the box using Google Analytics Measurement Protocol.
To get it working you need to export the following environment variable:
- Your page’s Google “Tracking ID.“
Send product data to Google Merchant Center¶
Saleor has tools for generating product feed which can be used with Google Merchant Center. Final file is compressed CSV and saved in location specified by
To generate feed use command:
$ python manage.py update_feeds
It’s recommended to run this command periodically.
Merchant Center has few country dependent settings, so please validate your feed at Google dashboard. You can also specify there your shipping cost, which is required feed parameter in many countries. More info be found at Google Support pages.
One of required by Google fields is brand attribute. Feed generator checks for it in variant attribute named brand or publisher (if not, checks in product).
Feed can be downloaded from url: