sidestream-tech / unified-auctions-ui

Unified MakerDAO auctions
https://unified-auctions.makerdao.com
GNU Affero General Public License v3.0
16 stars 13 forks source link

Enable plausible.io for new domain #233

Open LukSteib opened 2 years ago

LukSteib commented 2 years ago

Goal: Ensure proper plausible based tracking for new domain

Context: After switching to the new domain unified-auctions.makerdao.com we need to adjust plausible.io settings as well. I have a feeling that adjustments need to be made in two places a) the plausible dashboard itself where a new site needs to be created (no need to migrate old analytics since data is either way only kept for 30days in plausible) b) ensure that nuxt config uses correct domain

Tasks:

LukSteib commented 2 years ago

check domain config for plausible in nuxt config

@valiafetisov can you have a look into that one

zoey-kaiser commented 2 years ago

[ ] check domain config for plausible in nuxt config

We use the environment variables called PRODUCTION_DOMAIN, which should be correctly set in the secrets. https://github.com/sidestream-tech/unified-auctions-ui/blob/main/frontend/nuxt.config.js#L69

Screenshot 2022-04-29 at 11 44 54

I verified this by checking the network activity on the production site. As you can see it sends the correct url to plausible.

Therefore you would only need to add the domain in the plausible dashboard, everything in this repo will continue to work!

LukSteib commented 2 years ago

Based on the screenshot of the request payload and trying different configs via the plausible dashboard, following suspicion: I have to setup plausible dashboard for production.auction-ui.k8s.sidestream.tech in order to see traffic on unified-auctions.makerdao.com. Does that sound feasible to you?

zoey-kaiser commented 2 years ago

Does that sound feasible to you?

It is sadly the exact opposite way around. You need to add unified-auctions.makerdao.com to the plausible dashboard. If you look at my screenshot, I assume the following is happening:

d = docker container name u = public url

Plausible works through the public domain, which is why it should work if you use the domain for the auctions-ui.