@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.cjs CHANGED
@@ -170,6 +170,9 @@ function useUser() {
170
170
  },
171
171
  setMarketingConsent(consent) {
172
172
  variableStore.set("user.marketingConsent", consent);
173
+ if (consent) {
174
+ tracker.track("marketing.consent_given");
175
+ }
173
176
  },
174
177
  identify(email) {
175
178
  tracker.identify(email);