Skip to main content
10 votes
Accepted

Google Analytics - Is there a way to import Universal Analytics property data into Google Analytics 4 property

There is no way to migrate historical data from Universal Analytics (UA) to Google Analytics 4 (GA4). When you migrate, you can avoid data loss by dual-tagging. That is include both GA4 tags and UA ...
Stephen Ostermiller's user avatar
6 votes

How can I find the IP address for my visitors in Google Analytics Universal reports?

Here are the instructions to view IP addresses in Google Analytics. Add the following code to your pages, before the traditional Google Analytics code: <?php if (!empty($_SERVER['...
Alain Picard's user avatar
4 votes

How can I find the IP address for my visitors in Google Analytics Universal reports?

Tracking user IPs wouldn't be to beneficial to the overall product that Google is trying to deliver. You can however find the IP's within the Apache (or IIS) log files though. Then you can take ...
Ryan Brown's user avatar
4 votes
Accepted

Is there equivalent functionality for Universal Analytics behavioural flow in Google Analytics 4?

It's not possible as of now, and it's one of the SEO community's largest complaints about the new (cough cough...beta) GA4 experience so far. It's perfectly fine to use both, and I encourage it. I've ...
Mike Ciffone's user avatar
  • 6,435
3 votes
Accepted

How to forward all Google Tag Manager events to Google Analytics?

I think the Tag Types are causing confusion for you. A Google Analytics tag is one that sends specific data to Google Analytics, not one that installs Google Analytics. The GTM code included on your ...
Reve's user avatar
  • 2,041
3 votes
Accepted

What Are 20 Common Reasons for Incorrect Pageviews

Blame Your Expectations: This one hasn't really been a big issue on here in the past but still deserves an honourable mention. If your only reason for thinking that your pageviews are wrong are that ...
Chris Rutherfurd's user avatar
3 votes

Data streams from Google Analytics 4 for a Single Page App page views?

I've found some more info about this topic. This is the docs related to the Google Analytics 4 and gtag implementation. https://developers.google.com/analytics/devguides/collection/ga4/tag-guide And ...
cbdeveloper's user avatar
3 votes

10 seconds on site within Google Analytics versus Tag manager Timer

Google Analytics' goals may be off due to the fact that they either measure the time between interactional events or between actual pageviews. While Google Tag Manager doesn't care about events, it ...
BNazaruk's user avatar
  • 1,772
2 votes
Accepted

Why are there 50% fewer pageviews and 130% bounce rate increase when upgrading to Google Analytics Universal?

Make sure if you are upgrading from the ga.js to analytics.js that you add your domain to the Property's Referral Exclusion List. It is done by default for new properties but needs to be done ...
Bronwyn V's user avatar
  • 3,423
2 votes

Error "Field name is required" - Google Analytics API

@SomewhereDave got me on the right track. If anybody runs into the same issue, here's how I solved it. Caveats: I'm using googleapis Node.js library, authenticate via JWT (service-to-service ...
Julia's user avatar
  • 21
2 votes

Error "Field name is required" - Google Analytics API

Apparently, you have to provide a JSON object as the request body including values for all possible keys. So, if you want to change your view's name you also provide the id, currency, timezone, etc. ...
SomewhereDave's user avatar
2 votes

How to report traffic from subdirectory as a referral

For others looking at this, I came up with this possible solution. You can change the referrer value before you send the page view to google. So something like this might be what you need. if (...
Andrew's user avatar
  • 121
2 votes
Accepted

Implementing Google Enhanced e-commerce Tracking with Google Tag Manager

Standard Ecommerce requires the Track Type - Transaction tag, Enhanced Ecommerce requires a Track type of Pageview or Event. To access the More Settings option, click the checkbox for Enable ...
Bronwyn V's user avatar
  • 3,423
2 votes
Accepted

Which code to embed in my website for cross-domain Google Analytics (Universal Analytics)?

Unless you have actual links, linking between the sites, or mechanisms in place that move site visitors between sites (eg site registration taking them to another site upon completion or similar), ...
Bronwyn V's user avatar
  • 3,423
2 votes

How to exclude URL parameters from Google Analytics reports?

Only ? indicates a query parameter; adding f to the exclusion list would remove ?f=... parts of a URL but won't affect /f/.... You should be able to do this with a filter, though. Add a new filter of ...
Reve's user avatar
  • 2,041
2 votes
Accepted

Use Analytics + Tag Manager to track link clicks of specific URLs

Make a tag in GTM that sends your event to GA. Go to Variables. Click Configure for built-in vars. Select the Clicked Element like so: Make a Click All Elements trigger. In the trigger config, Do ...
BNazaruk's user avatar
  • 1,772
2 votes

Get Instagram referral profile/user's name in Google Universal Analytics or GA4

Unless it's in the referrer path, you can't. I'm not sure how Instagram operates, but all you get is their referrer. The referrer always exclude the query string when the origin uses an encrypted ...
BNazaruk's user avatar
  • 1,772
2 votes

2 _ga cookies are generated at the same time

You don't need to guess or look at the cookies really, not at this point of debugging. Look into the network requests, see if the client id changes from page to page. It shouldn't. All hits within the ...
BNazaruk's user avatar
  • 1,772
2 votes
Accepted

Google Tag Manager events not registering in GA4 but do in GA

You are correct, the UA tags and events will not migrate over automatically. The answer here is to restructure your UA events to follow GA4's data collection model, then set up new GA4 conversion ...
Mike Ciffone's user avatar
  • 6,435
2 votes
Accepted

The same google tag triggers for different tags and websites

There are many ways to mitigate this. You made a mistake of making the same tags on the same triggers and expecting them firing differently. The junior thing you could do is - yes, edit your triggers ...
BNazaruk's user avatar
  • 1,772
2 votes

GA4 showing far fewer page views (50% or less) than UA

I found the answer in this YouTube video. https://www.youtube.com/watch?v=5E6hZayk1mQ I had activated Settings --> Reporting Identity --> Blended. Because of this, I had a threshold applied. ...
Bhargav Joshi's user avatar
1 vote

Could it be correct to have two Google Analytics UA codes in my site?

There's no problem having two GA codes on your website and the purpose of it could be multiple. From having data from an old GA account that they want to keep and not lose to forgetting that the old ...
jlmr's user avatar
  • 11
1 vote
Accepted

Do Google Analytics filters accept regex for IP address rules?

You can use regular expressions for IP filtering, but you need to create a custom type rule, instead of predefined. Key settings for this: You can even find tools to create the RegEx based on the ...
kgrg's user avatar
  • 456
1 vote

How to forward all Google Tag Manager events to Google Analytics?

That is correct, two tags.. one to fire the pageviews and one for your event. You may find you end up creating further event tags, depending on your tracking/reporting needs.
Bronwyn V's user avatar
  • 3,423
1 vote

Google Analytics 'Appears' to be ignoring campaign attribution

I had the exact same problem than you and spent days analysing some of my clients User Explorer reports, segmenting by sessions with campaigns correctly attributed via utms. The net result was: the "...
lcrespilho's user avatar
1 vote

Google Analytics 'Appears' to be ignoring campaign attribution

Check your http/https redirection and make sure nothing is lost, sometimes it drove me crazy in the past with Analytics. I'll do a little experiment: Create a unique medium/source for the test. Go ...
Emirodgar's user avatar
  • 3,817
1 vote

Where do I find missing query string paramters for Google Analytics in Chrome Dev Tools?

As @nyuen pointed out the hostname is an optional query-string-parameter. What I failed to realize before is that Google Analytics automatically extracts the hostname from the full page url stored ...
SomewhereDave's user avatar
1 vote

Analytics Clicks and Sessions Discrepancy warning

It's a Google configuration/identification issue. I believe this happens when you have a domain mismatch either through redirections (or identification via web properties). That is, clicks are going ...
Miles Gillham's user avatar
1 vote
Accepted

Does the new Analytics.js have a queue for posting events?

The GA function is in fact an async wrapper function. It provides a single entry point to the analytics.js code to do everything. The first value is a method, the second is a value, and subsequent ...
Chris Rutherfurd's user avatar
1 vote
Accepted

How can i check the query string parameters for Internet Explorer in Google Analytics?

I came up with an answer finally after an year. now i am using HTTP watch extension. https://www.httpwatch.com/download/ Go to the above URL and download the free edition. Run the .exe file. Then ...
A user's user avatar
  • 263

Only top scored, non community-wiki answers of a minimum length are eligible