mirror of
				https://github.com/zulip/zulip.git
				synced 2025-11-04 05:53:43 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			13 lines
		
	
	
		
			316 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
			
		
		
	
	
			13 lines
		
	
	
		
			316 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
import {gtag, install} from "ga-gtag";
 | 
						|
 | 
						|
import {page_params} from "../page_params";
 | 
						|
 | 
						|
export let config;
 | 
						|
 | 
						|
if (page_params.google_analytics_id !== undefined) {
 | 
						|
    install(page_params.google_analytics_id);
 | 
						|
    config = (info) => gtag("config", page_params.google_analytics_id, info);
 | 
						|
} else {
 | 
						|
    config = () => {};
 | 
						|
}
 |