diff --git a/tarteaucitron.services.js b/tarteaucitron.services.js index 9afcf70..6174d79 100644 --- a/tarteaucitron.services.js +++ b/tarteaucitron.services.js @@ -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'); } };