Skip to content

Commit

Permalink
Update Thu Nov 28 05:29:10 UTC 2024
Browse files Browse the repository at this point in the history
  • Loading branch information
security-deriv committed Nov 28, 2024
1 parent 3c55ac7 commit 2a22c0a
Show file tree
Hide file tree
Showing 894 changed files with 37,562 additions and 129,609 deletions.
200 changes: 200 additions & 0 deletions champion.trade/styles.html

Large diffs are not rendered by default.

76 changes: 64 additions & 12 deletions deriv.com/404.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<!DOCTYPE html><!-- Last Published: Fri Nov 22 2024 11:01:09 GMT+0000 (Coordinated Universal Time) -->
<!DOCTYPE html><!-- Last Published: Thu Nov 28 2024 03:37:11 GMT+0000 (Coordinated Universal Time) -->
<html data-wf-domain="%%PUBLISH_URL_REPLACEMENT%%" data-wf-page="66585fe0e1dc7e70cc75d4b9" data-wf-site="66585fe0e1dc7e70cc75d440" lang="en">

<head>
Expand All @@ -25,7 +25,7 @@
<meta content="Not Found" property="og:title" />
<meta content="Not Found" property="twitter:title" />
<meta content="width=device-width, initial-scale=1" name="viewport" />
<link href="https://cdn.prod.website-files.com/66585fe0e1dc7e70cc75d440/css/deriv-staged-2dfc316890fbbd8e3ed6d351bd.15edc11d4.min.css" rel="stylesheet" type="text/css" />
<link href="https://cdn.prod.website-files.com/66585fe0e1dc7e70cc75d440/css/deriv-staged-2dfc316890fbbd8e3ed6d351bd.56aabfec7.min.css" rel="stylesheet" type="text/css" />
<link href="https://fonts.googleapis.com" rel="preconnect" />
<link href="https://fonts.gstatic.com" rel="preconnect" crossorigin="anonymous" />
<script src="https://ajax.googleapis.com/ajax/libs/webfont/1.6.26/webfont.js" type="text/javascript"></script>
Expand Down Expand Up @@ -388,6 +388,18 @@
},
};

const getUserCookieData = () => {
const cookies = ['signup_device', 'gclid', 'utm_data', 'affiliate_tracking'];
const combinedObject = {};

cookies.forEach((cookieName) => {
combinedObject[cookieName] = cacheTrackEvents.getCookies(cookieName);
});
combinedObject.full_url = window.location.href;

return combinedObject;
};

cacheTrackEvents
.pageLoadEvent([{
pages: ["signup", "eu/signup"],
Expand Down Expand Up @@ -455,6 +467,7 @@
form_source: window.location.hostname,
form_name: "default_diel_deriv",
email,
cookie_data: getUserCookieData()
},
};
},
Expand Down Expand Up @@ -484,14 +497,53 @@
action: "started",
form_source: window.location.hostname,
form_name: "default_diel_deriv",
cookie_data: getUserCookieData()
},
};
},
},
])
.pageView();

//Analytics block for cta_clicks method starts here

const trackSignupErrorEvent = (action, errorMessage, screen_name) => {
const form_name = isMobile() ?
"virtual_signup_web_mobile_default" :
"virtual_signup_web_desktop_default";
cacheTrackEvents.loadEvent([{
event: {
name: "ce_virtual_signup_form",
properties: {
action,
form_name,
error_message: errorMessage,
screen_name,
},
},
}, ]);
};

cacheTrackEvents.trackConsoleErrors((errorMessage) => {
window.is_tracking_signup_errors = window.useGrowthbookFeatureFlag({
featureFlag: "signup_flow_error_enabled",
});

if (is_tracking_signup_errors) {
if (errorMessage) {
const currentUrl = window.location.href;
if (
currentUrl.includes("signup") ||
currentUrl.includes("signup-success")
) {
const screen_name = currentUrl.includes("signup-success") ?
"signup-success" :
"signup";
trackSignupErrorEvent("signup_flow_error", errorMessage, screen_name);
}
}
}
});

