Skip to content

Commit b68ccd4

Browse files
authored
Merge pull request #30 from klaviyo/fix/github-pages-urls
Fix GitHub Pages URLs causing 404s
2 parents 452c204 + 25f4ca0 commit b68ccd4

File tree

2 files changed

+10
-4
lines changed

2 files changed

+10
-4
lines changed

metadata.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,12 @@
22
documentation: "https://github.com/klaviyo/klaviyo-hotels-tags/blob/master/README.md"
33
versions:
44
# Latest version
5+
- sha: 8317756c10b76abc545fb9f46ecd950bca7dd053
6+
changeNotes: |
7+
Fix GitHub Pages URLs
8+
- Removed /public/ from script URLs that were causing 404 errors
9+
10+
# Phone re-identification
511
- sha: eb08bfcd48c341bd16f7f8eecc1079b746b44c29
612
changeNotes: |
713
Phone Re-identification & Validation Improvements

template.tpl

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ const injectScript = require('injectScript');
8484
log('Klaviyo JS loaded, now loading hotel tracking script');
8585
if (data.hotel_type == "cloudbeds"){
8686
injectScript(
87-
'https://klaviyo.github.io/klaviyo-hotels-tags/public/klaviyo_hotel_tracking_cloudbeds.js',
87+
'https://klaviyo.github.io/klaviyo-hotels-tags/klaviyo_hotel_tracking_cloudbeds.js',
8888
function() {
8989
log('Cloudbeds tracking script loaded successfully');
9090
data.gtmOnSuccess();
@@ -96,7 +96,7 @@ const injectScript = require('injectScript');
9696
);
9797
} else if (data.hotel_type == "mews"){
9898
injectScript(
99-
'https://klaviyo.github.io/klaviyo-hotels-tags/public/klaviyo_hotel_tracking_mews.js',
99+
'https://klaviyo.github.io/klaviyo-hotels-tags/klaviyo_hotel_tracking_mews.js',
100100
function() {
101101
log('Mews tracking script loaded successfully');
102102
data.gtmOnSuccess();
@@ -108,7 +108,7 @@ const injectScript = require('injectScript');
108108
);
109109
} else {
110110
injectScript(
111-
'https://klaviyo.github.io/klaviyo-hotels-tags/public/klaviyo_hotel_tracking_guesty.js',
111+
'https://klaviyo.github.io/klaviyo-hotels-tags/klaviyo_hotel_tracking_guesty.js',
112112
function() {
113113
log('Guesty tracking script loaded successfully');
114114
data.gtmOnSuccess();
@@ -160,7 +160,7 @@ ___WEB_PERMISSIONS___
160160
},
161161
{
162162
"type": 1,
163-
"string": "https://klaviyo.github.io/klaviyo-hotels-tags/public/*"
163+
"string": "https://klaviyo.github.io/klaviyo-hotels-tags/*"
164164
}
165165
]
166166
}

0 commit comments

Comments
 (0)