@appfunnel-dev/sdk 0.14.0 → 0.15.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -171,6 +171,9 @@ function useUser() {
171
171
  },
172
172
  setMarketingConsent(consent) {
173
173
  variableStore.set("user.marketingConsent", consent);
174
+ if (consent) {
175
+ tracker.track("marketing.consent_given");
176
+ }
174
177
  },
175
178
  identify(email) {
176
179
  tracker.identify(email);