mixpanel / mixpanel-js

Official Mixpanel JavaScript Client Library
https://mixpanel.com/help/reference/javascript
Other
862 stars 308 forks source link

Add marketing parameters to event when track_marketing set #372

Closed chiyc closed 1 year ago

chiyc commented 1 year ago

Description

We're interested in tracking some additional marketing data with a new track_marketing option. Additionally, events should have the marketing parameters appended if and only if they're present in the current URL. This means no persistence of any kind, even for the current page load or instance of the SDK.