File tree Expand file tree Collapse file tree 4 files changed +35
-4
lines changed
integrations/adobe-analytics Expand file tree Collapse file tree 4 files changed +35
-4
lines changed Original file line number Diff line number Diff line change 1+ 1.17.0 / 2022-10-24
2+ ===================
3+ * Bump AppMeasurement to 2.23.0
4+ * Add support for ` collectHighEntropyUserAgentHints ` setting, which allows richer User Agent data passed in as Client Hints.
5+
161.16.6 / 2022-07-26
27===================
38* Drop support for ` assetId ` for ` StandardVideoMetadata `
Original file line number Diff line number Diff line change @@ -83,6 +83,7 @@ AdobeAnalytics.global('s')
8383 . option ( 'preferVisitorId' , false )
8484 . option ( 'heartbeatTrackingServerUrl' , '' )
8585 . option ( 'ssl' , false )
86+ . option ( 'collectHighEntropyUserAgentHints' , false )
8687
8788 . sOption ( 'visitorID' )
8889 . sOption ( 'channel' )
@@ -112,11 +113,11 @@ AdobeAnalytics.global('s')
112113 . sOption ( 'usePlugins' , true )
113114 . tag (
114115 'default' ,
115- '<script src="//cdn.segment.com/integrations/adobe-analytics/appmeasurement-2.20 .0.js">'
116+ '<script src="//cdn.segment.com/integrations/adobe-analytics/appmeasurement-2.23 .0.js">'
116117 )
117118 . tag (
118119 'heartbeat' ,
119- '<script src="//cdn.segment.com/integrations/adobe-analytics/appmeasurement-2.20 .0-heartbeat.js">'
120+ '<script src="//cdn.segment.com/integrations/adobe-analytics/appmeasurement-2.23 .0-heartbeat.js">'
120121 ) ;
121122
122123/**
@@ -189,6 +190,10 @@ AdobeAnalytics.prototype.initialize = function() {
189190 } ;
190191 }
191192
193+ if ( options . collectHighEntropyUserAgentHints ) {
194+ s . collectHighEntropyUserAgentHints = true ;
195+ }
196+
192197 self . ready ( ) ;
193198 } ) ;
194199 } else {
@@ -212,6 +217,10 @@ AdobeAnalytics.prototype.initialize = function() {
212217 window . s . trackingServerSecure || options . trackingServerSecureUrl
213218 } ) ;
214219 }
220+
221+ if ( options . collectHighEntropyUserAgentHints ) {
222+ s . collectHighEntropyUserAgentHints = true ;
223+ }
215224 self . ready ( ) ;
216225 } ) ;
217226 }
Original file line number Diff line number Diff line change 11{
22 "name" : " @segment/analytics.js-integration-adobe-analytics" ,
33 "description" : " The Adobe Analytics analytics.js integration." ,
4- "version" : " 1.16.6 " ,
4+ "version" : " 1.17.0 " ,
55 "keywords" : [
66 " analytics.js" ,
77 " analytics.js-integration" ,
Original file line number Diff line number Diff line change @@ -56,7 +56,8 @@ describe('Adobe Analytics', function() {
5656 enableTrackPageName : true ,
5757 disableVisitorId : false ,
5858 preferVisitorId : false ,
59- enableHeartbeat : true
59+ enableHeartbeat : true ,
60+ collectHighEntropyUserAgentHints : true
6061 } ;
6162
6263 beforeEach ( function ( ) {
@@ -94,6 +95,7 @@ describe('Adobe Analytics', function() {
9495 . option ( 'marketingCloudOrgId' , null )
9596 . option ( 'heartbeatTrackingServerUrl' , '' )
9697 . option ( 'ssl' , false )
98+ . option ( 'collectHighEntropyUserAgentHints' , false )
9799 ) ;
98100 } ) ;
99101
@@ -165,6 +167,21 @@ describe('Adobe Analytics', function() {
165167 options . marketingCloudOrgId
166168 ) ;
167169 } ) ;
170+
171+ it ( 'should set window.s.collectHighEntropyUserAgentHints' , function ( ) {
172+ analytics . equal (
173+ window . s . collectHighEntropyUserAgentHints ,
174+ options . collectHighEntropyUserAgentHints
175+ ) ;
176+ } ) ;
177+
178+ it ( 'should set window.s.collectHighEntropyUserAgentHints when heartbeatServerUrl is set' , function ( ) {
179+ adobeAnalytics . options . heartbeatTrackingServerUrl = 'test url' ;
180+ analytics . equal (
181+ window . s . collectHighEntropyUserAgentHints ,
182+ options . collectHighEntropyUserAgentHints
183+ ) ;
184+ } ) ;
168185 } ) ;
169186
170187 describe ( '#track' , function ( ) {
You can’t perform that action at this time.
0 commit comments