Search code examples
google-tag-manager

How can i visualize a customer journey with tag manager and google data studio?


I have a website where the customer can take a quiz to find the right products. I want to track the customer's journey on the quiz, to see what they choose and where people fall off.

The quiz starts at example.com/start/ and for every step they take, the URL "expand" to e.g. example.com/start/first_step/, next step example.com/start/first_step/second_step etc.

I think I can do it with tag manager, by creating events for each step / URL. But my first issue is, that the events get to long. The other issue is, I cant figure out how to visualize the journey in either Google analytics 4 or Google data studio.

enter image description here

Does any of you have a great idea for how I can do it?


Solution

  • what exactly to you mean saying "the events get to long"? Do you mean the requests payload to the google analytics server?

    Generally speaking, I'd recommend the following:

    1. Create a generic event for all quiz steps
    2. Add two parameter for the progress, one containing the steps name an one containing the index (e.g. "quiz_step_str" & "quiz_step_index")
    3. Send the events to GA4
    4. Visualize them using a bar chart. (https://analyticsdemystified.com/google-analytics/step-step-guide-creating-funnels-googles-data-studio/)

    Additional information regarding step 2: The parameter containing the step name can be generated using js and getting the value from the url. Just scrape the corrsponding part from it (e.g. "example.com/start/first_step/" -> "first_step"). For the parameter containing the steps' index, I recommend creating a lookup table.