Questions tagged [google-analytics]
Google Analytics is a free web analytics solution provided by Google, featuring several client-side APIs, as well as REST APIs for data export and for management.
17,389
questions
0
votes
0answers
9 views
Google Tag Manager Losing Checkout Steps
I made a custom GTM to track checkout steps. I am using custom JS variable to populate the ecommerce object.
I am getting step 1 into my GA but not other options although in preview mode I see the ...
0
votes
0answers
6 views
Jquery get value of cookie and send to GA
I am trying to get the value of a cookie from my browser and send that to GA, I can do page views and events etc, But I am confused how to handle cookies?
var gaData = {
exp: "EXP",
guest: ...
0
votes
0answers
5 views
Query cardinality of a dimension without multiple calls?
I'm using the Google Analytics API and I'd like to get the cardinality of my page data.
It would be possible, of course, to just pull page + page views, chucked, and count, but I wanted to see if ...
0
votes
0answers
7 views
How to fill a Form Field with data from Google Analytics with Javascipt?
I wish to insert "Session Duration" and "Pages / Session" from Google Analytics into form fields, so the data is submitted to the back end.
I'm able to enter values using URL parameters or by ...
0
votes
0answers
7 views
Simple analytics onclick event not tracking
I have a very basic google event tracking script set up as a test. When clicking the button it should send an event onclick.
I originally had a more complex script which was intended to send an ...
0
votes
0answers
16 views
gtag.js is recording $0 for all goals' Conversion value and Enhanced Commerce data is missing
We recently upgraded our analytics.js tracking to gtag.js approach to consolidate tracking across Google Analytics and Google Ads.
However, after the migration, Google Analytics no longer displays ...
0
votes
0answers
14 views
Website registers a analytics pageview hit but doesn't track the actual page on Analytics?
I have a website and I have it setup so it connects to Google Analytics when the navigation is hit. The network tab registers a 'pageview' hit through a GIF and sends the data to analytics, however, ...
0
votes
0answers
28 views
UTM Suffix getting removed by a 301 Redirect
I have a site that i'm trying to get UTM tags to work on and every-time i load the URL with the UTM suffix it forces a 301 redirect. If i load the URL with out the UTM suffix it does not redirect the ...
0
votes
0answers
25 views
What is the Google Analytics client prefix?
So we can track conversions on a hotel booking widget on our website we are asked to provide the Google Analytics client prefix. They say: Your Google Analytics client prefix - Usually, the name of ...
0
votes
1answer
20 views
Define URL in GA code to track that web address
Is there a way in JS to define the url for Google Analytics you are trying to track?
So far my code is as follows:
(function(window, document){
var gaData = {
Name: "Test",
...
0
votes
0answers
13 views
How to implement App+ Web analytics property in android app? i didn't find implementation steps on android side
ApplicationSingleton application = (ApplicationSingleton) getApplication();
mTracker = application.getDefaultTracker();
0
votes
0answers
12 views
Google Analytics measurement protocol not in report only in real-time
I've got a chrome extension with a call to Google Measurement Protocol to register 'event's in Google analytics. Events are registered in real-time but do not appear in reports (also checked several ...
0
votes
1answer
24 views
How to count the buttons clicks, with google analytics
I have a problem with google analytics code when i try to count how many times, clicked a specific button, on my wordpress site. To be more specific, on my website, i would like to count, with google ...
2
votes
0answers
31 views
Some Google Analytics events sent through Measurement Protocol disappearing after a day
As of September 10, 2019, we are seeing some of the events we send to Google Analytics for multiple accounts register in Real Time events then show in Events Overview and then after about 24 hours ...
0
votes
0answers
12 views
Installing Google Optimize and the anti-flicker snippet via gtag.js
I'm installing Google Optimize and the Anti-flicker snippet and want to make sure my implementation is proper. Google warns that:
You must initialize the dataLayer above the anti-flicker snippet or ...
0
votes
1answer
36 views
Regex to clean up email campaign names and then combine?
I'm pretty new to Regex and am trying to create an expression to clean up some inconsistent email campaign naming so that I can report on them nicely in Google Data Studio.
I have tried to self-...
0
votes
1answer
21 views
get window.location.hostname in analytics gtag
I'm trying to get the current hostname inside an iframe onclick but this is not working.
Don't know if I'm doing wrong or if it's possible this way...
My code is:
<html>
<head>
<...
1
vote
0answers
19 views
Google Analytics Reporting API: Filter by custom dimension OR other filter
and sorry for my bad English.
I use Google Analytics Reporting API to get statistics of my website.
I send a JSON with my request.
Google analytics support filter expressions with OR operator, as ...
0
votes
0answers
18 views
Contact Form 7 (CF7) Goals in Google Analytics (GA) Not Working
I'm trying to set up a goal on Google Analytics when someone succesfully submits a specific Contact Form 7 form on Wordpress.
I've followed the instructions from CF7 and Google Analytics and I still ...
0
votes
0answers
16 views
How to create a custom gtm variable, which would return specific object field from array of objects?
I'm using Enhanced Ecommerce in my project, and I faced a problem of getting incorrect data in my GoogleAnalytics impressions report.
The main problem is that we used to send impressions as single ...
0
votes
0answers
23 views
How to fixed Unparsable structured data issue in webmaster [on hold]
I have fixed all the issue in my webmaster only one issue is coming Unparsable structured data on website workrr.in i don't know why this error has come,
my website is not ranking any keyword, could ...
0
votes
0answers
16 views
How to check if google advert upload has been successful
I'm trying to find out how many slots have rendered with content. If a slot has rendered successfully I want to fire a tracker to say to google analytics that the advert has uploaded successfully. The ...
0
votes
0answers
12 views
How google analytics measure the referer of internal APP browser?
How does GoogleAnalytics determine the traffic that comes from the internal browser of an app? as traffic of the social network to which the app belongs, or to direct traffic because the URL has been ...
0
votes
0answers
24 views
How to add a property to the users coming to my website
I want to add a field value to all the users present in the google analytics. So as soon as the user do some action on the website I want to make an api request so that I can update the user value. I ...
0
votes
0answers
15 views
Q. How can I send a admin cloud function message to a topic with the analytics label property?
I am trying to add the analyticsLabel property to an admin.messaging.sentToTopic function so I can see the message analytics data in the Cloud Messaging console Reports tab.
The function works fine ...
0
votes
0answers
15 views
Firebase analytics - Content grouping in screenview tracking
Is there a way to add parameters to the manual tracking method (setCurrentScreen in Android and setScreenName in iOS), I would like to add a content grouping parameter. Thanks for the help
0
votes
0answers
22 views
How come different accounts see different data in google analytics (for the same website / time period)?
Multiple users have access to our google analytics account for a particular domain. When I look at google analytics logged in as my user, it indicates there were about 347,000 sessions during the ...
0
votes
0answers
14 views
b tag added dynamically over div s
I have site with footer combined by three divs. Every thing was working as intended before I added :
<script type="text/javascript" async="" src="https://www.google-analytics.com/analytics.js">&...
0
votes
2answers
25 views
Passing a variable to a batchGet() request - Google Analytics Reporting API v4 / Python / loop
I'm building a Python project to pull down transaction level Google Analytics data for a day at a time. When I run the api for the month, the figures don't tie back to the GA UI. Therefore, I've tried ...
0
votes
0answers
21 views
Retrieve information from google search console using Search Console APIs in C#
I am successfully able to retrieve details from Google Analytics Reporting API, but when I am trying to access website(property) details from Google Search console using Search Console APIs in C#, it ...
0
votes
1answer
11 views
What is the best way to track customer id via google analytics
The goal is to pass the customer id when I load the google-analytics tag. How to separate the loading of google analytics tag and sending the customer id to the tag without having it marked as double ...
1
vote
1answer
34 views
Recording event data problem in google analytics ecommerce
I'm implementing enhanced ecommerce in Google Analytics and I have a problem.
When the purchase of a product is made, it's redirected to a thanks page and that's where the Purchase event is sent to ...
0
votes
1answer
70 views
GA collect inaccurate user count
We are using Google Analytics to Collect Data but we are using the https://www.google-analytics.com/collect?... method.
The problem is, the user count on the dashboard doesn't seem to be accurate. ...
0
votes
0answers
13 views
Retrieve an ecommerce order list from using an Analytics API
How to retrieve an ecommerce order list from using an Analytics API for PHP.
0
votes
0answers
18 views
Page load time differs between capital and small url
My site has two different url like www.example.com/home and www.example.com/Home. This comes some where on the website and we are trying to figure it and solve.
But my question is as I am using CMS ...
0
votes
0answers
9 views
Is there any way to import my existing cusotm report from my Google Analytics Account Properties/Views?
I want to fetch the existing Custom Dashboards/Reports from my Google Analytics account.
I have searched Analytics v3 & v4 API's, but they build new reports on the basis of API request. But i ...
0
votes
1answer
23 views
Google Analytics & Tag Manager together?
I'm confused about whether Google Tag Manager is supposed to replace Google Analytics or work along side it.
I want to track page views and also send a user ID through to Google Analytics.
If I add ...
0
votes
0answers
25 views
Google analytics 360 Bigquery export data mismatch
I have Google Analytics Export data in Bigquery.
In the GA I have a Goal 'ecap' (Goal 1) defined as eventCategory is 'email-capture|ecap-widget-success'. This metric is coming correct in Bigquery. ...
0
votes
1answer
17 views
Default URL for Google Analytics multi-domain tracking
I have a Google Analytics property set up to track 2 domains: example.com, example.org.
What should I set as my default URL in the Google Analytics property settings?
0
votes
0answers
10 views
Creating Cohorts in GA for more than 30 days old data
I am trying to get retention number and %age of users for more than 30 days old data (eg:date 1/04/2019-30/04/2019). We don't ingest the data into big query.
Can somebody please guide me on how to do ...
0
votes
0answers
16 views
'not match' segment rule in Google Analytics API (python/json)
I want to replicate a user-defined Google Analytics segment using the v4 API, but I can't find how to use the 'does not match' rule. like this:
Using the GA API I know how to include a certain ...
0
votes
0answers
12 views
Google Tag Manager - Values Not Set on Custom JavaScript Occasionally
In Google Tag manager i created 2 custom variables using JS and place them in Tag and Triggered the Tag on Page view and on Window loaded. Below are the snippet of my custom variable and Tag.
Now I ...
0
votes
1answer
36 views
BigQuery: Join based on closest timestamp
I am joining two tables based on closest timestamp in BigQuery and getting this error. Unsupported subquery with table in join predicate.
SELECT gs.user_session_id
,dtc._date
,dtc....
1
vote
1answer
14 views
Enhanced eCommerce: Do I push a new list of impressions on filtering products?
I'm setting up Enhanced Ecommerce and I was wondering if I need to push a new list of impressions each time a user filters? Is there some kind of logic Google applies that only the last set of ...
0
votes
2answers
33 views
Find match between first vertical bars (|)
In Google Analytics I want to filter with regex all urls where the first occurrence between vertical stripes/bars are 1 = |1|.
I searched for similar question on stackoverflow and did some tests in a ...
0
votes
1answer
18 views
google analytic get user activity with multi user
{
"viewId": "199044260",
"user":
{
"type": "CLIENT_ID",
"userId": "1624799839.1564022408"
}
}
This json will send a request to get all session of user id (all activity).
How can ...
1
vote
1answer
36 views
Massive differences between Google Analytics and own data collection
The use of a web app is to be evaluated statistically. It has been publicly available since spring of this year.
The web app is linked to Google Analytics. The following is done for the own user ...
0
votes
0answers
11 views
Firebase Analytics API [duplicate]
I created an android project and connected to the fire base analytics, now I need to have my panel on own server independent of Firebase console, Is there any API for firebase to getting data like ...
0
votes
2answers
27 views
Dynamically change the <script> tag src
Dynamically change the src tag
I am integrating Google analytics into my Angular app. It requires to add a google tracking id in the script-src and later. It needs to load at first before anything ...
0
votes
1answer
15 views
Can I add or embed google analytics behavior flow report to my website?
I want to add google analytics Behavior Flow reports(embedded or from api) to my website. Is it possible ?