La piattaforma numero uno per la consumer intelligence e l’analisi e il monitoraggio dei dati social (2022)

Utilizziamo i cookie per migliorare la tua esperienza quando visiti il nostro sito web. La nostra politica sui cookie descrive come utilizziamo i cookie e come disabilitarli.

OK Scopri di più

I nostri clienti non se ne vanno. E c’è un motivo. Parlane con noi.

' : ''; $('label[for="' + (label) + '"]').html(required + word);} //TODO..function optTextTrans(select, value, text) { $('#Industry_2__c option[value="' + value + '"]').text(text); if(select){ $('#'+select+' option[value="' + value + '"]').text(text); }}var offset = new Date().getTimezoneOffset()*(-1);/*free search specific*/translate('MKT_Talkwalker_Search_Term__c', 'La tua ricerca', true);$('.mktoButton').html('INIZIA LA RICERCA!
Accetto di ricevere comunicazioni da Talkwalker.');$('.mktoButton').addClass('button-red');$('#Password__c').attr('type', 'password');$('input[name="MKT_Talkwalker_Search_Term__c"]').val(query());$('label[for="agreestermsconditions"]').css('font-size', '14px');$('label[for="agreestermsconditions"]').css('text-transform', 'none');$('label[for="agreestermsconditions"]').css('bottom', 'auto');$('label[for="agreestermsconditions"]').css('left', '1vw');$('label[for="agreestermsconditions"]').html('Ho letto e accetto i termini e le condizioni d'uso');//WEBSITE-631//WEBSITE-303$('#Demo_Requested_on_DD_Form__c option[value="Yes"]').text("Si");$('#Demo_Requested_on_DD_Form__c option[value="No"]').text("No");translate('Demo_Requested_on_DD_Form__c', 'Vorresti richiedere una demo gratuita?', true);$( "#Demo_Requested_on_DD_Form__c" ).change(function() { translate('Lead_Interest__c', 'Il vostro interesse', true); translate('Phone', 'Telefono', true); $('#Lead_Interest__c option[value="Talkwalker product"]').text("Il prodotto di Talkwalker"); $('#Lead_Interest__c option[value="Our content"]').text("Il nostro contenuto");});//end//fill in translations and hidden fieldstranslate('FirstName', 'Nome', true);translate('LastName', 'Cognome', true);translate('Phone', 'Telefono', true); translate('Email', 'Email aziendal', true);translate('Company', 'Azienda', true);translate('Company_Size__c', 'Dimensione della società', true);translate('Industry_2__c', 'Settore', true);translate('Country', 'Paese', true);translate('MktoPersonNotes', 'Messaggio', true);translate('employeecount', 'Employee count', true);translate('commentspersonaldemo', 'Messaggio', true);translate('Title', 'Job Title', true);translate('commentspersonaldemo', 'Messaggio', true); optTextTrans('Industry_2__c', 'Agency', 'Agenzie'); optTextTrans('Industry_2__c', 'Automotive', 'Automotive'); optTextTrans('Industry_2__c', 'Consumer goods', 'Beni di largo consumo'); optTextTrans('Industry_2__c', 'Education', 'Educazione'); optTextTrans('Industry_2__c', 'Finance', 'Finanza'); optTextTrans('Industry_2__c', 'Government', 'Governo'); optTextTrans('Industry_2__c', 'Pharma / Healthcare', 'Salute'); optTextTrans('Industry_2__c', 'Travel / Hospitality', 'Hospitality'); optTextTrans('Industry_2__c', 'Industrial goods', 'Industria'); optTextTrans('Industry_2__c', 'Media / Entertainment', 'Media'); optTextTrans('Industry_2__c', 'Non Profit / Non Gov', ''); optTextTrans('Industry_2__c', 'Others', 'Altri settori'); optTextTrans('Industry_2__c', 'Professional services', 'Servizi professionali'); optTextTrans('Industry_2__c', 'Retail', 'Retail'); optTextTrans('Industry_2__c', 'Sports', 'Sport'); optTextTrans('Industry_2__c', 'Technology', 'Tecnologia'); optTextTrans('Industry_2__c', 'Telco', 'Telco'); optTextTrans('Industry_2__c', 'Transport', 'Trasporti'); optTextTrans('Industry_2__c', 'AGENCIES', 'Agenzie'); optTextTrans('Industry_2__c', 'AUTOMOTIVE', 'Automotive'); optTextTrans('Industry_2__c', 'CONSUMER_GOODS', 'Beni di largo consumo'); optTextTrans('Industry_2__c', 'FINANCE_INDUSTRY', 'Finanza'); optTextTrans('Industry_2__c', 'GOVERNMENT', 'Governo'); optTextTrans('Industry_2__c', 'HEALTHCARE', 'Salute'); optTextTrans('Industry_2__c', 'HOSPITALITY', 'Hospitality'); optTextTrans('Industry_2__c', 'INDUSTRIAL_GOODS', 'Industria'); optTextTrans('Industry_2__c', 'MEDIA', 'Media'); optTextTrans('Industry_2__c', 'OTHER_INDUSTRY', 'Altri settori'); optTextTrans('Industry_2__c', 'PROFESSIONAL_SERVICES', 'Servizi professionali'); optTextTrans('Industry_2__c', 'RETAIL', 'Retail'); optTextTrans('Industry_2__c', 'SPORTS', 'Sport'); optTextTrans('Industry_2__c', 'TECHNOLOGY', 'Tecnologia'); optTextTrans('Industry_2__c', 'TELCO', 'Telco'); optTextTrans('Industry_2__c', 'TRANSPORT', 'Trasporti'); translate('Role_Persona__c', 'Ruolo', true);optTextTrans('Role_Persona__c', 'C-Level', 'Top manager');optTextTrans('Role_Persona__c', 'Director/Head of', 'Direttore / responsabile');optTextTrans('Role_Persona__c', 'Individual Contributor', 'Collaboratore');optTextTrans('Role_Persona__c', 'Senior Manager/Manager', 'Responsabile senior / responsabile');optTextTrans('Role_Persona__c', 'Senior VP/VP', 'Vicepresidente senior / vicepresidente');optTextTrans('Role_Persona__c', 'Other', 'Altro');translate('MktoPersonNotes', 'Messaggio', true);translate('ContactUS_Purpose__c', 'Cosa ti spinge a contattarci', true);optTextPurpose('General Enquiry', "Richiesta generica");optTextPurpose('Request a Free Demo', 'Demo gratuita');optTextPurpose('Talkwalker Alerts', 'CREA UN ALERT');optTextPurpose('Become a Partner', 'Diventare partner');optTextPurpose('Pricing Page', 'Tariffe');translate('Department_Persona__c', 'Dipartimento', true);optTextTrans('Department_Persona__c', 'Brand/Category', 'Brand');optTextTrans('Department_Persona__c', 'Customer Care', 'Assistenza clienti');optTextTrans('Department_Persona__c', 'CX', 'CX');optTextTrans('Department_Persona__c', 'Digital Marketing', 'Marketing digitale');optTextTrans('Department_Persona__c', 'General Management', 'Direzione generale');optTextTrans('Department_Persona__c', 'IT', 'Reparto informatico');optTextTrans('Department_Persona__c', 'Operations', 'Operazioni');optTextTrans('Department_Persona__c', 'PR and Communication', 'PR e comunicazioni');optTextTrans('Department_Persona__c', 'Product & Innovation', 'Prodotto e innovazione');optTextTrans('Department_Persona__c', 'Sales', 'Vendite');optTextTrans('Department_Persona__c', 'Social Media', 'Social Media');optTextTrans('Department_Persona__c', 'Strategy and Insights', 'Strategia e insight');optTextTrans('Department_Persona__c', 'Other', 'Altro');$('input[name="language"]').val('it');/** * Specific to two blocks */$('#Company_Size__c :eq(0)').text('Seleziona');$('#FirstName').val(jsDecode(first_name()));$('#LastName').val(jsDecode(last_name()));$('#Email').val(jsDecode(email_address()));$('#Company').val(jsDecode(company()));$('input[name="MKT_Download_Document_ContentType__c"]').val('Blocks');$('input[name="MKT_Download_Document_FileName__c"]').val('');$('input[name="MKT_Download_Document_FileURL__c"]').val('https://www.talkwalker.com/');$('#Demo_Requested_on_DD_Form__c option[value="Yes"]').text("Si");$('#Demo_Requested_on_DD_Form__c option[value="No"]').text("No");translate('Demo_Requested_on_DD_Form__c', 'Vorresti richiedere una demo gratuita?', true);$( "#Demo_Requested_on_DD_Form__c" ).change(function() { translate('Lead_Interest__c', 'Il vostro interesse', true); translate('Phone', 'Telefono', true); $('#Lead_Interest__c option[value="Talkwalker product"]').text("Il prodotto di Talkwalker"); $('#Lead_Interest__c option[value="Our content"]').text("Il nostro contenuto");});//some specifics to labelsif(isFreeDemoOrContactus()==true){ optTextTrans('Industry_2__c', 'Industry', 'Settore'); $('#Industry_2__c option[value="Industry"]').val("Others");}//some e-mail logic$("input[name=Email]").blur(function() {if (this.value) { //if free-demo or contact us let valEmail = $("#Email").val().toLowerCase(); if(valEmail.includes('@gmail') || valEmail.includes('@msn') || valEmail.includes('@hotmail') || valEmail.includes('@outlook') || valEmail.includes('@yahoo') ){ $('#ValidMsgEmail').addClass('d-flex'); $('#ValidMsgEmail').removeClass('d-none'); return; } else{ var result = isBizMail.isValid($("#Email").val()); if(!result){ $('#ValidMsgEmail').addClass('d-flex'); $('#ValidMsgEmail').removeClass('d-none'); return; }else{ $('#ValidMsgEmail').addClass('d-none'); $('#ValidMsgEmail').removeClass('d-flex'); } } if ($("input[name=InferredCountry]").val() == 'United States') { if (isCompanyEmail(this.value) === false) { $('#message').html('You must use a valid working email address'); } else { $('#message').html(''); } } if ($("input[name=InferredCountry]").val() == 'India') { if (isCompanyEmail(this.value) === false) { $('#message').html('You must use a valid working email address'); } else { $('#message').html(''); } } else { $('#message').html(''); } }});//submit buttons: $('.mktoButton').html("RICHIEDI UNA DEMO GRATUITA
Accetto di ricevere comunicazioni da Talkwalker."); $('.mktoButton').addClass('button-pink');/*call this function to define redirects()redirects per template:*/let redirect = '';let redirectTwo = '';function setRedirects(){ redirect = "https://www.talkwalker.com/free-demo-signup-thanks-sanctioned-countries"; redirectTwo = "https://www.talkwalker.com/free-demo-signup-thanks?email=" + $("#Email").val();};/* * * token specifc case request */ /** * * the following function will check for * certain block restrictions * and if this returns * true then you can proceed with the submission * false you cannot proceed with the submission * */function checkForBlockRestrictions(){ return submitForm(true); }//LeanData adding the script to the headerfunction loadLeanDataBookIt() { (function (windowRef, documentRef, fileLocation, functionName) { windowRef['LeanDataCalendaringObjName'] = functionName; windowRef[functionName] = (...args) => { windowRef[functionName].variables = args; }; const scriptElement = documentRef.createElement('script'); const targetScript = document.getElementsByTagName('script')[0]; const targetHead = document.getElementsByTagName('head')[0]; scriptElement.async = 1; scriptElement.src = fileLocation; if (targetScript) { targetScript.parentNode.insertBefore(scriptElement, targetScript); } else if (targetHead) { targetHead.append(scriptElement); } })(window, document, 'https://app.leandata.com/js-snippet/ld_calendaring.js', 'LDBookIt'); LDBookIt('00D20000000Nw9kEAC', 'Demo Form',false,{apiRoutingOn: true});}/**@function * remove the element from the DOM and redirect. * @argument elem, the element id to be removed, string * * */let bookitRedirect='';function removeAndRedir(elem){ $("#"+elem).remove(); //redirect /*if(bookitRedirect!== null){ window.location.href = bookitRedirect; };*/}/**@function shows the bookit calendar on an absolute iframe * */ function showCalendar(calendarLink){ $("body").prepend($(`

