changing the source between different properties (Big Query - Google Analytics) - google-analytics

i have 2 properties in google analytics (x - y). I wanted to know the "source" of "y" but if the user entered "x" and then clicked "y" (same session), I would have to replace the "source" of "y" with the "source" of " x ". Can someone help me?

In order to string together the session across two different properties in BQ, you need to have data that "connects" the two sessions in the x and y properties together. Without this data, you won't be able to do this.
Another solution would be to setup cross-domain tracking and just track the traffic for both domains in the same GA property.

Related

Facebook Pixel: mismatched content_id values - how to fix?

I would greatly appreciate some help with my current Facebook catalog ad predicament.
For a product with stock number 12345, our data feed brings it into the Facebook catalog as 616_12345 (the 616_ is consistent). This is the content_id.
To match the FB pixel content_id and track events, the stock number in the catalog needs to match the stock number on the site. So no events are being recorded.
I am managing the pixel and events through Google Tag Manager. I have set up a CSS selector that points to the stock number in an unordered list, but of course it just returns 12345.
Is there a way to create a variable in GTM that assumes a "616_" will be added before the stock number?
I've been told there is no way to remove that 616_ from the data feed - so this is the only option I can think of.
Thanks very much in advance!
Yes there is a way to create a variable in GTM - simple create "Constant" variable and set its' value to "616_". You can then reference this variable in your events and tags by simply using double curly brackets like so: {{VariableName}} . You can find detailed information here.

(not set) grouping in google analytics

I'm working with Google Analytics and i've come across a (not set) issue with Content Grouping. I changed my URL's in the month of August, and then most of the URL's went into the (not set) Content Grouping, instead of its specific group. Is there anything I can do to have the URL's put back into their correct grouping?
Also, i'm reporting out this data via Data Studio and I was wondering if there was a query/filter that I could use to have it be grouped into the correct content grouping?
The content groupings you have probably was dependent on the URL. You will need to modify your existing content groupings in GA and change the rules so that it matches the new URLs.
As for reporting in DataStudio, you can use CASE functions in a new calculated field. The cases will be the rules for your content groupings. Example:
CASE
WHEN REGEXP_MATCH(page, "(mypagepath1|mypagepath2|mypagepath3)") THEN "Group 1"
WHEN REGEXP_MATCH(page, "(mypagepath4|mypagepath5)" ) THEN "Group 2"
ELSE "No Group"
END
After that you will use the new calculated field in place of the content grouping dimension.
Welcome to StackOverflow. As #Sonali has already implied, you need to take into account the fact that GA is incapable of setting an 'if not set, use default' value on a dimension. If you can see any way of better interpreting the August data you do have, try using the GA plugin in Google Sheets: if you do that, and then use a Sheets formula to manipulate the data, you can then have GDS access the sheet.

eventAction and pageView filters in one request

I'm trying to filter website conversions from Google Analytics for a dashboard. However since it is a mixture of third party leads, events, and page path that contribute to the leads, I have to combine different types of filters. However combining folling metrics, the https://ga-dev-tools.appspot.com/query-explorer/ shows me the value 0 even if that's not correct.
Metrics: ga:totalEvents
Dimension:ga:date
ga:pagePath=#DialogNavigatorVertical,ga:eventAction==Texting form submit
I have tried multiple solutions, but can't figure out how to get the correct data. Can I not combine pagePath and evenAction?
Thank you so much for all your kind help,
Anna
Events by definition are not page views. This means that an Event dimension (category, action, label) can't have page view metrics such as page views or average time on the page because that information does not relate to the specific event.
But you can definitely combine pagePath and evenAction. You are getting wrong results because of one of the following reasons
In your filter, ga:pagePath=#DialogNavigatorVertical is wrong, it must be either == or !=. it cant be an assignment operator
IF you wish to combine two filter conditions using AND that means both must be true, use ;. Semicolon is used for AND operator in filters
IF you wish to combine two filter conditions using OR that means both must be true, use ,. Comma is used for OR operator in filters
In case you are using core reporting api from a backend script, please URL encode the call before hitting. like == must be %3D%3D, space must be %20 and so on.
Please have a look into settings here : https://developers.google.com/analytics/devguides/reporting/core/v3/reference#filters

Content Grouping (not set) issue in Google Analytics

I want to try content grouping in Google Analytics. I have entered a couple of URLs in "Group Using Rule Definition" in Google Analytics and I have saved it without any error.
But when I try it in "Behavior" flow, its giving me "(not set)". Can anyone help me out how to deal with it? Any help would be greatly appreciated.
Thanks!!
This explanation from Google covers it briefly
But the key point is
(not set) is the collection of pages that are not assigned to any group.
If you assign more content groups you should see a reduction in "(not set)" in reports.
If you are entering full URLs in the Group Using Rule Definition area, then you are creating groups of 1 page each.
A better rule is to use something like "starts with" with a partial url "/foo" to group all pages that start with "/foo", or similar logic.
Each content item is placed in the first group that it matches for. If the last group is called "Other Pages" and set to match anything, it will group all pages not collected higher on the list.
https://support.google.com/analytics/answer/2853563?hl=en

Tracking different domains within 1 view and using filters in GA - is it possible?

Was curious if the following was possible. We have a site, https://mysite.net
Say we want to track https://dev.mysite.net but keep it in the same view. The problem is we have around 80+ instances of different subdomains that they want tracked and the limit is 50. This works when creating different views for each, but I am trying to use filters for each subdomain and it doesn't seem to work.
So at the moment I have one view set to
https://mysite.net.
And 3 filters set to
https://site1.mysite.net
https://site2.mysite.net
https://site3.mysite.net
All are set to "include only" "traffic to the hostname" "that contain"
with the their respective URL.
Will this work does anyone know ? Or do you need different views for sure?
Thanks!
You should be able to create a custom filter type > include with the filter field hostname, and a regex of ^site[1-3]\.mysite\.net$.

Resources