fix indention
This commit is contained in:
		| @@ -1,22 +1,22 @@ | ||||
| import * as plugins from './smartanalytics.plugins' | ||||
|  | ||||
| export let event = (trackingIdArg: string, appNameArg: string, eventCategoryArg: string, eventActionArg, eventLabelArg: string = 'null') => { | ||||
|     let payload: string = 'v=1' + | ||||
|         `&tid=${trackingIdArg}` + // the tracking ID | ||||
|         '&cid=555' + | ||||
|         '&aip=1' + // anonymize the IP | ||||
|         '&t=event' + | ||||
|         `&ec=${eventCategoryArg}` + | ||||
|         `&ea=${eventActionArg}` + | ||||
|         `&el=${eventLabelArg}` + | ||||
|         '&ev=300' + | ||||
|         `&an=${eventLabelArg}` | ||||
|     send(payload) | ||||
|   let payload: string = 'v=1' + | ||||
|     `&tid=${trackingIdArg}` + // the tracking ID | ||||
|     '&cid=555' + | ||||
|     '&aip=1' + // anonymize the IP | ||||
|     '&t=event' + | ||||
|     `&ec=${eventCategoryArg}` + | ||||
|     `&ea=${eventActionArg}` + | ||||
|     `&el=${eventLabelArg}` + | ||||
|     '&ev=300' + | ||||
|     `&an=${eventLabelArg}` | ||||
|   send(payload) | ||||
| } | ||||
|  | ||||
|  | ||||
| let send = async (requestBodyArg: string) => { | ||||
|     await plugins.smartrequest.post('https://www.google-analytics.com/collect', { | ||||
|         requestBody: requestBodyArg | ||||
|     }) | ||||
|   await plugins.smartrequest.post('https://www.google-analytics.com/collect', { | ||||
|     requestBody: requestBodyArg | ||||
|   }) | ||||
| } | ||||
		Reference in New Issue
	
	Block a user