Skip to content

Commit

Permalink
🐛 Fix compile error
Browse files Browse the repository at this point in the history
  • Loading branch information
craigary committed Sep 6, 2021
1 parent 65bc421 commit 37ef657
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions components/Scripts.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ const Scripts = () => (
data-ackee-domain-id={BLOG.analytics.ackeeConfig.domainId}
/>
)}
{BLOG.autoCollapsedNavBar === true && (
{/* {BLOG.autoCollapsedNavBar === true && (
<Script strategy="lazyOnload">
{`var windowTop=0;
function scrollTrigger(){
Expand All @@ -26,13 +26,13 @@ const Scripts = () => (
};
window.addEventListener('scroll',scrollTrigger);`}
</Script>
)}
)} */}
{BLOG.analytics && BLOG.analytics.provider === 'ga' && (
<>
<Script
src={`https://www.googletagmanager.com/gtag/js?id=${BLOG.analytics.gaConfig.measurementId}`}
/>
<Script strategy="lazyOnload">
<Script strategy="lazyOnload" id="ga">
{`window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
Expand Down

0 comments on commit 37ef657

Please sign in to comment.