Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Session source/medium (not set) #17

Open
green17 opened this issue Sep 18, 2023 · 13 comments
Open

Session source/medium (not set) #17

green17 opened this issue Sep 18, 2023 · 13 comments
Labels
question Further information is requested

Comments

@green17
Copy link

green17 commented Sep 18, 2023

Question

We have an existing GA4 property collecting data (this is added through a cookie manager in line with GDPR) and have installed Instant Analytics for GA4 to handle the ecommerce side. As such we have turned off the "Auto Send PageViews" setting in the plugin to avoid a duplication of data. Commerce data is pulling through into GA4 but it is going to the "Unassigned" channel and the Session Source/Medium is coming through as (not set). Am I right in thinking that this is because we're not sending the pageview?

@green17 green17 added the question Further information is requested label Sep 18, 2023
@khalwat
Copy link
Contributor

khalwat commented Sep 18, 2023

Sounds possible / likely but I'm not sure tbh.

@khalwat
Copy link
Contributor

khalwat commented Sep 19, 2023

How they you passing the source/medium to the page so I can check if that's one of the parameters that IA actually checks?

Also, it would help immensely if you could illustrate with an anonymized screenshot where the users end up showing up and where they would expect them to be, so I can get more context for what they are looking for.

@green17
Copy link
Author

green17 commented Oct 12, 2023

We have a dual setup in the sense that we use a standard GA4 through Tag Manager instance alongside IA. Page views have been turned off for the Tag Manager to avoid data duplication.

Instant Analytics is setup as below, we haven't added any additional twig:
screenshot_1

In GA4 sessions source goes through as (not set) for e-commerce events.
screenshot_2

For purchases the source/medium comes across as (not set) also.
screenshot_3

@jripmeester
Copy link

@khalwat We have a exact same use case on our end. IS there any info i can feed you with to give some insight on how we could connect the IA session to the GTM session. We think that a solution in that direction would do the trick.

@khalwat
Copy link
Contributor

khalwat commented Nov 17, 2023

Unfortunately, I still don't have a good answer here. Perhaps we can reach out to Google to find a solution?

@bymayo
Copy link

bymayo commented Nov 28, 2023

@khalwat Also having this issue where events are being passed but only for Desktop, not Mobile or Tablet (Even if the customer purchased on that device) I can see an open issue from the library your using to do most of the work in this plugin (br33f/php-GA4-Measurement-Protocol#37) related to the same issue we're seeing.

@khalwat
Copy link
Contributor

khalwat commented Nov 28, 2023

@bymayo Hopefully there is some kind of resolution.

@geertvansoest
Copy link

geertvansoest commented Apr 17, 2024

Is there any update on this? We have the exact same setup and facing the same issues.

It looks like there are commerce events in Google (add_to_cart, remove_from_cart, purchase) having a session source/medium, but it's (not set) for all purchase events having a revenue value.

@bymayo
Copy link

bymayo commented Apr 17, 2024

Still having this issue as the library this plugin uses hasn't fixed the issue.

Kind of makes this plugin useless for any marketing team as all results show as coming from Desktop devices.

@khalwat
Copy link
Contributor

khalwat commented Apr 19, 2024

There's not much I can do about it, other than attempting to diagnose and fix the parent library -- assuming it isn't some complication with GA4 that I don't understand.

@bymayo
Copy link

bymayo commented Apr 22, 2024

@khalwat I did try and have a look at this myself, but GA4 API just goes over my head!

@scoremedianl
Copy link

Any updates? We still have the issue

@khalwat
Copy link
Contributor

khalwat commented Oct 9, 2024

@scoremedianl not that I'm aware of; AFAIK this is an upstream issue with the library that IA uses

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

6 participants