This repository has been archived by the owner on Jul 27, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
5342: Matomo - Track WebAnalytics Site Search results (#1910)
5342: Matomo - Track WebAnalytics Site Search results
- Loading branch information
Showing
4 changed files
with
53 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
@api | ||
Feature: Site search | ||
As an analytics engineer | ||
I want search statistics grouped by the keyword | ||
So that I can better understand the needs of our users | ||
|
||
Scenario: Search keywords are tracked in analytics. | ||
When I am on the homepage | ||
And I enter "sample text 1" in the header search bar and hit enter | ||
Then the response should contain "\"search\":{\"keyword\":\"sample text 1\"}" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
services: | ||
isa2_analytics.oe_webtools_analytics_subscriber: | ||
class: Drupal\isa2_analytics\EventSubscriber\WebtoolsAnalyticsSubscriber | ||
arguments: ['@entity_type.manager', '@og.context'] | ||
arguments: ['@entity_type.manager', '@request_stack', '@current_route_match', '@og.context'] | ||
tags: | ||
- { name: event_subscriber } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters