Skip to main content
All CollectionsList BuildingOpt-in at Checkout
Opt-In at Checkout for Custom Apps
Opt-In at Checkout for Custom Apps
Updated over 11 months ago
  1. Ensure the Voyage Global Tag is installed on the page

  2. A checkbox needs to be added with the following Marketing Acceptance verbiage:
    ​

    1. "I agree to receive emails or SMS messages from [your name]. By joining via text messages, you agree to receive recurring marketing messages from [your name] at the mobile number used to send the join text message. Msg & data rates may apply. Msg frequency is recurring. Consent is not a condition of purchase. STOP to unsubscribe, HELP for help. View Terms & Privacy"

  3. Once the checkbox is checked and the customer submits the checkout, you need to pass Voyage the phone number like in the following:
    ​

    if (acceptsMarketing) {  const marketingPhone = '+15555555555';  if (marketingPhone && marketingPhone.length > 9) {    voyage.track('MarketingPhone', { marketingPhone });  } else {    // Notify of invalid phone number   }} else {  // Notify of missing "Marketing Acceptance" checkbox}

NOTE: in the code snippet above, please be sure to replace '+15555555555' with the phone number of the customer opting in to subscribe.

Voyage

Create an Opt-in at Checkout campaign

  1. In your Voyage dashboard click List Building in the left navigation bar, then click the + NEW LIST BUILDING CAMPAIGN button in the upper right

  2. Select Opt-in at Checkout and click NEXT
    ​

  3. Enter Welcome Message text, Link URL and click SAVE OPTIN
    ​

Did this answer your question?