We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 74c726d commit b4e15a9Copy full SHA for b4e15a9
1 file changed
src/Client.php
@@ -184,7 +184,12 @@ public function get_tracker_id() {
184
185
if ( ! $id ) {
186
$tracker_configuration = $this->get_configuration();
187
- $id = $tracker_configuration->getId();
+
188
+ if ( ! $tracker_configuration instanceof Client\Model\TrackerScriptConfigurationTrackerScriptConfiguration ) {
189
+ return '';
190
+ }
191
192
+ $id = $tracker_configuration->getId();
193
194
update_option( 'plausible_analytics_tracker_id', $id );
195
}
0 commit comments