Comments (11)
Alright! Now you have answered my question. Do outbound clicks need a custom event setup with the code?
from minimal-analytics.
Thank you. I will keep that in mind.
from minimal-analytics.
Hi @stullesha,
By default, the official GA4 script tracks page_view
, user_engagement
, scroll
and click
events "out of the box". No additional config is required in the UI, or elsewhere.
This minimal version is exactly the same, e.g it "Just Works".
I've actually just added click
event tracking in v1.6.0, so you'll now get those events too, bringing it to default feature parity with the official script.
If I've missed something, or I haven't answered your question, please let me know.
Thanks
from minimal-analytics.
I am actually referring to the ''Enhanced measurement" section of GA4.
from minimal-analytics.
@stullesha Unfortunately I don't think this is in scope for the @minimal-analytics/ga4
package.
Things like how to use various features of GA4 can be found elsewhere, including the official GA4 docs.
from minimal-analytics.
I think you are misunderstanding my question. If a user doesn't toggle search and scroll in the ga4 property, will your code still track those features? This is what I am referring to!
from minimal-analytics.
If a user doesn't toggle search and scroll in the ga4 property, will your code still track those features?
@stullesha Oh right, I see, yeh your question wasn't super clear, you probably should have lead with this in the first place!
So, of the default events that GA4 can track, this package only supports the first four:
- Page View
- Scrolls
- Outbound Links
- Site Search
This is kind of briefly mentioned in the opening paragraph, but I see your point, it could be clearer 👍
But to answer your actual question:
If a user turns off, or does not turn on, one of the supported tracking event types, does it still track those events?
Yes, if it's a supported event type, these will still be tracked. The reason being, we are not requesting or receiving any GA4 UI defined config here, we're merely sending data to an endpoint. The flow of data is one way.
If you want to have more fine grained control over the GA4 tracking events, it's advised you use the official library. Implementing the complete suite of features of GA4 is, as I say, out of scope unfortunately for this particular package.
I hope that better answers your question!
from minimal-analytics.
Great! 👍
Yes, outbound clicks are now being tracked, from v1.6.0 onwards, as mentioned above. You don't need to setup anything in the GA4 UI, it'll just work.
from minimal-analytics.
Okay. Which event name is for outbound links? I am using the CDN version. (So far I have these https://prnt.sc/VImkFmyjUF2U)
from minimal-analytics.
@stullesha It will show up in your GA4 reports as click
:
You can see relevant event params tracked as part of that event by clicking on it. I'd suggest looking up the official docs on how to generate reports on these. Some of the params tracked as part of this event are:
ep.outbound
= whether the link was outbound (mostly true)
ep.link_id
= element ID of the link clicked
ep.link_url
= href of the link clicked
etc, etc
Also remember there's some lag between events being tracked, and showing up in your reports.
from minimal-analytics.
I can confirm the click event is now live.
from minimal-analytics.
Related Issues (17)
- How to use the code HOT 10
- Do you update CDN code? HOT 2
- Customize analytics endpoint HOT 6
- Not measuring engagement time HOT 7
- Tracking code HOT 4
- Adding to Hugo HOT 4
- Using jsDelivr? HOT 4
- gtag() compatibility HOT 8
- Not tracking downloads through form submit HOT 8
- Minimal Analytics are getting blocked by Ad Blockers + Firefox Private Mode HOT 6
- Unable to make it work with CDN implementation HOT 11
- require.min.js:17 Uncaught Error: Mismatched anonymous define() module: HOT 15
- Unable to override default parameters
- Direct localStorage/ sessionStorage access prevents usage from Worker context or Safari Private tab HOT 8
- Inline onclick event tracking HOT 8
- Beacon parameter inconsistencies from their original GA4 specs
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from minimal-analytics.