I have two google analytic views setup like below:
Website's URL: abc-x1.test.com
Website's URL: abc-x2.test.com
image
The urls are different by subdomains and they are separate web applications.
I added ga tags, ga('create', 'UA-XXXXX-Y', 'auto'), in both web applications and every time a button is clicked it sends some custom dimensions.
The problem that I'm having is even though I clicked the button in the first website (abc-x1), it sends dimension information to both websites' google analytics. (or not sure if it's sending it to both but I can see the dimensions coming in in both views when I do query).
How can I send custom dimensions to the website where I clicked the button but not to the other one?
You have to add a filter based on domain for each views. The website entered in you screenshot is not used to distinguish the site data, it has another function in reports but has no impact on the data.
Related
I have hunted around a bit and only found how to setup the site search parameter in a site's admin section. This is not what I want. Also looked through some Google Search Console videos - no go.
Given a URL, https://somesite.com/redirect/?redirect=https://gofundme.com/somecampaign/.
As some background, what I have setup here is a simple page that says "Loading..." and is used for external links I want to track analytics on, from platforms that I may not have access to the link's analytics. For example: https://gofundme.com/somecampaign.
Rather than having a redirect setup on the page itself, I injected custom JavaScript through Google Tag Manager that records analytics data in Google Universal Analytics (anyone want to recommend how to do this in G4A?) then performs the redirect.
My question is, in Google Analytics, how do I setup a custom report where the query string parameter = redirect and/or the specific page URL?
Thanks.
I'm having issues with tracking the UTM parameters in Google Analytics on an iframe.
My website is embedded in an iframe on http://www.blokker.be/inuwkot and http://www.blokker.be/danstonkot. The visitors go straight to the two links (either dutch or french). No visitors go straight to my own domain.
In the overview page form analytics I can view the amount of visitors/views but not the UTM parameters. I can only see it's a referal.
Any ideas on how to get the UTM url's working in the iframe so I can see where my visitors come from?
Since your frame content is located on a different domain you can not track url parameters from the hosting page without support from the domain owners - they would either have to append the parameters to the frame url, or send a message using the postMessage interface which allows cross-domain communication between pages and embedded frames.
So the page has to send the information to the frame, you cannot simply access it (for security reasons). If the owners of the blokker.be domain do not support that then you are out of luck.
I mistakenly used google analytics code of another website and now, in another site's google analytics report, it shows wrong URLs (because it is of my new website's),
How can I remove those URLs/Pages from google analytics' account.
Example,
I have abc.com website's google analytics code and I mistakenly used it in def.com's website.
There is a URL on def.com/new-year and it shows on abc.com's google analytics on Acquisition => All Traffic => Channels,
Is there any way I can remove the record from google's generated table ?
You have the following options:
Use the time selector and set it to a date after the wrong tracking code was removed.
Use the hostname secondary dimension in the report and thus remove all traffic to the wrong hostname.
Duplicate the view and then delete it. But you will lose all the data so this is rather drastic.
I have been reading some google documentation on tracking via google analytics, but still hasn't have a clear understanding of what's happening, I will put this in plain english so that my query can help others as well.
Basically I have 2 sites: siteA.com (parent), and siteB.com (child)
I have created a widget on siteB.com, i.e. siteB.com/widget. Let's say in this case I embed siteB.com/widget on siteA.com (home page)
<iframe src="http://siteB.com/widget"></iframe>
And on siteB.com, I have the relevant google analytics installed. So my question is:
Will siteB.com google analytics be able to register siteA traffic? (one traffic to siteA.com equals to siteB.com/widget.)
Many thanks!
Short Answer : No, It is not as simple
For cross browser tracking:
https://developers.google.com/analytics/devguides/collection/gajs/gaTrackingSite?csw=1#trackingIFrames
In a site where the transfer between domains is done by opening a new
window or by including content in an iFrame, you will need to to
use the _getLinkerUrl() method to transfer visitor and campaign
cookies from one domain to another. For example, suppose you include a
form in an iFrame that is hosted on www.my-example-iframecontent.com.
In order to transfer visitor information from the parent page that
hosts the iFrame on www.example-parent.com, you would use JavaScript
to load the iFrame and pass in the cookie information using the
_getLinkerURL() method.
There are different ways to setup and it all depends on your configuration. Therefore, I suggest that you setup some test profile and experiment with your settings.
I would like to track clicks and views of banners on my website to give statistics to the advertisers. These banners are added via custom post type in Wordpress.
If I use the URL builder tool to generate that kind of URL: http://widget.newswire.ca/registration/submit_form_cnw.php?l=cafr&utm_source=fpjq&utm_medium=bigbox&utm_campaign=cnw is it ok?
I mean, is it the right way to do it?
Usually you use the URL builder tool when you have external campaigns like advertising on another sites, sharing links on social media, etc. It's normal that your advertisers will give you the destination URL with the tracking parameters they want so they can monitor their performance in GA on their end.
In order to track clicks on the banners you host on your site you should use either virtual pageviews or event tracking:
Classic GA:
https://developers.google.com/analytics/devguides/collection/gajs/asyncMigrationExamples#VirtualPageviews
https://developers.google.com/analytics/devguides/collection/gajs/asyncMigrationExamples#EventTracking
Universal Analytics:
https://developers.google.com/analytics/devguides/collection/upgrade/reference/gajs-analyticsjs#virtual-pageviews
https://developers.google.com/analytics/devguides/collection/analyticsjs/events
You can add a small delay so GA has enough time to execute the code.