console.js:35 TypeError: Cannot read property ‘trackSignup’ of undefined
at button2_click (k9ffr.js:5)
at Object.e. (userCodeHandler.js:78)
at Object.t.onMessage (postMessage.es6:262)
at InternalAPIs.value (internalAPIs.es6:141)
at delegateMessageToSDK (worker.js:180)
at worker.js:172
at Object.handle (queueUntilAllPrevIsProcessed.js:33)
at self.onmessage (worker.js:66)
@matthew26 You should probably contact their support to see if they have a specific Wix integration procedure. If they don’t or if you already tried this, then you will need a backend module using their tracking API .
The recommended way to do this is to grab the _fprom_track cookie value(which keeps the tracking id and referral identification) on your server and send it along with the sign-up data through the tid parameter.
Alternative : In some special cases, you can refer sign ups directly to a promoter, by passing the referral id through ref_id parameter. Be careful using this because the referral id can be modified by the promoter by default, however you can disable that from the campaign configuration page.
@matthew26 I’m honestly not sure about the first one, it would take some testing and more reading through their docs. The second sounds very straightforward, so almost certainly yes.