Skip to content

Commit

Permalink
remove OWA and Piwik Pro analytics
Browse files Browse the repository at this point in the history
  • Loading branch information
jcubic committed Dec 5, 2024
1 parent 08ecf37 commit da07e21
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 33 deletions.
5 changes: 0 additions & 5 deletions docs/src/components/Interpreter/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,17 +16,12 @@ export interface TerminalProps extends CSSProperties {
}

function track(type: string, command: string) {
const _paq = globalThis._paq as PiwikTrack;
if (_paq) {
_paq.push(['trackEvent', 'REPL', type, command]);
}
const umami = globalThis.umami as any;
if (umami) {
umami.track('REPL', { type, command });
}
}

type PiwikTrack = Array<Array<string>>;
export type JQueryTerminal = ReturnType<typeof globalThis.terminal>;

const replReady = () => {
Expand Down
28 changes: 0 additions & 28 deletions docs/src/theme/Footer/Layout/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,34 +28,6 @@ export default function FooterLayout({style, links, logo, copyright}) {
</div>
<script defer src="https://api.feedbhack.com/assets/app.js" website-id="6703059dee359a44f772ff78"></script>
{baseUrl === currentPath && <MoreIcon />}
<script dangerouslySetInnerHTML={{__html: `
var owa_baseUrl = 'https://stats.jcubic.pl/';
var owa_cmds = owa_cmds || [];
owa_cmds.push(['setSiteId', '922150e605063a8580e17047ffbf3ec2']);
owa_cmds.push(['trackPageView']);
owa_cmds.push(['trackClicks']);
(function() {
var _owa = document.createElement('script'); _owa.type = 'text/javascript';
_owa.async = true;
owa_baseUrl = ('https:' == document.location.protocol ? window.owa_baseSecUrl || owa_baseUrl.replace(/http:/, 'https:') : owa_baseUrl );
_owa.src = owa_baseUrl + 'modules/base/js/owa.tracker-combined-min.js';
var _owa_s = document.getElementsByTagName('script')[0]; _owa_s.parentNode.insertBefore(_owa, _owa_s);
}());`}}/>
<script dangerouslySetInnerHTML={{__html: `
var _paq = _paq || [];
_paq.push(['setTrackingSource', 'jstc_tm']);
_paq.push(['enableLinkTracking']);
_paq.push(['setIpTracking', true]);
_paq.push(['setDomains', ['lips.js.org']]);
_paq.push(['trackPageView']);
_paq.push(['enableJSErrorTracking']);
(function(p,i,w,ik) {
var g=ik.createElement('script'),s=ik.getElementsByTagName('script')[0];
_paq.push(['setTrackerUrl', p]);
_paq.push(['setSiteId', w]);
g.type='text/javascript';g.async=true;g.defer=true;g.src=i;s.parentNode.insertBefore(g,s);
})('https://jcubic.piwik.pro/ppms.php','https://jcubic.containers.piwik.pro/ppms.js','018719ec\u002D6793\u002D4a2d\u002D92f9\u002Db8b88a01d43c',document)`}}/>
<script defer src="https://cloud.umami.is/script.js" data-website-id="422bfe77-bcfe-4cf8-a923-d496fba1bcc3" />
</footer>
);
Expand Down

0 comments on commit da07e21

Please sign in to comment.