i wish you could help with my strange problem. Well I tried to add pageviews on my blog so i deployed google-analytics-super-proxy and now I need to make a right query, but this site has only ua and ga4, and i cannot make a request.
I need to make a query like
https://www.googleapis.com/analytics/v3/data/ga?ids=ga%3A12445&start-date={6daysago}&end-date={today}
I tried to do it manually, but i don't know ids
Related
Annoyingly someone accidentally duplicated my google analytics tag on a second site and now all their site traffic has been mixed into the original sites on GA.
Could someone guide me through removing the second URL from the account?
I've looked at filters but can't get my head around it.
the property is a GA4 site.
Thanks!
You looked in the right direction. You want to filter by the hostname. Note that it won't remove the historical data, it will just prevent it to get to GA in future.
Also, you can apply filters to your local reports to remove the wrong hostname-related data from them.
Besides, GA4 is still raw. It's suggested to keep both, - GA4 and UA in place and use the latter for day to day analysis while the former collects data for when UA is not available anymore.
You can't do it.
The saved data in Google Analytics cannot be changed.
I recently signed up for a google analytics account in anticipation of a new site I'm putting together. The site has not been published, and the tracking script has not been put in the code yet.
Somehow after logging back in to grab the tracking code, it's showing I've already had 275 views in the past month. How is this possible???
These are very likely ghost referrals sent by spammers targeting random GA property IDs (which explains why you see them even before your Web site is live). Since you are setting up a new site, probably the easiest way to get rid of them is to create a new Web property so that you get an ID not ending with -1. The reason is that this type of spam is only targeted at the first property in an account.
If you want to get more information about how referrer spam works and alternative solutions to eliminate it, here is an article I wrote some time ago:
http://veithen.github.io/2015/01/21/referrer-spam.html
What people are doing is basically taking the UA-XXXXXX code that you normally get with analytics, and they are generating calls against it. This is skewing my analytics stats. On top of that, in Google WebMaster tools, it's also causing this:
It looks like somehow these pages, with my code on or at least with the generated code on, is making Google Webmaster tools think I have lots of 404's. This can't possibly be good for my rankings.
Anyone know if there is anything you can do to stop this?
Try making async call from your server end using CURL.That way you will never expose your GA code.
I have not implemented it, but it might work as per theory
Since you can filter by custom dimensions you can set a "token" in a custom dimension on every page and filter out any traffic in your view settings that does not include the token.
Obviously this will not help against people who use the code from your website (unless you also implement shahmanthan9s suggestion - which is a lot of work but will give you cleaner data), but it will work against drive-by shooters who randomly select UAIDs to send data to (which is the situation you refer to in your comment).
I'm trying to track a series of emails and where users are clicking. I really only have google analytics to work with. I'm attempting to use google analytics to tag my links but all I'm getting is the campaign, all the other tags are coming up (not set).
example of the links I am using:
http://www.example.com/en/secured/rewards?entity_id=<%~user%>&pw=<%~pw%>&utm_source=confirmEmail1&utm_medium=email&utm_content=button1&utm_campaign=ssconfirmEmail1
This part of the link HAS to be there.
http://www.example.com/en/secured/rewards?entity_id=<%~user%>&pw=<%~pw%>
I believe something with the entity_id and pw tags are creating a conflict with google's tags. Currently I'm testing weather doing this to the link will work or not.
http://www.example.com/en/secured/rewards?utm_source=confirmEmail1&utm_medium=email&utm_content=button1&utm_campaign=ssconfirmEmail1&entity_id=<%~user%>&pw=<%~pw%>
My question is, first: Does anyone know a reason why this would be happening?
second (forget google analytics and do something custom): I know I could track the link by creating a redirect through a page and then having it redirect to the correct url, but I'm too new at this to know if I can carry the entity_id and pw through the redirect. If so, how?
Thanks!
Since the link was picking up everything but the content, I just eliminated that and changed the source to what I was using in the content. It's working now
http://www.example.com/en/secured/rewards?entity_id=<%~user%>&pw=<%~pw%>&utm_source=button1&utm_medium=email&utm_campaign=ssconfirmEmail1
I have been requested to get involved with a family member's site.
To date, they have been paying an SEO outfit, which I believe has been feeding them lies and milking them for money.
I can see that all pages in the site have Google Analytics. However, the SEO outfit refuses to let us see the Analytics page, and has always just forwarded them some (presumably doctored) slideshows.
The only tracking service that lists their site is Compete, which shows a number of visitors far from what they are paying for.
I would like to add their site to my own Analytics account. I have ftp access to their server, and permission from the site owners to modify any files I want.
However, I don't want to do anything that might destroy the entire existing history of analytics data, or even that would interfere with the current SEO outfit [until I have something concrete in-hand].
Does anyone know:
Can I add Analytics to my own account when it was originally setup by someone else?
Will there be any negative results of attempting this?
Any other ideas?
Thanks
Edit: Can anyone suggest a better title - I can tell mine is not good?
I've put two Google Analytics tracking codes from different accounts on the same site without issues. It may cause the site to be a tiny bit slower (as it communicates twice with Google) but it'll do nothing that would delete old data or impede collection of new data.
In short, what you're doing sounds like a good first step.
You will not, however, be able to access past data by doing this. You will be able to compare their numbers with the numbers you're getting, though, which should be valuable.
I don't know if you can add the same domain to two different Google Analytics accounts (easy enough to try, though), but you can always add another service's Javascript snippet, e.g. Woopra. Google and Woopra produced very similiar results in my experiments.
You may want to leave their Google Analytics tracking in place while adding your own Google Analytics tracking. In that case, your numbers should be identical to whatever is being tracked by this third party.
You'll need to set up your own account and then add in the creation of your pagetracker object and your own track page view. You don't need to recreate the entire page code. You can do it with two more lines. It would look something like:
var pageTracker =
_gat.getTracker("UA-XXXXXXXX-1"); //EXISTING pageTracker._trackPageView();
var secondTracker =
_gat.getTracker("UA-XXXXXXXX-1"); //YOUR TRACKING ACCOUNT secondTracker._trackPageView();