Migrating from Google Analytics
If you are thinking of migrating away from GA, I highly recommend you move to a data warehouse based solution, where you store each <i>event</i> permanently in a data warehouse like Snowflake or BigQuery. There are two client side pixels that you can self-host: snowplow.js and segment. It’s hard to find instructions for self hosting segment but I’ve made an example at <a href="https://github.com/fivetran/self-hosted-analytics-js" rel="nofollow">https://github.com/fivetran/self-hosted-analytics-js</a><p>The advantage of doing it this way is you preserve the event level data forever and you can write arbitrary SQL against it. You will need a BI tool to visualize; there are several excellent ones with free or cheap tiers for small companies.