Skip to content

Commit

Permalink
Merge branch 'master' into webpack
Browse files Browse the repository at this point in the history
  • Loading branch information
Lindsay Carr authored Aug 7, 2018
2 parents f39743a + fa34f05 commit a790789
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 5 deletions.
6 changes: 3 additions & 3 deletions DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
Package: vizlab
Type: Package
Title: Utilities for building online data visualizations
Version: 0.3.7
Date: 2018-07-06
Author: Jordan Walker, Alison Appling, Lindsay Carr, Luke Winslow, Jordan Read, Laura DeCicco, Marty Wernimont
Version: 0.3.8
Date: 2018-08-07
Author: Jordan Walker, Alison Appling, Lindsay Carr, Luke Winslow, Jordan Read, Laura DeCicco, Marty Wernimont, David Watkins
Maintainer: Alison Appling <aappling@usgs.gov>
Description: Provides utility functions to organize, develop, and publish
web-based data visualizations.
Expand Down
10 changes: 8 additions & 2 deletions inst/templates/fullPage.mustache
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,19 @@
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments)};
gtag('js', new Date());
var analytics = {
sessionId: (new Date().getTime() + '.' + Math.random().toString(36).substring(5)),
getTimestamp: function(){return new Date().getTime().toString()}
}
gtag('config', '{{ . }}', {
'custom_map': {
'dimension1': 'clientId',
'dimension2': 'sessionId',
'dimension3': 'timestamp'
}
},
'sessionId': analytics.sessionId,
'timestamp': analytics.getTimestamp()
});
</script>
{{/analytics-id}}
Expand Down

0 comments on commit a790789

Please sign in to comment.