Integrations

Set Up Google Analytics to Show Aggregate Search Query Data

  • 24 November 2021
  • 16 replies
  • 1140 views

Userlevel 7
Badge +2
  • Docebian
  • 194 replies

0wmtdD3onAoR55BgPqnVx9K-0-W8zQBSdcL-PGoIxxTsEPYEh9SK0nPt4jzkuh6C3FFyvUfgNr7xFPsiC-6KAQcwEOghyK_fLvyPCjmizuOEBiSRyJUk10Fq03U9H8j0_eKlvVw0

 

As a LMS admin, it’s important to understand the type of content users are searching in order to make an informed decision on which topics of content to invest resources to develop. Therefore, having the ability to track and report on the search queries users enter into the global Search bar with an LMS can be very impactful.

 

Because Docebo generates a predictable URL containing the user’s search terms on the Global Search Results page, we can set up a filter to tell Google Analytics how to interpret the URL.

 

EIFNWx8lv-2RTSLy5rKIjSFMpPNgD91qBmzxrVE4za8BbBq6jRF7CzR2gr6aSfoDEyvnYf050NLJ09QsqCBjZipl9Jx3g1UePKEr-WK-bl-86zZsjok4q3ieFG81Nzs1f9P4nheG

 

 :rotating_light:  This tutorial requires that you already have Google Analytics set up in your platform. Follow the instructions in this article for initial configuration steps.

 

Once Google Analytics has been set up, go to your Google Analytics dashboard, select your Docebo account/property, and click the Admin Gear in the bottom left corner.


In the View column on the right, click the “Filters” option.

 

bhqE5A4i-1aekLFPdrqoPNc7n54yijr6vdFrlXW0kV21WwgLt8Pvo65mOaYrr3QPy56Lm1i9mracq81_YX6zfqBLIsqqxpPnGYHdPh2aETLnRgSW37RbRn6B55oLrsDTpsVqxJSy

 

To set up your filter, give your Filter a name- such as “Search Results”

  • For filter type, Select “Custom” and choose the “Advanced” option.

  • Field A -> Extract A: Request URI: ‘/learn/global-search/(.*)’

  • Output To -> Constructor: Search Term: $A1

  • Select ‘Field A required’ and ‘Override Output Field’

  • Click Save.

 

The end result should look like this:

Qnd4yPuEWT64VLZvv0FE0HIb9qxP9mtxrjwu1gGcr2RwPJch8_vGupGxrrtq799SvvaDQyc6_R1pkB2LSp3mz-PXQqbLhnQHoiQfy-tlRhiUBSc9dbd4u5Hm6YGNHyecnPFkYVho

With this configuration, the value that comes after /learn/global-search/(...) will be captured in the “Search Term” area under Behavior > Site Search > Search Terms.

 

Please note that it may take 24-48 hours for results to populate in Google Analytics and will not retroactively capture search terms.


16 replies

Userlevel 6

Hey @pmo thanks so much for this great guide.

Any insight to the guide for iframing certain GA elements to use for a dashboard like you showed during Inspire? I believe it would contain info about special cookies to complete this task?

I would like to setup what you had on your Dashboard page with certain GA data iframed in. Thanks!

Userlevel 7
Badge +2

@JZenker That dashboard was created using Google Data studio. It was created by our in house web developer and so I have a little less insight into how to walk you through that. 

I have been tinkering with Google Data studio and trying to backwards engineer his creation but unfortunately it’s had to take a back seat to some other projects. 

Have you tinkered with Google Data studio at all? 

Userlevel 6

Thanks @pmo I’ve come across it in my research and know that it is necessary to accomplish this goal. Is creating this guide still on your roadmap at all? Really interested in recreating that aspect of your dashboard 

Userlevel 2
Badge

 

Hey there,

I cannot seem to get this to work for our platform. I see other data coming through from our Docebo platform, but day after day, nothing appears under “Site Search”.

 

I’d appreciate it if you could take a look at these screenshots and help me diagnose something I am perhaps doing wrong?

 

Thank you so much, in advance!

Brandon | CAVA Restaurant Group

 

Filter setup
Behavior → Site Search → Overview (nothing appears under “Search Terms” either)

 

Userlevel 6
Badge +1