`));}//call this on submit for free demos and contact us.function BookItAPIRouting(formData, marketoInput,v) { console.log(formData); let errorHandler = (err) => { console.log('ERROR:', err); //on error default to a normal marketo route. sendRequest(marketoInput,v,false); }; let options = { MAType: 'Custom', formDataCollector: (hiddenFieldNames) => { // create form Data object from session and return it // we probably don't need to use hiddenFieldNames in your use case return formData; }, afterSubmit: (formData, responseData) => { // open up a modal or iframe to display scheduling link // custom code implementation // calendar link can be found in responseData.calendarLink showCalendar(responseData.calendarLink); //... code for showing the calendar link... // after showing the calendar link, we'll need to submit the form data with hidden field values(leandata set hidden values with your own hidden field values if any) to Marketo API // please use responseData.formInput object which includes some hidden fields we want to send ti Marketo //... code for submitting data(responseData.formInput) to marketo... //console.log(responseData.formInput); marketoInput.LD_BookIt_Log_ID__c = responseData.formInput.LD_BookIt_Log_ID__c; sendRequest(marketoInput,v,true);//redirect TODO }, onError: errorHandler, }; try { LDBookIt.submit(options); } catch (error) { sendRequest(marketoInput,v,false); } };/** * * checks if its a free demo form or a contact us form * */function isFreeDemoOrContactus(){ return true } function deactivateSubmitBtn(){ $(".mktoButton").prop('disabled', true); $('#sbmtSpinner').removeClass('d-none'); $('#sbmtSpinner').removeClass('hidden');}function checkInputsBeforeSub(){ let input ={}; $("form#mktoForm :input").each(function(){ if($(this).val()==''){ //if null don't add to the list }else if($(this).attr("id") == 'FirstName' || $(this).attr("id") == 'LastName' || $(this).attr("id") == 'Company' || $(this).attr("id") == 'Email' || $(this).attr("id") == 'Phone' ){ input[$(this).attr("id").charAt(0).toLowerCase()+$(this).attr("id").slice(1)] = $(this).val(); }else if($(this).attr("id") == 'agreestermsconditions' || $(this).attr("id") == 'Customized_demonstration__c' || $(this).attr("id") == 'Competitive_scenario__c' || $(this).attr("id") == 'RFP_support__c' || $(this).attr("id") == 'Complex_onboarding__c' ){ input[$(this).attr("id")] = $(this).val(); }else if($(this).attr("type") == 'checkbox'){ input[$(this).attr("id")] = input[$(this).is(':checked')]; }else{ if($(this).val()){ input[$(this).attr("id")] = $(this).val(); } } }); return input;}function sendRequest(input,v, bookitFlag){ //if bookitFlag is not null then dont redirect and add the redirect when you close the popup $.ajax({ url: window.location.origin+'/marketo/submitForm', cache: false, type: 'POST', data: { input: input, form_id: 84, _token: "EGqBligwpLwbCtNy6GG7iGID0sfwfFqu1meStIpf" }, success: function (response) { $(".mktoButton").prop('disabled', false); $('#sbmtSpinner').addClass('d-none'); const parsed_data = JSON.parse(response); console.log(response); if (parsed_data.success&&v==true) { if (isSanctioned($('#countryiso').val())) { console.log('inside issanctioned'); if(bookitFlag===true){ //set the closing button to redirect bookitRedirect = redirect; //$("#closeBookit"). }else{ window.location.href = redirect; } } else { if(bookitFlag===true){ //set the closing button to redirect bookitRedirect = redirectTwo; }else{ window.location.href = redirectTwo; } }; } } });}/**** form submission***/function submitForm(v){ /* case false send POST with ajax and turn on spinner and off when ok case true send request to BookItAPIRouting with two objects, one for bookit the other the typical marketo. turn off spinner if clicked on close inside iframe or if finished routing. */ let fInput={}; switch(isFreeDemoOrContactus()) { case true: if($("#Email").val().includes('@gmail')){ $('#ValidMsgEmail').addClass('d-flex'); $('#ValidMsgEmail').removeClass('d-none'); return; }else{ var result = isBizMail.isValid($("#Email").val()); if(!result){ $('#ValidMsgEmail').addClass('d-flex'); $('#ValidMsgEmail').removeClass('d-none'); return; }else{ $('#ValidMsgEmail').addClass('d-none'); $('#ValidMsgEmail').removeClass('d-flex'); } } //activate the spinner deactivateSubmitBtn(); setRedirects(); fInput=checkInputsBeforeSub(); //TODO replace with the actual object.. let t = {}; t.mailingCountry=fInput.mailingCountry; t.mailingCity=fInput.mailingCity; t.mailingState=fInput.mailingState; t.mkto2__Inferred_Country__c=fInput.inferredCountry; t.name=fInput.firstName; t.mailingPostalCode=fInput.postalCode; t.country=fInput.country2; t.city=fInput.city; t.state=fInput.state; t.mkto71_Inferred_Country__c=fInput.inferredCountry; t.industry_2__c=fInput.Industry_2__c; t.phone=fInput.phone; t.email=fInput.email;//issues t.lastName=fInput.lastName; t.firstName=fInput.firstName; t.company=fInput.company; t.postalCode=fInput.postalCode; //BookItAPIRouting(t,fInput,v);//ACTIVATE THIS WHEN LEADATA LIVE sendRequest(fInput,v,false);//DEACTIVATE THIS WHEN LEADATA LIVE break; case false: //activate the spinner deactivateSubmitBtn(); setRedirects(); fInput=checkInputsBeforeSub(); sendRequest(fInput,v,false); break; }}/** * handle the envent on the submit*/// Bind to the submit event of our form id $("#mktoForm").submit(function(event){ // Prevent default posting of form event.preventDefault(); checkForBlockRestrictions();});

You might also like

Latest Posts

Article information

Author: Tish Haag

Last Updated: 10/14/2022

Views: 6619

Rating: 4.7 / 5 (47 voted)

Reviews: 86% of readers found this page helpful

Author information

Name: Tish Haag

Birthday: 1999-11-18

Address: 30256 Tara Expressway, Kutchburgh, VT 92892-0078

Phone: +4215847628708

Job: Internal Consulting Engineer

Hobby: Roller skating, Roller skating, Kayaking, Flying, Graffiti, Ghost hunting, scrapbook

Introduction: My name is Tish Haag, I am a excited, delightful, curious, beautiful, agreeable, enchanting, fancy person who loves writing and wants to share my knowledge and understanding with you.