Skip to main content
Integrations

Set Up Google Analytics to Show Aggregate Search Query Data


pmo
Docebian
Forum|alt.badge.img+3
  • Docebian
  • 276 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.

Did this post help you find an answer to your question?

17 replies

JZenker
Guide II
Forum|alt.badge.img+1
  • Guide II
  • 232 replies
  • November 30, 2021

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!


pmo
Docebian
Forum|alt.badge.img+3
  • Author
  • Docebian
  • 276 replies
  • November 30, 2021

@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? 


JZenker
Guide II
Forum|alt.badge.img+1
  • Guide II
  • 232 replies
  • November 30, 2021

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 


B_Volkman_CAVA
Novice II
Forum|alt.badge.img

 

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)

 


Forum|alt.badge.img+2
  • Docebian
  • 65 replies
  • December 2, 2021

@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... 


Lucy.blake
Helper II
Forum|alt.badge.img+3
  • Helper II
  • 134 replies
  • December 6, 2021

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


B_Volkman_CAVA
Novice II
Forum|alt.badge.img
nick.tosto wrote:

@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:


Forum|alt.badge.img
  • Novice III
  • 29 replies
  • December 22, 2021

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). 


Alan
Guide I
Forum|alt.badge.img+2
  • Guide I
  • 170 replies
  • March 18, 2022

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
Docebian

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

 

 

Alan wrote:

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:

 


mwd
Contributor II
Forum|alt.badge.img
  • Contributor II
  • 41 replies
  • March 22, 2022
Alan wrote:

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 


omer.bitas
Influencer I
  • Influencer I
  • 73 replies
  • August 17, 2022
pmo wrote:

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?


jessica.sanderson
Contributor II
james.buhagiar wrote:

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

 

 

Alan wrote:

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/(.*)

omer.bitas
Influencer I
  • Influencer I
  • 73 replies
  • November 23, 2022

I used this and it works:

 


Lucy.blake
Helper II
Forum|alt.badge.img+3
  • Helper II
  • 134 replies
  • January 29, 2024

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


Forum|alt.badge.img
  • Novice II
  • 7 replies
  • May 29, 2024

Any updates on whether anyone has been able to get this configuration working in 2024 using GA4+Docebo? 


Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings