Conversation
|
✔️ Deploy Preview for cert-manager-website ready! 🔨 Explore the source changes: e8a62ef 🔍 Inspect the deploy log: https://app.netlify.com/sites/cert-manager-website/deploys/6138ec4d54c5da0007860dc8 😎 Browse the preview: https://deploy-preview-695--cert-manager-website.netlify.app |
|
Is this PR about swapping Google Analytics with Plausible.io pixel-based analytics? It looks like we are still using Google Analytics: website/config/_default/config.toml Lines 89 to 92 in e38613d website/layouts/partials/head.html Line 20 in 45706c7 Should we remove/disable the Google Analytics JS too? Last note about the CNCF Sandbox: the website analytics need to be owned by the CNCF as per project-onboarding.md. With Plausible.io, would that be the case? |
layouts/partials/scripts.html
Outdated
| <script type="text/javascript"> | ||
| (function (d, u, h, s) { | ||
| h = d.getElementsByTagName('head')[0]; | ||
| s = d.createElement('script'); | ||
| s.async = 1; | ||
| s.src = u + new Date().getTime(); | ||
| h.appendChild(s); | ||
| })(document, 'https://grow.clearbitjs.com/api/pixel.js?v='); | ||
| </script> No newline at end of file |
There was a problem hiding this comment.
Can we have this added only in production builds like what is done for Google Analytics in layouts/partials/head.html?
E.g.:
{{ if eq (getenv "HUGO_ENV") "production" }}
{{ end }}There was a problem hiding this comment.
We need to keep GA in the header as well. pls do not remove this as the CNCF will wan it. The plausible snippet is just an initial view to see the analytics this service can produce until handover to the CNCF is complete.
There was a problem hiding this comment.
I have updated to put it in that file with the production check, thanks.
Signed-off-by: James Westby <james@jameswestby.net>
|
Great!! Let's merge that. /lgtm |
maelvls
left a comment
There was a problem hiding this comment.
Oops, apparently I also need to do a GitHub "Approve"
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: james-w, maelvls The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
No description provided.