addFileExtension
Tip. Working with the JavaScript API requires knowledge of HTML and JavaScript. If you don't know these languages, contact your website developer or webmaster.
Tracks downloads of files with the specified extensions.
ym(XXXXXX, 'addFileExtension', extensions);
Parameter | Default value | Type | Description |
---|---|---|---|
extensions * | — | String | String[] | The file name extension set as a string, or a list of extensions specified as an array of strings |
Parameter | Default value | Type | Description |
---|---|---|---|
extensions * | — | String | String[] | The file name extension set as a string, or a list of extensions specified as an array of strings |
* Required parameter.
By default, the following extensions are supported:
|
|
|
|
|
|
|
|
Example
ym(XXXXXX, 'init', {});
ym(XXXXXX, 'addFileExtension' 'lzh'); // Add one extension
ym(XXXXXX, 'addFileExtension' ['lha', 'iff', 'ico']); // Add multiple extensions