dataunlocker/save-analytics-from-content-blockers

/ga-audiences

Closed this issue · 5 comments

It appears when Signals data is turned on, the browser makes a call to a google page for /ga-audiences.

This does not appear mapped so some browsers will try and connect to a Google server.

In our instanace the URL in the javascript seems half encoded but half not.

https://www.%/*(YWRz)*/ga-audiences

What is Signals data? Can you clarify how to reproduce it?

Within the GA4 Data Settings / Data Collection page:

Enable Google signals data collection
By activating Google signals, you enable Google Analytics to collect data about your traffic in addition to data collected through a standard Google Analytics implementation in order to provide additional features like cross-device audiences and insights.
When enabled, Google Analytics will collect visitation information and associate it with Google information from accounts of signed-in users who have consented to this association for the purpose of ads personalisation. This Google information may include end user location, search history, YouTube history and data from sites that partner with Google – and is used to provide aggregated and anonymised insights into your users’ cross device behaviours. By enabling these features, you acknowledge that you adhere to the Google Advertising Features Policy, including rules around sensitive categories, have the necessary privacy disclosures and rights from your end users for such association and that such data may be accessed and/or deleted by end users via My Activity.
Note: Enabling the above toggle causes Google Analytics to automatically collect additional data about your traffic. If you don't want to collect data for Google signals, you should disable the toggle above as well as ensure that you have not manually enabled any Advertising Features data collection in your Google Analytics tags.

If enabled, the page makes a call to the /ga-audience page of which the URL does not appear to be processed by the proxy correctly.

Needs to be investigated. Most likely the back end makes an invalid replacement in the proxied script's source code. PRs are welcome!

The part of the gtag/js is:

var Ty=function(a,b,c,d){var e=a+"?"+b;Qy&&(d=!(0===e.indexOf("https://www.google-analytics.com/g/collect")||0===e.indexOf("https://analytics.google.com/g/collect")));Ry&&d&&!Kx?Py(e,c):Sy(a,b,c)},Uy=function(a){return a&&0===a.indexOf("google.")&&"google.com"!=a?"https://www.%/ads/ga-audiences?v=1&t=sr&slf_rd=1&_r=4&".replace("%",a):void 0},Ry=!1;Ry=!0;var Qy=!1;var Vy=function(){this.C=1;this.F={};this.g=new Sf;this.o=-1};Vy.prototype.s=function(a,b){var c=this,d;try{d=new Ly(a,this.F,b)}catch(n){a.abort()}var e=Mx(a);e&&this.g.C(d)||this.flush();if(e&&this.g.add(d)){if(0>this.o){var f=A,g=f.setTimeout,h;a.Ua()?Wy?(Wy=!1,h=Xy):h=Yy:h=5E3;this.o=g.call(f,function(){return c.flush()},h)}}else{var l=Uf(d,this.C++);Ty(d.o,l.rf,l.body,d.C);Zy(d,a.Ee,a.ob,String(a.Db(R.jd,a.B(R.jd))))}};

It seems they're using a % in place of which domain they would expect to see.

In our instance, as above. it changes to https://www.%/*(YWRz)*/ga-audiences

I have a react app , reactGa events are working fine , on real time i can even see active user ... but i cannot see active user's is there something wrong with package ?