mirror of
https://github.com/lubosz/overte.git
synced 2025-08-08 03:08:00 +02:00
Change how analytics was disable
Rather than comment out the body od the GoogleAnalytics macro, it now has each invokation of the macro commented our.
This commit is contained in:
parent
f614f6f290
commit
12633e8ee0
1 changed files with 29 additions and 29 deletions
|
@ -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
|
||||||
|
|
||||||
;--------------------------------
|
;--------------------------------
|
||||||
|
@ -652,35 +652,35 @@ Var Express
|
||||||
|
|
||||||
Function OnUserAbort
|
Function OnUserAbort
|
||||||
!insertmacro LogStep "Installer" "Abort" "User Abort" ""
|
!insertmacro LogStep "Installer" "Abort" "User Abort" ""
|
||||||
!insertmacro GoogleAnalytics "Installer" "Abort" "User Abort" ""
|
; !insertmacro GoogleAnalytics "Installer" "Abort" "User Abort" ""
|
||||||
FunctionEnd
|
FunctionEnd
|
||||||
Function PageWelcomePre
|
Function PageWelcomePre
|
||||||
!insertmacro LogStep "Installer" "Welcome" "" ""
|
!insertmacro LogStep "Installer" "Welcome" "" ""
|
||||||
!insertmacro GoogleAnalytics "Installer" "Welcome" "" ""
|
; !insertmacro GoogleAnalytics "Installer" "Welcome" "" ""
|
||||||
; !insertmacro DownloadSlideshowImages
|
; !insertmacro DownloadSlideshowImages
|
||||||
FunctionEnd
|
FunctionEnd
|
||||||
Function PageLicensePre
|
Function PageLicensePre
|
||||||
!insertmacro LogStep "Installer" "License" "" ""
|
!insertmacro LogStep "Installer" "License" "" ""
|
||||||
!insertmacro GoogleAnalytics "Installer" "License" "" ""
|
; !insertmacro GoogleAnalytics "Installer" "License" "" ""
|
||||||
FunctionEnd
|
FunctionEnd
|
||||||
Function PageDirectoryPre
|
Function PageDirectoryPre
|
||||||
!insertmacro MaybeSkipPage
|
!insertmacro MaybeSkipPage
|
||||||
!insertmacro LogStep "Installer" "Directory" "" ""
|
!insertmacro LogStep "Installer" "Directory" "" ""
|
||||||
!insertmacro GoogleAnalytics "Installer" "Directory" "" ""
|
; !insertmacro GoogleAnalytics "Installer" "Directory" "" ""
|
||||||
FunctionEnd
|
FunctionEnd
|
||||||
Function PageStartMenuPre
|
Function PageStartMenuPre
|
||||||
!insertmacro MaybeSkipPage
|
!insertmacro MaybeSkipPage
|
||||||
!insertmacro LogStep "Installer" "StartMenu" "" ""
|
!insertmacro LogStep "Installer" "StartMenu" "" ""
|
||||||
!insertmacro GoogleAnalytics "Installer" "StartMenu" "" ""
|
; !insertmacro GoogleAnalytics "Installer" "StartMenu" "" ""
|
||||||
FunctionEnd
|
FunctionEnd
|
||||||
Function PageComponentsPre
|
Function PageComponentsPre
|
||||||
!insertmacro MaybeSkipPage
|
!insertmacro MaybeSkipPage
|
||||||
!insertmacro LogStep "Installer" "Components" "" ""
|
!insertmacro LogStep "Installer" "Components" "" ""
|
||||||
!insertmacro GoogleAnalytics "Installer" "Components" "" ""
|
; !insertmacro GoogleAnalytics "Installer" "Components" "" ""
|
||||||
FunctionEnd
|
FunctionEnd
|
||||||
Function PageInstallFilesPre
|
Function PageInstallFilesPre
|
||||||
!insertmacro LogStep "Installer" "Install" "" ""
|
!insertmacro LogStep "Installer" "Install" "" ""
|
||||||
!insertmacro GoogleAnalytics "Installer" "Install" "" ""
|
; !insertmacro GoogleAnalytics "Installer" "Install" "" ""
|
||||||
FunctionEnd
|
FunctionEnd
|
||||||
|
|
||||||
!macro SetInstallOption Checkbox OptionName Default
|
!macro SetInstallOption Checkbox OptionName Default
|
||||||
|
@ -702,7 +702,7 @@ FunctionEnd
|
||||||
|
|
||||||
Function InstallTypesPage
|
Function InstallTypesPage
|
||||||
!insertmacro LogStep "Installer" "Install Types" "" ""
|
!insertmacro LogStep "Installer" "Install Types" "" ""
|
||||||
!insertmacro GoogleAnalytics "Installer" "Install Types" "" ""
|
; !insertmacro GoogleAnalytics "Installer" "Install Types" "" ""
|
||||||
|
|
||||||
!insertmacro MUI_HEADER_TEXT "Choose Installation Type" "Express or Custom Install"
|
!insertmacro MUI_HEADER_TEXT "Choose Installation Type" "Express or Custom Install"
|
||||||
|
|
||||||
|
@ -813,7 +813,7 @@ Function PostInstallOptionsPage
|
||||||
|
|
||||||
!insertmacro MaybeSkipPage
|
!insertmacro MaybeSkipPage
|
||||||
!insertmacro LogStep "Installer" "Post Install Options" "" ""
|
!insertmacro LogStep "Installer" "Post Install Options" "" ""
|
||||||
!insertmacro GoogleAnalytics "Installer" "Post Install Options" "" ""
|
; !insertmacro GoogleAnalytics "Installer" "Post Install Options" "" ""
|
||||||
|
|
||||||
!insertmacro MUI_HEADER_TEXT "Setup Options" ""
|
!insertmacro MUI_HEADER_TEXT "Setup Options" ""
|
||||||
|
|
||||||
|
@ -1331,7 +1331,7 @@ Section "-Core installation"
|
||||||
Call HandlePostInstallOptions
|
Call HandlePostInstallOptions
|
||||||
|
|
||||||
!insertmacro LogStep "Installer" "Done" "" ""
|
!insertmacro LogStep "Installer" "Done" "" ""
|
||||||
!insertmacro GoogleAnalytics "Installer" "Done" "" ""
|
; !insertmacro GoogleAnalytics "Installer" "Done" "" ""
|
||||||
SectionEnd
|
SectionEnd
|
||||||
|
|
||||||
!include nsProcess.nsh
|
!include nsProcess.nsh
|
||||||
|
@ -1358,7 +1358,7 @@ SectionEnd
|
||||||
/SD IDCANCEL IDRETRY Prompt_${UniqueID} IDCANCEL 0
|
/SD IDCANCEL IDRETRY Prompt_${UniqueID} IDCANCEL 0
|
||||||
${EndIf}
|
${EndIf}
|
||||||
|
|
||||||
!insertmacro GoogleAnalytics "Installer" "Abort" "${displayName} Running" ""
|
; !insertmacro GoogleAnalytics "Installer" "Abort" "${displayName} Running" ""
|
||||||
|
|
||||||
; If the user decided to cancel, stop the current installer/uninstaller
|
; If the user decided to cancel, stop the current installer/uninstaller
|
||||||
Abort
|
Abort
|
||||||
|
@ -1602,7 +1602,7 @@ Function .onInit
|
||||||
!insertmacro InitGAClientID
|
!insertmacro InitGAClientID
|
||||||
!insertmacro GetCampaignName $CampaignName
|
!insertmacro GetCampaignName $CampaignName
|
||||||
|
|
||||||
!insertmacro GoogleAnalytics "Installer" "Start" "$CampaignName" ""
|
; !insertmacro GoogleAnalytics "Installer" "Start" "$CampaignName" ""
|
||||||
|
|
||||||
; make sure none of the installed applications are still running
|
; make sure none of the installed applications are still running
|
||||||
${LogText} "Checking For Running Applications"
|
${LogText} "Checking For Running Applications"
|
||||||
|
|
Loading…
Reference in a new issue