Internal search reporting is integral to many organizations, and is not a report that can be captured out-of-the-box with Adobe Analytics. However, with minimal implementation efforts, internal search term reporting can easily be captured.
This article assumes that you already have a working DTM implementation, and are seeing Adobe Analytics image requests via the debugger.
Most internal search mechanisms use query strings to utilize keyword data. Creating a data element based on this query string and assigning the data element to an eVar allows it to be used in reporting.
- While in the DTM property overview page, click the Rules tab
- On the left, click Data Elements.
- Create a Data Element, give it a name (for example, Internal Search), and set the type to URL Parameter.
- In another tab, open your site and perform an internal search using any unique keyword. On the resulting page, note what query string parameter is used. For example, with example.com?q=kittens, q is the query string parameter and the search keyword is kittens.
- Back in DTM, place the query string parameter in the Parameter Name field. Most implementations use q as their search keyword query string parameter.
- Adobe recommends forcing lowercase value and scrubbing whitespace, as that helps lower unique search values that are otherwise identical.
- Remember the value for page view, as eVars persist the search keyword server-side.
- Click Save Data Element.
Once the data element has been created, the next step is to assign the value to an eVar for use in reporting.
- On the overview tab in DTM, click the gear icon next to the Adobe Analytics tool.
- Click the Global Variables accordion.
- Click the Evar name dropdown, and select the eVar you'd like to use for internal search.
- In the text field below the dropdown, type the name of the data element inside percent signs. For example, %Internal Search%. The text field autocompletes recognized data elements.
- Click Save eVar.
The staging environment updates as changes are saved. Use a browser plugin like DTM switch or Tagtician to set your own computer to use your DTM property's staging environment.
- Go to your website, and use your site's internal search.
- On the search results page, open your browser's console. Most major browsers use F12 as the keyboard shortcut.
- Use DTM's console command to validate the keyword is correctly collected within the data element. For example, _satellite.getVar("Internal Search"). The browser's response shows your search keyword.
- Validate the keyword is correctly assigned to the eVar by opening the Adobe debugger.
- Once validated, approve the changes and publish the changes to prod.
- Log in to Adobe Analytics, and go to Admin > Report Suites.
- Click on the report suite for your site, and go to Edit Settings > Conversion > Conversion variables.
- Make sure the eVar used is enabled, and that it is named properly. The default allocation of last and default expiration of visit is typical for internal search, but can be customized.
- If changes were made, click Save.
Now that your organization's implementation has been updated to accommodate internal search, Adobe Analytics can now report on that dimension.
- Log in to Adobe Analytics and go to Analysis Workspace.
- Open a new project, which provides you with a freeform table
- Under Dimensions, drag the internal search eVar from the list to the freeform table.
- If the variable has had time to collect data, the top keywords appear in the table. You can drag the metric Visits to replace the default metric Occurrences to deduplicate hits.
- Segments and calculated metrics can be used to gain more insight for reporting.