How to do deeplinking/ link installs with custom parameters

If I wanted to do email marketing and get people special discounts or something, how would I approach this? Is it even possible to do a custom link for installation with custom parameters?

On a related note, can I deeplink into the app? Since the app is running in iframe is there any way to link to a certain page or something via a link?

If they haven’t installed the app yet, deep linking is likely not going to work, as I assume you’re using Shopify’s Managed Install flow, and it will likely just redirect to your app URL after installation.

However there are a few ways to approach giving discounts to merchants:

  1. App credits are a thing now, so you could give some out via the Partner Portal.
  2. If using a custom billing system, you could add a discount code textbox and create your own codes which work with the billing system.
  3. Another simpler version of this (which we’ve done before) is to build a VIP system, and add the store URLs you wish to discount to your own DB, with an assigned discount amount/duration, and have that apply when you create the charge.

Probably some more methods, but these are a few which came to mind.