Decided to make the logic into a component instead of having it only for the CTA button so that it updates any link, even regular a tags. Then we just import the component into each page with download links on it instead. This is better than injecting the script into the head of each page since only a couple of pages have download links on them out of the hundreds/thousands of pages on the docs site.
Decided to make the logic into a component instead of having it only for the CTA button so that it updates any link, even regular
a
tags. Then we just import the component into each page with download links on it instead. This is better than injecting the script into the head of each page since only a couple of pages have download links on them out of the hundreds/thousands of pages on the docs site.