You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
But without being able to send arbitrary query params via the lib, clients can't do that. Since it should be attached to every request anyway, maybe the best way to do this is to make the utm_source value part of the lib config, and everything just gets attached automatically. i.e.,
@aaronklaassen If the user hasn't given their utmSource, do you want the links to either fall to a default and generate something like: ?utm_source=nottracked&utm_medium=referral&utm_campaign=api-credit
Or skip adding UTM parameters entirely? Wondering if some data is better than none.
@lukechesser @HughbertD
These days the API terms have this requirement: https://community.unsplash.com/developersblog/unsplash-api-terms-explained#block-yui_3_17_2_1_1490972762425_202608
But without being able to send arbitrary query params via the lib, clients can't do that. Since it should be attached to every request anyway, maybe the best way to do this is to make the
utm_source
value part of the lib config, and everything just gets attached automatically. i.e.,or whatever.
For backwards compatibility, I'd log a warning if that value is missing from the config, but not fail outright.
The text was updated successfully, but these errors were encountered: