From c1113dc257f4ef10cc0af198c7a83722b8f46642 Mon Sep 17 00:00:00 2001 From: Phil Kunz Date: Fri, 24 Feb 2017 03:06:51 +0100 Subject: [PATCH] fix indention --- ts/smartanalytics.send.ts | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/ts/smartanalytics.send.ts b/ts/smartanalytics.send.ts index 06a2973..e5740d5 100755 --- a/ts/smartanalytics.send.ts +++ b/ts/smartanalytics.send.ts @@ -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 + }) } \ No newline at end of file