|
1844 | 1844 | * @return string The user fingerprint
|
1845 | 1845 | */
|
1846 | 1846 | apiMethods.getUserFingerprint = function () {
|
1847 |
| - helpers.warn('User Fingerprinting is no longer supported. This function will be removed in a future release.'); |
| 1847 | + helpers.warn(userFingerprintingWarning); |
1848 | 1848 | return 0;
|
1849 | 1849 | };
|
1850 | 1850 |
|
|
1854 | 1854 | * @param int|string appId
|
1855 | 1855 | */
|
1856 | 1856 | apiMethods.setAppId = function (appId) {
|
1857 |
| - helpers.warn('setAppId is deprecated. Instead add an "appId" field to the argmap argument of newTracker.'); |
| 1857 | + helpers.warn('setAppId' + argmapDeprecationWarning + 'appId'); |
1858 | 1858 | core.setAppId(appId);
|
1859 | 1859 | };
|
1860 | 1860 |
|
|
1912 | 1912 | * @param string cookieNamePrefix
|
1913 | 1913 | */
|
1914 | 1914 | apiMethods.setCookieNamePrefix = function (cookieNamePrefix) {
|
1915 |
| - helpers.warn('setCookieNamePrefix is deprecated. Instead add a "cookieName" field to the argmap argument of newTracker.'); |
| 1915 | + helpers.warn('setCookieNamePrefix' + argmapDeprecationWarning + 'cookieName'); |
1916 | 1916 | configCookieNamePrefix = cookieNamePrefix;
|
1917 | 1917 | };
|
1918 | 1918 |
|
|
1922 | 1922 | * @param string domain
|
1923 | 1923 | */
|
1924 | 1924 | apiMethods.setCookieDomain = function (domain) {
|
1925 |
| - helpers.warn('setCookieDomain is deprecated. Instead add a "cookieDomain" field to the argmap argument of newTracker.'); |
| 1925 | + helpers.warn('setCookieDomain' + argmapDeprecationWarning + 'cookieDomain'); |
1926 | 1926 | configCookieDomain = helpers.fixupDomain(domain);
|
1927 | 1927 | updateDomainHash();
|
1928 | 1928 | };
|
|
1952 | 1952 | * @param int timeout
|
1953 | 1953 | */
|
1954 | 1954 | apiMethods.setSessionCookieTimeout = function (timeout) {
|
1955 |
| - helpers.warn('setSessionCookieTimeout is deprecated. Instead add a "sessionCookieTimeout" field to the argmap argument of newTracker.') |
| 1955 | + helpers.warn('setSessionCookieTimeout' + argmapDeprecationWarning + 'sessionCookieTimeout'); |
1956 | 1956 | configSessionCookieTimeout = timeout;
|
1957 | 1957 | };
|
1958 | 1958 |
|
1959 | 1959 | /**
|
1960 | 1960 | * @param number seed The seed used for MurmurHash3
|
1961 | 1961 | */
|
1962 | 1962 | apiMethods.setUserFingerprintSeed = function() {
|
1963 |
| - helpers.warn('User Fingerprinting is no longer supported. This function will be removed in a future release.'); |
| 1963 | + helpers.warn(userFingerprintingWarning); |
1964 | 1964 | };
|
1965 | 1965 |
|
1966 | 1966 | /**
|
1967 | 1967 | * Enable/disable user fingerprinting. User fingerprinting is enabled by default.
|
1968 | 1968 | */
|
1969 | 1969 | apiMethods.enableUserFingerprint = function() {
|
1970 |
| - helpers.warn('User Fingerprinting is no longer supported. This function will be removed in a future release.'); |
| 1970 | + helpers.warn(userFingerprintingWarning); |
1971 | 1971 | };
|
1972 | 1972 |
|
1973 | 1973 | /**
|
|
1978 | 1978 | * @param bool enable If true and Do Not Track feature enabled, don't track.
|
1979 | 1979 | */
|
1980 | 1980 | apiMethods.respectDoNotTrack = function (enable) {
|
1981 |
| - helpers.warn('This usage of respectDoNotTrack is deprecated. Instead add a "respectDoNotTrack" field to the argmap argument of newTracker.'); |
| 1981 | + helpers.warn('respectDoNotTrack' + argmapDeprecationWarning + 'respectDoNotTrack'); |
1982 | 1982 | var dnt = navigatorAlias.doNotTrack || navigatorAlias.msDoNotTrack;
|
1983 | 1983 |
|
1984 | 1984 | configDoNotTrack = enable && (dnt === 'yes' || dnt === '1');
|
|
2205 | 2205 | * @param string platform Overrides the default tracking platform
|
2206 | 2206 | */
|
2207 | 2207 | apiMethods.setPlatform = function(platform) {
|
2208 |
| - helpers.warn('setPlatform is deprecated. Instead add a "platform" field to the argmap argument of newTracker.'); |
| 2208 | + helpers.warn('setPlatform' + argmapDeprecationWarning + 'platform'); |
2209 | 2209 | core.setPlatform(platform);
|
2210 | 2210 | };
|
2211 | 2211 |
|
|
2216 | 2216 | * @param bool enabled A boolean value indicating if the Base64 encoding for self-describing events should be enabled or not
|
2217 | 2217 | */
|
2218 | 2218 | apiMethods.encodeBase64 = function (enabled) {
|
2219 |
| - helpers.warn('This usage of encodeBase64 is deprecated. Instead add an "encodeBase64" field to the argmap argument of newTracker.'); |
| 2219 | + helpers.warn('encodeBase64' + argmapDeprecationWarning + 'encodeBase64'); |
2220 | 2220 | core.setBase64Encoding(enabled);
|
2221 | 2221 | };
|
2222 | 2222 |
|
|
0 commit comments