Problem tracking outbound links using TagManager - google-tag-manager

Hope somebody can help me.
I'm a newby and have a website, using Google Analytics.
I now want to track outbound links from my website to a third party website.
Based on what I found on internet, I have set up tag manager, sas you can see here:
https://saskiahermans.nl/wp-content/uploads/2022/11/TagManager.docx
However, after a few days I can't find any outbound clicks back in Google Analytics, where I'm sure there have been some.
What am I doing wrong? Can anybody please help?

Ok, after debugging it in comments and looking at the actual tracking, here what is sent to GA4 on outbound clicks on the site in question:
en: "click",
ep.link_id: "",
ep.link_classes: "",
ep.link_url: <URL>,
ep.link_domain: <domain>,
ep.outbound: "true",
Well this is plenty.
Now go to your GA4 property, Admin -> Custom Definitions (under the Property) -> Make sure your eps (event parameters) are registered as custom dimensions. Like so:
You probably want to do that for the ep.outbound and ep.link_domain. Don't do it for the link_url. Url can be too high-cardinality for GA4 to handle.
After you're done with defining custom dimensions, give it time to gather data and filter into the custom dimensions (about a day) and go to your Explorer, click the + sign in Dimensions and add your custom dimensions to the list. Now just pull the dimensions and metrics you're interested in into the report and they all should be good.
If you still don't see the dimensions filled, make sure your measurement id in the tracking tid: "G-V24L72RLMM" is the same as in the Admin -> Data Streams. It's a popular mistake when people send data in a wrong analytics property.

Related

checking analytics setup for page I do not own

I'm a consumer data analyst who is not very familiar to coding other than occasional encounters with HTML and Python, and I'm just starting with the coding part of Web Analytics. In particular, I need to learn about checking websites I don't own (therefore I don't have access to their Analytics accounts) for tracking info, but it has been phenomenally hard to find information on which tracking function each component of code stand for, or to what extent it is visible from the page source.
For a project, here is a page I'm trying to check for Google Analytics/Tag Manager/alternative analytics setup, and see what is exactly being tracked on it. Other than the source code, I checked it with Ghostery, which gave me this Tag Manager code page. Is it possible to check tracking info from these two (events, pageviews, URI and how many custom dimensions there is, specifically), and which part of the code includes that info (particularly URI and dimension info - the first two, I have more idea about)?
This is a page I'm also looking into. I can see that this one has Google Analytics/Tag manager, but again, I can't make sure of what is being tracked, and whether the Analytics/Tag Manager setup is looking -potentially- problematic in any way. Here is the Tag Manager page for this one that I obtained through Ghostery.
Any help would be much appreciated...
Looks like what you are looking for is Google Tag Assistant extension for google chrome: https://get.google.com/tagassistant/
you can download it from here: https://chrome.google.com/webstore/detail/tag-assistant-by-google/kejbdjndbnbjgmefkgdddjlbokphdefk?hl=en
When you install it it will appear as icon on any page you visit and it will show you all GA implementations on a page:
You can select tracking ID you are interested in and it will tell you how many Page Views/events were fired for that particular tracking ID only:
Then you can select individual tracking event/page view and see all data that are being sent with that tracking request. Just Click on URLs and click the icon to put the data in table:
Here "cd" stands for Custom Dimension, so here you can clearly see 2 custom dimensions that are being tracked:
Hope this helps, good luck!

GTM / GA: Cross-Domain Tracking (VIEWS & GOALS)

