OpenMontana / montana-legislature-council-data-project

Mozilla Public License 2.0
2 stars 1 forks source link

Set up Plausible Analytics for MT Legislature Council Data Project #43

Closed whargrove closed 1 year ago

whargrove commented 1 year ago

In web/public/index.html we define the data-domain as openmontana.github.io, but the CDP Plausible instance expects councildataproject.github.io for analytics to "just work". Because the domains are mismatched, no data is being reported to Plausible Analytics.

See Adding Analytics for info about Plausible Analytics implementation from CDP.

Next Steps:

whargrove commented 1 year ago

Confirmed with CDP maintainers that we'll need a separate account.

whargrove commented 1 year ago

From Mark: Add JavaScript snippet Paste this snippet in the of your website.

<script defer data-domain="openmontana.org/montana-legislature-council-data-project" src="https://plausible.io/js/script.js"></script>
whargrove commented 1 year ago

Updated in https://github.com/OpenMontana/montana-legislature-council-data-project/commit/be3022c04817aea743960746284bad4aab8ac7e6

whargrove commented 1 year ago

Confirmed PA tracking analytics at openmontana.org/montana-legislature-council-data-project