Unverified Commit be3df5b6 authored by Zack Wu's avatar Zack Wu Committed by GitHub

doc: Add in documentation for how to bypass adblockers (#716)

Signed-off-by: 's avatarZack Wu <zack.wu@instacart.com>
parent 6c15a144
......@@ -44,4 +44,15 @@ config to your databuilder job's config
```
This config means that databuilder will only update the table / column description if it doesn't exist before which could be the table is newly created.
This is useful when we treat Amundsen graph as the source of truth for certain types of metadata (e.g description).
\ No newline at end of file
This is useful when we treat Amundsen graph as the source of truth for certain types of metadata (e.g description).
## How to capture all Google Analytics?
Users are likely to have some sort of adblocker installed, making your Google Analytics less accurate.
To put a proxy in place to bypass any adblockers and capture all analytics, follow these steps:
1. Follow https://github.com/ZitRos/save-analytics-from-content-blockers#setup to set up your own proxy server.
2. In the same repository, run `npm run mask www.googletagmanager.com/gtag/js?id=UA-XXXXXXXXX` and save the output.
3. In your custom frontend, override https://github.com/amundsen-io/amundsenfrontendlibrary/blob/master/amundsen_application/static/templates/fragments/google-analytics-loader.html#L6 to <script async src="https://my-proxy-domain/MASKEDGOOGLETAGAMANAGERURL"></script>
4. Now, note that network requests to www.googletagmanager.com will be sent from behind your masked proxy endpoint, saving your analytics from content blockers!
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment