track().socialInteraction
The track().socialInteraction() method records likes, shares and comments on social media on your app.
Syntax
TrackHelper.track()
.socialInteraction("interaction", "network")
.with(getTracker());
TrackHelper.track()
.socialInteraction("interaction", "network")
.with(tracker)
Parameters
interaction (string, required)
The interaction type. Example: like, share, comment.
network (string, required)
The social media for which the interaction happened. Example: Facebook, Instagram, YouTube.
Examples
To track a Facebook like on your app:
TrackHelper.track()
.socialInteraction("like", "Facebook")
.with(getTracker());
TrackHelper.track()
.socialInteraction("like", "Facebook")
.with(tracker)
Updated 6 days ago