Skip to content

Commit

Permalink
make debugging work on search events
Browse files Browse the repository at this point in the history
  • Loading branch information
benmcginnis committed Jul 28, 2022
1 parent 5c4d583 commit 03a6734
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/infra/SearchAnalyticsReporter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ export class SearchAnalyticsReporter implements SearchAnalyticsService {
const errorMessage = await res.text();
throw new Error(errorMessage);
}
this.printEvent(event);
}

/** {@inheritDoc AnalyticsService.setVisitor} */
Expand Down
2 changes: 2 additions & 0 deletions test-site/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ const analytics = provideAnalytics({
experienceKey: 'slanswers',
experienceVersion: 'PRODUCTION',
businessId: 3350634,
debug: true,
});

export function fireClickEvent() {
Expand Down Expand Up @@ -40,6 +41,7 @@ const pages = providePagesAnalytics({
businessId: 3350634,
production: false,
siteId: 25317,
debug: true,
});

export function firePageView() {
Expand Down

0 comments on commit 03a6734

Please sign in to comment.