@@ -2973,7 +2973,7 @@ JavaScript Tracking Client configuration
2973
2973
2974
2974
Returns list of internal domains (set with :func: `setDomains ` and used in :ref: `outlink tracking<jtc-api-download-and-outlink> `).
2975
2975
2976
- :return: List of internal domains (e.g. ``[".example.com", ".example.co.uk"] ``
2976
+ :return: List of internal domains (e.g. ``[".example.com", ".example.co.uk"] ``)
2977
2977
:rtype: string[]
2978
2978
2979
2979
Example of usage:
@@ -2994,6 +2994,55 @@ JavaScript Tracking Client configuration
2994
2994
2995
2995
console .log (jstc .getDomains ());
2996
2996
2997
+ .. function :: setDeepLinkPrefixes(prefixes)
2998
+
2999
+ Allows to define a list of mobile app prefixes (URIs). Used in :ref: `outlink tracking<jtc-api-download-and-outlink> `
3000
+ for determining whether a link is an outlink and in :ref: `cross domain linking<jtc-api-cross-domain-linking> `
3001
+ for determining which links should have visitor ID parameter injected.
3002
+
3003
+ :param Array<string> prefixes: **Required ** A list of app prefixes.
3004
+
3005
+ Example of usage:
3006
+
3007
+ .. tabs ::
3008
+
3009
+ .. group-tab :: Command queue
3010
+
3011
+ .. code-block :: javascript
3012
+
3013
+ _paq .push ([" setDeepLinkPrefixes" , [" piwik://" , " myApp://" ]]);
3014
+
3015
+ .. group-tab :: JavaScript Tracking Client object
3016
+
3017
+ .. code-block :: javascript
3018
+
3019
+ jstc .setDeepLinkPrefixes ([" piwik://" , " myApp://" ]);
3020
+
3021
+ .. function :: getDeepLinkPrefixes()
3022
+
3023
+ Returns list of prefixes (URIs) (set with :func: `setDeepLinkPrefixes ` and used in :ref: `outlink tracking<jtc-api-download-and-outlink> `).
3024
+
3025
+ :return: List of prefixes (e.g. ``["piwik://", "myApp://"] ``)
3026
+ :rtype: string[]
3027
+
3028
+ Example of usage:
3029
+
3030
+ .. tabs ::
3031
+
3032
+ .. group-tab :: Command queue
3033
+
3034
+ .. code-block :: javascript
3035
+
3036
+ _paq .push ([function () {
3037
+ console .log (this .getDeepLinkPrefixes ());
3038
+ }]);
3039
+
3040
+ .. group-tab :: JavaScript Tracking Client object
3041
+
3042
+ .. code-block :: javascript
3043
+
3044
+ console .log (jstc .getDeepLinkPrefixes ());
3045
+
2997
3046
.. function :: setCustomUrl(customUrl)
2998
3047
2999
3048
The function that will override tracked page URL. Tracker will use current page URL if custom URL was not set.
0 commit comments