So currently I am trying to set up a Capterra to ensure so we can count how many leadds we generate when landing on a specific page.
Currently I just have it so that you just load up a new page that you can’t get anywhere else (unless you type in the specific address)
Is there a way to implement capterra code onto a page in wix?
Is there a way to make that page automatically redirect upon submission?
And is there a way to prevent users from reaching this page?
this is the code currently that I was thinking might be the best way to redirect:
import wixLocation from ‘wix-location’;
import wixWindow from ‘wix-window’;
$w.onReady( function () {
//TODO: write your page related code here…
wixLocation.to(https://www.homepage.com/
);
});
Any help would be fully appreciated.