The problem is the following, there are 6 sites, each of which has a separate Google Analytics counter, we need to add to each site one more common counter that will show general statistics for all 6 sites. The question is how to do it correctly
There are few ways to do that depending on what implementation you're using.
here is a link to how to do that with gtag.js:
https://developers.google.com/analytics/devguides/collection/gtagjs/pages#multiple_properties
here is a link to how to do that with analytics.js (this may also
require an update of existing tracking):
https://developers.google.com/analytics/devguides/collection/analyticsjs/creating-trackers#working_with_multiple_trackers
in case if you're using GTM you'll just need to duplicate all the
analytics tags with a specific tracking ID or use this hack:
https://www.simoahava.com/gtm-tips/send-google-analytics-tag-multiple-properties/
Related
So I've found a few similar questions, but often either outdated, not exactly what I'm searching for or they don't use Google Tag Manager but write their tags in the <head>.
----------- Current situation -----------
We use Google Tag Manager to inject tags such as Google Analytics on our website. We use multiple tags depending on what needs to happen; such as:
tracking pages
tracking specific clicks
tracking log in or registration events
All the data goes perfectly to Google Analytics
----------- The problem -----------
However, we also receive data from other environments such as localhost:3000 or https://dev.ourdomain.com, which can result in inaccurate data.
----------- What we want -----------
Is a way to separate that data. By either:
Separating Google Analytics in data from production (domain A) and data from development (other domains)
Separate the data before it reaches Google Analytics (like my suggestion below)
Or maybe other suggestions
Between point 1 and 2, I'm more of a fan of the first way, as this would separate existing data into production and development data.
----------- Suggested solution -----------
I've been thinking about using a new property and then, using Google Tag Manager, I would return Google Analytics Settings depending on the current domain. Production would return UA-code-1 and development UA-code-2. The only issue however, is that every Google Analytics tag in GTM must be duplicated. With one containing the Google Analytics Settings for production, the other for development.
I was hoping there was a better way to tackle this, any suggestions?
You can still use single Google Analytics settings variable in your GTM and have a single instance of each tag but you can use some Lookup Table / custom JS variable inside your GA settings variable in place of tracking ID.
I assume you're using GA4, and if not, that would be a good idea since Google is really pushing the move from UA to GA4. You can create multiple properties for each domain, which would each have their own tracking ID. Then, in your index.html file where the installation code is, use some JS code to switch the tracking ID based on environment.
You'll also need separate Google Tag Manager containers for each property. If they all share the same container, you'll see the inaccurate data start to flood your properties.
This takes a bit of work, but will save you the hassle of inaccurate data being tracked in your respective properties.
I am running into an issue where my client's website (can refer to domain.com) uses a third party checkout site called rezovation that we can refer to checkout.rezovation.com: I went through this doc here https://developers.google.com/analytics/devguides/collection/analyticsjs/cross-domain and the google setup e-commerce doc (for universal analytics) and I still find it confusing so here are my questions:
1) According to my understanding I need a customized GATC to link both domains checkout.rezovation.com and domain.com?
2) If yes(above), do we setup one customized GATC for cross domain tracking on all pages from checkout.rezovation.com and domain.com? if it is the case can someone provide detail steps on how to set it up (I am not a coder so the easier the guideline, the better)
3) Once cross domain tracking is set up, e commerce tracking code should be only on thank you page should be looking like the image below?
4) Should I add manually all the extra code for the e-commerce tracking code or I can get it done via a third party website?
The question really is: Will they (Rezovation) allow a customized version of the GATC? From what I've seen from them, the answer to that is no. Again, from what I've seen, which is only a a screenshot of the interface where you enter your GAUA number. Ultimately you get in-actionable data that doesn't even pass room nights booked and cannot be attributed to the proper source.
Perhaps they offer another plan that allows true cross domain tracking. It's a shame they don't have it built in because with Universal Analytics it's an extremely easy and consistent customization that would only require one additional input from their clients.
-Theo
I have a website with following domain and folder structure:
Main Website: www.ry.com
Subdomain1: mobile.ry.com
Subdomain2: speed.ry.com
Directory1: www.ry.com/mobile
Directory2: www.ry.com/blog
I have just started setting up Google Analytics for this and I am totally confused as to what are the best practices that should be followed? Should I consider them as individual properties or just 1 property. Should I be setting up a different GA code for each one of these?
Ideally, I would like to track all of it at one place but at the same time, using some filters be able to see the traffic on any one of the subdomains/subdirectories.
I started reading up about Universal Analytics but got totally confused and some of the posts were outdated as GA and UA seems to have changed significantly in the recent times.
Please advise me about how to set this up or point me to any good blogs or urls that are a rich resource.
This is one of the most complete answers I've found for this question.
http://moz.com/blog/cross-domain-subdomain-tracking-in-google-analytics
I have not been able to find clear answers to the following:
for a client with several country sites (subdomains) I want to use a Google Analytics account per site, plus a roll-up account to collect data of all country sites into one account. I want to use Google Tag Manager to add the analytics to the sites.
To add 2 Universal Analytics tracking IDs in one container for a site, is it needed to change a name somewhere? As you have to do when adding analytics code manually to a site when using an extra roll-up account.
If so, what exactly?
subsequently I want to use autoevent tracking. To track for instance PDF downloads - which are in this case on outbound links. Which is explained in this Justine Cutroni post: http://cutroni.com/blog/2013/10/07/auto-event-tracking-with-google-tag-manager/
But instead of using the standard macro for url path, I would rather see the url title or the linktext, as the url path is indecipherable in this case (a bunch of numbers and letters).
How can that be achieved? Given that the downloads are from dynamic catalogue pages (and thousands of them).
thanks
Why multiple accounts ? This would just work as well with profiles/views. That could potentially save you a bit of headache (if you have multiple trackers you need to push events etc. to all of them - for multiple view you just need a filter in your view settings).
Having said that, you find the settings for the tracker name under "advanced configuration" in the analytics tag template in the Google Tag Manager (both for ga.js and Universal Analytics). Tick the checkbox with the label "Tracker name" and enter the name (you need to rename at least one the trackers).
I am curious if Google Analytics Content Experiments supports targeting based on the traffic source, in particular, certain Google Adwords campaigns.
For example, I have two Adwords campaigns pointed to the same destination url but would like a Content Experiment to only run for one of these two campaigns.
Even targeting the experiment based on the referring url would be helpful but I don't see an option to do so when setting up the experiment. Does anyone know if this is possible through the set up, or if I would need to create some kind of gateway that my campaigns funnel through and then get routed to the experiment URL based on the source?
Thanks!
Google does not currently provide this function by default.
I'd try https://www.optimizely.com/ (easier) and/or patching up custom bucketing code (more difficult)