Skip to content

Open source, privacy-first web analytics. Lightweight, cookie-free Google Analytics alternative. Self-hosted or cloud.

Configure twitter api

Uku Taht55bca892d13a
diff --git a/config/prod.exs b/config/prod.exs
index 4b69d6a2ae..2e3aef84ee 100644
--- a/config/prod.exs
+++ b/config/prod.exs
@@ -89,3 +89,10 @@ config :plausible, :google,
config :plausible, Plausible.Mailer,
adapter: Bamboo.PostmarkAdapter,
api_key: System.get_env("POSTMARK_API_KEY")
+
+config :plausible, :twitter, [
+ consumer_key: System.get_env("TWITTER_CONSUMER_KEY"),
+ consumer_secret: System.get_env("TWITTER_CONSUMER_SECRET"),
+ token: System.get_env("TWITTER_ACCESS_TOKEN"),
+ token_secret: System.get_env("TWITTER_ACCESS_TOKEN_SECRET")
+]