Best way to track a questionnaire on my website through a custom event in GA4? - google-analytics

Hey so I have a questionnaire with 5 questions in js. My aim to create a funnel exploration in GA4 mainly to see at which point the user is leaving the questionnaire. Do I need to set each question as an event and see it accordingly or is there a better way to do this? I am new to GA4 so I would really appreciate the help. Cheers
I tried creating events but my boss does not want to do this. Our company has shifted from UA to GA4. In UA you could use event categorizations and they had implemented this. I am new to UA/GA and unsure how to implement this tracking.

Related

How to track most used filters on product filter page with GTM and GA4?

I have a custom build page where users can filter products based on price, category, brand, ...
These are made out of checkboxes and a range input for the price.
I'm trying to figure out what the best way would be to track every action/filter in order to find out which brand / categories are the most popular.
Important to know
The menu contains a submenu for the categories. When the user clicks one of these links the filterpage will have this category checked in the filters.
The page does not reload when applying a filter. I'm using JS to perform a search and show new results. The page url gets updated with the correct search query parameters.
I think I have 2 options:
Track click events on the checkboxes and send every change with datalayer.push.
Track the page URL after each filter.
Option 1 is an issue because people might go to the page with some parameters in the URL. This won't be tracked because there was no click event. This issue will also apply to users that click the category in the submenu that prefills the filter.
Option 2 also is an issue because with this solution the category might be tracked 5 times if the user keeps adding or removing other filters. It always tracks all filters instead of the one that has been added.
The first step of tracking is using the analog of Occam's Razor. You want to cut off stuff that has no chance of answering legit business questions.
Your business question here is: What filters are the most helpful for the users? Now it's important to know why the business wants to know it. Cuz remember, the business is not very competent at data analysis even if it doesn't realize it.
So you need to know exactly how answering that question improves OKRs/KPIs. In this case, the legit answer could be: cuz we want to sort the filters by the usage frequency and measure if that would ease the engagement and thus, improve the conversion rate for the part of the journey from the product list to the pdp
That's a pretty weak reason, but passable. Especially if there's an issue in that transition currently.
Good, now having that context, why would we want to track filters used in pre-populated urls? Say some overzealous employee made a mistake and pre-populated some weird unneeded filter using, say, date and time of when the product has been added. And now they use that URL in all ads, so you get a lot of third party traffic coming to product lists with a date as a filter.
And then, let's say, that employee keeps using that filter for other persistent links to the effect of the date/time filter becoming uncanningly popular. There. Your data slowly becomes garbage and stops answering the original question.
There are other issues with tracking pre-set filters, some of which you've outlined, but the real issue is the ability of the data to answer good business questions clearly. Tracking all filters may be able to answer some technical questions, but it's not the aim of behavioral analytics to answer technical questions. Let them use access logs and whatever else they use to answer those.

Event listener for hard coded Google Analytics events

My question might be a bit basic but I yet to find an answer to actually solve it. We are using hard coded UA events for 2 of our important events, which manually sends infromation to our GA property.
What I'd like to do is capture this event with GTM "somehow" and build a tag for a 3rd party tool that we are using with the variables found in the event category, action and label. Is there any way to capture these events with GTM without involving a developer? Thank you in advance, have an awesome day!

Is it possible to create a funnel in Google Analytics, based on JavaScript events taking place on one web page?

We have a complex order form with multiple steps all taking place on one page. From a business analysis point of view we've been given a requirement to be able to visualise the progress of users through this form in Google Analytics as a funnel.
e.g.
Option on step 1 clicked
Option on step 2 clicked
Input on step 3 completed
Checkbox completed
Form submitted
I know we can add various JS events across the form to track the actions that have been taken, but I can't seem to find a way to create a funnel in GA from this. We're using GA with Google Tag Manager.
The goal is to be able to analyse where on this form users are abandoning it, and how long they are spending on the various steps.
Is this possible? My current research suggests that GA couldn't create funnels from events a few years ago, and that it doesn't seem possible still. I don't want to use the method of virtual page views that I have seen floating around, as this comes with too many other negative effects.
If you want a manageable funnel report in Google Analytics, you shouldn't be using events but virtual pageviews. Anyway, if you don't want to use the latter, Google Analytics offers the Events Flow Report (https://support.google.com/analytics/answer/2521316?hl=en&ref_topic=2521315), in which you can see how users activate the different events you have configured, even if it is not strictly what you are looking for.
The alternative is to track these events in Google Analytics and create a funnel with Google Data Studio.

How can I see the results of tags being fired from GTM to GA?

I will start with describing what I am trying to achieve, in order to avoid x-y problem. And if the solution I try to apply is not the best one, please, tell me a different one.
I have a website. There is an audio player on it. I would like to track in my GA how many users started the audio, how many users listened 25% of it, how many users listened 50% of it and so on. I can access the needed information (e.g. user reached 25%, so it is time to tell about this to GA through GTM) in client-side JavaScript, the question is only about setting up the GTM and GA correctly.
So, now that I described my intentions, let me show what I was able to do so far.
1 I created a custom metric with Hit scope in GA.
2 I created a tag which increments the metric created in the 1.
3 I created a custom event in GTM. When user starts playing the audio I fire the event with the help of dataLayer. And the event fires the tag which I created in 2.
4 I created a custom dashboard in GA to track how many users started the sound.
And now I am stuck. I get the needed data from my website to GTM. I trigger the tag which should send the data over to GA. I have the needed metric and dashboard set up in GA. And now I would expect the widget in my custom dashboard in GA to show that the audio was started, but it does not happen.
I am very new to GA and GTM and may not understand some concepts, as a result I may miss some necessary for troubleshooting information. I will gladly provide it if you need it.
Thank you (y).

How to setup Google Analytic goals that go to different URLs?

I would like to setup my form's conversion rate as a goal in my Google Analytics account. The goal is complete when someone enters their information and hits submit. Logically, the "Thank you page" would be the destination URL for the goal. My problem is that the thank you page is outside of the primary domain, for example, my site is:
SiteExampl.com but the Thank you URL is thankyouurl.com
Is it possible to setup a goal like this? If so how.
Christina, this is a bit tricky situation as it involves cross-domain tracking and the visitor/goal tracking won't be consistent since each site is using its own sets of cookies. To keep this not that complicated and technical (for that purpose, there is a lengthy documentation by Google), I am going to assume that the conversion will be counted as simply the fact that the user pressed button.
You could then setup event tracking and create a new goal with a condition of this event being fired (Type = Event, in Goal details then use the same Category/Action/Label as you would you in the tracking code -- see below).
The example of event tracking code: (see the complete specification for details)
Submit
Hope this helps :)
this is possible . Please execute an Event when submitting the form. Then redirect to the thank you page.
Use form submission position or button click position and then execute the Event Tracking method and pass the related info at that time. Google Analytics give you an opportunity to setup events as Goals. Hence this will be a very easy task.
Event Tracking in Google Analytics:
https://developers.google.com/analytics/devguides/collection/gajs/eventTrackerGuide

Resources