How to implement google analytics on vue app on multiple domains? - google-analytics

I have multiple domains that use the same files (from git master branch). Now, I want to implement google analytics on each domain.
I've tried this vue-anlaytics package multiple domain tracking (see link - https://medium.com/dailyjs/tips-tricks-for-vue-analytics-87a9d2838915#7ead) but the problem is whenever I try to visit domain1.com. It also registers on the domain2.com google analytics dashboard.
Please help.

Defining the tracking code or GA_ID to an environment variable on each instance helped me solve the issue.

Related

Wordpress Multisite & Google Analytics

I have a WordPress Multisite network with many sub-sites under the same domain (site.com/sub1 / sub2 etc) and I want to start using Google Analytics to track each sub-site separately.
I read that it's possible to do it manually by using tags on the dashboard, but the issue is that the sub-sites are created automatically so I need to find an automatic solution from Google Analytics side..
I tried to check the Google Analytics's API but didn't find a right solution.
I would appreciate your help and suggestions for how to do it!
Thank you!

How to track Google Play download sources

I can't find the simple answer for a simple question. I want to generate a link to my app on Google Play and check how many installs comes from this link.
For iOS this is very simple, you just go to the analytics ->sources and generate a link that has a parameter. I can't find anything like that in Google Play Developer Console. Am I missing something or there is not such option for GP?
You could use Firebase Dynamic Links.
More information here: https://firebase.google.com/docs/dynamic-links
You can create Dynamic Links using your own domain name:
https://example.com/summer-sale
https://example.com/links/promos/summer-sale
https://links.example.com/summer-sale
https://ex.amp.le/summer-sale
Or, if you don't have a domain for your app, you can use a free custom page.link subdomain:
EXAMPLE LINK: https://example.page.link/summer-sale
Create your free subdomain in the Firebase console.
All Dynamic Links features, including analytics, post-install attributions, and SDK integrations, work with both custom page.link domains and your own domain.

how to verify that google analytics is working correctly on a subdomain (no access to root domain)

I am trying to add google analytics to a project that is located under a subdomain. The subdomain has been was pointed to my my project by the domain owner, so I do not have access to the domain itself.
When I add the tracking code the status (shown under Property > Tracking Info)
Status: Tracking Not Installed
Last checked: 04-Jan-2014 00:00:05 PST
The Google Analytics tracking code has not been detected on your
website's home page. For Analytics to function, you or your web
administrator must add the code to each page of your website.
Is there any way to verify the tracking code is installed on the subdomain without having to access the domain root?
Although the tracking status is uninstalled, I am getting activity in Standard Reports > Realtime.
Does this mean that it is working despite the status report?
Am I likely to get correct tracking information with this setup?
You do not need access to the root domain and if the realtime statistics track traffic then most likely your GA setup works correctly. Most likey you did not implement the code at the place in the source code where Google expects it (which usually works but is still flagged as an error in verification).
If you use Google Chrome as browser you can additionally use two nice extensions to verify that your setup is correct:
Google Tag Assistant - verifys various Google Tags without mch detail
Google Analytics Debugger - provides some detail which data is sent to google, which plugins (e.g. ecommerce) are loaded by the analytics code etc.

Tracking a subdomain separately in Google Analytics

So I've been trying to set up Google Analytics to track site's (Tumblr) blog separately from the rest of the site, but I've been having no luck. All of the tutorials online seem to be outdated, and Google's own help center isn't helping.
Can someone please help. I tried messing with filters, but simply can't get it to work.
The website is sitename.com and the blog is blog.sitename.com. They both share a tracking code.
Thanks!
Create an a custom include filter on the hostname:
on one profile, include only ^www.domain.com$
on another profile, include only ^blog.domain.com$
Beware that e-Commerce transactions can't be filtered by hostname but only by transaction ID
I encourage you to keep a 3rd profile without filters, to be able to check that you don't miss anything.
Create two Analytics profiles, one for each site. Then put their respective tracking codes on each site.

I downloaded the sdk for google-analytics but where i can setup the account?

I downloaded the sdk for google-analytics for android but where i can setup the account?
I have the option for only adding http or https wesites.
I use the UA number that i got from a fake url but i get no analytics.
Also..
Tracking Status: Tracking Not Installed (Last checked: 19-Jul-2010 11:35:21 )
The Google Analytics tracking code has not been detected on your website's homepage. For Analytics to function, you or your web administrator must add the code to each page of your website.
The Google Analytics javascript runs when you load a page. You must have a Javascript snippet that actually notifies the Google Analytics server when a client visits the page. This snippet is available once you've set up a site in Google Analytics.
I'm not exactly clear what you mean by "where can I setup the account". It sounds like you've found it.
Edit: For the Mobile version (non website) there's info here:
From that page:
Before you begin using the SDK, you
must first create a free account at
www.google.com/analytics and create a
new website profile in that account
using a fake but descriptive website
URL (e.g.
http://mymobileapp.mywebsite.com).
Once you create the profile, write
down or keep a copy of the web
property ID that is generated for the
newly-created profile.
To uninstall the Google Analytic Mod from your Zen Cart follow these steps http://surreystore.com/Forums/joomla-help/uninstall-google-analytics-by-andrew/
Perhaps here, where it says "Sign up now"? I'm not 100% sure, and am not a user of analytics, but that seemed likely to me. Also see here for a getting started guide.

Resources