Credit1Finance Webflow Redirection To Bot

PHOTO EMBED

Fri Sep 29 2023 18:28:09 GMT+0000 (Coordinated Universal Time)

Saved by @nikanika4425

<meta name="robots" content="noindex, nofollow" />

<!-- Google Tag Manager -->
<script>
(function(w,d,s,l,i){
    w[l]=w[l]||[];
    w[l].push({'gtm.start': new Date().getTime(),event:'gtm.js'});
    var f=d.getElementsByTagName(s)[0], j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';
    j.async=true;
    j.src='https://www.googletagmanager.com/gtm.js?id='+i+dl;
    f.parentNode.insertBefore(j,f);
})(window,document,'script','dataLayer','GTM-TWJ6DPQ');
</script>
<!-- End Google Tag Manager -->

<!-- Redirection Script -->
<script>
// Function to get URL parameters
function getURLParameter(name) {
    return decodeURIComponent((new RegExp('[?|&]' + name + '=' + '([^&;]+?)(&|#|;|$)').exec(location.search) || [null, ''])[1].replace(/\+/g, '%20')) || null;
}

// Get parameters from URL
const fname = getURLParameter('fname');
const email = getURLParameter('email');
const phone = getURLParameter('phone');
const post_credit_score = getURLParameter('post_credit_score');
const post_loan_amount = getURLParameter('post_loan_amount');
const post_unsecured_debt = getURLParameter('post_unsecured_debt');

// Construct the refValue for ChatGPTBuilder
const refValue = `FromUser--${fname}--170117--${fname}--974582--${email}--758141--${phone}--532496--${post_credit_score}--944036--${post_loan_amount}--848495--${post_unsecured_debt}`;

// Redirect to ChatGPTBuilder link after a 1-second delay
setTimeout(() => {
    location.href = `https://app.chatgptbuilder.io/webchat/?p=4077234&ref=${refValue}`;
}, 1000);
</script>
content_copyCOPY