idmadj / ga-gtag

ES module for the Google Analytics Global site tag
MIT License
24 stars 4 forks source link

We have problems to send events from an electronjs application #9

Open borlam opened 1 year ago

borlam commented 1 year ago

We have problems to send events from an electronjs application. The console shows: PageView Event sent succesfully But in the Network Tab I don't see the event sent and analytics is not registering anything.

idmadj commented 1 year ago

Hi @borlam, can you provide a minimal repro?

borlam commented 1 year ago

Yes I do, let me prepare it please

borlam commented 1 year ago

Hi, Yes I am checked with this library in a hello world electronjs application. With this index.html serve with node.js script the hit is registered properly in the property of GA4. `<!DOCTYPE html>

Hello World!

Hello World!

We are using Node.js , Chromium , and Electron . ` But the same index.html loaded in electronjs does not work. With the ga-gtag library it doesn't work either. I am going to finishing the test and attaching the files
borlam commented 1 year ago

my-electron-app.zip Attached without node_modules

borlam commented 1 year ago

Looks that gtag does not allow send events from a file without protocol.

borlam commented 1 year ago

Hi @idmadj. Do you need something more to reproduce this problem?

idmadj commented 11 months ago

Hi there, do you still need help with this?