@B_Volkman_CAVA The most common issue I see is that people set up their property as Google Analytics 4 instead of Universal Analytics. The quickest way to tell if this is the case is if your property ID starts with “G-xxxxxxxxx” (GA4) or “UA-xxxxxxxxx” (Universal Analytics).  The property ID can be found in several places but it’s easy to find if you just look at the Javascript tracking code that you pasted in the Docebo App. Docebo doesn’t support GA4 yet so it needs to be re-set up as a Universal Analytics property. 

Something to check... 

Userlevel 5
Badge +2

Is this ’/learn/global-search/(.*)’ ‘ an API that can be used without Google analytics?

Userlevel 2
Badge

@B_Volkman_CAVA The most common issue I see is that people set up their property as Google Analytics 4 instead of Universal Analytics. The quickest way to tell if this is the case is if your property ID starts with “G-xxxxxxxxx” (GA4) or “UA-xxxxxxxxx” (Universal Analytics).  The property ID can be found in several places but it’s easy to find if you just look at the Javascript tracking code that you pasted in the Docebo App. Docebo doesn’t support GA4 yet so it needs to be re-set up as a Universal Analytics property. 

Something to check... 

 

It is a UA account :disappointed:

Userlevel 3
Badge

Many thanks for this guide, the results have been eye-opening. 

I have been looking for ways to get the search results for a long time (I wish they were available as a standard report in the platform). 

Userlevel 6
Badge +2

Hi all

Sorry to be the bringer of bad tidings, but I just saw that Google Universal Analytics is being discontinued next year:

https://support.google.com/analytics/answer/11583528

So unless Docebo adds support for GA4, we will no longer be able to use it for the above search analytics :pensive:

Userlevel 3

@GRuss - I’m keeping an eye on this internally too and I’ll get you any updates we have.

 

 

Hi all

Sorry to be the bringer of bad tidings, but I just saw that Google Universal Analytics is being discontinued next year:

https://support.google.com/analytics/answer/11583528

So unless Docebo adds support for GA4, we will no longer be able to use it for the above search analytics :pensive:

 

Userlevel 5
Badge

Hi all

Sorry to be the bringer of bad tidings, but I just saw that Google Universal Analytics is being discontinued next year:

https://support.google.com/analytics/answer/11583528

So unless Docebo adds support for GA4, we will no longer be able to use it for the above search analytics :pensive:

I brought this up in our monthly call with Docebo and asked if we can get some insight into the plans here. Will see what the response is and post here 

Userlevel 4

To set up your filter, give your Filter a name- such as “Search Results”

  • For filter type, Select “Custom” and choose the “Advanced” option.

  • Field A -> Extract A: Request URI: ‘/learn/global-search/(.*)’

  • Output To -> Constructor: Search Term: $A1

  • Select ‘Field A required’ and ‘Override Output Field’

  • Click Save.

 

The end result should look like this:

Qnd4yPuEWT64VLZvv0FE0HIb9qxP9mtxrjwu1gGcr2RwPJch8_vGupGxrrtq799SvvaDQyc6_R1pkB2LSp3mz-PXQqbLhnQHoiQfy-tlRhiUBSc9dbd4u5Hm6YGNHyecnPFkYVho

 

 

Hi @pmo 

Thanks for this great tip.

one question please- in the written instructions you mentioned “‘/learn/global-search/(.*)’” in the request URL, and the image shows ^/learn/global-search/(.*)

is there a difference? what should be set?

Userlevel 2

@GRuss - I’m keeping an eye on this internally too and I’ll get you any updates we have.

 

 

Hi all

Sorry to be the bringer of bad tidings, but I just saw that Google Universal Analytics is being discontinued next year:

https://support.google.com/analytics/answer/11583528

So unless Docebo adds support for GA4, we will no longer be able to use it for the above search analytics :pensive:

 

 

@james.buhagiar any update on Docebo supporting 4?

Hey omer.bitas! Any update on which request URL to use: 

  •  /learn/global-search/(.*)
  • ^/learn/global-search/(.*)
Userlevel 4

I used this and it works:

 

Userlevel 5
Badge +2

So Google analytics only have GA4 available now. Has anyone managed to get it to sync with Docebo? We are struggling at the moment.

Reply