diff --git a/frontend/Caddyfile b/frontend/Caddyfile index d570cb98f..0dcdaf510 100644 --- a/frontend/Caddyfile +++ b/frontend/Caddyfile @@ -18,12 +18,12 @@ header { Content-Type text/javascript } - respond `// + respond "// ;(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")); - window.snowplow('newTracker','rt','{$SNOWPLOW_URL}', { + 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')); + window.snowplow('newTracker','rt','{$SNOWPLOW_URL}', { appId: 'Snowplow_standalone', cookieLifetime: 86400 * 548, platform: 'web', @@ -37,7 +37,7 @@ window.snowplow('enableActivityTracking', 30, 30); // Ping every 30 seconds after 30 seconds window.snowplow('enableLinkClickTracking'); window.snowplow('trackPageView'); - // ` + // " } root * /app/dist encode zstd gzip