From 5d8da0117919f713d842379ec2c1f775df1e19cf Mon Sep 17 00:00:00 2001 From: Alyssa Dai Date: Fri, 18 Oct 2024 12:41:41 -0400 Subject: [PATCH] [MNT] Insert Plausible analytics script (#100) * insert Plausible analytics script * add Dash docs ref * add study info to README --- README.md | 7 ++++++- climate_emotions_map/app.py | 22 ++++++++++++++++++++++ 2 files changed, 28 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index fd5f096..a4538b6 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,10 @@ # US Climate Emotions Map -Interactive web app for visualizing US survey results about climate change emotions. +Interactive infographic for exploring US survey results on climate change emotions among young people aged 16-25, +from the following study: + +["Climate emotions, thoughts, and plans among US adolescents and young adults: a cross-sectional descriptive survey and analysis by political party identification and self-reported exposure to severe weather events." +[Lewandowski, R.E, Clayton, S.D., Olbrich, L., Sakshaug, J.W., Wray, B. et al, (2024) +_The Lancet Planetary Health_, 11 (8)]](https://www.thelancet.com/journals/lanplh/article/PIIS2542-5196(24)00229-8/fulltext) ## Development environment diff --git a/climate_emotions_map/app.py b/climate_emotions_map/app.py index 488b500..0ade50f 100644 --- a/climate_emotions_map/app.py +++ b/climate_emotions_map/app.py @@ -42,6 +42,28 @@ ], ) +# Plausible analytics script (see also https://dash.plotly.com/external-resources#usage) +app.index_string = """ + + + + {%metas%} + {%title%} + {%favicon%} + {%css%} + + + + {%app_entry%} + + + +""" + app.layout = dmc.MantineProvider(construct_layout(), forceColorScheme="light") server = app.server