marktag 2.0.4
marktag: ^2.0.4 copied to clipboard
Flutter SDK for Marktag
2.0.4 #
- Push-notification attribution payload now nests campaign data under
mtc(mtc_campaign,mtc_content,mtc_node,mtc_channel) instead ofutm, matching the web SDK's attribution structure. msidis recalculated after 30 minutes of inactivity, the marktag init call is now idempotent, and attribution is passed with all events after click.
2.0.3 #
- Add push notification open tracking via
PushNotificationTrackingService. - Widen Firebase dependency ranges for better compatibility with client apps.
2.0.2 #
- Remove
dependency_overridesso pub publish validation passes. - Align release metadata for pub.dev (CHANGELOG, version).
2.0.1 #
- Document
MarktagEventsconstants. - Upgrade
very_good_analysisto ^10.2.0 and apply related lint fixes. - Add
@visibleForTestingipServicegetter onPayloadServicefor tests. - Example app: use path dependency for local
marktag, upgradeflutter_lintsto ^6.0.0.
2.0.0 #
- Event names must be PascalCase (for example
AddToCart,PageView). Snake_case and camelCase names throwArgumentError. - Add
MarktagEventsconstants for standard event names. - Built-in helpers (
logLogin,logSearch,logSignup,logPageView) use PascalCase event names aligned with the web SDK and server.
1.0.1 #
Marktag.initnow accepts an optionalserverIdfor server-side (mobile) mode. When provided, the SDK sendsisServer: trueandserverIdin the payload so the server can resolve the tenant byserverSide.serverIdinstead of relying on host-only routing.- Server-side payloads no longer send
isClient: false/isServer: truewhen noserverIdis set; the keys are omitted entirely, letting the server fall through to its hostname lookup.
1.0.0 #
- Add Flutter web (client-side) support: SDK runs in browsers via
package:httpinstead ofdart:io. Marktag.initnow accepts an optionaltagId; when provided, the SDK uses client-side mode (isClient: true,clientIdin payload,?tagId=in URL).- Server-side mode (no
tagId) preserves the original payload shape withx-cf-ip/x-cf-locfields. - Upgrade
device_info_plusto^13.1.0; replacePlatform.isXwithdefaultTargetPlatformfor web compatibility. - Raise minimum constraints to Dart
^3.10.0and Flutter>=3.38.0.
0.1.2+3 #
- Rename symbols.
0.1.1+2 #
- Add support for collecting extra identifiers.
0.1.0+1 #
- Initial version.