Skip to content

Commit

Permalink
refs #45: add GA tracking.
Browse files Browse the repository at this point in the history
  • Loading branch information
noemi-mancini committed Jun 23, 2020
1 parent 58022fa commit efd2458
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion custom/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,14 @@ var config = {
image_url: '/images',

// Add your analytics tracking code (including script tags)
analytics: '',
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>',

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

0 comments on commit efd2458

Please sign in to comment.