sendOutlink
The sendOutlink() method tells Piwik PRO that the user opened another website or app from yours, for example by tapping a link. Typical use is tracking traffic that leaves your app to somewhere else. Outlink data shows up in Analytics outlink reporting.
Syntax
PiwikTracker.sharedInstance()?.sendOutlink(url: "url")[[PiwikTracker sharedInstance] sendOutlink:@"url"];Parameters
- url
string, required- The outlink URL. Example:https://example.com.
Examples
To track an outlink to https://example.com:
PiwikTracker.sharedInstance()?.sendOutlink(url: "https://example.com")[[PiwikTracker sharedInstance] sendOutlink:@"https://example.com"];Notes
- Call this when you know the user is going to the other address (for example right after they tap a link in your UI). The SDK does not detect taps or decide whether a URL is external for you.
- You should pass the real destination URL you want to measure. The SDK does not check that it belongs to another domain.