denoland / ga Goto Github PK
View Code? Open in Web Editor NEWUtilities for server side processing of Google Analytics in Deno CLI and Deploy
Home Page: https://deno.land/
License: MIT License
Utilities for server side processing of Google Analytics in Deno CLI and Deploy
Home Page: https://deno.land/
License: MIT License
I was writing the GA blog post and wanted to include an example of sending an event to GA, then noticed that the message
payload does not include any event params.
Supporting GA events would enable wider use of GA reporting (such as creating goals, ecommerce support, etc.) than simply page views. The downside is that it's not super clear how to enable users to add event data. Currently the ga
function accepts a Request
object.
Finally, i'm not sure how we wanna prioritize this if we're gonna add GA4 support.
Universal Analytics will stop processing data on July 1, 2023.
It looks like the user language is not reported:
I'm not familiar with the GA4 protocol. But the info is in the Accept-Language
request header.
As example, my browser's language header is pretty long:
Accept-Language: en-DE,en-US;q=0.9,en;q=0.8,de-DE;q=0.7,de;q=0.6,en-GB;q=0.5
I'd expect that to register as simply "English" but probably GA wants the most preferred language code so en-DE
.
I put /x/ga
in front of a blog in a multilingual region so it's good to know what the expected user languages are.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.