Does anyone know if Google Analytics will work wit...
# show-and-tell
k
Does anyone know if Google Analytics will work with Framework projects? And if so, how/where to add the GA snippets? I've tried a bunch of different ways but I feel like I'm getting farther away from the answer... I'm trying to track how many clicks a button on my page gets, so if there is an easier way to do that besides GA, would love to hear about it! Thanks!
f
we have that script in the framework documentation https://github.com/observablehq/framework/blob/5745573b5ccaff92e837d692e9c559993f684d28/observablehq.config.ts#L118 (I'm not super familiar with tracking scripts, but maybe this is enough to get you started?)
k
This is great! Thanks, @Fil!