PrimeDAO / prime-launch-dapp

https://launch.prime.xyz
6 stars 13 forks source link

Custom domain Analytics #649

Open blink-km opened 2 years ago

blink-km commented 2 years ago

With our analytics package, we will get more features with a custom domain. By setting this up, our analytics tool can bypass ad-blockers by using a unique-to-you sub-domain (unique to every site). Besides, it would enable EU isolation, IP blocking, and geoblocking features. To enable that we have to edit our DNS records with our domain registrar, so it is optional at this point.

dkent600 commented 2 years ago

Moving to In Spec

renckorzay commented 2 years ago

By doing this will enable us to defeat the adblockers

blink-km commented 2 years ago
  1. We have to add a DNS records with our domain registrar.

DNS Record for prime.xyz Add this DNS record to prime.xyz with your domain registrar. If you're stuck, here's our documentation on this process. https://usefathom.com/docs/script/custom-domains

Once you've added these records, click the button below. You'll receive an email once your custom domain is ready to use (typically in less than 15 minutes).

In the rare event that you're using CAA records on your domain to control who can issue SSL certificates, please make sure you add letsencrypt.org in your DNS as a CAA record.

You can continue to use your default code snippet until your custom domain is ready.

// Here is more info about how to set up the script: https://usefathom.com/docs/script/settings

blink-km commented 2 years ago

This is the records you have to add

Screen Shot 2564-12-15 at 11 27 33
blink-km commented 2 years ago

@dkent600 Lmk if you need more info

blink-km commented 2 years ago

The second part of this is to set up event tracking. I'll put the need spec for that part tmr morning.

blink-km commented 2 years ago
  1. For the second part we would like to track certain events that happened on our page (ie. button clicks/page loads) https://usefathom.com/docs/features/events

There are 3 ways to set this up:

  1. track events as links - This will fire off an event any and every time that link is clicked.
  2. add javascript which targets an element on a page. 
  3. track an event as page load

These are the required events we want to track:

a) Link clicked Connect their wallet Click buy on an LBP launch Click buy on a seed launch

b) Page tracking Successful tokens bought via LBP Successful tokens bought via seed

Could you let me know how much effort does it take to set up each event? So we can evaluate which optional events we want to track. The list of the optional events to track is coming soon.

blink-km commented 2 years ago

@dkent600 Let me know when you work and this. We can go over which kind of code you want to add (one of the 3 menthods I mentioned) and then I'll create Event code/Javascript code for those events.

dkent600 commented 2 years ago

@blink-km Should we use our own domain registrar, or that of kolektivo? Can you please provide me with the login information?

dkent600 commented 2 years ago

@blink-km

re: b) Page tracking

Are we not already tracking those?

blink-km commented 2 years ago

Current status: waiting for Luuk to provide us with the info on how to access to the domain registrar.

dkent600 commented 2 years ago

Not needed