Discrepancy in Google analytics data vs CRM transaction data - google-analytics

My transactions in Google analytics were more than real transaction data. When I stopped an A/B test that was running the problem as solved. The traffic from the internal data (i.e A/B) test was filtered. Does anyone have an idea why that A/B test caused the issue?

There are a number of possibilites here
   
GA integration for your a/b test service is not enabled
Variation/Experiment pages might not be sending data to GA
GA transaction are double counted on page reload
    For the first two you would have to check your integrations then test on both original and variation pages to see if data was passed to GA
    For reload issue, you would have to to redirect users to home or cart page when the thank you page is refreshed after transaction.
Hope this helps,
Cheers Analytics ML.

Related

Are there ways of testing Google Analytics demographic data collection?

I've been working with Google Analytics, and while I have all the necessary settings in the right configuration to collect demographic information, I'm not seeing anything. Other information (active users, geographic info) is showing up as I'd expect, so it's not that everything is broken. What I'm wondering is if there is a way to test the demographic data collection, to ensure that it's not just that users are blocking that data (it is a very low traffic site). Other tips are also appreciated in case I'm missing something else that could be causing this to happen. Thanks very much for your attention!
Seeing the demographics data in the reports takes a lot of hits, because they are based on a sample of total sessions.
Anyway, you can check if you have activated them by looking in the browser network if you are also sending hits to doubleclick as well as Google Analytics.

Google Ads / Analytics / Tag Manager: E-Commerce transaction not set in relation to Ad Click

We have a problem with E-Commerce transactions sometimes not beeing set in relation to an ad click ("cpc"). They appear instead with the Channel/Medium "direct". This is a problem as we cannot correctly link our revenue to the costs spend on Google Ads.
We got a payment system that allows buyers to safely pay to sellers, and we get a fee percentage of the payment volume (similar like PayPal). We get our fees as soon as a pay-in is successful. Because our users can pay via bank wire as well it may take one or two days until we actually get our fee. This is why ecommerce transactions are not sent from the frontend to GA (on a thank-you page like in online shops), but from our server directly to GA as soon as a payment succeeds.
This is the GET call our server does when a payment succeeds:
GET https://www.google-analytics.com/collect?v=1&tid=UA-XXXXXX-1&cid=1746XXXXX.1593XXXXXXX&t=transaction&ti=mytransactionID&tr=1&cu=USD
Here is a small diagram that explains the process:
We use cross-domain tracking, and the GA Client ID of the users stay the same when they get redirected from mydomain.com to app.mydomain.com, so this should not be the problem. What I assume is, that when a user clicks on an ad, the gclid of the ad is lost. Is there a way to manually send the gclid ID to Google Analytics? I would store the gclid then as well in our payment. Or is there another (maybe better way) to send transactions to GA?
Your transaction hit will only be attributed to ad-click session if payment occurs in a 30-minutes interval since the last hit with the same ID. Otherwise, the transaction hit would start a new session. Due to 'last-non-direct' rule the new session would only be associated with "cpc" channel if there were no other intermediate sessions after ad click. Please check the Google Analytics extensive overview for deeper insight.
Storing and passing gclid might help, however, this might result in some discrepancies in cost reporting since there would be several sessions for the same click. In the case of passing gclid it's recommended to pass at least two hits:
a simple pageview hit with a dummy location parameter containing gclid
and then later a transaction hit with the same location paraeter. In that case you'll be able to see your transactions as a separate sessions with a distinct landing pages
You should make sure you're using the GA client id in the Measurement protocol hit to ensure the hit gets stitched to the other hits of that user.
Now regarding reporting: Google Analytics uses the attribution model "Last non-direct Click", despite the hit being sent later, GA will ignore direct and use the previous touch point which should be the PPC campaign.
There shouldn't be an issue there. Which report are you using to see the transaction appear as direct, rather than Paid Search?

Is Google Analytics API More Up-to-date than GA site during the same day?

I've got an API query that pulls Acquisition/Channel data by day, users, sessions, bounce rate, etc. Historically, I tie out exactly to the data shown at the GA site.
I've built a new report that analyzes our same-day sales, and find that all my numbers are much higher than that shown on the GA site. This was the situation yesterday, and now my data, pulled this morning, ties out.
I haven't seen the GA site update our numbers in hours, but my GA API data is changing on each pull.
Is this expected behavior? Have others seen similar things?
Data going into GA and pulled from the API is not real-time. There is a processing latency with data processing that could be 24-28 hours.

google analytics enhanced ecommerce action not linked?

I add Enhanced Ecommerce in my GA tracking, all steps tracking fine, except CheckOut to Transaction, two action not linked together (has checkout but shows 0%).
P.S. I user third Third-Party Payment and in my test enviroment, staging GA,two action links OK. So I think maybe I miss some GA setting?
I think what's happening here is that you have not added the third party payment gateway to your referral exclusion list. Therefore, every time a user returns to your site after paying, this is triggering a new session in GA (with a new source/medium). This is why you see 1 session with transactions but 0% funnel carry through. Try adding the domain of your payment gateway by following the instructions here.

How to limit event tracking to single domain in Google Analytics

When I'm looking at the Google Analytics Events with hostname as second dimension, I can see my local domain plus my test domain mixed up with the data from my real production domain.
Is there a way to tell google analytics to ignore and not record events from any other domain except my real production domain?
I tried creating a View Filter to include only results from my real domain but that does not have any effect on events.
Any help would be appreciated.

Resources