-
Notifications
You must be signed in to change notification settings - Fork 139
[MAIN] [STRATCONN-6317] Replaced tags into properties #835
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 2 commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -113,7 +113,7 @@ Optimizely.prototype.track = function(track) { | |
| var payload = { | ||
| type: 'event', | ||
| eventName: eventName, | ||
| tags: eventProperties | ||
| properties: eventProperties | ||
|
Comment on lines
113
to
+116
|
||
| }; | ||
|
|
||
| push(payload); | ||
|
|
@@ -132,7 +132,7 @@ Optimizely.prototype.track = function(track) { | |
| eventName, | ||
| userId, | ||
| attributes, | ||
| payload.tags | ||
| payload.properties | ||
| ); | ||
| } | ||
| } | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -546,7 +546,7 @@ describe('Optimizely', function() { | |
| analytics.called(window.optimizely.push, { | ||
| type: 'event', | ||
| eventName: 'Order Updated', | ||
| tags: {} | ||
| properties: {} | ||
|
Comment on lines
541
to
+549
|
||
| }); | ||
| }); | ||
|
|
||
|
|
@@ -558,7 +558,7 @@ describe('Optimizely', function() { | |
| analytics.called(window.optimizely.push, { | ||
| type: 'event', | ||
| eventName: 'Order Completed', | ||
| tags: { | ||
| properties: { | ||
| revenue: 999 | ||
| } | ||
| }); | ||
|
|
@@ -573,7 +573,7 @@ describe('Optimizely', function() { | |
| analytics.called(window.optimizely.push, { | ||
| type: 'event', | ||
| eventName: 'Checkout Started', | ||
| tags: { | ||
| properties: { | ||
| revenue: 999 | ||
| } | ||
| }); | ||
|
|
@@ -830,7 +830,7 @@ describe('Optimizely', function() { | |
| analytics.called(window.optimizely.push, { | ||
| type: 'event', | ||
| eventName: 'Order Updated', | ||
| tags: {} | ||
| properties: {} | ||
|
Comment on lines
825
to
+833
|
||
| }); | ||
| }); | ||
|
|
||
|
|
@@ -843,7 +843,7 @@ describe('Optimizely', function() { | |
| analytics.called(window.optimizely.push, { | ||
| type: 'event', | ||
| eventName: 'Order Completed', | ||
| tags: { | ||
| properties: { | ||
| revenue: 999 | ||
| } | ||
| }); | ||
|
|
@@ -858,7 +858,7 @@ describe('Optimizely', function() { | |
| analytics.called(window.optimizely.push, { | ||
| type: 'event', | ||
| eventName: 'Checkout Started', | ||
| tags: { | ||
| properties: { | ||
| revenue: 999 | ||
| } | ||
| }); | ||
|
|
@@ -1075,7 +1075,7 @@ describe('Optimizely', function() { | |
| analytics.called(window.optimizely.push, { | ||
| type: 'event', | ||
| eventName: 'event', | ||
| tags: {} | ||
| properties: {} | ||
| }); | ||
| }); | ||
|
|
||
|
|
@@ -1084,25 +1084,25 @@ describe('Optimizely', function() { | |
| analytics.called(window.optimizely.push, { | ||
| type: 'event', | ||
| eventName: 'event_foo_bar', | ||
| tags: {} | ||
| properties: {} | ||
|
Comment on lines
1082
to
+1087
|
||
| }); | ||
| }); | ||
|
|
||
| it('should send all additional properties along as tags', function() { | ||
| it('should send all additional properties along as properties', function() { | ||
| analytics.track('event', { id: 'c00lHa$h', name: 'jerry' }); | ||
| analytics.called(window.optimizely.push, { | ||
| type: 'event', | ||
| eventName: 'event', | ||
| tags: { id: 'c00lHa$h', name: 'jerry' } | ||
| properties: { id: 'c00lHa$h', name: 'jerry' } | ||
| }); | ||
| }); | ||
|
|
||
| it('should change revenue to cents and include in tags', function() { | ||
| it('should change revenue to cents and include in properties', function() { | ||
| analytics.track('Order Completed', { revenue: 9.99 }); | ||
| analytics.called(window.optimizely.push, { | ||
| type: 'event', | ||
| eventName: 'Order Completed', | ||
| tags: { revenue: 999 } | ||
| properties: { revenue: 999 } | ||
| }); | ||
| }); | ||
|
|
||
|
|
@@ -1111,7 +1111,7 @@ describe('Optimizely', function() { | |
| analytics.called(window.optimizely.push, { | ||
| type: 'event', | ||
| eventName: 'Order Completed', | ||
| tags: { revenue: 53431 } | ||
| properties: { revenue: 53431 } | ||
| }); | ||
| }); | ||
|
|
||
|
|
@@ -1223,7 +1223,7 @@ describe('Optimizely', function() { | |
| analytics.called(window.optimizely.push, { | ||
| type: 'event', | ||
| eventName: 'Viewed Home Page', | ||
| tags: { | ||
| properties: { | ||
| name: 'Home', | ||
| path: '/context.html', | ||
| referrer: referrer, | ||
|
|
@@ -1240,7 +1240,7 @@ describe('Optimizely', function() { | |
| analytics.called(window.optimizely.push, { | ||
| type: 'event', | ||
| eventName: 'Viewed Blog New Integration Page', | ||
| tags: { | ||
| properties: { | ||
| name: 'New Integration', | ||
| category: 'Blog', | ||
| path: '/context.html', | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you please add testing details