Analytics not working in Chrome App - google-analytics

I am trying to add Google Analytics to a Chrome App using the google-analytics-bundle.js library found here. Apart from the example in the bundle itself I also tried this sample with no success.
Note that the tracking ID in both tests was been replaced to my own property id, which has already been used successfully before with a separate website.
Here's a screen shot which shows the details of the request and the data being sent:

Since you said that the same tracking ID works on a website, it probably means that you have a wrong kind of tracking ID.
From the Wiki of the library:
Prerequisites
[...]
get a Google Analytics "App" tracking property.
There are 2 types of properties, selected at property creation: "Website" and "Mobile App". You need the second type to work in a Chrome App.

Related

Google Tag Manager not collecting data when deployed to Vercel (Next js)

I am trying to use Google Tag Manager to collect event data (including page view) but it isn't feeding through to Google Analytics once its deployed to Vercel.
I have checked the following things:
GTM has a GA4 Configuration Tag with the measurement ID from GA
I have set up the GTM measurement ID as a public variable in env.local (and reflected this in Vercel)
T have added the script to _app.js
I have added the iframe to _document.js
Set up the tags required in GTM and published it
Using dev tools I have checked that the gtm script (with the correct reference) is fired in the Network tab
Also checked dataLayer in the Console tab is collecting the data expected
However, in spite of all of this I can't see any data in Google Analytics. Played around a bit yesterday expecting to see some today but nothing.
It seems to work on localhost and checking both in real time Vercel doesn't register a view but localhost does.
Previewing the Vercel URL from GTM does say its connected and I can view that in real time in GA when going this way, but if I go to the address directly it's not logging it. Checking 'Tag Coverage' on GTM also says the pages aren't connected.
Am I missing something? It seems to work in theory, just not in practice when visiting the Vercel address directly (as opposed to via GTM preview)?
Thank you in advance
I think I found an answer myself and it's rather basic. It seems a pop up blocker I had installed ('Pop up blocker for Chrome™ - Poper Blocker') was preventing it from firing. Disabling the extension seems to have done the job.

GA4 Debugview staging issue

I'm trying to get GA4 e-commerce working for a client. For some reason though I cannot get the testing environment to send data over to any GA4 property. The preview and DebugView work just fine with the production website but the second I change the address in preview to the staging website nothing gets picked up anymore in GA.
The container shows in preview that it's installed correctly, you can see the events trigger like normal in GTM and when you open the tag it shows the correct measurement ID.
I created a new testing property to try and see if that made a difference, it didn't. It still only shows the events from the production site, not staging.
Tag assistant shows that the container is properly loaded on staging.
Anyone has any clue what i should be looking at? Any help would be greatly appreciated.
thanks
Double check that you're not inadvertently running AdBlock or have Firefox configured to block marketing tags. Either would result in the GTM Preview indicating conditions met and tag fired, but the browser could be prevented from actually sending the data.
Alternatively, check that your GA account/property doesn't have a filter engaged that's preempting the data from being processed in GA.

Migrate data from one Google Analytics Property to Other

We by mistake created a Google Analytics Property of type Apps + Web(as in image). But it restricts us from using many Web specific features (like adding custom dimensions and connection with Google Tag Manager).
So we create a new property of type Web (as we anyway won't need App related things anytime sooner), but now how can we migrate all analytics data(of 4-5 months) to the new property.
We tried to go through the docs and didn't find any related help.
Any input would be helpful.
There is no way to migrate the data from one Account, web property or view in google analytics to another. Once the data has been sent the data is there forever unless you delete the account.

Google Analytics Management API :: Create New View (Enable Enhanced Ecommerce settings

Trying API Explorer https://developers.google.com/analytics/devguides/config/mgmt/v3/mgmtReference/management/profiles/insert as per settings in attach screenshot.
The New GA View that's created has Ecommerce settings enabled (as expected) but Enhanced Ecommerce toggle still switched off... is it a Bug ? (also tried with Python Client Libraries, and same result...)
Thanks for clarification!
]
This behavior is expected. enhancedECommerceTracking can't be set on insert. See the reference documentation for profiles/enhancedECommerceTracking. You'll have to do an additional patch or update to set enhancedECommerceTracking.
From the reference page:
enhancedECommerceTracking boolean Indicates whether enhanced ecommerce tracking is enabled for this view (profile). This property can only be enabled if ecommerce tracking is enabled. This property cannot be set on insert.
I confirm I get the same behaviour. And if I query the view back, the enhancedECommerceTracking property isn't even returned (eCommerceTracking is and is properly set to true). So it looks like a bug indeed. To be honest the management API is a bit shitty: I've seen other inconsistent values being returned, and the main problem is that you can't really automate account management since it's missing many features (eg even if there was no bug for enhancedECommerceTracking, you would still have to configure the funnel manually as it's not supported by the API).

How do you activate Google Maps JavaScript API v3 service?

The tutorial doesn't say how to activate the Javascript API v3 service. It just says do it. My Google Developers Console screen doesn't match the screen they show in the written (probably out of date) tutorial.
There is no "Service" category for me to choose. I have a "Terms of service" category which, when chosen, allows me to read the terms for this particular API but there is no action to be taken in that window. I have an API key and I have entered the code in my web page and placed my API key in it.
I get the following error message when loading the web page: "This page was unable to display a Google Maps element. The provided Google API key is invalid or this site is not authorized to use it. Error Code: InvalidKeyOrUnauthorizedURLMapError" and I think it may be because I have not been able to "activate" API v3 for this project.
I have tried the following:
Regenerating a key and using it immediately so I know it isn't that the key is over 24 hours old
Double checked my referrals
Accurately entered the name of the site where I am trying to make this work.
You need to activate API from the Developer Console
click the 4^ and then click the "Enable API" blue button
I wasted my time just because of confusion so i am answering here with updated screenshots to help in a better way.

Resources