gtag.js: add support for 'js' command (#37862)

This commit is contained in:
Nodarii
2019-08-23 22:47:45 -07:00
committed by Sheetal Nandi
parent 043ea4e706
commit 41cccf2010
2 changed files with 2 additions and 0 deletions
+1
View File
@@ -6,6 +6,7 @@ gtag('event', 'login', {
});
gtag('set', {currency: 'USD'});
gtag('js', new Date());
gtag('set', {
country: 'US',
currency: 'USD'
+1
View File
@@ -8,6 +8,7 @@ declare namespace Gtag {
interface Gtag {
(command: 'config', targetId: string, config?: ControlParams | EventParams | CustomParams): void;
(command: 'set', config: CustomParams): void;
(command: 'js', config: Date): void;
(command: 'event', eventName: EventNames | string, eventParams?: ControlParams | EventParams | CustomParams): void;
}