Skip to content

Commit 2a90d0b

Browse files
committed
Changed "json" to "jsonschema"
1 parent 1cfbb2c commit 2a90d0b

3 files changed

Lines changed: 14 additions & 14 deletions

File tree

examples/web/async-medium.html

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -51,14 +51,14 @@
5151
// window.new_name_here('trackPageView', 'Async Test'); // Track the page view with custom title
5252
window.new_name_here('trackPageView', null , [ // Auto-set page title; add page context
5353
{
54-
schema: "com.example_company/page/json/1-2-1",
54+
schema: "com.example_company/page/jsonschema/1-2-1",
5555
data: {
5656
pageType: 'test',
5757
lastUpdated: new Date(2014,1,26)
5858
}
5959
},
6060
{
61-
schema: "com.example_company/user/json/2-0-0",
61+
schema: "com.example_company/user/jsonschema/2-0-0",
6262
data: {
6363
userType: 'tester',
6464
}
@@ -88,7 +88,7 @@
8888

8989
// Only the "uri" tracker will track the Viewed Product event
9090
window.new_name_here('trackUnstructEvent:uri', {
91-
schema: 'com.acme_company/viewed_product/json/5-0-0',
91+
schema: 'com.acme_company/viewed_product/jsonschema/5-0-0',
9292
data: {
9393
productId: 'ASO01043',
9494
category: 'Dresses',
@@ -132,7 +132,7 @@
132132
'2', // quantity - required
133133
'JPY', // currency
134134
[{ // context
135-
schema: "com.example_company/products/json/1-0-0",
135+
schema: "com.example_company/products/jsonschema/1-0-0",
136136
data: {
137137
"launchDate": new Date(2013,3,7)
138138
}

examples/web/async-small.html

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -40,14 +40,14 @@
4040
// window.snowplow('trackPageView', 'Async Test'); // Track the page view with custom title
4141
window.snowplow('trackPageView', null , [ // Auto-set page title; add page context
4242
{
43-
schema: "com.example_company/page/json/1-2-1",
43+
schema: "com.example_company/page/jsonschema/1-2-1",
4444
data: {
4545
pageType: 'test',
4646
lastUpdated: new Date(2014,1,26)
4747
}
4848
},
4949
{
50-
schema: "com.example_company/user/json/2-0-0",
50+
schema: "com.example_company/user/jsonschema/2-0-0",
5151
data: {
5252
userType: 'tester',
5353
}
@@ -71,7 +71,7 @@
7171
function viewProduct() {
7272
alert("Viewing a product");
7373
window.snowplow('trackUnstructEvent', {
74-
schema: 'com.acme_company/viewed_product/json/5-0-0',
74+
schema: 'com.acme_company/viewed_product/jsonschema/5-0-0',
7575
data: {
7676
productId: 'ASO01043',
7777
category: 'Dresses',
@@ -113,7 +113,7 @@
113113
'2', // quantity - required
114114
'JPY', // currency
115115
[{ // context
116-
schema: "com.example_company/products/json/1-0-0",
116+
schema: "com.example_company/products/jsonschema/1-0-0",
117117
data: {
118118
"launchDate": new Date(2013,3,7)
119119
}

src/js/tracker.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -97,10 +97,10 @@
9797
configDefaultVendor = 'com.snowplowanalytics',
9898

9999
// The schema against which custom context arrays should be validated
100-
configContextSchema = 'com.snowplowanalytics/contexts/json/1-0-0',
100+
configContextSchema = 'com.snowplowanalytics/contexts/jsonschema/1-0-0',
101101

102102
// The schema against which unstructured event envelopes should be validated
103-
configUnstructEventSchema = 'com.snowplowanalytics/unstruct_event/json/1-0-0',
103+
configUnstructEventSchema = 'com.snowplowanalytics/unstruct_event/jsonschema/1-0-0',
104104

105105
// Platform defaults to web for this tracker
106106
configPlatform = argmap.hasOwnProperty('platform') ? argmap.platform : 'web',
@@ -770,7 +770,7 @@
770770
// See https://github.com/snowplow/snowplow/issues/75
771771
function logLink(targetUrl, elementId, elementClasses, elementTarget, context) {
772772
var eventJson = {
773-
schema: configDefaultVendor + '/link_click/json/1-0-0',
773+
schema: configDefaultVendor + '/link_click/jsonschema/1-0-0',
774774
data: {
775775
targetUrl: targetUrl,
776776
elementId: elementId,
@@ -1507,7 +1507,7 @@
15071507
trackAdImpression: function(impressionId, costModel, cost, targetUrl, bannerId, zoneId, advertiserId, campaignId, context) {
15081508
trackCallback(function () {
15091509
var eventJson = {
1510-
schema: configDefaultVendor + '/ad_impression/json/1-0-0',
1510+
schema: configDefaultVendor + '/ad_impression/jsonschema/1-0-0',
15111511
data: {
15121512
impressionId: impressionId,
15131513
costModel: costModel,
@@ -1540,7 +1540,7 @@
15401540
*/
15411541
trackAdClick: function(targetUrl, clickId, costModel, cost, bannerId, zoneId, impressionId, advertiserId, campaignId, context) {
15421542
var eventJson = {
1543-
schema: configDefaultVendor + '/ad_click/json/1-0-0',
1543+
schema: configDefaultVendor + '/ad_click/jsonschema/1-0-0',
15441544
data: {
15451545
targetUrl: targetUrl,
15461546
clickId: clickId,
@@ -1573,7 +1573,7 @@
15731573
*/
15741574
trackAdConversion: function(conversionId, costModel, cost, category, action, property, initialValue, advertiserId, campaignId, context) {
15751575
var eventJson = {
1576-
schema: configDefaultVendor + '/ad_conversion/json/1-0-0',
1576+
schema: configDefaultVendor + '/ad_conversion/jsonschema/1-0-0',
15771577
data: {
15781578
conversionId: conversionId,
15791579
costModel: costModel,

0 commit comments

Comments
 (0)