-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #89 from dfe-analytical-services/update-readme
Update to README
- Loading branch information
Showing
2 changed files
with
94 additions
and
70 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,69 +1,69 @@ | ||
<script> | ||
// Define dataLayer and the gtag function. | ||
window.dataLayer = window.dataLayer || []; | ||
function gtag(){dataLayer.push(arguments);} | ||
|
||
// Default ad_storage to 'denied' as a placeholder | ||
// Determine actual values based on your own requirements | ||
gtag('consent', 'default', { | ||
'ad_storage': 'denied', | ||
'analytics_storage': 'denied' | ||
}); | ||
</script> | ||
|
||
<!-- Global site tag (gtag.js) - Google Analytics --> | ||
<script async src="https://www.googletagmanager.com/gtag/js?id=G-Z967JJVQQX"></script> | ||
<script> | ||
window.dataLayer = window.dataLayer || []; | ||
function gtag(){dataLayer.push(arguments);} | ||
|
||
gtag('js', new Date()); | ||
|
||
/* | ||
The tracking number below MUST be replaced with a unique number, contact the Explore education statistics platforms team to set this up. | ||
*/ | ||
gtag('config', 'G-Z967JJVQQX'); | ||
|
||
|
||
$(document).on('change', 'select#selectPhase', function(e) { | ||
gtag('event', 'select phase', {'event_category' : 'choose Phase', | ||
'event_label' : document.querySelector('select#selectPhase').value | ||
}); | ||
}); | ||
|
||
$(document).on('change', 'select#selectArea', function(e) { | ||
gtag('event', 'select area', {'event_category' : 'choose Area', | ||
'event_label' : document.querySelector('select#selectArea').value | ||
}); | ||
}); | ||
|
||
$(document).on('click', 'ul#navlistPanel', function(e) { | ||
gtag('event', 'navlistPanel', {'event_category' : 'navbar click', | ||
'event_label' : document.querySelector('ul#navlistPanel > li.active > a').getAttribute('data-value') | ||
}); | ||
}); | ||
|
||
$(document).on('click', 'ul#tabsetpanels', function(e) { | ||
gtag('event', 'tab panels', {'event_category' : 'tab panel clicks', | ||
'event_label' : document.querySelector('ul#tabsetpanels > li.active > a').getAttribute('data-value') | ||
}); | ||
}); | ||
|
||
|
||
$(document).on('click', 'a#download_data', function(e) { | ||
gtag('event', 'Download button', {'event_category' : 'Download button click' | ||
}); | ||
}); | ||
|
||
$(document).on('shiny:disconnected', function(e) { | ||
gtag('event', 'disconnect', { | ||
'event_label' : 'Disconnect', | ||
'event_category' : 'Disconnect' | ||
}); | ||
}); | ||
|
||
|
||
|
||
</script> | ||
|
||
|
||
<script> | ||
// Define dataLayer and the gtag function. | ||
window.dataLayer = window.dataLayer || []; | ||
function gtag(){dataLayer.push(arguments);} | ||
|
||
// Default ad_storage to 'denied' as a placeholder | ||
// Determine actual values based on your own requirements | ||
gtag('consent', 'default', { | ||
'ad_storage': 'denied', | ||
'analytics_storage': 'denied' | ||
}); | ||
</script> | ||
|
||
<!-- Global site tag (gtag.js) - Google Analytics --> | ||
<script async src="https://www.googletagmanager.com/gtag/js?id=G-XXXXXXXXXX"></script> | ||
<script> | ||
window.dataLayer = window.dataLayer || []; | ||
function gtag(){dataLayer.push(arguments);} | ||
|
||
gtag('js', new Date()); | ||
|
||
/* | ||
The tracking number below MUST be replaced with a unique number, contact the Explore education statistics platforms team to set this up. | ||
*/ | ||
gtag('config', 'G-XXXXXXXXXX'); | ||
|
||
|
||
$(document).on('change', 'select#selectPhase', function(e) { | ||
gtag('event', 'select phase', {'event_category' : 'choose Phase', | ||
'event_label' : document.querySelector('select#selectPhase').value | ||
}); | ||
}); | ||
|
||
$(document).on('change', 'select#selectArea', function(e) { | ||
gtag('event', 'select area', {'event_category' : 'choose Area', | ||
'event_label' : document.querySelector('select#selectArea').value | ||
}); | ||
}); | ||
|
||
$(document).on('click', 'ul#navlistPanel', function(e) { | ||
gtag('event', 'navlistPanel', {'event_category' : 'navbar click', | ||
'event_label' : document.querySelector('ul#navlistPanel > li.active > a').getAttribute('data-value') | ||
}); | ||
}); | ||
|
||
$(document).on('click', 'ul#tabsetpanels', function(e) { | ||
gtag('event', 'tab panels', {'event_category' : 'tab panel clicks', | ||
'event_label' : document.querySelector('ul#tabsetpanels > li.active > a').getAttribute('data-value') | ||
}); | ||
}); | ||
|
||
|
||
$(document).on('click', 'a#download_data', function(e) { | ||
gtag('event', 'Download button', {'event_category' : 'Download button click' | ||
}); | ||
}); | ||
|
||
$(document).on('shiny:disconnected', function(e) { | ||
gtag('event', 'disconnect', { | ||
'event_label' : 'Disconnect', | ||
'event_category' : 'Disconnect' | ||
}); | ||
}); | ||
|
||
|
||
|
||
</script> | ||
|
||