Integrate Google Analytics with Static Firebase Hosting Website - google-analytics

i have made my website with wordpress and then used simply static plugin to generate static files which later on i host on firebase hosting. I want to add google analytics to my website so i have added analytics script in my website pages header using another wordpress plugin. The problem is that analytics does not get shown on google analytics site. Am i doing something wrong?

Related

How to disable Google Analytics for Firebase web hosting project

Google Analytics was enabled when Firebase hosting project was first setup but now I don't want it anymore.
Is there a way to remove Google Analytics from Firebase Hosting site so that google tag script is no longer dynamically added to the site.

Analytics not tracked for Firebase Dynamic link created with custom domain

I created a Firebase dynamic link with custom domain from the Firebase Console then the Firebase dynamic links analytics is not tracking the clicks even after waiting for 3-4 days.
If I create a Firebase dynamic link without custom domain then the analytics is tracking properly.
It seems this issue is specific for dynamic links created with a custom domain.
Could anyone help me with tracking analytics for Firebase dynamic links with custom domain?

Running Wordpress on a subdomain of a URL used for Google App Engine (GAE)

I currently have a Google App Engine application, myapp, to which I have assigned a custom domain, mycustomdomain.com. mycustomdomain.com is currently registered through Google Domains. I set up the custom domain as instructed by Google's docs and it is all working as expected.
Now, I would like to create a subdomain, blog.mycustomdomain.com and point it to my hosting company (i.e. not direct it to my GAE app), where I have a self-hosted Wordpress installation.
I have tried doing this through an NS entry for the subdomain blog through Google Domains, but this does not work.
Could someone direct me if they know how to do this? Thanks.

Google analytics in Wordpress subdirectory

I am converting over a static site to Wordpress. Wordpress is installed in a subdirectory. What I'd like to know is how to add the subdirectory to the current Google Analytics report. I have tried adding both Google analytics asynch and ga.js code into the existing embed code according to the instructions as outlined here-
https://developers.google.com/analytics/devguides/collection/gajs/gaTrackingSite#domainSubDomains
...and it isn't showing up on the dashboard.
Is there a straightforward methodology or tutorial for doing this?
Incidentally, I've tried using a plugin to integrate Google Analytics into the site, but it's only showing me the current analytics, without an option for the subdirectory. So, I'm assuming the embed code needs to be modified.
Any help would be appreciated.

Can Google analytics be hosted on a different URL embedded in an Iframe

I have a website www.site.com that contains a iframe which embeds another site www.another.com which contains google analytics code. Now if a user navigated to my website at www.site.com will the google analytics code in the iframe for www.another.com track that user? If not is there a way to solve this?
Yes. There is extensive documentation about this over here.

Resources