//Analytics block for cta_clicks method starts here
(function() {
const trackCTAEvents = (event) => {
Expand Down Expand Up @@ -666,7 +718,7 @@
<!-- End Google Tag Manager -->

<!-- Analytics Integration -->
<script defer src="https://unpkg.com/@deriv-com/analytics@1.26.2/dist/analytics.bundle.js"></script>
<script defer src="https://unpkg.com/@deriv-com/analytics@1.27.0/dist/analytics.bundle.js"></script>
<!-- Analytics end-->

<!-- Hotjar Tracking Code for Deriv.com (.com + app.deriv) -->
Expand Down Expand Up @@ -863,10 +915,10 @@
window.growthbook_config = {
"uuidCookieName": "gbuuid",
"uuidKey": "id",
"uuid": "cf0ce67e-f60a-4ed1-9c97-cf156462547d",
"uuid": "54b1233c-9c07-4b9e-b96a-757463a690c2",
"persistUuidOnLoad": true,
"attributes": {
"id": "cf0ce67e-f60a-4ed1-9c97-cf156462547d",
"id": "54b1233c-9c07-4b9e-b96a-757463a690c2",
"browser": "unknown",
"deviceType": "desktop",
"url": "https://deriv.com/404?fromWorker=true",
Expand All @@ -879,14 +931,14 @@
},
"payload": {
"features": {
"test-feature-flag": {
"defaultValue": true
},
"test-webflow": {
"defaultValue": true
},
"trigger_os_signup_wf": {
"defaultValue": false
},
"signup_flow_error_enabled": {
"defaultValue": true
}
},
"experiments": [{
Expand Down Expand Up @@ -1072,7 +1124,7 @@
"phase": "0",
"coverage": 1
}],
"dateUpdated": "2024-11-26T11:12:56.610Z"
"dateUpdated": "2024-11-27T09:11:38.371Z"
},
"disableVisualExperiments": false,
"disableJsInjection": false,
Expand Down Expand Up @@ -3156,8 +3208,8 @@ <h3 class="_404-heading">We couldn’t find that page</h3>
</div>
</div>
<script src="https://d3e54v103j8qbb.cloudfront.net/js/jquery-3.5.1.min.dc5e7f18c8.js?site=66585fe0e1dc7e70cc75d440" type="text/javascript" integrity="sha256-9/aliU8dGd2tb6OSsuzixeV4y/faTqgFtohetphbbj0=" crossorigin="anonymous"></script>
<script src="https://cdn.prod.website-files.com/66585fe0e1dc7e70cc75d440/js/deriv-staged-2dfc316890fbbd8e3ed6d351bd.144d33ad1.js" type="text/javascript"></script><!-- deriv js custom code script-->
<script type="module" src="https://unpkg.com/@deriv-com/custom-scripts@1.23.2/dist/js/footer_scripts.min.js"></script>
<script src="https://cdn.prod.website-files.com/66585fe0e1dc7e70cc75d440/js/deriv-staged-2dfc316890fbbd8e3ed6d351bd.15473e4bf.js" type="text/javascript"></script><!-- deriv js custom code script-->
<script type="module" src="https://unpkg.com/@deriv-com/custom-scripts@1.24.2/dist/js/footer_scripts.min.js"></script>
<!-- deriv js custom code script end-->

<script>
Expand Down
82 changes: 67 additions & 15 deletions deriv.com/?fromWorker=true.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<!DOCTYPE html><!-- Last Published: Fri Nov 22 2024 11:01:09 GMT+0000 (Coordinated Universal Time) -->
<!DOCTYPE html><!-- Last Published: Thu Nov 28 2024 03:37:11 GMT+0000 (Coordinated Universal Time) -->
<html data-wf-domain="deriv.com" data-wf-page="66585fe0e1dc7e70cc75d43f" data-wf-site="66585fe0e1dc7e70cc75d440" lang="en">

<head>
Expand Down Expand Up @@ -30,7 +30,7 @@
<meta property="og:type" content="website" />
<meta content="summary_large_image" name="twitter:card" />
<meta content="width=device-width, initial-scale=1" name="viewport" />
<link href="https://cdn.prod.website-files.com/66585fe0e1dc7e70cc75d440/css/deriv-staged-2dfc316890fbbd8e3ed6d351bd.15edc11d4.min.css" rel="stylesheet" type="text/css" />
<link href="https://cdn.prod.website-files.com/66585fe0e1dc7e70cc75d440/css/deriv-staged-2dfc316890fbbd8e3ed6d351bd.56aabfec7.min.css" rel="stylesheet" type="text/css" />
<link href="https://fonts.googleapis.com" rel="preconnect" />
<link href="https://fonts.gstatic.com" rel="preconnect" crossorigin="anonymous" />
<script src="https://ajax.googleapis.com/ajax/libs/webfont/1.6.26/webfont.js" type="text/javascript"></script>
Expand Down Expand Up @@ -393,6 +393,18 @@
},
};

const getUserCookieData = () => {
const cookies = ['signup_device', 'gclid', 'utm_data', 'affiliate_tracking'];
const combinedObject = {};

cookies.forEach((cookieName) => {
combinedObject[cookieName] = cacheTrackEvents.getCookies(cookieName);
});
combinedObject.full_url = window.location.href;

return combinedObject;
};

cacheTrackEvents
.pageLoadEvent([{
pages: ["signup", "eu/signup"],
Expand Down Expand Up @@ -460,6 +472,7 @@
form_source: window.location.hostname,
form_name: "default_diel_deriv",
email,
cookie_data: getUserCookieData()
},
};
},
Expand Down Expand Up @@ -489,14 +502,53 @@
action: "started",
form_source: window.location.hostname,
form_name: "default_diel_deriv",
cookie_data: getUserCookieData()
},
};
},
},
])
.pageView();

