Created
November 9, 2015 06:47
-
-
Save DmitryDmitrienko/f14e2abf164ab7a34c51 to your computer and use it in GitHub Desktop.
This file contains 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
var options = { | |
'name_cookie': 'ivphone', | |
'default': ['+7 (8442) 33-27-45',"+7 (927) 510-43-50"], // телефон по-умолчанию | |
'selector': ['div.phones', '#iv-contacts'], // селектор для телефона по-умолчанию | |
// параметры | |
'parameters': { | |
'google': { // название для набора get параметров и телефонов | |
'get': { | |
'utm_source': 'GoogleAdwords' // get параметры (ключ и значение) | |
}, | |
'phone': ['+7 (8442) 50-32-35', '+7 (927) 510-32-35'], // список номеров телефонов | |
'selector': ['div.phones', '#iv-contacts'] //селектор для изменения телефона | |
}, | |
'yandex': { | |
'get': { | |
'utm_source': 'YandexDirect' | |
}, | |
'phone': ['+7 (8442) 50-32-35', '+7 (927) 510-32-35'], | |
'selector': ['div.phones', '#iv-contacts'] | |
} | |
} | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment