Remove Google Analytics from installer

This commit is contained in:
Marcus Llewellyn 2019-12-22 14:23:28 -06:00
parent acfda3ba49
commit 9b542736f7

View file

@ -454,27 +454,27 @@ Var GAClientID
!macroend !macroend
!macro GoogleAnalytics Category Action Label Value !macro GoogleAnalytics Category Action Label Value
${If} "@GA_TRACKING_ID@" != "" ; ${If} "@GA_TRACKING_ID@" != ""
Push $0 ; Push $0
Push $1 ; Push $1
StrCpy $0 "https://google-analytics.com/collect?v=1&tid=@GA_TRACKING_ID@" ; StrCpy $0 "https://google-analytics.com/collect?v=1&tid=@GA_TRACKING_ID@"
StrCpy $0 "$0&cid=$GAClientID&t=event&ec=${Category}&ea=${Action}" ; StrCpy $0 "$0&cid=$GAClientID&t=event&ec=${Category}&ea=${Action}"
${If} "${Label}" != "" ; ${If} "${Label}" != ""
StrCpy $0 "$0&el=${Label}" ; StrCpy $0 "$0&el=${Label}"
${EndIf} ; ${EndIf}
${If} "${Value}" != "" ; ${If} "${Value}" != ""
StrCpy $0 "$0&ev=${Value}" ; StrCpy $0 "$0&ev=${Value}"
${EndIf} ; ${EndIf}
GetTempFileName $1 ; GetTempFileName $1
inetc::get /SILENT $0 $1 /END ; inetc::get /SILENT $0 $1 /END
Delete $1 ; Delete $1
Pop $1 ; Pop $1
Pop $0 ; Pop $0
${EndIf} ; ${EndIf}
!macroend !macroend
;-------------------------------- ;--------------------------------