diff --git a/app/components/Layout/Analytics.jsx b/app/components/Layout/Analytics.jsx deleted file mode 100644 index 044ace569..000000000 --- a/app/components/Layout/Analytics.jsx +++ /dev/null @@ -1,36 +0,0 @@ -import React from "react"; - -const SNOWPLOW_TRACKER = ` -// -;(function(p,l,o,w,i,n,g){if(!p[i]){p.GlobalSnowplowNamespace=p.GlobalSnowplowNamespace||[]; - p.GlobalSnowplowNamespace.push(i);p[i]=function(){(p[i].q=p[i].q||[]).push(arguments) - };p[i].q=p[i].q||[];n=l.createElement(o);g=l.getElementsByTagName(o)[0];n.async=1; - n.src=w;g.parentNode.insertBefore(n,g)}}(window,document,"script","https://www2.gov.bc.ca/StaticWebResources/static/sp/sp-2-14-0.js","snowplow")); -var collector = 'spt.apps.gov.bc.ca'; - window.snowplow('newTracker','rt',collector, { - appId: "Snowplow_standalone", - cookieLifetime: 86400 * 548, - platform: 'web', - post: true, - forceSecureTracker: true, - contexts: { - webPage: true, - performanceTiming: true - } - }); - window.snowplow('enableActivityTracking', 30, 30); // Ping every 30 seconds after 30 seconds - window.snowplow('enableLinkClickTracking'); - window.snowplow('trackPageView'); -// -`; - -export default () => { - return ( -