-
Notifications
You must be signed in to change notification settings - Fork 83
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
fb1ac1a
commit 64ce326
Showing
5 changed files
with
86 additions
and
83 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
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 |
---|---|---|
|
@@ -175,93 +175,93 @@ | |
|
||
const localRudderAnalyticsRef = window.rudderanalytics; | ||
|
||
rudderanalytics.identify( | ||
'customUserID', | ||
{ | ||
name: 'John Doe', | ||
title: 'CEO', | ||
email: '[email protected]', | ||
company: 'Company123', | ||
phone: '123-456-7890', | ||
rating: 'Hot', | ||
city: 'Austin', | ||
postalCode: '12345', | ||
country: 'US', | ||
street: 'Sample Address', | ||
state: 'TX', | ||
}, | ||
function (message) { | ||
console.log('in identify call', message); | ||
} | ||
); | ||
// rudderanalytics.identify( | ||
// 'customUserID', | ||
// { | ||
// name: 'John Doe', | ||
// title: 'CEO', | ||
// email: '[email protected]', | ||
// company: 'Company123', | ||
// phone: '123-456-7890', | ||
// rating: 'Hot', | ||
// city: 'Austin', | ||
// postalCode: '12345', | ||
// country: 'US', | ||
// street: 'Sample Address', | ||
// state: 'TX', | ||
// }, | ||
// function (message) { | ||
// console.log('in identify call', message); | ||
// } | ||
// ); | ||
|
||
rudderanalytics.page( | ||
'Home', | ||
'Cart Viewed', | ||
{ | ||
path: '', | ||
referrer: '', | ||
search: '', | ||
title: '', | ||
url: '', | ||
}, | ||
function (message) { | ||
console.log('in page call', message); | ||
} | ||
); | ||
// rudderanalytics.page( | ||
// 'Home', | ||
// 'Cart Viewed', | ||
// { | ||
// path: '', | ||
// referrer: '', | ||
// search: '', | ||
// title: '', | ||
// url: '', | ||
// }, | ||
// function (message) { | ||
// console.log('in page call', message); | ||
// } | ||
// ); | ||
|
||
rudderanalytics.track( | ||
'test track event 1', | ||
{ | ||
revenue: 30, | ||
currency: 'USD', | ||
user_actual_id: 12345, | ||
}, | ||
function (message) { | ||
console.log('in track call 1', message); | ||
} | ||
); | ||
// rudderanalytics.track( | ||
// 'test track event 1', | ||
// { | ||
// revenue: 30, | ||
// currency: 'USD', | ||
// user_actual_id: 12345, | ||
// }, | ||
// function (message) { | ||
// console.log('in track call 1', message); | ||
// } | ||
// ); | ||
|
||
rudderanalytics.track( | ||
'test track event 2', | ||
{ | ||
revenue: 45, | ||
currency: 'INR', | ||
user_actual_id: 333, | ||
}, | ||
function (message) { | ||
console.log('in track call 2', message); | ||
} | ||
); | ||
// rudderanalytics.track( | ||
// 'test track event 2', | ||
// { | ||
// revenue: 45, | ||
// currency: 'INR', | ||
// user_actual_id: 333, | ||
// }, | ||
// function (message) { | ||
// console.log('in track call 2', message); | ||
// } | ||
// ); | ||
|
||
rudderanalytics.track( | ||
'test track event 3', | ||
{ | ||
revenue: 10003, | ||
currency: 'EUR', | ||
user_actual_id: 5678, | ||
}, | ||
function (message) { | ||
console.log('in track call 3', message); | ||
} | ||
); | ||
// rudderanalytics.track( | ||
// 'test track event 3', | ||
// { | ||
// revenue: 10003, | ||
// currency: 'EUR', | ||
// user_actual_id: 5678, | ||
// }, | ||
// function (message) { | ||
// console.log('in track call 3', message); | ||
// } | ||
// ); | ||
|
||
rudderanalytics.ready(function () { | ||
console.log('All ready!!!'); | ||
|
||
// Once the SDK is ready, fire an event from a cached reference to | ||
// window.rudderanalytics | ||
localRudderAnalyticsRef.track( | ||
'Test track event with cached RS reference', | ||
{ | ||
revenue: 10003, | ||
currency: 'EUR', | ||
user_actual_id: 5678, | ||
}, | ||
function (message) { | ||
console.log('in track call 4', message); | ||
} | ||
); | ||
// localRudderAnalyticsRef.track( | ||
// 'Test track event with cached RS reference', | ||
// { | ||
// revenue: 10003, | ||
// currency: 'EUR', | ||
// user_actual_id: 5678, | ||
// }, | ||
// function (message) { | ||
// console.log('in track call 4', message); | ||
// } | ||
// ); | ||
}); | ||
|
||
document.addEventListener('RSA_Initialised', function (e) { | ||
|
@@ -391,4 +391,4 @@ <h1>Test HTML file</h1> | |
} | ||
</script> | ||
</body> | ||
</html> | ||
</html> |
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