Skip to main content
Solved

Exit Trigger for a Cart drawer?

  • July 14, 2024
  • 1 reply
  • 26 views

Forum|alt.badge.img

I notice it is pretty straight forward for a cart page. 

Popup will be triggered when exiting page→ only url /cart.

But I have a drawer in my store, and much prefer it for conversions but want to up that by triggering a pop up upon exit of that cart drawer. Is there anyway to accomplish this?

Best answer by Maxbuzz

Hello @taleology Yes, You can use JavaScript to trigger the popup when the cart drawer is closed.

Here is a tutorial when a popup is triggered on button clicked. In you case it will be close/collapse button of drawer

https://help.klaviyo.com/hc/en-us/articles/4418052317339

View original
Did this topic or the replies in the thread help you find an answer to your question?

1 reply

Forum|alt.badge.img+31
  • Partner
  • 252 replies
  • Answer
  • July 15, 2024

Hello @taleology Yes, You can use JavaScript to trigger the popup when the cart drawer is closed.

Here is a tutorial when a popup is triggered on button clicked. In you case it will be close/collapse button of drawer

https://help.klaviyo.com/hc/en-us/articles/4418052317339