File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed
source/Plugins/GoogleAnalyticsV3 Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -116,14 +116,17 @@ internal void StopSession() {
116
116
}
117
117
118
118
private void SendGaHitWithMeasurementProtocol ( string url ) {
119
+ if ( optOut ) {
120
+ return ;
121
+ }
119
122
if ( String . IsNullOrEmpty ( url ) ) {
120
123
if ( GoogleAnalyticsV3 . belowThreshold ( logLevel , GoogleAnalyticsV3 . DebugMode . WARNING ) ) {
121
124
Debug . Log ( "No tracking code set for 'Other' platforms - hit will not be sent." ) ;
122
125
}
123
126
return ;
124
127
}
125
- if ( dryRun || optOut ) {
126
- if ( GoogleAnalyticsV3 . belowThreshold ( logLevel , GoogleAnalyticsV3 . DebugMode . WARNING ) ) {
128
+ if ( dryRun ) {
129
+ if ( GoogleAnalyticsV3 . belowThreshold ( logLevel , GoogleAnalyticsV3 . DebugMode . VERBOSE ) ) {
127
130
Debug . Log ( "Dry run or opt out enabled - hits will not be sent." ) ;
128
131
}
129
132
return ;
You can’t perform that action at this time.
0 commit comments