Update sharpspring service
This commit is contained in:
parent
3c6d75f4b4
commit
5fa27e1b5c
|
|
@ -42,16 +42,18 @@ tarteaucitron.services.sharpspring = {
|
|||
"js": function () {
|
||||
"use strict";
|
||||
|
||||
if (tarteaucitron.user.sharpspringAccount === undefined || tarteaucitron.user.sharpspringForm === undefined) {
|
||||
if (tarteaucitron.user.ssId === undefined || tarteaucitron.user.ssAccount === undefined) {
|
||||
return;
|
||||
}
|
||||
|
||||
window.ss_form = {'account': tarteaucitron.user.sharpspringAccount, 'formID': tarteaucitron.user.sharpspringForm};
|
||||
window.ss_form.width = '100%';
|
||||
window.ss_form.height = '1000';
|
||||
window.ss_form.domain = tarteaucitron.user.sharpspringUrl;
|
||||
window._ss = window._ss || [];
|
||||
window._ss.push(['_setDomain', 'https://' + tarteaucitron.user.ssId + '.marketingautomation.services/net']);
|
||||
window._ss.push(['_setAccount', tarteaucitron.user.ssAccount]);
|
||||
window._ss.push(['_trackPageView']);
|
||||
|
||||
tarteaucitron.addScript('https://' + tarteaucitron.user.sharpspringUrl + '/client/form.js?ver=2.0.1');
|
||||
window._pa = window._pa || {};
|
||||
|
||||
tarteaucitron.addScript('https://' + tarteaucitron.user.ssId + '.marketingautomation.services/client/ss.js');
|
||||
}
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue