This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| window.onload = function() { | |
| // Parse the URL | |
| function getParameterByName(name) { | |
| var name = name.replace(/[\[]/, "\\[").replace(/[\]]/, "\\]"); | |
| var regex = new RegExp("[\\?&]" + name + "=([^&#]*)"); | |
| var results = regex.exec(location.search); | |
| return results === null ? "" : decodeURIComponent(results[1].replace(/\+/g, " ")); | |
| } | |
| // Give the URL parameters variable names | |
| var source = getParameterByName('utm_source'); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <? | |
| //amo | |
| //ПРЕДОПРЕДЕЛЯЕМЫЕ ПЕРЕМЕННЫЕ | |
| $responsible_user_id = 7292136; //id ответственного по сделке, контакту, компании | |
| $lead_name = 'Заявка с сайта'; //Название добавляемой сделки | |
| $lead_status_id = '11331793'; //id этапа продаж, куда помещать сделку | |
| $contact_name = $cname; //Название добавляемого контакта | |
| $contact_phone = $cphone; //Телефон контакта |