How To Include a cookie-id when tracking events - google-tag-manager

I am completely new to Google Tag Manager. I have gotten it installed on my site, and it is working to count the number of clicks on the register button.
However, what I really want to do is this:
A user lands on the page. I want to place a tracking cookie for the user, and then log the page view along with the tracking cookie ID.
The user then clicks the register button. I then want to track the click event along with the tracking cookie ID.
By including the tracking cookie information, I can then easily see that User A landing on the Page at 10:00, and then at 10:02 Clicked on the Register Button.
It gives a clear picture of what happened on the site. My goal is to drive people to the site through adwords, but I then need to see exactly what happened with these people and how long they were on the site.
Can I do this with GTM/Google Analytics? If so, how? If not, is there some other tool for this?

Take a look at the User Explorer report in Google Analytics.

Related

Google Analytics conversion tracking with a pixel?

Right now I can only see that the only way to track conversion through Google Analytics is with Goals.
And it only allows entering the thankyou page URL.
In my case, I track registrations, and I don't use a thank you page.
When user lands on my homepage, clicks on Social Login button and after Sign in they land on the homepage again (but now logged in).
I use a Wordpress widget that appears when the user is loggged in. And this is how I track conversions.
But for this, I need a Google Analytics conversion pixel.
So my question is, is it possible, and does Google Analytics have a conversion (goal) tracking pixel?
You can send an event to Analytics when user is logged, so you can set that event as conversion.

Tracking clicks with Google Analytics on a link to AppStore

Tracking clicks with Google Analytics:
I am trying to track clicks on a download button on my site (wordpress) that takes users to the AppStore.
I set up a goal and changed the button code to the following:
<a onClick="ga('send', 'event', 'AppStore', 'Click', 'top-button', '0');"href="
www.example.com">Download on the App Store</a>
and nothing is tracking. (By that, I mean that website visits are tracking but not clicks)
I have come across this support article (https://support.google.com/analytics/answer/1136920?hl=en) that seems to imply that outbound links need an additional tracking code installed in the site's header, so i've added that in, and still no clicks are being tracked.
The support article also seems to mention that outbound links should be tracked as follows:
Check out example.com
I am confused as to what code I should be using on the button to be able to effectively track clicks.
Advice please!

how to do multiple tracking like a series of pages one after another?

So,
I have a blog with a "demo button" with leads the user to a sign up page.
On sign up page, the user fill the general entries. Then he is brought to a payment page to enter his card details. and then from there he is taken to a confirmation page.
Now, I want to track every page. Basically, whether any user coming from a blog becomes a user or atleast how far he goes before closing the tab
Use Enhanced E-Commerce Tracking.
The EEC in Google Analytics lets you assign step numbers to the various steps in a checkout. It then creates a custom funnel report (remember that EEC must be enabled and configured not just in your code, but also in your view settings) that show how many users completed the checkout and how many dropped of at each step.

Google Analytics Tracking Conversions with vendor data and custom campaigns

Please help me understand this. I have a client for whom we created a sweepstakes "mini site". Traffic was generated through banner ads, eBlasts, and newsletters. For the banner ads, I created custom urls, i.e. www.somewhere.com?utm_source=yahoo?utm_campaign=abc to track the traffic to the landing page per vendor/banner. this works just fine.
The entrant visits the page, signs up for the sweepstakes, has as double opt in email process for verification. All of my entering traffic to the landing page is tracking fine, and is properly broken down by utm_source and utm_campaign.
Some of the vendors had me place tracking pixels on the confirmation page for conversion statistics. The only info I have placed for internal tracking on the confirmation page is the GA tracking code.
I have been told to create tracking pixels to track the individual vendor conversions. Is this possible without the originating pixel data from the vendor? I am new to tracking pixels, but my understanding is that I need some information from the vendor in order to write the code for the pixel. Am I wrong?
I can't understand how we can place a tracking pixel on our end without at least campaign name or data from the vendor's tracking pixel that they placed on the page containing our banner ads.
What am I missing here? How can I actually separate the conversion traffic from the different sources when everyone receives the same double-opt-in email?
Please ask me to clarify if I am not being clear. Thanks in advance for reading my question.
There are two things you are trying to track here. One is Campaigns: Campaigns are how you measure the effectiveness of techniques to bring users to your site.
The other thing you are tracking is Events - this is what users are doing once they arrive at your site. If you want to track individual vendor conversions, you should add an onclick handler to either the submit button, or link that you are calling a "conversion"
For example:
Your link here
If you are adding the push to a form submit, you might want to have that push happen on the pageload of the success page, rather than the onClick of the submit (otherwise it will track the event, and it might not have actually happened due to form validation errors for example)

Google Virtual Pageview Setup

I need some help with the setup of tracking virtual clicks on a submit button. What I need to do is get the referring site, which Google already tracks, and then track if they click on the button. I have setup an onclick for the submit button and setup a goal in Analytics but it is not tracking. I do have the code in place for Analytics in my header to track pageviews.
So what I am trying to do right now with my goal is to track a referring website and then track who clicks on the button. The virtual view I am using for the click is:
onclick="pageTracker._trackPageview('/Orders/Subscription');"
Thank you for any help in getting this setup working. I am still working on learning analytics.
If you want to ...get the referring site, which Google already tracks at the time the user clicks the submit button, you will have to read the cookies (the _utmz in this case) that GA sets and extract it from there.
Referral data can be obtained from the reports in GA, but if you want it at the time of submit, you'll have to get it from the cookies. Plain vanilla javascript can do this for you, just google it. Or, use whatever language your pages are written in to extract the data from the cookie (PHP and many others have this capability).
Regarding tracking the virtual page view, if the user can submit your form by hitting the enter key, then onclick is not desirable. onsubmit in the form tag would be better.
If it is still not recording for you, make sure your goal steps are entered into GA correctly (it's quite common to mess this up and GA is not forgiving to even the slightest error) and that you are using the traditional tracking snippet in the head of your document because your example is in the traditional tracking format. You should not mix async and traditional snippets.
To check if GA is even tracking your virtual page, go to the Content, Top Content report and filter by your virtual page. If it's in there, then it's your goal tracking set up. If it's not in there, it's your virtual page tracking on the form itself.
HTH.

Resources