Option 1 - Google Tag Manager
It should be possible when using Google Tag Manager to check for the appearance of the confirmation message and trigger a conversion once that is seen. It has a few disadvantages:
- Con: First of all it require Google Tag Manager
- Con: It breaks when using translations (or you need to take ALL of those into account in Google Tag Manager)
- Con: Unable to add the
valueparameter (price of your subscription) - Pro: Tracking occurs right away
Option 2 - Add session data
Listening for the event Spark\Events\SubscriptionCreated would make it possible to flash data to the session and once the user clicks back to your application then if the conversion data is present in the session then fire a conversion event using JS.
- Pro: Pretty easy to setup and require little configuration
- Pro: Can add the
valueparameter - Con: If the user does NOT click back to your main application then the conversion will not occur
Option 3 - Use server side tracking
I have not yet gone into details with this, but read more here: https://stape.io/blog/server-side-conversion-tracking-in-google-ads-adwords