Skip to main content

Setting Up Login URLs

Want to customize your email or SMS with a Stay login link? Here's how!

Karin Brashears avatar
Written by Karin Brashears
Updated over 2 weeks ago

Stay passes a hashed one time link across the following supported platforms to allow customers to login without going through a 2FA flow! These can be used in any email or SMS that incites customers to take action.

Setting Up Klaviyo View Portal URLs

For Campaigns:

Feel free to use the following structure for the view portal URL:

https://[REPLACE WITH YOUR SHOP NAME].myshopify.com/apps/retextion#/login?action=view_portal&customerId={{ person.rtx_customer_hash }}


For Flows:

Feel free to use the following structure for the view portal URL:

https://[REPLACE WITH YOUR SHOP NAME].myshopify.com/apps/retextion#/login?action=view_portal&customerId={{ person.rtx_customer_hash }}&subscriptionId={{ event.retextionSubscriptionID }}

We also pass a one-time login link parameter with our events. You can add use the following structure to use that parameter:

https://[REPLACE WITH YOUR SHOP NAME].myshopify.com/apps/retextion/?token={{event.stay_token}}&subscriptionId={{ event.retextionSubscriptionID }}

Setting Up Postscript View Portal URLs

Using the one time login link parameter that is passed with Postscript events, the URL should be structured as follows:

https://[REPLACE WITH YOUR SHOP NAME].myshopify.com/apps/retextion/?token={{initial_event.get('Loginlink')}}

Setting Up Attentive View Portal URLs

Using the one time login link parameter that is passed with Attentive events, the URL should be structured as follows:

https://[REPLACE WITH YOUR SHOP NAME].myshopify.com/apps/retextion/?token={{triggerEvent.custom[‘Loginlink’]}}

Setting Up Native Stay Email View Portal URLs

Navigate to the element you wish to link from, and input the {{customer.login_link}} merge tag within the URL input. Select your target element as New or Same Tab.

Did this answer your question?