logCampaignDetails method

Future<void> logCampaignDetails({
  1. required String source,
  2. required String medium,
  3. required String campaign,
  4. String? term,
  5. String? content,
  6. String? aclid,
  7. String? cp1,
  8. Map<String, Object>? parameters,
  9. AnalyticsCallOptions? callOptions,
})
inherited

Logs the standard campaign_details event.

Log this event to supply the referral details of a re-engagement campaign.

See: https://firebase.google.com/docs/reference/android/com/google/firebase/analytics/FirebaseAnalytics.Event.html#CAMPAIGN_DETAILS

Implementation

Future<void> logCampaignDetails({
  required String source,
  required String medium,
  required String campaign,
  String? term,
  String? content,
  String? aclid,
  String? cp1,
  Map<String, Object>? parameters,
  AnalyticsCallOptions? callOptions,
}) {
  _assertParameterTypesAreCorrect(parameters);

  return _delegate.logEvent(
    name: 'campaign_details',
    parameters: filterOutNulls(<String, Object?>{
      _SOURCE: source,
      _MEDIUM: medium,
      _CAMPAIGN: campaign,
      _TERM: term,
      _CONTENT: content,
      _ACLID: aclid,
      _CP1: cp1,
      if (parameters != null) ...parameters,
    }),
    callOptions: callOptions,
  );
}