Google Analytics scope question - google-analytics

I'm studying GA and and want to know if it is possible to save any custom information. For example I have a lot of checkboxes on the page and want to know checked statistics. I mean checks count for each checkbox separately. I see it in the following way: before postback I'm getting all checks information and send it to GA :).
What do you think?

You can use the Google Analytics javascript API to send this information to google, possibly as an event. This can happen whenever you choose, such as before form submission.

You can make events to each of the checkboxes, individualize them if you want, and see the results in "event tracking" in contents.
More info about event tracking from
google analytics docs

Related

Google Tag Manager - GTM Data layer problems

I've installed the GTM code on a HTML5 bootstrap 5 template, the GTM container and a analytics global site tag added to GTM appear to load and initialise the DOM fine within the GTM preview/debug. The analytics tag pushes click data and the limited event data to the analytics console without issue.
The problem is with GTM variables. In debug mode the loaded GTM container picks up scroll and page events and sets the associated variables but in the case of form data layer variables it has set them once while in debug/preview mode during a newsletter form submission, but doesn't seem to want to set them again in different later debug sessions.
The template in use is:
https://www.okler.net/previews/porto/9.1.0/demo-digital-agency-2-dark.html
The developer doesn't want to offer support for GTM or GA so I was wondering if anyone could see an issue with why the newsletter signup at the end of the page for example that wouldn't set the form data layer variables as expected within GTM when filled and submitted.
Cheers
So you're saying that it pushes the dataLayer event only once per form submission and not more?
Is there a value of tracking multiple form submissions for one user?
If there is enough value to bother fixing it, you can just consider either finding how they prevent subsequent form tracking and fix it, or you can just have custom tracking in GTM. So that you would be able to detect CTA clicks.
But tracking CTA clicks instead of actual form submissions will lead to the opposite problem: too many CTA clicks.
Basically, you have to understand why you're tracking it. What question is to be answered here. In this case the obvious question is whether a user converted. To answer this question, you actually don't need subsequent submissions tracking.
If the question here is how many times the user submitted the form, then simple CTA tracking plus error tracking will suffice. It's not connected to form submissions tracking tho. Different questions - different answers.

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

GTM + Gravity Forms Goal tracking in Google Analytics

I have a Gravity Form with a text confirmation page, not a redirect confirmation. I would like to track this form through Google Tag Manager to display a goal conversion in Google Analytics (Universal Analytics).
I've followed the steps here: http://www.notesonclick.com/blog/gravity-form-event-tracking-via-tag-manager/
No conversions are being recorded. However when using GTM-debug mode, all the triggers are firing, even the gform.submit.success tag is being fired after clicking the submit button.
Could someone please help?
We've had the same issue. The only way we've been able to get GTM to record conversions is to remove validation. We'd rather it validate, but we haven't found any other workarounds.
I have implement that code in multiple site and it is working fine, Since you are not getting conversion then there might be issue with form Goal Creation in google analytics. or some time i have noticed this things happening when google analytics have been implement directly on the site and event tracking setup through tag manager..
if you still need some more help leave comment in comment box of same blog
I saw the excellent and elegant solution by Dinesh but was not able to implement it on the site I was working with. I put a hack together that work correctly. For detailed instructions, please see here.
http://www.albanyanalytics.com/2018/03/gravity-form-tracking-with-google-tag.html

Google Analytics API For getting total clicks and impression on element

I am really new to Google Analytics and I had a requirement of tracking clicks and impressions. I followed following link
http://www.statstory.com/tracking-clicks-and-impressions-in-google-analytics/
and sucessfully implemented the same.
Now my requirement is to get the no.of clicks and no. of impressions
to my html page. I am googled for past quite hours but couldnot find
any luck with the same.
Any help would be highly appreciated.
You should really consider implementing Google Analytics Enhanced E-commerce functionality.
Google Analytics Enhanced E-commerce
In regards to answering your question of the API, you should query it asking for events. Namely category, action and label events and apply a filter to only return the data you wish to receive, such as 'Impressions' as a filter for 'Event Action'. That will return all impressions and if you instead change the filter to use 'Click', you'd get all clicks instead.
If you followed the above guide and made it into Universal, then you'd see the calls you set and it is set up in the following way:
_gaq.push(['_trackEvent', 'Banner', 'Click', 'BANNERNAME',1.00,true]);
This bit of code pushes (legacy version) Analytics data in the form of:
_gaq.push(['_trackEvent', 'Category', 'Action', 'Label',1.00,true]);
So, changing the different sections means you change how you define the data and how it will be visible in reports. Category defines the Event Category, Action defines the Event Action and Label defines the Event Label.
Take a look at the core development guide. Also, here you can see all the API calls available: Dimension & Metrics explorer for Google Analytics
I gather that you want to track impressions for banner advertising that is displayed by yourself (i.e. not through an adserver) in your website.
I agree with Mr Sponge that you should upgrade to Universal Analytics. if you want to implement enhanced e-commerce tracking (EEC) you probably want to read about Measuring internal Promotions, which is a feature specifically build for that kind of reporting.
If you just need the raw number of banner impressions and/or need a solution that's easier to implement (but less capable) you can increment a custom metric every time you banner shows up (this is basically a counter, you might want to use it together with a custom dimension that holds the banner name). Click tracking would still be done by events (with similar custom metrics and dimensions). From that data you can assemble a custom report and use a calculated metric for click through rates etc.
Not as good as EEC by a fair margin but much easier to do.

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