Flutter - Kampanya Parametrelerini Gönderme

Push payload’u yakaladıktan sonra utm parametrelerini alttaki formatta gönderebilirsiniz. Böylelikle push cirolarınız RMC paneline yansıyacaktır.

Future<void> sendCampaignParams() async { String pageName = '/om_evt.gif'; Map<String, String> parameters = { 'utm_campaign': 'utm_campaign', 'utm_source': 'utm_source', 'utm_medium': 'utm_medium', 'OM.exVisitorID':'exVisitorID', 'OM.sys.TokenID':'token', 'OM.sys.AppID':'appAlias' }; await relatedDigitalPlugin.customEvent(pageName, parameters); }

 

Örnek Payload;

{ userInfo: { altUrl: , url: , utm_source: pushcampaignsource, mediaUrl: , utm_medium: pushcampaignmedium, pushType: Text, aps:{ content-available: 0, alert:{ title: Flutter Push Title, body: Flutter Push Body }, badge: 0, sound: }, pushId: 74943d7a-4a20-4b2c-8087-0dd64b91515e, deepLink: , utm_campaign: pushcampaignname } }

Copyright 2020 Related Digital