Triggered email from WixStore purchases.

Hi,
I have published a triggered email and have my code but i am not sure where i should embed the code for the desired effect.
I want to email to be sent to the person who has made the purchase 12 days after their purchase. They become a contact so how do i do this?
I cant seem to find the right page for the code below…

import wixCRM from ‘wix-crm’;
//…
wixCRM.emailContact(‘SlingDueBack’, , {
variables: {
productname: ,
customername: ,
productimage:
}});

Many thanks.
Kirsty

The code must be placed on the page where your user input form is.

See the video and following pages for more info:

As for sending after a set number of days, then using an automation might be more easier for you: