Is it possible in Google Analytics to see how much traffic your site sends to another site, if you don't have Google Analytics access to the other site?
If not, what would it require?
Many thanks,
Claus
You'd be best off setting up an event when the user clicks on your link to the other website.
https://developers.google.com/analytics/devguides/collection/analyticsjs/events#outbound_link_and_form_tracking
You could execute a function to deliver that specific information to Google via the event function. For example, this function:
function setAnalytic() {
ga('send', {
hitType: 'event',
eventCategory: 'External_Link',
eventAction: 'User_Click',
eventLabel: 'Redirect to XYZ'
});
}
Would result in seeing the following in the events section of your analytics results:
See this page for delivering event information to Google Analytics:
https://developers.google.com/analytics/devguides/collection/upgrade/reference/gajs-analyticsjs#events
Related
I use Prestashop V1.6.1.11, and PayU payment module. I have configured the Google Analytics module.
Currently the successful order is not captured in analytics.
I think this is because the payment module, on successful payment is redirecting to order-detail page when logged in or guest-tracking page for guest users instead of order-confirmation page.
In the goal url's of Google Analytics I have added /order-detail and /guest-tracking as goals but it doesn't help.
Is there a way to capture order confirmation in this case?
Thanks for your help.
You could add the code manually to send an event to Google Analytics on your /order-detail, /order-detail and /guest-tracking pages and then use that event to trigger your successful order goal.
For example:
ga('send', 'event', 'Order', 'Successful');
I need to track userid and currentTime using Google Analytics.
Google Analytics does not offers user PII data.So I am doing following steps-
Step1-
In Order to do that I created 2 new dimention by the google analytics admin panel in under the property section for hits.
Admin->Property->CustumDefinetion->CustomDimention->AddNew
Step2- Than I changed my script by ajax call and added this data in GoogleAnalytics Script in the page which I am tracking
ga('create', 'UA-57411451-1',{'userId':customUserId });
ga('set', 'dimension1', customUserId);
ga('set', 'dimension2', entryTime);
Step3- Now I am sending GET request to GoogleAnalytics using ga-dev-tool.
Result- This is not giving me any data.May be there are very less user on the current page.
Questions-
Am I missing any thing or Is there any better approach for same.
How much delay GoogleAnalytics causes in reflecting data.
Below is the screenshot of google analytics ga-dev-tool result.
I opened Firefox console and run this:
_gaq.push(['_trackEvent', 'Videos', 'Play', 'Gone With the Wind']);
Event is tracked and is inside google analytics, but when I run this inside console it didn't showed any ajax request. How is this possible? How does google analytics send event tracking data to their server? Does it impact site performance if there is too many events?
Whether this code is fine to implement for UA to track hashchange Urls:
ga ('send', 'pageview', {
'page': location.pathname+location.search+location.hash,
'title': location.pathname+location.search+location.hash});
How many pageview requests it would record in GA everytime the event fire?
Every time that line of code executes, one Google Analytics Pageview will fire. See here for more details on Pageview tracking.
Also, this Chrome extension might be helpful. It prints info on any Google Analytics hits sent to the JS console.
Background
We have a number of websites that we maintain and we have Google AdWords Campaigns running to drive traffic to these sites.
For Example:
www.example1.co.uk
www.example2.co.uk
www.example3.co.uk
After browsing these sites, a customer will be redirected to our E-Commerce platform if they decide to make a purchase (this is where the conversion happens):
www.example-checkout.com
Current Google Analytics Setup
Our current Google Analytics Setup looks like this:
www.example1.co.uk, www.example2.co.uk, www.example3.co.uk
ga('create', 'UA-12345678-1', 'auto', {'name': 'globalTracker'});
ga('globalTracker.send', 'pageview');
ga('globalTracker.require', 'linker');
ga('globalTracker.linker:autoLink', ['example-checkout.com'], true);
www.example-checkout.com
All Pages
ga('create', 'UA-12345678-1', 'auto', {'allowLinker': true, 'name' : 'globalTracker'});
ga('globalTracker.send', 'pageview');
Checkout Page Only
The checkout/confirmation/thank you page contains additional calls to load the Google Analytics E-Commerce plugin and post the details of the transaction that has occurred.
ga('create', 'UA-12345678-1', 'auto', {'allowLinker': true, 'name' : 'globalTracker'});
ga('globalTracker.send', 'pageview');
ga('globalTracker.require', 'ecommerce', 'ecommerce.js');
ga('globalTracker.ecommerce:addTransaction', {
'id': '${transactionID}',
'affiliation': '${affiliation}',
'revenue': '${revenue}',
'shipping': '${shipping}',
'tax': '${tax}'
});
ga('globalTracker.ecommerce:send');
What Works
The E-Commerce tracking code appears to work and conversions are recorded. In Google Analytics we can see that we received traffic/clicks from our AdWords campaigns which suggests that the _ga cookie is being correctly passed cross-domain from www.example1.co.uk to www.example-checkout.com (in fact I have verified this using the Chrome Developer Tools / Google Analytics Debugger Plugin).
Problem
The problem is that the conversions are never attributed to the AdWords Campaign & AdGroup. The source of the conversion is always a referral (E.g. from www.example1.co.uk).
What am I missing? I want to see the conversions attributed to the AdWords campaign. I.e. in the "Acquisition -> Campaigns" section of Google Analytics.
Any pointers are greatly appreciated.
You do not mention that you use any decorator functions (i.e. functions that add the ga parameter to outgoing links, forms etc.) and allowLinker does not do this automatically. So it should be not possible that cross domain tracking works at all (i.e. both domains will be tracked but on changing the domain the user will start a new tracking session). (UPDATE: Sorry, I did not see the autolinker plugin in the code, so ignore this paragraph).
Plus you need to add both domains to the referrer exclusion list in the property settings (this will remove the referrer no matter what, so make sure that the client id is passed on before you do that).
Unless you have used decorators without saying so in the question this is most likely your problem. Look into the outgoing urls if the ga parameter is appended when switching domains and make sure that the ga code on the other domain does actually receive the parameter (i.e. if there are redirects make sure they retain the parameter).