Closed runephilosof-abtion closed 2 months ago
In order to build with a Pirsch key: docker compose build --build-arg PIRSCH_KEY="VEW6587Xat8LXjE7ejokwXUked6s7udc"
docker compose build --build-arg PIRSCH_KEY="VEW6587Xat8LXjE7ejokwXUked6s7udc"
Parcel processes process.env.PIRSCH_KEY as a macro, so it will evaluate it at build time.
process.env.PIRSCH_KEY
When supplying the PIRSCH_KEY, it generates the following index.html:
PIRSCH_KEY
index.html
<script>!function(){let t="VEW6587Xat8LXjE7ejokwXUked6s7udc";if(t){let e=document.createElement("script");e.setAttribute("src","https://api.pirsch.io/pirsch.js"),e.setAttribute("id","pirschjs"),e.setAttribute("defer",""),e.setAttribute("data-code",t)}}();</script><script>!function(){let t="VEW6587Xat8LXjE7ejokwXUked6s7udc";if(t){let e=document.createElement("script");e.setAttribute("src","https://api.pirsch.io/pirsch.js"),e.setAttribute("id","pirschjs"),e.setAttribute("defer",""),e.setAttribute("data-code",t)}}();</script>
Without supplying the PIRSCH_KEY, it generates:
<script>!function(){let t=void 0;if(t){let e=document.createElement("script");e.setAttribute("src","https://api.pirsch.io/pirsch.js"),e.setAttribute("id","pirschjs"),e.setAttribute("defer",""),e.setAttribute("data-code",t)}}();</script>
Closes: https://github.com/webwhiz-ai/webwhiz/issues/220
@runephilosof-abtion we have removed pirsch analytics (0118c773d1d4e0526fd70138aecb103afd4278c3) completely from the widget.
In order to build with a Pirsch key:
docker compose build --build-arg PIRSCH_KEY="VEW6587Xat8LXjE7ejokwXUked6s7udc"
Parcel processes
process.env.PIRSCH_KEY
as a macro, so it will evaluate it at build time.When supplying the
PIRSCH_KEY
, it generates the followingindex.html
:Without supplying the
PIRSCH_KEY
, it generates:Closes: https://github.com/webwhiz-ai/webwhiz/issues/220