Situation: I have used Google Tag Manager to set up Google Analytics (GA - Universal) on a multisite network. There is one GTM container, and each website has its own GA property. I used a GTM variable to reference all of the GA properties. I am able to track cross-domain sessions. In testing, I am able to follow a user's session across multiple domains under the same session / client ID.
Problem: I'm stuck with what to do next. I'd like to create some Goals and Views that track a user's journey through my sites and measure the usual stats (bounce, drop-off points conversions, etc.). However, I'm not sure where to begin. I see plenty of information on the Internet for how to set up cross-domain GA tags in GTM. However, I don't see anything out there for how to create Views and Goals for cross-domain setups. A few questions that come to mind are:
Do I create Goals in the destination site's GA account (e.g. mycheckout.com), or the site where the session begins (e.g. myproductinfo.com)?
When creating Goals, do I only use the permalink slug, or the entire link? I thought I could only add the permalink.
How does this information roll up into one report?
I found this link, but I'm not sure if it's the 'best practice'. I would greatly appreciate it if someone who has previously implemented this could provide an outline of best practices, or a link to a good tutorial on the subject.
Thanks for your help!
Chris
You need to understand GA definition of Views and Properties. Views are like database table views: you can either show the whole table or a sample of it.
To have all data collected without sampling a "Raw Data" view (no filters) should always be used. Each view has its own conversion goal definitions. So in the "Raw Data" view you can create a goal for any page tracked. If you filter a view for one domain (e.g. "confirmation.com View with appropriate filters"), only goals for this domain should be created (otherwise they will never count a conversion).
When creating goals you can define filters for the "ga:pagePath" parameter. So it depends on your GA tracking setup, what part of the URL it tracks. Go into chrome web developer toolbar and hit the "network" tab. Open your page in this tab. Then search for requests ending with "collect", these are the data trackpoints send to GA. There you can debug what URL information is sent to GA (search for the "dl" parameter within the query string parameters list).

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.

Tracking conversions from another property

I have one website and 2 blogs. Everything is working for years and till recently we were ok with setup.
I am promoting one of the blog pages on Twitter,Facebook,LinkedIn. I can see conversions on main property but I cant tell how many conversions were from each of the sources. I just can see blog page as a source. When i switch to blog property in GA i can see segmented traffic by sources but ofc no conversions (goals are defined only on the main site)
I am reading for tracking goals from multiple properties but it only confuses me more and more. Is this possible to pass data from one property to another and be able to see what I want to see (segmentation by sources and conversions) ?
I am new to Google Analytics, and when I walked through the setup process, there was a lot of explanation about Social settings. I suspect this is new. Google has put in fields for you to track traffic to your blogs that comes in from your other social presence(s).
You'll want to identify your profile URLs for Twitter, LinkedIn and Facebook so that it can break it down for you correctly.
They state:
If you leave the Web Property Prefix blank, you'll see Activities data for the domain you are tracking with Google Analytics (e.g. example.com). If you also wish to see Activities data for properties such as your YouTube channel, enter your prefixes here; for example, youtube.com/example. Make your prefix as specific as possible (i.e. do not simply enter youtube.com). Activities data is only shown for properties from which your domain has received hits.
Source: Google Analytics Social Settings: Web Property Prefix Help

Google Analytics with a b2b site - tracking sub sections

I've implemented GA on our b2b site. It's strictly internal but we'd like to track behaviors of users to see if some of the sections on the site are relevant. So, it's working, but say you have
www.blahblah.com and you want to also track
www.blahblah.com/edit
www.blahblah.com/askquestion
Do you set up a filter for this? I did try it and not sure if it's working quite yet. Any info/advice would be greatly appreciated. I am brand new to GA.
Thanks
Not quite sure what you are asking.
If you want to know about metrics for the individual pages you'd go to to the Aquisition->Page Content reports. Overview will give you, well, an overview (you can use the filter box to look at the metrics for any specific Url), Content Drilldown will display a view structured by url hierarchy.
If you're after user behaviour you can create segments. If you want to know if somebody vistited the homepage and, after that, the /edit page you'd got to advanced segments (the arrow above the "Explorer" Tab in most views, click "create new segment", choose "sequence" from the advanced tab, choose page as dimension and "/" to filter for as step one, "/edit" as filter value for page two, enter a name for the segment and click save. Now you'll get all reports only for visitors who have visited those two pages, starting with the homepage.
There are a number of predefined segments, you should try them to see what they can do. You need a pretty good understanding of metrics and dimensions in GA to get the full value from segments, but the simple stuff (e.g. analyze differences between marketing channels) is already pretty useful.
So, for page performance seek out reports with page metrics and use filters. To analyze user behavior use segments which apply to most of the GA reports.
Hope that helps, if not you might to explain more specifically what you want to see in your reports.
You can create separate custom report for individual sections and drilldown by almost all the GA provided dimensions. please reffer the sampel provided.
Please access this URL in your browser as this is a predefined custom report which does the same thing you want. This will get saved under custom reports. You need to edit the custom report and give your own path/section insted of "/services/" under filters section

Resources