firebase - Flutter android app get google ads campaign details progamatically - Stack Overflow

My flutter android application is available in playstore, and our marketing team is promoting a app usi

My flutter android application is available in playstore, and our marketing team is promoting a app using Google ads app install and app engagement ads, i want to get campaign details from ads.

/?utm_source=google&utm_medium=email&utm_campaign=product&utm_id=123456&utm_term=upi&utm_content=data

I provide this deeplink link URL in the ads app link section.

I want to capture UTM data from Android intent without using any third-party SDK.

When a user opens an app using a deep link, able to get deep link data from intent. The same link is used in Google engagement ads, but now, when a user opens an app from Google ads, not able to get deep link data from intent.

My flutter android application is available in playstore, and our marketing team is promoting a app using Google ads app install and app engagement ads, i want to get campaign details from ads.

https://sss.example.in/?utm_source=google&utm_medium=email&utm_campaign=product&utm_id=123456&utm_term=upi&utm_content=data

I provide this deeplink link URL in the ads app link section.

I want to capture UTM data from Android intent without using any third-party SDK.

When a user opens an app using a deep link, able to get deep link data from intent. The same link is used in Google engagement ads, but now, when a user opens an app from Google ads, not able to get deep link data from intent.

Share edited Mar 5 at 16:01 Vijay asked Mar 4 at 10:27 VijayVijay 12 bronze badges
Add a comment  | 

1 Answer 1

Reset to default 0
String url = 'https://sss.example.in/?utm_source=google&utm_medium=email&utm_campaign=product&utm_id=123456&utm_term=upi&utm_content=data';

  Uri uri = Uri.parse(url);

  String? utmSource = uri.queryParameters['utm_source'];
  String? utmMedium = uri.queryParameters['utm_medium'];
  String? utmCampaign = uri.queryParameters['utm_campaign'];
  String? utmId = uri.queryParameters['utm_id'];
  String? utmTerm = uri.queryParameters['utm_term'];
  String? utmContent = uri.queryParameters['utm_content'];

发布者:admin,转转请注明出处:http://www.yc00.com/questions/1745050666a4608366.html

相关推荐

发表回复

评论列表(0条)

  • 暂无评论

联系我们

400-800-8888

在线咨询: QQ交谈

邮件:admin@example.com

工作时间:周一至周五,9:30-18:30,节假日休息

关注微信