Skip to content

Commit c38fa05

Browse files
committed
Replaced all iglu:// with iglu: (snowplow#221)
1 parent ae07283 commit c38fa05

4 files changed

Lines changed: 15 additions & 15 deletions

File tree

examples/web/async-medium.html

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -55,14 +55,14 @@
5555
// window.new_name_here('trackPageView', 'Async Test'); // Track the page view with custom title
5656
window.new_name_here('trackPageView', null , [ // Auto-set page title; add page context
5757
{
58-
schema: "iglu://com.example_company/page/jsonschema/1-2-1",
58+
schema: "iglu:com.example_company/page/jsonschema/1-2-1",
5959
data: {
6060
pageType: 'test',
6161
lastUpdated: new Date(2014,1,26)
6262
}
6363
},
6464
{
65-
schema: "iglu://com.example_company/user/jsonschema/2-0-0",
65+
schema: "iglu:com.example_company/user/jsonschema/2-0-0",
6666
data: {
6767
userType: 'tester',
6868
}
@@ -87,7 +87,7 @@
8787

8888
// Only the "cf" tracker will tracke the Checkout event
8989
window.new_name_here('trackStructEvent:cf', 'Checkout', 'Add', 'ASO01043', 'blue:xxl', '2.0', [{
90-
schema: 'iglu://com.acme_company/user/jsonschema/1-0-0',
90+
schema: 'iglu:com.acme_company/user/jsonschema/1-0-0',
9191
data: { fbUid: '123456 x' }
9292
}] );
9393
}
@@ -97,7 +97,7 @@
9797

9898
// Only the "uri" tracker will track the Viewed Product event
9999
window.new_name_here('trackUnstructEvent:uri', {
100-
schema: 'iglu://com.acme_company/viewed_product/jsonschema/5-0-0',
100+
schema: 'iglu:com.acme_company/viewed_product/jsonschema/5-0-0',
101101
data: {
102102
productId: 'ASO01043',
103103
category: 'Dresses',
@@ -141,7 +141,7 @@
141141
'2', // quantity - required
142142
'JPY', // currency
143143
[{ // context
144-
schema: "iglu://com.example_company/products/jsonschema/1-0-0",
144+
schema: "iglu:com.example_company/products/jsonschema/1-0-0",
145145
data: {
146146
"launchDate": new Date(2013,3,7)
147147
}

examples/web/async-small.html

Lines changed: 5 additions & 5 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: "iglu://com.example_company/page/jsonschema/1-2-1",
43+
schema: "iglu: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: "iglu://com.example_company/user/jsonschema/2-0-0",
50+
schema: "iglu:com.example_company/user/jsonschema/2-0-0",
5151
data: {
5252
userType: 'tester',
5353
}
@@ -68,15 +68,15 @@
6868
function addProduct() {
6969
alert("Adding a product to basket");
7070
window.snowplow('trackStructEvent', 'Checkout', 'Add', 'ASO01043', 'blue:xxl', '2.0', [{
71-
schema: 'iglu://com.acme_company/user/jsonschema/1-0-0',
71+
schema: 'iglu:com.acme_company/user/jsonschema/1-0-0',
7272
data: { fbUid: '123456 x' }
7373
}] );
7474
}
7575

7676
function viewProduct() {
7777
alert("Viewing a product");
7878
window.snowplow('trackUnstructEvent', {
79-
schema: 'iglu://com.acme_company/viewed_product/jsonschema/5-0-0',
79+
schema: 'iglu:com.acme_company/viewed_product/jsonschema/5-0-0',
8080
data: {
8181
productId: 'ASO01043',
8282
category: 'Dresses',
@@ -118,7 +118,7 @@
118118
'2', // quantity - required
119119
'JPY', // currency
120120
[{ // context
121-
schema: "iglu://com.example_company/products/jsonschema/1-0-0",
121+
schema: "iglu:com.example_company/products/jsonschema/1-0-0",
122122
data: {
123123
"launchDate": new Date(2013,3,7)
124124
}

src/js/tracker.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@
9494
configRequestMethod = 'GET',
9595

9696
// Initial segment of schema field for Snowplow's self-describing JSONs
97-
configBaseSchemaPath = 'iglu://com.snowplowanalytics.snowplow',
97+
configBaseSchemaPath = 'iglu:com.snowplowanalytics.snowplow',
9898

9999
// The schema against which custom context arrays should be validated
100100
configContextSchema = configBaseSchemaPath + '/contexts/jsonschema/1-0-0',

tests/nonfunctional/payload.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -41,23 +41,23 @@ define([
4141
var
4242
sampleJson = [
4343
{
44-
schema: "iglu://com.example_company/page/jsonschema/1-2-1",
44+
schema: "iglu:com.example_company/page/jsonschema/1-2-1",
4545
data: {
4646
pageType: 'test',
4747
lastUpdated: new Date(2014,1,26)
4848
}
4949
},
5050
{
51-
schema: "iglu://com.example_company/user/jsonschema/2-0-0",
51+
schema: "iglu:com.example_company/user/jsonschema/2-0-0",
5252
data: {
5353
userType: 'tester',
5454
}
5555
}
5656
]
5757
expectedStrings = [
5858
'?e=pv&page=Asynchronous%20website%2Fwebapp%20examples%20for%20snowplow.js',
59-
'?co=%5B%7B%22schema%22%3A%22iglu%3A%2F%2Fcom.example_company%2Fpage%2Fjsonschema%2F1-2-1%22%2C%22data%22%3A%7B%22pageType%22%3A%22test%22%2C%22lastUpdated%22%3A%222014-02-26T00%3A00%3A00.000Z%22%7D%7D%2C%7B%22schema%22%3A%22iglu%3A%2F%2Fcom.example_company%2Fuser%2Fjsonschema%2F2-0-0%22%2C%22data%22%3A%7B%22userType%22%3A%22tester%22%7D%7D%5D',
60-
'?cx=W3sic2NoZW1hIjoiaWdsdTovL2NvbS5leGFtcGxlX2NvbXBhbnkvcGFnZS9qc29uc2NoZW1hLzEtMi0xIiwiZGF0YSI6eyJwYWdlVHlwZSI6InRlc3QiLCJsYXN0VXBkYXRlZCI6IjIwMTQtMDItMjZUMDA6MDA6MDAuMDAwWiJ9fSx7InNjaGVtYSI6ImlnbHU6Ly9jb20uZXhhbXBsZV9jb21wYW55L3VzZXIvanNvbnNjaGVtYS8yLTAtMCIsImRhdGEiOnsidXNlclR5cGUiOiJ0ZXN0ZXIifX1d'
59+
'?co=%5B%7B%22schema%22%3A%22iglu%3Acom.example_company%2Fpage%2Fjsonschema%2F1-2-1%22%2C%22data%22%3A%7B%22pageType%22%3A%22test%22%2C%22lastUpdated%22%3A%222014-02-26T00%3A00%3A00.000Z%22%7D%7D%2C%7B%22schema%22%3A%22iglu%3Acom.example_company%2Fuser%2Fjsonschema%2F2-0-0%22%2C%22data%22%3A%7B%22userType%22%3A%22tester%22%7D%7D%5D',
60+
'?cx=W3sic2NoZW1hIjoiaWdsdTpjb20uZXhhbXBsZV9jb21wYW55L3BhZ2UvanNvbnNjaGVtYS8xLTItMSIsImRhdGEiOnsicGFnZVR5cGUiOiJ0ZXN0IiwibGFzdFVwZGF0ZWQiOiIyMDE0LTAyLTI2VDAwOjAwOjAwLjAwMFoifX0seyJzY2hlbWEiOiJpZ2x1OmNvbS5leGFtcGxlX2NvbXBhbnkvdXNlci9qc29uc2NoZW1hLzItMC0wIiwiZGF0YSI6eyJ1c2VyVHlwZSI6InRlc3RlciJ9fV0'
6161
];
6262

6363
registerSuite({

0 commit comments

Comments
 (0)