Just noticed the following message in google analytics "Property xx is configured for Ecommerce, but no transaction data is being received. Your site may not be tagged for Ecommerce."
The site has had ecommerce data for several years using GA although we plan to upgrade to UA very soon. We haven't made any changes to the site or GA snippet. Has anyone else received this message or can shed any light as to why?
Thanks
Ninjasys,
You also have to send the website's transaction data with the other information in your google analytics tracking data.
E.g.:
_gaq.push(['_setAccount', 'UA-XXXXX-X']); // This must be the ID of the Google Analytics account to send the data to.
_gaq.push(['_trackPageview']); // Sends a page view to Google Analytics.
_gaq.push(['_addTrans',
The full code you can find here
Related
Google Analytics documentation seems light on this topic, but historically businesses have been able to track social sharing interactions on their websites - 'Social Plugins' - via. both ga.js and analytics.js. See here: https://support.google.com/analytics/answer/1316556?hl=en
For use case example, as a business, an analyst would like to understand how often website content is shared onto social networks by website visitors.
The problem I'm having is, I can't easily find what the gtag.js equivalent is of this functionality. The closest I can find is to send a gtag event called 'share' - but not sure if this will populate the Social Report under Acquisition in Google Analytics.
Could anyone please advise how to track Social Interactions via. gtag.js for Google Analytics?
//ga.js
_gaq.push(['_trackSocial', network, socialAction, opt_target, opt_pagePath]);
> https://developers.google.com/analytics/devguides/collection/gajs/gaTrackingSocial
//analytics.js
ga('send', 'social', [socialNetwork], [socialAction], [socialTarget], [fieldsObject]);
> https://developers.google.com/analytics/devguides/collection/analyticsjs/social-interactions
Note: I found this website which website - https://www.balkanweb.com/peshq-te-barabarte-pavaresisht-nga-madhesia/ - which does seem to use gtag event 'share' function but I am just not sure if it populates the Social reports in GA as I can't see any documentation to support that.
gtag('event','share',{method:'twitter',event_action:'tweet',content_id:targetUrl})
I made a test and I confirm that the share event mentioned does not end up in the social report but in the event report.
Since the gtag.js documentation does not mention social hits (the parameter can only be: CONFIG, SET or EVENT) I believe there is currently no way to send that type of interactions from the website with gtag.
Sadly there is no way to translate this social hit type from UA (Universal Analytics) to GA4 (Google Analytics 4) directly.
The Universal Analytics to Google Analytics 4 migration guide (by Google) mentions this in the Hit types section of the document comparing the two:
Universal Analytics hit types include page hits, event hits, ecommerce hits, and social interaction hits.
In contrast, Google Analytics 4 data is event-based, with the principle that any interaction can be captured as an event. As such, Universal Analytics property hit types translate to events in a Google Analytics 4 property.
Further down the document it also says:
[...] it’s better to rethink your data collection in terms of the Google Analytics 4 model rather than port your existing event structure to Google Analytics 4.
Hi! I have this notification in my Analytics for months about missing Ecommerce data, although all data is there, notification is there too. GA was tracking till 8jan2020 and after that it stopped tracking. On wordpress admin sale is going on and details are there. IS Google updated Analytics or there is some other reason. Could you please help me?
Thanks!
If you are tracking with a plugin it is likely that some its updates invalidated the tracking.
Surely there has been no Google Analytics update that can cause the problem you say.
A client of mine is having some issues with regards to tracking campaigns in Google Analytics that I was hoping one of you can advise me on.
They have recently sent out an email with the Google Analytics campaign information in the links back to the site from a button in the email (link created with the URL builder).
As well as the Google Analytics information they also send their own parameter for tracking using a bespoke system of theirs. In the end the url that visitors would go to after clicking the button in the email was something along these lines:
http://www.domain.com/pagename/?bespokecampaign=lead_gen/email/email_btn/boxcampaign&utm_source=email_pure&utm_medium=email&utm_term=email_btn&utm_campaign=boxcampaign
Looking at Acquisitions in the Google Analytics report I can see in the past this page has been viewed and has the correct Source/Medium set as email_pure/email.
However, there was a lead gen form that was filled out on the site after landing on this particular page that sends an event action that the form was filled out. When trying to view the campaign information for these events I do not see any information regarding the Source / Medium for that event being the correct information from the URL.
The Salesforce model in place to receive these leads took the referrer URL correctly, containing the Google Analytics parameters, but there was no record in Analytics to suggest one of the form events had the Source/Medium of email_pure/email.
Does anyone have any ideas on what could be causing this and potential fixes?
good afternoon
I am currently using google analytics to track the newsletters. For this I use campaigns.
The problem is that when you have finished visiting the linked page, the following pages continues indicating that this correspond to the same campaign.
How I can tell Google Analytics that the campaign tracking is finished?
I tried with the following code, but I ignored.
_gaq.push(
['_setCampaignTrack', false]
,['_setCampaignCookieTimeout', 0]
);
_gaq.push(['_trackPageview']);
This is intended behaviour for Google Analytics
Source precedence—A direct traffic visit that follows a paid referred visit will never override an existing paid campaign. Whatever
is the latest paid campaign visit is listed as the referral for the
visit.
https://developers.google.com/analytics/devguides/collection/gajs/gaTrackingCampaigns?hl=en
direct traffic has a vey low precedence. Google Analytics assumes that if the visitor is coming back by a direct source it's probably because of the last visit that you actually paid for, so it keeps the last useful traffic source.
I track a main domain and subdomain in one Analytics property. I have a shared profile and also subdomain-specific profiles using the Hostname filter.
I prepend /blog to the URLs on blog.domain.com because it gives good and readable reports on the shared profile (compared to displaying the full URL).
www.domain.com is http-only, blog.domain.com is https-only.
Tracking code on www.domain.com:
_gaq.push(['_setAccount', 'UA-XXXX-1']);
_gaq.push(['_setDomainName', '.domain.com']);
_gaq.push(['_trackPageview']);
Tracking code on blog.domain.com:
_gaq.push(['_setAccount', 'UA-XXXX-1']);
_gaq.push(['_setDomainName', '.domain.com']);
_gaq.push(['_trackPageview', '/blog/article-title');
Problem is, only about 2 out of 15 daily pageviews from the blog show up in the reports.
Using the Chrome GA Debugger I can see that the tracking beacon is sent. The GA live view also seem to show all these pageviews. There are only one set of GA cookies (.domain.com), and I can see the the counters in the cookie increment on each pageview.
I also have a _trackEvent on the blog that have incomplete statistics. But for some reason, my eCommerce tracking seems to be complete.
Any reason that tracking pageviews and events for blog.domain.com should not work in the above case?