//Analytics block for cta_clicks method starts here

const trackSignupErrorEvent = (action, errorMessage, screen_name) => {
const form_name = isMobile() ?
"virtual_signup_web_mobile_default" :
"virtual_signup_web_desktop_default";
cacheTrackEvents.loadEvent([{
event: {
name: "ce_virtual_signup_form",
properties: {
action,
form_name,
error_message: errorMessage,
screen_name,
},
},
}, ]);
};

cacheTrackEvents.trackConsoleErrors((errorMessage) => {
window.is_tracking_signup_errors = window.useGrowthbookFeatureFlag({
featureFlag: "signup_flow_error_enabled",
});

if (is_tracking_signup_errors) {
if (errorMessage) {
const currentUrl = window.location.href;
if (
currentUrl.includes("signup") ||
currentUrl.includes("signup-success")
) {
const screen_name = currentUrl.includes("signup-success") ?
"signup-success" :
"signup";
trackSignupErrorEvent("signup_flow_error", errorMessage, screen_name);
}
}
}
});

//Analytics block for cta_clicks method starts here
(function() {
const trackCTAEvents = (event) => {
Expand Down Expand Up @@ -671,7 +723,7 @@
<!-- End Google Tag Manager -->

<!-- Analytics Integration -->
<script defer src="https://unpkg.com/@deriv-com/analytics@1.26.2/dist/analytics.bundle.js"></script>
<script defer src="https://unpkg.com/@deriv-com/analytics@1.27.0/dist/analytics.bundle.js"></script>
<!-- Analytics end-->

<!-- Hotjar Tracking Code for Deriv.com (.com + app.deriv) -->
Expand Down Expand Up @@ -875,10 +927,10 @@
window.growthbook_config = {
"uuidCookieName": "gbuuid",
"uuidKey": "id",
"uuid": "62d27675-5a5c-40e9-9c72-8f06d8860e4b",
"uuid": "ed4e4e00-b692-40da-9028-c6d1a092bc53",
"persistUuidOnLoad": true,
"attributes": {
"id": "62d27675-5a5c-40e9-9c72-8f06d8860e4b",
"id": "ed4e4e00-b692-40da-9028-c6d1a092bc53",
"browser": "unknown",
"deviceType": "desktop",
"url": "https://deriv.com/?fromWorker=true",
Expand All @@ -891,14 +943,14 @@
},
"payload": {
"features": {
"test-feature-flag": {
"defaultValue": true
},
"test-webflow": {
"defaultValue": true
},
"trigger_os_signup_wf": {
"defaultValue": false
},
"signup_flow_error_enabled": {
"defaultValue": true
}
},
"experiments": [{
Expand Down Expand Up @@ -1084,7 +1136,7 @@
"phase": "0",
"coverage": 1
}],
"dateUpdated": "2024-11-26T11:12:56.610Z"
"dateUpdated": "2024-11-27T09:11:38.371Z"
},
"disableVisualExperiments": false,
"disableJsInjection": false,
Expand Down Expand Up @@ -3895,8 +3947,8 @@ <h1 class="text-color-white">Trading for anyone.
<br />Anywhere. Anytime.</h1>
</div>
<div class="award_component mobile-hidden"><img src="https://cdn.prod.website-files.com/66585fe0e1dc7e70cc75d440/66585fe0e1dc7e70cc75d47c_left%20wheat.svg" loading="lazy" alt="" class="award_image" />
<div class="award_content-wrapper">
<div class="award_title">Most Innovative<br />Broker</div>
<div>UF Awards<br />2023</div>
<div class="award_title">Best Partner<br />Programme</div>
<div>FX Trust Score<br />Awards 2024</div>
</div><img src="https://cdn.prod.website-files.com/66585fe0e1dc7e70cc75d440/66585fe0e1dc7e70cc75d4d8_right%20wheat.svg" loading="lazy" alt="" class="award_image" />
</div>
</div>
Expand Down Expand Up @@ -4411,7 +4463,7 @@ <h2>Fast, hassle-free deposits and withdrawals</h2>
</div>
</section>
<div class="align-center padding-global">
<div class="text-size-small">* Availability of payment methods and processing speeds may vary based on location and selected payment option.</div>
<div class="text-size-small text-align-center">* Availability of payment methods and processing speeds may vary based on location and selected payment option.</div>
</div>
</div>
</div>
Expand Down Expand Up @@ -4781,8 +4833,8 @@ <h2 class="cta_heading">Join over 2.5 million 
online traders</h2>
<div class="page-load_wrap"></div>
</div>
<script src="https://d3e54v103j8qbb.cloudfront.net/js/jquery-3.5.1.min.dc5e7f18c8.js?site=66585fe0e1dc7e70cc75d440" type="text/javascript" integrity="sha256-9/aliU8dGd2tb6OSsuzixeV4y/faTqgFtohetphbbj0=" crossorigin="anonymous"></script>
<script src="https://cdn.prod.website-files.com/66585fe0e1dc7e70cc75d440/js/deriv-staged-2dfc316890fbbd8e3ed6d351bd.144d33ad1.js" type="text/javascript"></script><!-- deriv js custom code script-->
<script type="module" src="https://unpkg.com/@deriv-com/custom-scripts@1.23.2/dist/js/footer_scripts.min.js"></script>
<script src="https://cdn.prod.website-files.com/66585fe0e1dc7e70cc75d440/js/deriv-staged-2dfc316890fbbd8e3ed6d351bd.15473e4bf.js" type="text/javascript"></script><!-- deriv js custom code script-->
<script type="module" src="https://unpkg.com/@deriv-com/custom-scripts@1.24.2/dist/js/footer_scripts.min.js"></script>
<!-- deriv js custom code script end-->

<script>
Expand Down
6 changes: 2 additions & 4 deletions deriv.com/academy/trading-ebooks.html
Original file line number Diff line number Diff line change
Expand Up @@ -134,8 +134,7 @@
status: this.status,
headers: this.getAllResponseHeaders(),
data: this.responseType === "" || this.responseType === "text" ?
this.responseText :
null,
this.responseText : null,
payload: parsedPayload,
};

Expand Down Expand Up @@ -791,8 +790,7 @@
path: this.path,
domain: this.domain,
secure: options && options.secure !== undefined ?
options.secure :
this.is_secure,
options.secure : this.is_secure,
sameSite: (options && options.sameSite) || this.same_site,
...options,
});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -155,8 +155,7 @@
status: this.status,
headers: this.getAllResponseHeaders(),
data: this.responseType === "" || this.responseType === "text" ?
this.responseText :
null,
this.responseText : null,
payload: parsedPayload,
};

Expand Down Expand Up @@ -812,8 +811,7 @@
path: this.path,
domain: this.domain,
secure: options && options.secure !== undefined ?
options.secure :
this.is_secure,
options.secure : this.is_secure,
sameSite: (options && options.sameSite) || this.same_site,
...options,
});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -155,8 +155,7 @@
status: this.status,
headers: this.getAllResponseHeaders(),
data: this.responseType === "" || this.responseType === "text" ?
this.responseText :
null,
this.responseText : null,
payload: parsedPayload,
};

Expand Down Expand Up @@ -812,8 +811,7 @@
path: this.path,
domain: this.domain,
secure: options && options.secure !== undefined ?
options.secure :
this.is_secure,
options.secure : this.is_secure,
sameSite: (options && options.sameSite) || this.same_site,
...options,
});
Expand Down
Loading

0 comments on commit 2a22c0a

Please sign in to comment.