Skip to content

Saleor Core: the high performance, composable, headless commerce API.

Update docs

Patryk Zawadzki5845b6206cf5
diff --git a/docs/deploy.rst b/docs/deploy.rst
index d610b50464..c21847fc5e 100644
--- a/docs/deploy.rst
+++ b/docs/deploy.rst
@@ -9,7 +9,7 @@ Local prerequisites
*******************
You will need to install Docker and
-`docker-compose <https://docs.docker.com/compose/install/>`__ before
+`docker-compose <https://docs.docker.com/compose/install/>`_ before
performing the following steps.
Usage
diff --git a/docs/index.rst b/docs/index.rst
index 8628eca6cc..8f5eeb3669 100644
--- a/docs/index.rst
+++ b/docs/index.rst
@@ -9,6 +9,8 @@ Contents:
install
deploy
stock
+ social
+ reporting
diff --git a/docs/reporting.rst b/docs/reporting.rst
new file mode 100644
index 0000000000..51f0fd8afb
--- /dev/null
+++ b/docs/reporting.rst
@@ -0,0 +1,13 @@
+Reporting
+=========
+
+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 <https://developers.google.com/analytics/devguides/collection/protocol/v1/>`_.
+
+This is implemented using `google-measurement-protocol <https://pypi.python.org/pypi/google-measurement-protocol>`_ and does not use cookies at the cost of not reporting things impossible to track server-side like geolocation and screen resolution.
+
+To get it working you need to export the ``GOOGLE_ANALYTICS_TRACKING_ID`` environment variable.
diff --git a/docs/social.rst b/docs/social.rst
new file mode 100644
index 0000000000..b26715014a
--- /dev/null
+++ b/docs/social.rst
@@ -0,0 +1,22 @@
+Social features
+===============
+
+Some of the social features require additional prerequisites to work.
+
+
+Log in using Facebook
+---------------------
+
+1. A verified Facebook account is required.
+2. You need to `register as a developer <https://developers.facebook.com/>`_ on Facebook and create a new app.
+3. You can find *App ID* and *App Secret* in your freshly created app's *Settings* tab.
+4. Export ``FACEBOOK_APP_ID`` and ``FACEBOOK_SECRET`` as environmental variables with respective app credentials.
+
+
+Log in using Google
+-------------------
+
+1. A Google account is required.
+2. First you need to `create a Google Developers Console project and client ID <https://developers.google.com/identity/sign-in/web/devconsole-project>`_.
+3. Make sure you provide “Redirect URI” that follows ``http://<yourserver>/account/oauth_callback/google/`` pattern.
+4. Obtained “Client ID” and “Client secret“ need to be exported as environment variables: ``GOOGLE_CLIENT_ID`` and ``GOOGLE_CLIENT_SECRET`` respectively.