File tree Expand file tree Collapse file tree 6 files changed +33
-1
lines changed Expand file tree Collapse file tree 6 files changed +33
-1
lines changed Original file line number Diff line number Diff line change @@ -4,6 +4,10 @@ All notable changes to this project will be documented in this file.
4
4
The format is based on [ Keep a Changelog] ( http://keepachangelog.com/en/1.0.0/ )
5
5
and this project adheres to [ Semantic Versioning] ( http://semver.org/spec/v2.0.0.html ) .
6
6
7
+ ## [ 23.09.0] - 2023-08-16
8
+ ### Changed
9
+ - Added Google Tag Manager
10
+
7
11
## [ 23.08.0] - 2023-07-13
8
12
### Changed
9
13
- Removed remaining Bootstrap components
@@ -1932,6 +1936,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
1932
1936
### Added
1933
1937
- Quick Files
1934
1938
1939
+ [ 23.09.0 ] : https://github.com/CenterForOpenScience/ember-osf-web/releases/tag/23.09.0
1935
1940
[ 23.08.0 ] : https://github.com/CenterForOpenScience/ember-osf-web/releases/tag/23.08.0
1936
1941
[ 23.07.0 ] : https://github.com/CenterForOpenScience/ember-osf-web/releases/tag/23.07.0
1937
1942
[ 23.06.1 ] : https://github.com/CenterForOpenScience/ember-osf-web/releases/tag/23.06.1
Original file line number Diff line number Diff line change 22
22
{{content-for "head-footer"}}
23
23
</ head >
24
24
< body >
25
+ {{content-for "gtm"}}
25
26
{{content-for "assets"}}
26
27
< noscript >
27
28
< p >
Original file line number Diff line number Diff line change @@ -28,6 +28,7 @@ declare const config: {
28
28
rootURL : string ;
29
29
assetsPrefix : string ;
30
30
sentryDSN : string | null ;
31
+ googleTagManagerId : string | null ;
31
32
sentryOptions : {
32
33
release ?: string ;
33
34
ignoreErrors : string [ ] ;
Original file line number Diff line number Diff line change @@ -24,6 +24,7 @@ const {
24
24
FB_APP_ID ,
25
25
GIT_COMMIT : release ,
26
26
GOOGLE_ANALYTICS_ID ,
27
+ GOOGLE_TAG_MANAGER_ID ,
27
28
KEEN_CONFIG : keenConfig ,
28
29
LINT_ON_BUILD : lintOnBuild = false ,
29
30
MIRAGE_ENABLED = false ,
@@ -76,6 +77,7 @@ module.exports = function(environment) {
76
77
assetsPrefix,
77
78
locationType : 'auto' ,
78
79
sentryDSN : null ,
80
+ googleTagManagerId : null ,
79
81
sentryOptions : {
80
82
release,
81
83
ignoreErrors : [
@@ -119,6 +121,13 @@ module.exports = function(environment) {
119
121
version : 'dimension5' ,
120
122
} ,
121
123
} ,
124
+ {
125
+ name : 'GoogleTagManager' ,
126
+ environments : GOOGLE_TAG_MANAGER_ID ? [ 'all' ] : [ ] ,
127
+ config : {
128
+ id : GOOGLE_TAG_MANAGER_ID ,
129
+ } ,
130
+ } ,
122
131
] ,
123
132
FB_APP_ID ,
124
133
OSF : {
Original file line number Diff line number Diff line change @@ -106,6 +106,22 @@ module.exports = function(defaults) {
106
106
postProcess,
107
107
/* eslint-enable max-len */
108
108
} ,
109
+ gtm : {
110
+ enabled : IS_PROD ,
111
+ content : `<script>
112
+ var configJson = document.head.querySelector("meta[name$='/config/environment']").content;
113
+ var configObject = JSON.parse(unescape(configJson));
114
+ if (configObject.googleTagManagerId) {
115
+ window.dataLayer = window.dataLayer || [];
116
+ function gtag(){dataLayer.push(arguments);}
117
+ gtag('js', new Date());
118
+
119
+ gtag('config', configObject.googleTagManagerId);
120
+ }
121
+ </script>
122
+ ` ,
123
+ postProcess,
124
+ } ,
109
125
} ,
110
126
'ember-cli-babel' : {
111
127
includePolyfill : IS_PROD ,
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " ember-osf-web" ,
3
- "version" : " 23.08 .0" ,
3
+ "version" : " 23.09 .0" ,
4
4
"private" : true ,
5
5
"description" : " Ember front-end for the Open Science Framework" ,
6
6
"homepage" : " https://github.com/CenterForOpenScience/ember-osf-web#readme" ,
You can’t perform that action at this time.
0 commit comments