Google analytics: Complete a goal when two events occur - google-analytics

There are two events.
User visit /point1.
User visit /point2.
If the events occur in this order, I want the goal to be hit.
I have created a funnel for this, but the problem is that even if the user does not visit /point1, and visit /point2, the goal is hit! (destination is point2..)
I want the goal to be hit only when the user visit /point1 and /point2 in that order.How can I accomplish this?

Basically you can't (not via configuration, that is). Funnels only affect the visualisation, not goal completion.
You can either do a workaround in code - set a cookie on /point1, then fire an event on /point2 only when the cookie is set, and change your configuration to use an event based goal.
If you do not need to actual goal conversion, but just want to know how many users completed the steps in the correct order, you can create a segment of the "sequence" type (step1 page equals /point1 followed by step2 page equals /point2), which will limit the data displayed in the standard reports to sessions where users visited one point after the other.

Related

How can I view individual hits to pages within a GA custom report

I would like to compare some data between a 3rd party analytics tool and GA.
Now I would love to see the IP addresses that Ga is receiving however it seems that they do not reveal this information, fine, however, I cannot find a way to use the flat table in the GA custom report to show me the following if possible;
Full Date Time (Seems as though they don't want you to have this either)
Browser Version
Browser Width & Height
Page (from the hit)
And I would like this data not to be grouped by the metric, this way I can see that if the same user has hit a page 3 times it isn't grouped.
If anyone can help please let me know. If the question is poorly phrased please let me know.
Thanks,
Connor.
This requires some work, and it will allow the breakdown only for future hits, not for hits that are already collected.
To view individual hits you need to create a hit based dimension that is unique per hit. Unless your page has an amazing amount of traffic a timestamp in milliseconds (e.g. new Date().getTime()) will be sufficient (for your report you might want to format that in a nice way). So in the admin section of your GA property you go to custom definitions, create a hit scoped custom dimension, and then modify your pagecode to send the timestamp to that dimension. Hit scoped means it is attached to the pageview (or other interacton hit) it is sent with.
If you want to break down your report by user you need the clientid (clientid is how Google recognizes that hits belong to the same user). Again, send it as a custom dimension.
This does not tell you how many sessions the user had (there is no session identifier in GA). If you need to know that you can create a session scoped custom dimension and send a random number along ("session scope" means that GA only stores the last value in a session, so you don't need to maintain a session id over multiple pageviews, since the last value will be set for all hits within the session). The number of different sessions ids per client id then tells you the number of sessions per user.
The takeaway is that GA only shows aggregated data, and if you want to defeat this mechanism you need to throw data at it that cannot be aggregated further. You might run into other constraints (i.e. there is a limited number of rows per report).

Destination Goal not taking funnel into consideration

I have a very basic site goal:
When someone gets to the '/my-account' page directly from the '/component/community/ajaxregister/ajaxregister' page, it needs to count it as a conversion (Registration).
I have a custom destination goal set up:
Destination = '/my-account'
Funnel: ON
Step 1 '/component/community/ajaxregister/ajaxregister' Requires? YES
The registration counts in my db do not match the goal count and the 'Reverse Goal Path' report shows that there are conversions being registered where the 'Goal Previous - Step 1' includes pages other than the registration page.
Any ideas on how to make this goal register only when one lands on my-account from the registration page?
The "required step" merely affects funnel visualization, not goal conversion. So by default there is no way not make this count only when people come from the registration page.
To solve this in code (and thus make the question on topic :-) ) you could
check the referring page on your goal conversion page, then
fire an event when the referrer is the registration pages, and
then switch to an event-based goal in the GA backend
That way you would not have a funnel (does not work with event based goals), but at least you'd have the "correct" number of conversions.

How to build a funnel for events

There is a submission form with multiple URLs, but it has multiple forms on a single URL. Its not a problem to track successful submissions, but I would like to know where they abandon (on which of the forms what are located on a single URL). Is it possible to create a funnel for events to track it and how to do it?
To back up my comment, the documentation says explicitly
When you create a Destination Goal, you also have the option to create
Funnel for that Goal.
Since an event goal is not a destination goal there are no funnels for events.
However I don't quite see your problem; you can set different actions or labels with the event for ever form and set up multiple goals, one for each event action (up tp 20 obviously). A funnel would only help you with a multi-step process, I do not see how this applies here.

Google Analytics Goal URL, recording ONLY the first time a user hits that page

In our user sign-up process, conversion is being defined each time a user completes 4 steps and lands on their individual user home page (/publications\/.*). The RegEx is functioning properly, however I realized that GA is registering a "conversion" every time a user signs back in and visits that same page for the second time, third time, etc., since that page is just each user's "home" page on return sign-ins.
Is there a way to force GA to recognize the visits ONLY the first time a user hits that page?
Thanks for your help in advance!
No. You better create a new url for when the process completes, or maybe fire a virtual pageview once the user completes registration.
You can also mark the first step of the process as a required step. You create a URL Goal but add the sign-up form as a required step. The problem with this setp is that it only applies to the funnel view. The total conversions would still count all of them, but when you look at the funnel view you would only see the conversions that went through the required first step.
There are a couple of ways I could think of:
Eduardo's virtual pageview recorded on a successful sign-up would be
my number one recommendation. This pageview will become your Goal
Conversion URL and will take care of the repeat offenders.
Set a cookie for your registered users and have that determine the conversion tracking.

Google-Analytics: How do I add an e-mail link as the final step of a goal?

I send a confirmation link via e-mail (in multiple places) but it seems Analytics doesn't recognize those clicks (given URL is visited) unless the visit immediate. I am guessing the last part is about session expiration.
How can I define my goal funnel so that confirmation page landings are recognized even after a day or two?
My confirmation URL is in following format:
"http://<domain_name>/confirmation/<10_char_hex_confirmation_code>/"
You can't. All the steps of a goal funnel must occur in the same session.
You could always have one goal for signing up (i.e. sending the e-mail), and another goal for the confirmation landing page. Then compare these goal conversions, and you'll get the same story.

Resources