Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function dataCollection() {
- if ($) {
- clearInterval(checkJQuery);
- $(document).on('change', 'input[data-tilda-rule="phone"]', function() {
- carrotquest.identify([{op: 'update_or_create', key: '$phone', value: $(this).val()}]);
- });
- $(document).on('change', 'input[data-tilda-rule="email"]', function() {
- carrotquest.identify([{op: 'update_or_create', key: '$email', value: $(this).val()}]);
- });
- $(document).on('change', 'input[data-tilda-rule="name"]', function() {
- carrotquest.identify([{op: 'update_or_create', key: '$name', value: $(this).val()}]);
- });
- window.carrotEventFunc = function ($form) {
- carrotquest.track('Название события при отправке формы')
- };
- $('form#form104047819').each(function () {
- $(this).data('success-callback', 'window.carrotEventFunc');
- });
- };
- };
- var checkJQuery = setInterval(dataCollection, 500);
- setTimeout(function() {
- clearInterval(checkJQuery);
- }, 5000);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement