Migration from older SDK versions
This guide will show you how to migrate from older versions.
Last updated
This guide will show you how to migrate from older versions.
Last updated
To migrate from 1.x to 2.x versions please follow this guide:
v1.x
v2.x
Initialization is good for the entire request lifecycle so doing it at the root of your app is probably best.
For usage in any other modules, you just import Fuul and use it like this:
The most important upgrade relies on the pageview
event. In SDK v1.x, pageview
events were sent automatically when instancing the object. That led to some confusion as it was not very explicit.
Now on v2, pageview
events have to be sent manually when the page is rendered. Please check how to send this event in .
On v1, the method was called sendConnectWalletEvent
, now it was changed to sendConnectWallet.
There is only a minor breaking change when upgrading the Fuul SDK to the 3.x versions:
The generateTrackingLink
method now returns a Promise<string>
instead of a string
. It now also accounts for affiliate codes created by the affiliateAddress
argument.
v1.x/v2.x
v3.x
For more information on sending this event, check out .
For more information on getting the affiliate link, check out