In diving further into GA4, I've found that the value for the link_text is "(not set)" for click events. The links on my site are standardly coded with straight a tags, so I'm trying to figure out why that link text might not be coming through. Here's an example of
<a data-entity-substitution="canonical" data-entity-type="node" data-entity-uuid="c3c87ca2-3545-4c38-baaa-daa78c7184bd" href="/tristate/donate">Tri-State</a>
Is there something else I need to add in to either GA4 or Tag Manager to get the link text to always show up?
I've just checked two clients and neither have reported link_text data for the click events.
It looks like it is not part of the official documentation. Maybe something that existed in the past and was dropped:
https://support.google.com/analytics/answer/9216061
Related
This is my very first post on stackoverflow ever. I'm most likely doing something wrong....
I'm setting up some gtm on my site and I have a checkout page that doesn't change urls, so there is virtual page views that populate the datalayer at certain steps. I need some help how to track these events in gtm and how I can get them in to GA as page views.
I've tried to look for exact solutions but I haven't found anything that has helped me, so even linking to an article you think might help me would be awesome.
The datalayer looks like this and gets pushed at certain steps it would be /checkout 1, /checkout 2, /payment method, and finally /purchase.
Structured like this:
{
event: 'VirtualPageview',
page: '/Test/test',
title 'test | test',
gtm.uniqueEventId:25
}
Edit: I know how to set up an event to the virtualpageview, but not sure how to configure it to pas the information forward to google analytics, my goal is to make a funnel.
Just to make sure I'm answering the right thing: It sounds like you already know how to trigger an event during the checkout process, but you're not sure how to get that data into Google Analytics itself.
Assuming that what you want to see in Google Analytics is a new pageview for each step in the checkout process, you need to set the "page" field in the virtual pageview tag so that whenever it fires, it records a pageview.
In the tag, under "More Settings" -> "Fields to set", you can add "Field name": page and then set "Value" to whatever dataLayer variable stores /checkout 1, /checkout 2.
I created a custom metric in Google Analytics to track users who end up on that page.
This is the metric:
This is my setup in Google Tag Manager:
While I can see from GTM preview that the tag is firing, I don't understand why I don't see anything related to this in the Realtime -> Events (https://i.imgur.com/uLYvyWk.png).
Question 1: why does nothing show up? Do I have to wait until tomorrow for data to be populated in the reports view? If so, is there a way to instantly check whether the tag is tracked by GA? Having to wait 24 hours to know whether the tag is firing sounds abit long.
Question 2: Am I setting up my custom metric correctly? The intention is to track the error rate of users and be able to see which geographies / age range etc they come from.
Thank you!
the GTM tags in your screenshot are Pageview tags, so they wont show in the Real time > Events section. Check the Real time > Content report for your pageview being fired.
If you want to pass the metric with an Event, you need to create an Event tag and add the metric to the Event tag.
I had a question about Google Tag Manager. (I also felt bad for having the IT guy fix my mistakes on my simple click tag)
I wanted to track when a user enters a specific url when they click a link button on the homepage.
This is what it looks like
Image
This is my idea on what the Tag and Trigger should look like
Image
But I'm worried about having the trigger be fired when there is another page in the funnel
Also if the only way to do this is in the goal feature of GA that is good to know also. (I currently don't have the permissions here)
Thanks for responses
While it is difficult to achieve exactly what you're describing (it would involve storing data in cookies and then using these cookies to conditionally fire tags), there is a better way to achieve what I assume is your ultimate objective: an analysis of the shopping funnel.
Specifically, the Google Analytics enhanced ecommerce module has a dedicated report (the Conversions > Ecommerce > Shopping Behavior report) that shows you exactly this. It shows you the number of sessions for each stage of your shopping experience (product view -> add to cart -> checkout -> purchase) along with drop-off rates and volumes between each of these steps.
It is a little bit more involved to implement enhanced ecommerce but the final result is definitely worth it for an ecommerce business. Instructions for implementation of enhanced ecommerce (using Google Tag Manager) can be found here.
GTM is hit based without any notion of persistence. So by default this will not work.
You would need a custom HTML tag with a javascript function that sets a cookie, or writes a value to localstorage, when the button is clicked.
Then on your destination page you can check if the cookie exists and fire the tag accordingly.
I don't think the goal feature in GA can do that, either. A goal is registered when you hit a destination URL or event, you cannot specify conditions other than the destination.
I am using Universal Analytics and have added the following code under the "Additional Settings" tab as suggested by dozens of articles including the one suggested by Contact Form 7's website:
on_sent_ok: "ga('send', 'event', 'Contact Form', 'submit', 'success');"
My Category, Action, and Labels all match set up in Goals. I have been testing this for hours and using various other methods on a different website but still no joy. I am not using any SEO or Yoast Plugins, and I have the Universal Tracking JS code installed.
Yet it's still not tracking. I can see it under Real Time Conversions, but it doesn't appear in Real Time Events nor Conversion Goals. What the heck could I be doing wrong?
After trying every code on the internets, I figured out how to simply set it up using Tag Manager! Obviously you have to have a GTM Account and paste the Tag Code on your website. Here's how to set it up:
Set up a New Trigger called "Form Trigger"
Choose "Custom Event"
Fire On, copy and paste this: gtm.formSubmit
Create Trigger
THEN ---
Set up a New Tag called "Form Submission"
Choose Product: Google Analytics
Choose a Tag Type: Universal Analytics
Enter Analytics Tracking ID
Track Type: Event
Category: Contact Form (or whatever, this will match the category name you set up in Goals in Analytics)
Action: Submit (or whatever, this will match the action you set up in Goals in Analytics)
You can add a Label and Value if you want, just make sure they match when setting up goals in Analytics. I just left them blank in both cases.
Fire On: click "More" and select the "Form Trigger" trigger you previously created.
Save Tag
Then just set up your Goals in your Analytics and test your form. In Reporting, I clicked on Real Time >> Events, filled out the form and BAM! I saw it right away and it recorded in Conversions instantly!
This was THEE only way I could get it to work. Works with sites with or without Yoast or whatever other SEO plugins. I hope someone finds this helpful, I tried EVERYTHING and this was the only way I could get it to work.
Cheers!
Has anyone been able to use and see the Enhanced Link Attribution data in the In-Page Analytics interface of Google Analytics as per this document?
http://support.google.com/analytics/bin/answer.py?hl=en&answer=2558867
I've implemented this plugin and call and I can see the data being transferred to GA in my __utm.gif call however when viewing the In-page Analytics of the site, there is no difference. I still see the clicks being shown in an aggregated standard form.
I'm curious if there is a piece missing and I need to enable some Advanced Segment filters or something to view the information.
There is a thread on Google Groups where people shared similar experience with the implementation and my observations are the same:
http://productforums.google.com/forum/#!searchin/analytics/enhanced$20link$20attribution/analytics/-FuKG8ARAPY/t-crCmrGEHsJ
Any help or insight would be highly appreciated! Google seems to be on mute as usual.
To solve the problem, I had to manually put a unique 'id' attribute to each link tag pointing to the same URL that I wanted to distinguish. The scope is the page so you don't need to worry if the same IDs repeat on different pages, they just need to be unique per page.
I used a naming convention that allowed me to have unique IDs and not to worry about duplicity, unless there were two links to the same URL within a section (in my header I have the logo and the home navigation link go to the same URL).
For example, in my site template, all header links use id="header-...", all links in the footer use id="footer-...", and all links in the body of the page use id="body-...".
Example:
Home
<img src="/logo.gif" alt="logo" />
go to homepage
Homepage
This has made the percentage in GA show different values for the same URL, which solved the problem. Nothing else I tried in the settings, or initializing the enhanced attribution plugin, did not work.
This was just announced:
http://analytics.blogspot.co.il/2012/11/announcing-enhanced-link-attribution.html
You'll need to enable enhanced link attribution in the web property settings tab (within the Admin section), which is rolling out - you may see it only in a few days/weeks.
First : Go to Analytics. Click "Admin" in the top right for the selected web property. Property settings tab > In-Page Analytics heading > Use enhanced link attribution = Tick checkbox.
You might also want to narrow down the date window to the last few days when looking at the data (after allowing 24 hours for it to come in). If you don't do this, the link-attributed data might get diluted in the standard "last 30 days" window.