Skip to content

Commit

Permalink
Merge pull request #62 from sparkfabrik/45-fix-ga-tag
Browse files Browse the repository at this point in the history
refs #45: remove all extra formatting to avoid white space at the top of the website.
  • Loading branch information
noemi-mancini authored Jul 1, 2020
2 parents 4d641a5 + d768e40 commit 433d09a
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions custom/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -55,14 +55,8 @@ var config = {
image_url: '/images',

// Add your analytics tracking code (including script tags)
analytics: '<!-- Global site tag (gtag.js) - Google Analytics -->\n' +
'\xa0\xa0<script async src="https://www.googletagmanager.com/gtag/js?id=UA-62993647-4" ></script>\n' +
'\xa0\xa0<script>\n' +
'\xa0\xa0\xa0\xa0window.dataLayer = window.dataLayer || [];\n' +
'\xa0\xa0\xa0\xa0function gtag(){dataLayer.push(arguments);}\n' +
'\xa0\xa0\xa0\xa0gtag(\'js\', new Date());\n\n' +
'\xa0\xa0\xa0\xa0gtag(\'config\', \'UA-62993647-4\' , {\'anonymize_ip\' : true }) ;\n' +
'\xa0\xa0</script>',
analytics: '<script async src="https://www.googletagmanager.com/gtag/js?id=UA-62993647-4" ></script>\n'+
'<script>window.dataLayer = window.dataLayer || []; function gtag(){ dataLayer.push(arguments);}gtag(\'js\', new Date());gtag(\'config\', \'UA-62993647-4\', { \'anonymize_ip\': true });</script>',

// Set to true to enable the web editor
allow_editing : false,
Expand Down

0 comments on commit 433d09a

Please sign in to comment.