sendSocial method

  1. @override
Future<void> sendSocial(
  1. String network,
  2. String action,
  3. String target
)
inherited

Sends a Social hit to Google Analytics.

network specifies the social network, for example Facebook or Google Plus. action specifies the social interaction action. For example on Google Plus when a user clicks the +1 button, the social action is 'plus'. target specifies the target of a social interaction. This value is typically a URL but can be any text.

Implementation

@override
Future<void> sendSocial(String network, String action, String target) {
  var args = <String, String>{'sn': network, 'sa': action, 'st': target};
  return _enqueuePayload('social', args);
}